This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Binary compatibility for virtual fields
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- Cc: Andrew Haley <aph at redhat dot com>, <java at gcc dot gnu dot org>
- Date: Sat, 20 Sep 2003 00:25:28 -0400 (EDT)
- Subject: Re: Binary compatibility for virtual fields
On Sat, 20 Sep 2003, Bryce McKinlay wrote:
> > Bryce, you said that libgcj couldn't be built with
> > -findirect-dispatch. Do you recall what the reason was?
>
> As I recall, somewhere in the runtime the vtables for java.lang.Object
> and/or java.lang.Class are referenced directly. So you'd get a link
> error for those vtable symbols which won't exist. This problem might
> have been fixed since I last checked, however.
Right. make_class_data always emits a reference to java.lang.Class's
vtable (class_dtable_decl). I noticed the same when rebuilding libgcj
with -fno-assume-compiled.
Jeff