[patch] libffi, fix powerpc-unknown-freebsd

Andreas Tobler andreast-list@fgznet.ch
Mon Aug 18 20:48:00 GMT 2008


Hi all,

yeah, I shot myself in the toe. When I added FFI_LINUX_SOFT_FLOAT 
support I did mess up with SMALL_STRUCTS on FFI_SYSV. Reminds me to 
always TEST!

This patch fixes libffi compilation and test suite on 
powerpc-unknown-freebsd.

Tested on 4.3 and 4.4, aka. trunk.

On 4.3 no failures, on trunk some issues with _Unwind_GetIPInfo in the 
unwind tests. These I'll address later. These are _not_ part of my mess.

Ok for 4.3 and trunk?

Test Run By andreast on Mon Aug 18 21:35:35 2008
Native configuration is powerpc-unknown-freebsd7.0

		=== libffi tests ===

Schedule of variations:
     unix

		=== libffi Summary ===

# of expected passes		1389
# of unsupported tests		10


Thanks,
Andreas

2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>

	* src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
	FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
	Adjust copyright notice.
	* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix bit position
	calculation for FFI_SYSV_TYPE_SMALL_STRUCT.
	(ffi_closure_helper_SYSV): Fix return type for
	FFI_SYSV_TYPE_SMALL_STRUCT.
	Adjust copyright notice.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fbsd_ffi.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080818/0eabae11/attachment.ksh>


More information about the Gcc-patches mailing list