This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ name mangling, old and new versions?
> You mean the mangling is only changed (between -frtti/no-rtti) when
> vtable-thunks is enabled?
No. The vtable mangling is changed when vtable-thunks is enabled, period.
-frtti does not influence the format of the vtable.
> If this is true how is the typeinfo encoded
> then when vtable-thunks is not enabled?
In the traditional vtables, slot 0 has been reserved for the virtual
typeinfo function for quite a while now. -fno-rtti still reserves this
slot, but fills the typeinfo slot with a null pointer.
Martin