This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: glibc and inline functions
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Scott Robert Ladd <coyote at coyotegulch dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 29 Mar 2004 19:16:45 +0000 (UTC)
- Subject: Re: glibc and inline functions
- References: <40686EB0.5060503@coyotegulch.com>
On Mon, 29 Mar 2004, Scott Robert Ladd wrote:
> In the discussion last week, some people suggested that the performance
> of sin() and cos() could be improved through the application of
> -D__NO_INLINE__ (or __NO_INLINES__) to a compile. This definition would,
> I was informed, eliminate glibc's inline versions of those functions,
> allowing GCC to generate its own (and presumably faster) code.
__NO_INLINE__ is defined by -fno-inline; I don't think it's meant to be
defined directly. __NO_STRING_INLINES and __NO_MATH_INLINES are available
for users. __NO_INLINE__ ought to imply them (glibc shouldn't provide
inline functions in headers when inlining has been disabled) but may have
bugs in this regard.
--
Joseph S. Myers
jsm@polyomino.org.uk