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: IA64 HP-UX __builtin_finite patch (and questions about __builtin_)


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


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