x86: Fix calling convention for ffi_closure_win64_inner

Also enable testing for the cross-abi calls.
This commit is contained in:
Richard Henderson
2016-04-29 14:17:36 -07:00
parent d06751979b
commit e5843a3a09
4 changed files with 18 additions and 8 deletions
+5 -1
View File
@@ -231,7 +231,11 @@ struct win64_closure_frame
UINT64 args[];
};
int FFI_HIDDEN
/* Force the inner function to use the MS ABI. When compiling on win64
this is a nop. When compiling on unix, this simplifies the assembly,
and places the burden of saving the extra call-saved registers on
the compiler. */
int FFI_HIDDEN __attribute__((ms_abi))
ffi_closure_win64_inner(ffi_cif *cif,
void (*fun)(ffi_cif*, void*, void**, void*),
void *user_data,