This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran, patch] Add Fortran 2003 IEEE intrinsic modules
- From: "N.M. Maclaren" <nmm1 at cam dot ac dot uk>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: FX <fxcoudert at gmail dot com>, gfortran <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: 21 Nov 2013 17:21:38 +0000
- Subject: Re: [fortran, patch] Add Fortran 2003 IEEE intrinsic modules
- Authentication-results: sourceware.org; auth=none
- References: <F945E835-FE38-4741-99BD-15B2FD107555 at gmail dot com> <Prayer dot 1 dot 3 dot 5 dot 1311211031410 dot 6333 at hermes-2 dot csi dot cam dot ac dot uk> <BFEAE27B-3B8D-4FEE-B69B-FDCF52CD2DDA at gmail dot com> <Pine dot LNX dot 4 dot 64 dot 1311211623010 dot 19332 at digraph dot polyomino dot org dot uk>
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.