This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/43490] sin(x) (actually probably all trig) is inaccurate for large x



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]