[patch,fortran] PRs 19363 and 19691, Cygwin failure in formatted write of Inf and NaN

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Jan 31 22:45:00 GMT 2005


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



More information about the Fortran mailing list