Commit c5a3fffa by Andrew Pinski Committed by Andrew Pinski

re PR libffi/53014 (libffi failures on mips64-linux-gnu with soft-float)

2012-08-26  Andrew Pinski  <apinski@cavium.com>

	PR libffi/53014
	* src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
	soft-float.

From-SVN: r190696
parent a66217a0
2012-08-26 Andrew Pinski <apinski@cavium.com>
PR libffi/53014
* src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
soft-float.
2012-08-08 Uros Bizjak <ubizjak@gmail.com> 2012-08-08 Uros Bizjak <ubizjak@gmail.com>
* src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test, * src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
......
...@@ -670,9 +670,16 @@ ffi_prep_closure_loc (ffi_closure *closure, ...@@ -670,9 +670,16 @@ ffi_prep_closure_loc (ffi_closure *closure,
if (cif->abi != FFI_O32 && cif->abi != FFI_O32_SOFT_FLOAT) if (cif->abi != FFI_O32 && cif->abi != FFI_O32_SOFT_FLOAT)
return FFI_BAD_ABI; return FFI_BAD_ABI;
fn = ffi_closure_O32; fn = ffi_closure_O32;
#else /* FFI_MIPS_N32 */ #else
if (cif->abi != FFI_N32 && cif->abi != FFI_N64) #if _MIPS_SIM ==_ABIN32
if (cif->abi != FFI_N32
&& cif->abi != FFI_N32_SOFT_FLOAT)
return FFI_BAD_ABI;
#else
if (cif->abi != FFI_N64
&& cif->abi != FFI_N64_SOFT_FLOAT)
return FFI_BAD_ABI; return FFI_BAD_ABI;
#endif
fn = ffi_closure_N32; fn = ffi_closure_N32;
#endif /* FFI_MIPS_O32 */ #endif /* FFI_MIPS_O32 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment