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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user