This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/26252] FAIL: gfortran.fortran-torture/execute/nan_inf_fmt.f90 execution



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]