This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Patch: assume-compiled fix


Tom Tromey writes:
 > This is another -fassume-compiled bug fix.
 > 
 > Suppose some ancestor of the current class is in a no-assume-compiled
 > package.  When generating the vtable for the current class, we
 > shouldn't generate a reference to any symbol in that ancestor class.
 > 
 > This patch fixes the problem by not generating a vtable if any
 > ancestor is not compiled.  Instead the vtable is built at runtime.  We
 > could be a bit more precise and only avoid vtable generation if this
 > class actually inherits a method from an uncompiled ancestor, but that
 > seemed like more work than was useful to me.
 > 
 > Tested on x86 Red Hat Linux 7.3.  Ok for the trunk?

OK.

I assume by "tested" you mean "no regressions".  I suppose we'll need
test cases for -fassume-compiled.

Andrew.


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