diff options
author | Jeff Sturm <jsturm@one-point.com> | 2003-01-03 23:08:56 +0000 |
---|---|---|
committer | Jeff Sturm <jsturm@gcc.gnu.org> | 2003-01-03 23:08:56 +0000 |
commit | c75c7793f5862a1a8b5e4b164f0801da8452e7fd (patch) | |
tree | 5d6ae28f882205c56e8f57b592354a04b05fc737 /libffi/include | |
parent | 1778c8ff34cd8be9e8d42c5932b9a5f32e487ce2 (diff) | |
download | gcc-c75c7793f5862a1a8b5e4b164f0801da8452e7fd.zip gcc-c75c7793f5862a1a8b5e4b164f0801da8452e7fd.tar.gz gcc-c75c7793f5862a1a8b5e4b164f0801da8452e7fd.tar.bz2 |
ffi.h.in: Add closure defines for SPARC, SPARC64.
* include/ffi.h.in: Add closure defines for SPARC, SPARC64.
* src/ffitest.c (main): Use static storage for closure.
* src/sparc/ffi.c (ffi_prep_closure, ffi_closure_sparc_inner): New.
* src/sparc/v8.S (ffi_closure_v8): New.
* src/sparc/v9.S (ffi_closure_v9): New.
From-SVN: r60857
Diffstat (limited to 'libffi/include')
-rw-r--r-- | libffi/include/ffi.h.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index c660ede..bc15daa 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -1,5 +1,5 @@ /* -----------------------------------------------------------------*-C-*- - libffi @VERSION@ - Copyright (c) 1996-2002 Cygnus Solutions + libffi @VERSION@ - Copyright (c) 1996-2003 Cygnus Solutions Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -443,6 +443,18 @@ struct ffi_ia64_trampoline_struct { #define FFI_TRAMPOLINE_SIZE 24 /* see struct below */ #define FFI_NATIVE_RAW_API 0 +#elif defined(SPARC64) + +#define FFI_CLOSURES 1 +#define FFI_TRAMPOLINE_SIZE 24 +#define FFI_NATIVE_RAW_API 0 + +#elif defined(SPARC) + +#define FFI_CLOSURES 1 +#define FFI_TRAMPOLINE_SIZE 16 +#define FFI_NATIVE_RAW_API 0 + #elif defined(S390) #define FFI_CLOSURES 1 |