This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/47481] [4.6 Regression] spill failure with -O2 -msoft-float on Ada RTS


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47481

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
         AssignedTo|ebotcazou at gcc dot        |unassigned at gcc dot
                   |gnu.org                     |gnu.org

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-02-08 17:44:34 UTC ---
There is probably no point in using 80-bit floats with -msoft-float:

Index: config/i386/i386.h
===================================================================
--- config/i386/i386.h  (revision 169914)
+++ config/i386/i386.h  (working copy)
@@ -658,7 +658,8 @@ enum target_cpu_default
 #define DOUBLE_TYPE_SIZE 64
 #define LONG_DOUBLE_TYPE_SIZE 80

-#define WIDEST_HARDWARE_FP_SIZE LONG_DOUBLE_TYPE_SIZE
+#define WIDEST_HARDWARE_FP_SIZE \
+  (TARGET_80387 ? LONG_DOUBLE_TYPE_SIZE : DOUBLE_TYPE_SIZE)

 #if defined (TARGET_BI_ARCH) || TARGET_64BIT_DEFAULT
 #define MAX_BITS_PER_WORD 64


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]