gcc/libffi/src
Jakub Jelinek e9b841813c configure.in (powerpc64*-*-linux*): Remove.
* configure.in (powerpc64*-*-linux*): Remove.
	* configure: Rebuilt.
libffi/
	* include/ffi.h.in (POWERPC64): Define if 64-bit.
	(enum ffi_abi): Add FFI_LINUX64 on POWERPC.
	Make it the default on POWERPC64.
	(FFI_TRAMPOLINE_SIZE): Define to 24 on POWERPC64.
	* configure.in: Change powerpc-*-linux* into powerpc*-*-linux*.
	* configure: Rebuilt.
	* src/powerpc/ffi.c (hidden): Define.
	(ffi_prep_args_SYSV): Renamed from
	ffi_prep_args.  Cast pointers to unsigned long to shut up warnings.
	(NUM_GPR_ARG_REGISTERS64, NUM_FPR_ARG_REGISTERS64,
	ASM_NEEDS_REGISTERS64): New.
	(ffi_prep_args64): New function.
	(ffi_prep_cif_machdep): Handle FFI_LINUX64 ABI.
	(ffi_call): Likewise.
	(ffi_prep_closure): Likewise.
	(flush_icache): Surround by #ifndef POWERPC64.
	(ffi_dblfl): New union type.
	(ffi_closure_helper_SYSV): Use it to avoid aliasing problems.
	(ffi_closure_helper_LINUX64): New function.
	* src/powerpc/ppc_closure.S: Surround whole file by #ifndef
	__powerpc64__.
	* src/powerpc/sysv.S: Likewise.
	(ffi_call_SYSV): Rename ffi_prep_args to ffi_prep_args_SYSV.
	* src/powerpc/linux64.S: New file.
	* src/powerpc/linux64_closure.S: New file.
	* Makefile.am (EXTRA_DIST): Add src/powerpc/linux64.S and
	src/powerpc/linux64_closure.S.
	(TARGET_SRC_POWERPC): Likewise.

	* src/ffitest.c (closure_test_fn, closure_test_fn1, closure_test_fn2,
	closure_test_fn3): Fix result printing on big-endian 64-bit
	machines.
	(main): Print tst2_arg instead of uninitialized tst2_result.

	* src/ffitest.c (main): Hide what closure pointer really points to
	from the compiler.

From-SVN: r65781
2003-04-18 14:32:36 +02:00
..
alpha
arm * src/arm/sysv.S: Fix typo. 2002-09-29 18:08:58 +00:00
ia64
m68k
mips
powerpc configure.in (powerpc64*-*-linux*): Remove. 2003-04-18 14:32:36 +02:00
s390 ffi.c (ffi_closure_helper_SYSV): Add hidden visibility attribute. 2003-02-06 00:58:57 +01:00
sh Merge basic-improvements-branch to trunk 2002-12-16 18:23:00 +00:00
sparc ffi.h.in: Add closure defines for SPARC, SPARC64. 2003-01-03 23:08:56 +00:00
x86 ffi.h.in: Define X86 instead of X86_64 in 32 bit mode. 2003-03-21 13:43:20 +00:00
debug.c
ffitest.c configure.in (powerpc64*-*-linux*): Remove. 2003-04-18 14:32:36 +02:00
java_raw_api.c java_raw_api.c (ffi_java_raw_to_ptrarray): Interpret raw data as _Jv_word values, not ffi_raw. 2002-10-08 14:55:03 +00:00
prep_cif.c configure.in: Add s390x-*-linux-* target. 2002-09-30 11:59:42 +00:00
raw_api.c
types.c Fix Portable .NET bug with IA-64 pointer size. 2002-11-26 14:24:05 -08:00