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: AIX vtable issues


>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:

    David> I assume that vtables no longer have "_vt." in their name, so this code is
    David> not being invoked.  This code needs to check for whatever additional
    David> substring designates a virtual function table.

After I sent that mail, I did find that code, and modify it
appropriately.

I verified that it changed the resulting assembler output.  It now
looks like:

        .toc
LC..0:
        .tc _ZTT4MostIiE[TC],_ZTT4MostIiE

        .csect _template41.rw_ii[RW],3
        .align 2
_ZTT4MostIiE:
        .long _ZTV4MostIiE[RW]+12
        .long _ZTC4MostIiE0_2D1IiE[RW]+12
        .long _ZTC4MostIiE4_2D2IiE[RW]+12
        .long _ZTV4MostIiE[RW]+24
        .space 4
        .align 2

(Note that the `[RW]' is now missing on the `.tc' line.

But, the same problem still occurs.  Oh, I see why, now: inside the
definition of _ZTT4MostIiE we still have section references to various
other vtables.  OK, I'll try to track that down.

Thanks,

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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