This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.2 stuff
- To: law at cygnus dot com
- Subject: Re: egcs-1.2 stuff
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 12 Apr 1999 13:36:38 -0700 (PDT)
- Cc: egcs at egcs dot cygnus dot com, john at feith dot com
>
>
> In message <m10WkA2-000ErMC@ocean.lucon.org>you write:
> > > Interesting. I wonder if the patch got mis-applied. Quite possible sinc
> > e
> > > the patch is old.
> > >
> >
> > I applied your patch and fixed the bugs in it. This is what I got by
> > adding "-mcpu=pentiumpro -march=pentiumpro" to CFLAGS. I didn't find
> > any regressions.
> >
> > Please let me know which patch you want, against yours or CVS.
> Against CVS would be best. Thanks!
I will do that. It may take a while. I am updating it now.
>
> What was the problem?
> jeff
>
You left out the following changes.
--
H.J. Lu (hjl@gnu.org)
----
--- /tmp/i386.c Mon Apr 12 13:33:24 1999
+++ ./i386.c Mon Apr 12 09:08:25 1999
@@ -3187,7 +3187,8 @@ put_jump_code (code, reverse, file)
FILE *file;
{
int flags = cc_prev_status.flags;
- int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387));
+ int ieee = (TARGET_IEEE_FP && (flags & CC_IN_80387)
+ && !(cc_prev_status.flags & CC_FCOMI));
const char *suffix;
if (flags & CC_Z_IN_NOT_C)
@@ -4288,8 +4289,7 @@ output_float_compare (insn, operands)
{
output_asm_insn (AS2 (fcomip, %y1,%0), operands);
output_asm_insn (AS1 (fstp, %y0), operands);
- if (!TARGET_IEEE_FP)
- return "";
+ return "";
}
else
output_asm_insn ("fcompp", operands);