Name mangling
Martin von Loewis
loewis at informatik.hu-berlin.de
Tue Oct 19 17:11:08 UTC 1999
> I was considering inlining as a bigger issue than templates. Consider:
>
> inline char *get_name() { return "ABC"; }
>
> From two different translation units, get_name() is supposed to
> return the same value. So we need to name the "ABC" constant and make
> it a COMDAT.
I agree with that (although I admit this is the first time I noticed
7.1.2/4).
> My point is that if you don't assume any function can become inline,
> you prevent such an inliner to do its job on ABI-compliant .o files.
> So you drive the compiler vendor to use an incompatible .o format in
> that case. This optimization is quite significant, so I guess we
> want to enable it.
Ok. I find it hard to believe you that it is possible to inline
functions generated by a different compiler at link time, but I guess
I should trust you.
Regards,
Martin
More information about the cxx-abi-dev
mailing list