More issues
Jason Merrill
jason at cygnus.com
Mon Jan 31 23:24:55 UTC 2000
>>>>> Christophe de Dinechin <ddd at cup.hp.com> writes:
> Is there any conclusive argument against having a COMDAT-generated
> allocation entry point whenever you have a new expression? I guess that
> you can do that without impacting the ABI... The writeup on C-6 is
> definitely very short.
You could certainly expand
new A;
into
__call_and_construct_A ();
COMDAT A* __call_and_construct_A () {
return {normal code for new A};
}
Whether or not you call this function a constructor is of little
importance, though I suppose emitting it with the other constructors might
improve locality.
Jason
More information about the cxx-abi-dev
mailing list