This is the mail archive of the
mailing list for the GCC project.
Re: weird optimization in sin+cos, x86 backend
On 02/03/2012 04:13 PM, Robert Dewar wrote:
On 2/3/2012 10:01 AM, Michael Matz wrote:
No normal math library supports such an extreme range, even basic
identities (like cos^2+sin^2=1) aren't retained with such inputs.
I agree: the program is complete nonsense. It would be useful to know
what the intent was.
You think this is bad ?
We got a complaint from a user in the pre-egcs days about g77. It
turned out he tried to use a Fortran program on his shiny new Pentium
computer that was written on one of the descendents of the CDC 6600,
with CDC 60-bit floating point values encoded in octal in a DATA statement.
Toon Moene - e-mail: email@example.com - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news