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

@@ -24,3 +24,4 @@ ios-fixes
bad-abi-fix
msvcc
fix_maxopt
fix-ppc32

0
.pc/fix-ppc32/.timestamp Normal file
View File

0
.pc/fix-ppc32/ChangeLog Normal file
View File

View File

View File

@@ -1,3 +1,8 @@
2011-02-25 Anthony Green <green@moxielogic.com>
* src/powerpc/ffi.c (ffi_prep_closure_loc): Accept more 32-bit
ABIs for closures.
2011-02-15 Anthony Green <green@moxielogic.com>
* m4/ax_cc_maxopt.m4: Don't -malign-double or use -ffast-math.

6014
patches/fix-ppc32 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -24,3 +24,4 @@ ios-fixes
bad-abi-fix
msvcc
fix_maxopt
fix-ppc32

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];