[cxx-abi-dev] Inlining requirements for ABI functionality

Dennis Handly dhandly at cup.hp.com
Tue Dec 6 21:56:03 UTC 2011


>From: Matthew Markland <marklandm at acm.org>
>a discussion has broken out regarding whether
>various thunks need to be inlined for the compiler to be ABI compliant.

I've assumed this is a quality of implementation issue, not for the ABI.
Of course if they are not inlined, the ABI has something to say about the
duplicate symbols and linking.

>My take on this is that it is up to the compiler whether
>to inline the thunks if they are implemented as complete functions;
Matt

Right.
Our ia64 compiler has thunks that just branch to the normal functions.
Inlining would most likely be counter productive for code bloat, unless
virtual functions were real small.



More information about the cxx-abi-dev mailing list