[C++ PATCH] ctor vtable vcall offsets
Jason Merrill
jason@redhat.com
Tue Feb 27 12:50:00 GMT 2001
>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:
> I think that `declares f' was supposed to mean `has an entry for f in
> its vtable'.
Logically, the two are the same; a class only has entries in its vtable for
functions it declares. The rest is just sharing for optimization.
> I think your literal reading is correct though.
Meaning you agree that we can/should emit all thunks with their functions?
> *My* beef with the thunk generation scheme (as you know :-) ) was that
> we didn't just generate thunks everywhere, in COMDAT, and then allow
> implementations to DTRT by generating an overriding strong symbol.
> Bizarre SCO linkers aside, I still like that solution best...
How about GNU linkers? I don't think we give priority in linkonce
resolution to an instance which happens to contain a non-weak symbol.
Jason
More information about the Gcc-patches
mailing list