This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: patch to bring java vtables closer to g++ abi conformance
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: java at gcc dot gnu dot org
- Date: Fri, 22 Feb 2002 16:01:39 -0800
- Subject: Re: patch to bring java vtables closer to g++ abi conformance
- References: <3C4EF937.3060806@bothner.com>
I checked in this patch (orignally posted January 23):
2002-02-22 Per Bothner <per@bothner.com>
* class.c: Change vtable to be more compatible with g++ v3 abi.
(get_dispatch_table): Prepend offset-to-top (always 0) and
type_info pointer (currently unimplemented hence NULL) to vtable.
Specifically, prepend offset-to-top and typeinfo ptr (currently null).
(make_class_data): Variable dtable_start_offset is sizeof 2 pointers.
Adjust vtable pointers by dtable_start_offse - i.e. skip new words.
(build_dtable_decl): Add declarations for new fields.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/