diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 13:43:20 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 13:43:20 +0000 |
commit | 02f5d4c919796a02bed60a6e8f753584a0043e38 (patch) | |
tree | 6dea143dc96cfc4e89d2a91d39d6ea3e47cf03e1 /libffi/include/ffi.h.in | |
parent | 42c62f60174d62c224378bb7ae55b142e3f3ed5c (diff) | |
download | gcc-02f5d4c919796a02bed60a6e8f753584a0043e38.tar.gz |
* libffi/include/ffi.h.in: Define X86 instead of X86_64 in 32
bit mode.
* libffi/src/x86/ffi.c (ffi_closure_SYSV, ffi_closure_raw_SYSV):
Receive closure pointer through parameter, read args using
__builtin_dwarf_cfa.
(FFI_INIT_TRAMPOLINE): Send closure reference through eax.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64663 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/include/ffi.h.in')
-rw-r--r-- | libffi/include/ffi.h.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index 02853846c9f..fe91ecd5e2e 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -170,6 +170,13 @@ extern "C" { #endif #endif +#ifdef X86_64 +#if defined (__i386__) +#undef X86_64 +#define X86 +#endif +#endif + #ifndef LIBFFI_ASM /* ---- Generic type definitions ----------------------------------------- */ |