re PR libgcj/50053 (jc1 doesn't emit static initializer or initializer code for super class without -findirect-dispatch.)

PR libgcj/50053
        * java/lang/natClass.cc (java::lang::Class::newInstance): Special case
        member-call for 32-bit IA native Window target.

From-SVN: r182225
This commit is contained in:
Kai Tietz 2011-12-12 11:40:27 +01:00 committed by Kai Tietz
parent 9c25bb25a8
commit 7520518f73
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2011-12-12 Kai Tietz <ktietz@redhat.com>
PR libgcj/50053
* java/lang/natClass.cc (java::lang::Class::newInstance): Special case
member-call for 32-bit IA native Window target.
2011-11-24 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/50888

View File

@ -661,7 +661,13 @@ java::lang::Class::newInstance (void)
throw new java::lang::InstantiationException (getName());
jobject r = _Jv_AllocObject (this);
/* Class constructors/destructors have __thiscall calling
convention for 32-bit native Windows ABI. */
#if defined (__MINGW32__) && defined (__i386__)
((void (__thiscall *) (jobject)) meth->ncode) (r);
#else
((void (*) (jobject)) meth->ncode) (r);
#endif
return r;
}