This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/15470] Incorrect floating-point generation on Pentium 4 with -mno-fp-ret-in-387
- From: "belyshev at lubercy dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2004 18:09:39 -0000
- Subject: [Bug target/15470] Incorrect floating-point generation on Pentium 4 with -mno-fp-ret-in-387
- References: <20040515213221.15470.coyote@coyotegulch.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From belyshev at lubercy dot com 2004-05-16 18:09 -------
Created an attachment (id=6312)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6312&action=view)
minimized testcase (124 bytes)
cat > bug.i << EOF
extern double cos (double);
extern int printf (const char *, ...);
int main ()
{
printf ("%f\n", cos (0.5));
return 0;
}
EOF
gcc bug.i -lm -mno-fp-ret-in-387
./a.out
0.000000
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15470