[Bug c/56651] sin() and tan() have different values during compile time and run time.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 18 11:29:00 GMT 2013


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-18 11:29:12 UTC ---
This is not a bug in GCC.  GCC evaluates to 0.5ulp precision at compile-time
using MPFR (for a cross-compiler it would have no way to invoke the actual
targets math library routine for example).  Thus the "bug" is in your
math library which does not evaluate to the same precision.

OTOH this is not a bug at all, but a "feature".  We cannot fix it.



More information about the Gcc-bugs mailing list