summaryrefslogtreecommitdiff
path: root/libffi/include
diff options
context:
space:
mode:
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-19 01:08:43 +0000
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-19 01:08:43 +0000
commitb1e5d71de70fd301cac4384f6e9d846c194ac77b (patch)
treeecf47f93db6b60de13f358403f95542b017921f9 /libffi/include
parent532b7fbba0e3d323b0640b4ad3d501e0bd6ce4c0 (diff)
downloadgcc-b1e5d71de70fd301cac4384f6e9d846c194ac77b.tar.gz
* Makefile.am: Add SH support.
* Makefile.in: Regenerate. * configure.in (sh-*-linux*, sh[34]*-*-linux*): Add target. * configure: Regenerate. * include/ffi.h.in: Add SH support. * src/sh/ffi.c: New file. * src/sh/sysv.S: New file. * src/types.c: Add SH support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55574 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/include')
-rw-r--r--libffi/include/ffi.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in
index 49e45706615..8fc37f56f4e 100644
--- a/libffi/include/ffi.h.in
+++ b/libffi/include/ffi.h.in
@@ -262,6 +262,12 @@ typedef enum ffi_abi {
FFI_DEFAULT_ABI = FFI_SYSV,
#endif
+ /* ---- SuperH ------------------- */
+#ifdef SH
+ FFI_SYSV,
+ FFI_DEFAULT_ABI = FFI_SYSV,
+#endif
+
/* Leave this for debugging purposes */
FFI_LAST_ABI
@@ -435,6 +441,12 @@ struct ffi_ia64_trampoline_struct {
#define FFI_TRAMPOLINE_SIZE 24 /* see struct below */
#define FFI_NATIVE_RAW_API 0
+#elif defined(SH)
+
+#define FFI_CLOSURES 1
+#define FFI_TRAMPOLINE_SIZE 16
+#define FFI_NATIVE_RAW_API 0
+
#else
#define FFI_CLOSURES 0