This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5707: i386 compiler can't build libgcc2.c with -msoft-float
- From: Richard Henderson <rth at redhat dot com>
- To: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, eric dot norum at usask dot ca, gcc-bugs at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>
- Date: Tue, 5 Mar 2002 14:10:10 -0800
- Subject: Re: c/5707: i386 compiler can't build libgcc2.c with -msoft-float
- References: <3C84B6D7.2B2986D4@OARcorp.com>
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"