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: 1 Mar 2008 13:42:59 -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 #11 from dave at hiauly1 dot hia dot nrc dot ca 2008-03-01 13:42 -------
Subject: Re: FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution
> So, in your case, when isfinite and fpclassify are both functions (and not
> macros), we're going to simply define isfinite as:
> #define isfinite(x) ((x) - (x) == 0)
This is not correct. isfinite and fpclassify are both macros on
HP-UX 11. However, they are broken because they only support float
and double, and not long double. The function implementations are
_Isfinitef, _Isfinite, _Fpclassifyf and _Fpclassify. There's also
_Fpclassifyfd where the float argument is cast to double in math.h.
On HP-UX 10, there is no isfinite macro or function. There are
functions finite and finitef. Likewise, there are fpclassify and
fpclassifyf functions. As with HP-UX 11, there is no long double
support.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26252