diff options
author | bo <bo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-27 14:37:23 +0000 |
---|---|---|
committer | bo <bo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-27 14:37:23 +0000 |
commit | aaff811e09c8d8e3fee154f41c8127ebfe808fab (patch) | |
tree | a2504148cc796956b26e03445fe8ba32f4812c0c /libffi | |
parent | 24dfead40d71fa47beecd9ea8852925b7cd67144 (diff) | |
download | gcc-aaff811e09c8d8e3fee154f41c8127ebfe808fab.tar.gz |
2002-09-27 Bo Thorsen <bo@suse.de>
* include/ffi.h.in: Fix multilib x86-64 support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 4 | ||||
-rw-r--r-- | libffi/include/ffi.h.in | 24 |
2 files changed, 13 insertions, 15 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index da2b67b0a40..3fd628f8334 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,7 @@ +2002-09-27 Bo Thorsen <bo@suse.de> + + * include/ffi.h.in: Fix multilib x86-64 support. + 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * Makefile.am (all-multi): Fix multilib parallel build. diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index 8fc37f56f4e..7cb1aa652fc 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -189,23 +189,23 @@ typedef enum ffi_abi { #endif #endif + /* ---- Intel x86 Win32 ---------- */ +#ifdef X86_WIN32 + FFI_SYSV, + FFI_DEFAULT_ABI = FFI_SYSV, +#endif + /* ---- Intel x86 and AMD x86-64 - */ -#if defined(X86) || defined(X86_64) +#if defined(__i386__) || defined(__x86_64__) FFI_SYSV, FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */ -#ifdef X86 +#ifdef __i386__ FFI_DEFAULT_ABI = FFI_SYSV, #else FFI_DEFAULT_ABI = FFI_UNIX64, #endif #endif - /* ---- Intel x86 Win32 ---------- */ -#ifdef X86_WIN32 - FFI_SYSV, - FFI_DEFAULT_ABI = FFI_SYSV, -#endif - /* ---- Intel ia64 ---------------- */ #ifdef IA64 FFI_UNIX, /* Linux and all Unix variants use the same conventions */ @@ -390,13 +390,7 @@ size_t ffi_java_raw_size (ffi_cif *cif); /* ---- Definitions for closures ----------------------------------------- */ -#ifdef X86 - -#define FFI_CLOSURES 1 /* x86 supports closures */ -#define FFI_TRAMPOLINE_SIZE 10 -#define FFI_NATIVE_RAW_API 1 /* and has native raw api support */ - -#elif defined(X86_WIN32) +#ifdef __i386__ #define FFI_CLOSURES 1 /* x86 supports closures */ #define FFI_TRAMPOLINE_SIZE 10 |