This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: GCC build failed for native with your patch on 2001-11-30T04:44:42Z.


Jason Merrill wrote:

>>This was caused by the dbxout.c change. GCJ sets TREE_VIA_VIRTUAL for
>>interfaces but did not set BINFO_VPTR_FIELD.
>>
>
>Thanks.  But I'm thinking it probably makes sense just to disable my change
>for Java; if interfaces are always at offset 0, there's no reason to go
>mucking about in the vtable to find them.  Is that, in fact, the case?
>

Yes - interfaces are not in the vtable at all, but rather in a separate 
"itable". Java objects always have plain-jane single-inheritance  vtables.

Looking at dbxout I figured using BINFO_VPTR_FIELD wouldn't make a 
difference, but now that I look at dwarf2out I see what you mean. tree.h 
actually says that the contents of BINFO_VPTR_FIELD is 
language-dependent, so the best fix might be to enable your change only 
for c++.

regards

Bryce.



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