[fortran, patch] Add Fortran 2003 IEEE intrinsic modules

N.M. Maclaren nmm1@cam.ac.uk
Thu Nov 21 19:27:00 GMT 2013


On Nov 21 2013, Joseph S. Myers wrote:
>On Thu, 21 Nov 2013, FX wrote:
>
>> Indeed, 387/SSE has flush-to-zero modes. But other APIs do not (glibc, 
>> SysV, AIX).
>
>Note that glibc libm functions may not work when called in a flush-to-zero 
>mode, only in modes that can be established by the <fenv.h> functions.

Well, that's two clear bugs :-(

If, as you say, they may not work at all in combination with -ffast-math,
that's one.

Setting __STDC_IEC_559__ to 1 in combination with -ffast-math is another,
given that C99 and C11 reference ISO/IEC 10559 (1989).


Regards,
Nick Maclaren.



More information about the Gcc-patches mailing list