[Bug c/31394] cos() returns wrong value unless -O0 is used

sdirkse at gams dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 29 16:56:00 GMT 2007



------- Comment #1 from sdirkse at gams dot com  2007-03-29 17:55 -------
Created an attachment (id=13297)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13297&action=view)
test case for the bug

Building with
gcc -m64 -O1 -o xxx cosbug.i -lm
shows the bug bug
gcc -m64 -o xxx cosbug.i -lm
is OK.  I observe the bug also with -O2 and -O3


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31394



More information about the Gcc-bugs mailing list