This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20441] -finit-local-zero is missing from gfortran
- From: "langton at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2007 15:07:29 -0000
- Subject: [Bug fortran/20441] -finit-local-zero is missing from gfortran
- References: <bug-20441-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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