c/5707: i386 compiler can't build libgcc2.c with -msoft-float

Richard Henderson rth@redhat.com
Tue Mar 5 14:27:00 GMT 2002


On Tue, Mar 05, 2002 at 06:15:19AM -0600, Joel Sherrill wrote:
> Richard/Jan could you try this out and take a stab at fixing it?  This
> is a real pain for the embedded community using i386dx/ex and 486sx 
> derived CPUs.  

See if this is all you need.


r~



Index: config/i386/i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.339
diff -c -p -d -u -r1.339 i386.md
--- i386.md	2002/02/21 21:16:18	1.339
+++ i386.md	2002/03/05 22:26:35
@@ -5136,7 +5136,7 @@
 (define_expand "floatsidf2"
   [(set (match_operand:DF 0 "register_operand" "")
 	(float:DF (match_operand:SI 1 "nonimmediate_operand" "")))]
-  ""
+  "TARGET_80387 || TARGET_SSE2"
   "")
 
 (define_insn "*floatsidf2_i387"



More information about the Gcc-bugs mailing list