This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32
- From: "jojelino at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 30 Jan 2012 15:10:48 +0000
- Subject: [Bug libgcj/51500] [4.7 regression] 106 unexpected libjava testsuite failures with mingw32
- Auto-submitted: auto-generated
- References: <bug-51500-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51500
--- Comment #11 from gee <jojelino at gmail dot com> 2012-01-30 15:10:48 UTC ---
Comment on attachment 26513
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26513
proposed patch for handling thiscall r3
@@ -505,6 +508,23 @@ ffi_prep_incoming_args_SYSV(char *stack, void **rvalue,
...
...
+ *(unsigned int*) &__tramp[24] = 0x8304244c; /* xchgl 4(%esp),%ecx*/ \
+ *(unsigned short*) &__tramp[28] = 0x04c4; /* add $0x4,%esp */ \
+ *(unsigned char*)/* __not short*__ */ &__tramp[30] = 0xc3; /* ret */ \
+ }
#define FFI_INIT_TRAMPOLINE_STDCALL(TRAMP,FUN,CTX,SIZE) \
{ unsigned char *__tramp = (unsigned char*)(TRAMP); \