[RFC][PATCH] Avoid mempcpy/ifunc in __libc_message

Roland McGrath roland@hack.frob.com
Wed Sep 25 22:07:00 GMT 2013


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



More information about the Libc-alpha mailing list