diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-24 03:26:28 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-24 03:26:28 +0000 |
commit | 384eea1fc8299ebaac0f4986fc31e16a57ece2ad (patch) | |
tree | ed1fbe0280cc5d220154b3aa521122d435ce370e /libffi/include | |
parent | 46da8d1dc657ba92789bca6785a52fe3d5c80db8 (diff) | |
download | gcc-384eea1fc8299ebaac0f4986fc31e16a57ece2ad.tar.gz |
* src/powerpc/ppc_closure.S: New file.
* src/powerpc/ffi.c (ffi_prep_args): Fixed ABI compatibility bug
involving long long and register pairs.
(ffi_prep_closure): New function.
(flush_icache): Likewise.
(ffi_closure_helper_SYSV): Likewise.
* include/ffi.h.in (FFI_CLOSURES): Define on PPC.
(FFI_TRAMPOLINE_SIZE): Likewise.
(FFI_NATIVE_RAW_API): Likewise.
* Makefile.in: Rebuilt.
* Makefile.am (EXTRA_DIST): Added src/powerpc/ppc_closure.S.
(TARGET_SRC_POWERPC): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40807 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/include')
-rw-r--r-- | libffi/include/ffi.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index 17c383d3167..7161e51e92a 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -372,6 +372,12 @@ struct ffi_ia64_trampoline_struct { #define FFI_TRAMPOLINE_SIZE 24 #define FFI_NATIVE_RAW_API 0 +#elif defined(POWERPC) + +#define FFI_CLOSURES 1 +#define FFI_TRAMPOLINE_SIZE 40 +#define FFI_NATIVE_RAW_API 0 + #else #define FFI_CLOSURES 0 |