https://gcc.gnu.org/g:f139cbe761fa14a0893051048b41a9b33a3386d2

commit r15-4074-gf139cbe761fa14a0893051048b41a9b33a3386d2
Author: Georg-Johann Lay <a...@gjlay.de>
Date:   Fri Oct 4 17:03:24 2024 +0200

    Revert: AVR: Implement TARGET_FLOATN_MODE.
    
            Revert r15-4073 / 98a1a886e4c0c58ad9f9846caf5697ff00e4f24a
            The default TARGET_FLOATN_MODE is just fine.
    gcc/
            * config/avr/avr.cc (avr_floatn_mode): Remove.
            (TARGET_FLOATN_MODE): Remove.

Diff:
---
 gcc/config/avr/avr.cc | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc
index b73c251b64b4..92013c3845db 100644
--- a/gcc/config/avr/avr.cc
+++ b/gcc/config/avr/avr.cc
@@ -15473,24 +15473,6 @@ avr_c_mode_for_floating_type (tree_index ti)
 }
 
 
-/* Implement `TARGET_FLOATN_MODE'.  */
-
-static opt_scalar_float_mode
-avr_floatn_mode (int n, bool /*extended*/)
-{
-  if (n == 32)
-    return SFmode;
-
-  // Notice that -m[long-]double= just tells which library (AVR-LibC
-  // or libgcc/libf7) is providing symbols like sin.  DFmode support
-  // is provided by libf7 no matter what.
-  if (n == 64)
-    return DFmode;
-
-  return opt_scalar_float_mode ();
-}
-
-
 /* Worker function for `FLOAT_LIB_COMPARE_RETURNS_BOOL'.  */
 
 bool
@@ -15723,9 +15705,6 @@ avr_use_lra_p ()
 #undef TARGET_C_MODE_FOR_FLOATING_TYPE
 #define TARGET_C_MODE_FOR_FLOATING_TYPE avr_c_mode_for_floating_type
 
-#undef  TARGET_FLOATN_MODE
-#define TARGET_FLOATN_MODE avr_floatn_mode
-
 gcc_target targetm = TARGET_INITIALIZER;

Reply via email to