[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x
simon dot fenney at imgtec dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 23 13:37:00 GMT 2010
------- Comment #8 from simon dot fenney at imgtec dot com 2010-03-23 13:37 -------
(In reply to comment #6)
> you can test two different implementations:
> 1). '-O2 -m32 -fno-builtin' - force libm.so calls and test libc implementation.
> 2). '-O2 -m32' to test gcc compile-time evaluation.
>
FWIW I've just tried
gcc -o simplesintest -Wall -W -pedantic -std=c99 simplesintest.c -O2 -m32
-fno-builtin -lm
and
gcc -o simplesintest -Wall -W -pedantic -std=c99 simplesintest.c -O2 -m32 -lm
and they've made no difference :-|
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43490
More information about the Gcc-bugs
mailing list