gcc HEAD rearranges stabs members
Daniel Jacobowitz
drow@mvista.com
Wed Dec 31 03:38:00 GMT 2003
On Tue, Dec 30, 2003 at 08:19:32PM -0500, Michael Chastain wrote:
> drow> Might want to ping GCC about why this happened.
>
> It happened because the default abi version increased from 1 to 2.
>
> http://gcc.gnu.org/ml/gcc-patches/2003-12/msg01995.html
> C++ PATCH: Change default ABI version to 2
>
> Specifically, in cp/class.c:add_implicitly_declared_members,
> there is a test on ABI version:
>
> if (abi >= 2)
> /* G++ 3.2 put the implicit destructor at the *beginning* of the
> list, which cause the destructor to be emitted in an incorrect
> location in the vtable. */
> TYPE_METHODS (t) = chainon (TYPE_METHODS (t), implicit_fns);
Oh cute. Debug info is emitted in vtable order, so that explains why
the output changed.
Thanks for looking it up!
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gdb
mailing list