This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: empty function optimizations
> Other than that, we can't change the mangling, even if it's buggy
> with respect to the spec, or even if information required for
> demangling is missing.
I absolutely agree. As a result, Joe is right that any code reduction
must come from factorizing the library code itself, using standard C++
techniques, for practical purposes. Still, it may be possible to
achieve code reduction by combining functionally-equivalent
instantiations by means of an extension to the ABI, e.g. by placing
multiple symbols in front of identical assembler code.
Martin