This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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 0/6] Some vfprintf refactoring


On 03/05/2015 09:53 PM, Florian Weimer wrote:

> GCC will inline the new printf_positional function because it is called
> in just one place, so any differences should be just random noise by
> slightly different optimizer choices.

I forgot to mention in my message about the performance impact that this
is not actually true: GCC will not inline printf_positional because of
the way it uses label addresses/computed gotos.  But as explained in the
other message, this does not make the code worse (with GCC 4.9 at least):

<https://sourceware.org/ml/libc-alpha/2015-03/msg00266.html>

-- 
Florian Weimer / Red Hat Product Security


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