This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47481] [4.6 Regression] spill failure with -O2 -msoft-float on Ada RTS
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 8 Feb 2011 17:44:36 +0000
- Subject: [Bug target/47481] [4.6 Regression] spill failure with -O2 -msoft-float on Ada RTS
- Auto-submitted: auto-generated
- References: <bug-47481-4@http.gcc.gnu.org/bugzilla/>
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