This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x
- From: "simon dot fenney at imgtec dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2010 13:37:15 -0000
- Subject: [Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x
- References: <bug-43490-18948@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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