This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: IA64 HP-UX __builtin_finite patch (and questions about __builtin_)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Jan 2007 00:38:20 +0000 (UTC)
- Subject: Re: IA64 HP-UX __builtin_finite patch (and questions about __builtin_)
- References: <200701120009.QAA13322@hpsje.cup.hp.com>
On Thu, 11 Jan 2007, Steve Ellcey wrote:
> The issue that HP-UX would have isn't really correctness but
> performance. If I just use the HP-UX headers as is, the isfinite macro
> would be converted to a type specific function call based on the type of
> the argument (_Isfinite, _Isfinitef, _Isfinitel) and it would do the
> right thing. But it would never be inlined. To get inlining I would
> need to modify the header file to change the isfinite macro to use
> __builtin_finite.
So modify it to add __GNUC__ support in future HP-UX versions. These
functions are most useful in conjunction with such modifications to other
components of the system, but can still be of some use without it (for
example, the macro isfinite in libgcc2.c could be replaced with a call to
the new built-in function, and so be faster and avoid causing excess
exceptions).
--
Joseph S. Myers
joseph@codesourcery.com