[PATCH 0/6] Some vfprintf refactoring
Florian Weimer
fweimer@redhat.com
Fri Mar 6 14:21:00 GMT 2015
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
More information about the Libc-alpha
mailing list