This is the mail archive of the gcc-patches@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]

Re: Patch for libgfortran; broken isnan/isfinite/fpclassify


! #if (defined(fpclassify) && defined(HAVE_BROKEN_FPCLASSIFY))
! #undef fpclassify
! #endif

No need to check for defined(fpclassify), as Andrew Pinski told me about a recent patch.

I am not sure what you mean by this check not being needed.

I'm just saying that:


#if (defined(fpclassify) && defined(HAVE_BROKEN_FPCLASSIFY))
#undef fpclassify
#endif

could be written as:

#if defined(HAVE_BROKEN_FPCLASSIFY)
#undef fpclassify
#endif

This is only a minor style issue, but it simplifies the code, so I'd go for it (same thing for isnan and isfinite near that).

I'll fix the other issues and retest a modified patch before doing a
checkin.

Thanks for the work, FX


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