This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.
- From: "ktietz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Dec 2011 21:27:02 +0000
- Subject: [Bug libgcj/50053] [4.7 regression] jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.
- Auto-submitted: auto-generated
- References: <bug-50053-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50053
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-09
CC| |ktietz at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #11 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-12-09 21:27:02 UTC ---
Suggested patch for this issue (together with the pending patch for PR/51135
for C++) is:
Index: natClass.cc
===================================================================
--- natClass.cc (revision 182092)
+++ natClass.cc (working copy)
@@ -661,7 +661,7 @@
throw new java::lang::InstantiationException (getName());
jobject r = _Jv_AllocObject (this);
- ((void (*) (jobject)) meth->ncode) (r);
+ ((void (__thiscall *) (jobject)) meth->ncode) (r);
return r;
}
It would be kind, if somebody could confirm that it fixes this issue. I will
prepare then a final variant of this patch.