This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --disable-new-gxx-abi
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: --disable-new-gxx-abi
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Wed, 24 Jan 2001 12:36:15 -0800 (PST)
- Cc: dberlin at redhat dot com, aoliva at redhat dot com, pfeifer at dbai dot tuwien dot ac dot at, gcc at gcc dot gnu dot org
I wrote:
> Joe> Hmm. But for the most common case -- single inheritance with
> Joe> no virtual base clases -- isn't the code sequence to do a
> Joe> virtual function call exactly the same with old and new ABIs?
Mark writes:
> Yes.
But there is a major caveat here:
> - The functions are numbered differently, so you have to compute the
> place to look into the vtable a little differently.
This may mean that even in the case of single inheritance, the wrong
function gets called.