summaryrefslogtreecommitdiffstats
path: root/libffi/include/ffi.h.in
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-17 02:15:32 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-17 02:15:32 +0000
commitd7a35c6c8ed56febd7ecab5f2248fe633ccb5b48 (patch)
tree5eee77be9c61a0f60260a8f47e6085ac5e0738a5 /libffi/include/ffi.h.in
parent95b21bb9da597abff55397a5477b5b01211dc9ca (diff)
downloadppe42-gcc-d7a35c6c8ed56febd7ecab5f2248fe633ccb5b48.tar.gz
ppe42-gcc-d7a35c6c8ed56febd7ecab5f2248fe633ccb5b48.zip
Port to sparc 32 and 64 Linux.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33196 138bc75d-0d04-0410-961f-82ee72b054a4
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 655cc1c6cbf..6be7e23c727 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 ---------------- */
OpenPOWER on IntegriCloud