why not consfold sin(const)
Toon Moene
toon@moene.indiv.nluug.nl
Thu Sep 23 23:04:00 GMT 2004
Bradley Lucier wrote:
>> All functions in <math.h> can set errno for domain and range errors;
>> in other words, those functions are not pure, and cannot be moved out
>> of loops or CSE'd away.
>
> Which is one reason to have -fno-math-errno (which is part of -ffast-math).
Sure, but the original implementation of -fno-math-errno I coded because
Fortran programmers wouldn't have access to errno anyway, didn't concern
itself with the pureness (or even constness) of the resulting <math.h>
function.
This is a later addition.
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/
More information about the Gcc
mailing list