[PATCH, fortran] PR20441 -finit-local-zero
Asher Langton
langton2@llnl.gov
Fri Sep 14 12:50:00 GMT 2007
On 9/14/07, Tobias Burnus <burnus@net-b.de> wrote:
> + else if (!strcmp (arg, "nan"))
>
> I am wondering whether one should use strcasecmp instead (as people like
> to write INF, NaN,...), but I do not have a real opinion on this.
That's a good idea, and it certainly won't harm anything.
>
> +@option{-finit-real=@var{<zero|inf|-inf|nan>}} (which also initializes
> +the real and imaginary parts of local @code{COMPLEX} variables),
>
> I wonder whether one should add something like
> "Note: @var{nan} initializes REAL and COMPLEX variables with a quiet NaN."
> as some might expect that the NaN are signalling.*
I'll add something like this. Eventually, I'd like to add
finit-real=<snan,qnan> options, but so far I haven't come up with a
nice kludge to deal with sNaNs in mpfr.
-Asher
More information about the Fortran
mailing list