This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH] Avoid mempcpy/ifunc in __libc_message
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Maciej W. Rozycki" <macro at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 25 Sep 2013 15:07:54 -0700 (PDT)
- Subject: Re: [RFC][PATCH] Avoid mempcpy/ifunc in __libc_message
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 1 dot 10 dot 1309251534440 dot 4379 at tp dot orcam dot me dot uk>
It should be calling __mempcpy for name space reasons anyway (an unrelated
issue, but one that should be fixed since we've noticed).
Your change is likely to be transformed back into a call to memcpy or
suchlike by a new-enough GCC.
Off hand I think it's hard enough to really be sure we avoid all IFUNC uses
in such internal places that it's not worth avoiding one or two.
It is certainly annoying that we get such hairy stuff intended solely for
optimization on the error paths where simplicity matters far more than
optimality. But I don't see any viable way around it.
Thanks,
Roland