This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,fortran] PRs 19363 and 19691, Cygwin failure in formatted write of Inf and NaN
On Mon, Jan 31, 2005 at 11:51:38PM +0100, Steven Bosscher wrote:
> On Monday 31 January 2005 23:45, Steve Kargl wrote:
> > How do you fix configure? AFAIK, configure only
> > compiles a test code to ensure that math.h defines
> > isfinite(). It does not actually test to see if
> > isfinite() actually works. isfinite() is defined
> > on Cygwin, but it does not work.
>
> Then you add a check to see if it works. libstdc++ has
> a check for it iirc.
>
troutmask:sgk[211] pwd
/usr/tmp/sgk/gcc/libstdc++-v3
troutmask:sgk[212] grep isfinite configure
isfinite(0.0);
This does not test whether isfinite works when the
number is NaN or Inf. I'll also suggest that 0.0
may be a bad choice for the the value to test.
See http://gcc.gnu.org/ml/fortran/2005-01/msg00092.html
--
Steve