This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/26252] FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2007 04:42:00 -0000
- Subject: [Bug libfortran/26252] FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution
- References: <bug-26252-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dave at hiauly1 dot hia dot nrc dot ca 2007-08-10 04:42 -------
Subject: Re: FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution
> write_float uses isfinite (n) and isnan (n) to determine if "Infinite" or "NaN"
> is emitted and in that case exits before calling output_float. So if execution
> is reaching output_float, one or both of the aforementioned functions is
> probably broken or configured incorrectly.
It looks like the configure tests are broken:
checking whether isfinite is broken... no
checking whether isnan is broken... no
checking whether fpclassify is broken... no
The cross compile settings are broken.
hpux10 doesn't have the isfinite, isnan or fpclassify macros. The
available checks are the finite, isnan and fpclassify functions for
doubles; finitef, and isnanf and fpclassifyf for floats. There are
no functions for long doubles. Looking at the configure tests, I
think they should return 1 when the macros don't exist.
hpux11 has macros when -D_HPUX_SOURCE is defined. However, there
is no long double support. So, the configure tests probably correctly
fail.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26252