[cxx-abi-dev] Non-cloned [cd]tors

Mark Mitchell mark at codesourcery.com
Wed Nov 18 20:51:04 UTC 2009


Jason Merrill wrote:

> As I recall, the ABI was intended to allow the various [cd]tor variants
> to be implemented either as separate functions or multiple entry points
> to the same function.  But the actual specification is a bit problematic
> for the latter: it's a bit vague, but it seems to require that any vague
> linkage [cd]tors be emitted as needed, each in their own COMDAT group.

My recollection is that they were all supposed to be emitted in a single
COMDAT group, and that if you provided a definition of any one, you had
to provide all of them.  That way it doesn't matter which of those
COMDAT groups you ended up with.  The expectation was that they were in
fact multiple entry points, and thus the fact that you had to emit all
of them together was no big deal.

-- 
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713



More information about the cxx-abi-dev mailing list