------- Comment #10 from langton at gcc dot gnu dot org 2007-08-20 15:07 ------- (In reply to comment #9) > Adding -finit-real=nan (http://gcc.gnu.org/ml/fortran/2007-08/msg00408.html) > is > a real bonus for gfortran. > Any chance to add "-finit-real=snan" to set "Signalling NaN" ? > A SNaN cannot be the result of any arithmetic operations, hence a good choice > for a unset pattern. The NAG compiler uses SNaN when using "-nan".
I'd like to add finit-real=snan. Right now, this requires a bit of a hack, since mpfr (which we use internally for real constants) doesn't distinguish between signaling and quiet NaNs: http://gcc.gnu.org/ml/fortran/2007-07/msg00512.html http://websympa.loria.fr/wwsympa/arc/mpfr/2007-07/msg00118.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20441