Fix ppc32 bug

This commit is contained in:
Anthony Green
2011-02-25 15:09:13 -05:00
parent cbb062cc35
commit 2541679dbd
8 changed files with 6025 additions and 1 deletions

View File

@@ -958,7 +958,10 @@ ffi_prep_closure_loc (ffi_closure *closure,
#else
unsigned int *tramp;
if (! (cif->abi == FFI_GCC_SYSV || cif->abi == FFI_SYSV))
if (! (cif->abi == FFI_GCC_SYSV
|| cif->abi == FFI_SYSV
|| cif->abi == FFI_LINUX
|| cif->abi == FFI_LINUX_SOFT_FLOAT))
return FFI_BAD_ABI;
tramp = (unsigned int *) &closure->tramp[0];