aboutsummaryrefslogtreecommitdiff
path: root/libffi/include/ffi.h.in
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-04-17 04:15:32 +0200
committerAnthony Green <green@gcc.gnu.org>2000-04-17 02:15:32 +0000
commit3791773c9395246e5fb860a20bb3dddd8e5edeb6 (patch)
tree5eee77be9c61a0f60260a8f47e6085ac5e0738a5 /libffi/include/ffi.h.in
parent11033ba5226589d2e7a7055cda6ddf0379f7cad1 (diff)
downloadgcc-3791773c9395246e5fb860a20bb3dddd8e5edeb6.zip
gcc-3791773c9395246e5fb860a20bb3dddd8e5edeb6.tar.gz
gcc-3791773c9395246e5fb860a20bb3dddd8e5edeb6.tar.bz2
Port to sparc 32 and 64 Linux.
From-SVN: r33196
Diffstat (limited to 'libffi/include/ffi.h.in')
-rw-r--r--libffi/include/ffi.h.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in
index 655cc1c..6be7e23 100644
--- a/libffi/include/ffi.h.in
+++ b/libffi/include/ffi.h.in
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------*-C-*-
libffi @VERSION@ - Copyright (c) 1996-1999 Cygnus Solutions
- $Id: ffi.h.in,v 1.3 1999/09/01 23:16:34 tromey Exp $
+ $Id: ffi.h.in,v 1.4 2000/02/25 19:13:44 tromey Exp $
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -160,6 +160,12 @@ extern "C" {
#define SIZEOF_ARG SIZEOF_VOID_P
#endif
+#ifdef SPARC
+#if defined(__arch64__) || defined(__sparcv9)
+#define SPARC64
+#endif
+#endif
+
#ifndef LIBFFI_ASM
/* ---- Generic type definitions ----------------------------------------- */
@@ -176,9 +182,13 @@ typedef enum ffi_abi {
/* ---- Sparc -------------------- */
#ifdef SPARC
FFI_V8,
- FFI_DEFAULT_ABI = FFI_V8,
FFI_V8PLUS,
FFI_V9,
+#ifdef SPARC64
+ FFI_DEFAULT_ABI = FFI_V9,
+#else
+ FFI_DEFAULT_ABI = FFI_V8,
+#endif
#endif
/* ---- Intel x86 ---------------- */