Message ID | CAEwic4a7n9GTWh5xRU85uBika26i_BMxrnZ9uS60DEOZq1Hq-w@mail.gmail.com |
---|---|
State | New |
Headers | show |
Kai Tietz <ktietz70@googlemail.com> writes: > + /* Class constructor/destructor have for 32-bit native Windows ABI > + __thiscall calling convention. */ /* Class constructors/destructors have __thiscall calling convention for 32-bit native Windows ABI. */ Andreas.
On 12/10/2011 12:05 PM, Kai Tietz wrote: > 2011-12-10 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. OK, thanks. Andrew.
Index: natClass.cc =================================================================== --- natClass.cc (revision 182092) +++ natClass.cc (working copy) @@ -661,7 +661,13 @@ throw new java::lang::InstantiationException (getName()); jobject r = _Jv_AllocObject (this); + /* Class constructor/destructor have for 32-bit native Windows ABI + __thiscall calling convention. */ +#if defined (__MINGW32__) && defined (__i386__) + ((void (__thiscall *) (jobject)) meth->ncode) (r); +#else ((void (*) (jobject)) meth->ncode) (r); +#endif return r; }