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
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: fortran at gcc dot gnu dot org, Paul Thomas <paulthomas2 at wanadoo dot fr>, billingd at gcc dot gnu dot org
- Date: Mon, 31 Jan 2005 14:45:26 -0800
- Subject: Re: [patch,fortran] PRs 19363 and 19691, Cygwin failure in formatted write of Inf and NaN
- References: <001601c507e3$c37e92b0$0400000a@Paul> <200501312334.13232.stevenb@suse.de>
On Mon, Jan 31, 2005 at 11:34:13PM +0100, Steven Bosscher wrote:
> On Monday 31 January 2005 23:25, Paul Thomas wrote:
> > This also fixes the testsuite failures, under Cygwin, of complex_write.f90,
> > fmt_read.f90 and nan_inf_fmt.f90. No extra compilation warnings. Regtested
> > under CYGWIN_NT-5.1 and RedHat9.
> >
> > PR libfortran/19363 and 19691
> > * io/write.c (write_float): gfc_isfinite(x): macro substitution for Cygwin
> > of broken isfinite(x) with finite(x).
>
> Nope. If anywhere, this should be fixed in the configure test
> that we have for this, or in libgfortran.h. I'd prefer the
> former.
> What is broken about them on Cygwin anyway?
>
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.
--
Steve