This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for libgfortran; broken isnan/isfinite/fpclassify
- From: Richard Henderson <rth at redhat dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 23 Sep 2005 15:57:42 -0700
- Subject: Re: Patch for libgfortran; broken isnan/isfinite/fpclassify
- References: <200509232110.OAA23000@hpsje.cup.hp.com>
On Fri, Sep 23, 2005 at 02:10:35PM -0700, Steve Ellcey wrote:
> + long double x;
> + x = 0/0;
This doesn't do what you think it does. At minimum you wanted 0.0/0.0.
But better to use __builtin_nan{f,,l} ("").
r~