This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: --disable-new-gxx-abi


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]