[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/libffi/include ffi.h.in,1.1,1.2 ffi_com
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/libffi/include ffi.h.in,1.1,1.2 ffi_common.h,1.1,1.2 |
Date: |
Wed, 05 Feb 2003 20:15:40 -0500 |
Update of /cvsroot/dotgnu-pnet/pnet/libffi/include
In directory subversions:/tmp/cvs-serv21586/libffi/include
Modified Files:
ffi.h.in ffi_common.h
Log Message:
Update the libffi library from the gcc CVS tree.
Index: ffi.h.in
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/include/ffi.h.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ffi.h.in 10 May 2002 23:04:40 -0000 1.1
--- ffi.h.in 6 Feb 2003 01:15:38 -0000 1.2
***************
*** 1,4 ****
/* -----------------------------------------------------------------*-C-*-
! libffi @VERSION@ - Copyright (c) 1996-2002 Cygnus Solutions
Permission is hereby granted, free of charge, to any person obtaining
--- 1,4 ----
/* -----------------------------------------------------------------*-C-*-
! libffi @VERSION@ - Copyright (c) 1996-2003 Cygnus Solutions
Permission is hereby granted, free of charge, to any person obtaining
***************
*** 165,168 ****
--- 165,174 ----
#endif
+ #ifdef S390
+ #if defined (__s390x__)
+ #define S390X
+ #endif
+ #endif
+
#ifndef LIBFFI_ASM
***************
*** 190,203 ****
#endif
! /* ---- Intel x86 ---------------- */
! #ifdef X86
FFI_SYSV,
FFI_DEFAULT_ABI = FFI_SYSV,
#endif
! /* ---- Intel x86 Win32 ---------- */
! #ifdef X86_WIN32
FFI_SYSV,
FFI_DEFAULT_ABI = FFI_SYSV,
#endif
--- 196,216 ----
#endif
! /* ---- Intel x86 Win32 ---------- */
! #ifdef X86_WIN32
FFI_SYSV,
+ FFI_STDCALL,
+ /* TODO: Add fastcall support for the sake of completeness */
FFI_DEFAULT_ABI = FFI_SYSV,
#endif
! /* ---- Intel x86 and AMD x86-64 - */
! #if !defined(X86_WIN32) && (defined(__i386__) || defined(__x86_64__))
FFI_SYSV,
+ FFI_UNIX64, /* Unix variants all use the same ABI for x86-64 */
+ #ifdef __i386__
FFI_DEFAULT_ABI = FFI_SYSV,
+ #else
+ FFI_DEFAULT_ABI = FFI_UNIX64,
+ #endif
#endif
***************
*** 258,261 ****
--- 271,280 ----
#endif
+ /* ---- SuperH ------------------- */
+ #ifdef SH
+ FFI_SYSV,
+ FFI_DEFAULT_ABI = FFI_SYSV,
+ #endif
+
/* Leave this for debugging purposes */
FFI_LAST_ABI
***************
*** 271,275 ****
} ffi_type;
! /* These are defined in ffi.c */
extern ffi_type ffi_type_void;
extern ffi_type ffi_type_uint8;
--- 290,294 ----
} ffi_type;
! /* These are defined in types.c */
extern ffi_type ffi_type_void;
extern ffi_type ffi_type_uint8;
***************
*** 380,390 ****
/* ---- 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)
#define FFI_CLOSURES 1 /* x86 supports closures */
--- 399,403 ----
/* ---- Definitions for closures ----------------------------------------- */
! #ifdef __i386__
#define FFI_CLOSURES 1 /* x86 supports closures */
***************
*** 429,432 ****
--- 442,479 ----
#define FFI_CLOSURES 1
#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
+ #ifdef S390X
+ #define FFI_TRAMPOLINE_SIZE 32
+ #else
+ #define FFI_TRAMPOLINE_SIZE 16
+ #endif
+ #define FFI_NATIVE_RAW_API 0
+
+ #elif defined(SH)
+
+ #define FFI_CLOSURES 1
+ #define FFI_TRAMPOLINE_SIZE 16
+ #define FFI_NATIVE_RAW_API 0
+
+ #elif defined(__x86_64__)
+
+ #define FFI_CLOSURES 1
+ #define FFI_TRAMPOLINE_SIZE 24
#define FFI_NATIVE_RAW_API 0
Index: ffi_common.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/libffi/include/ffi_common.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/libffi/include ffi.h.in,1.1,1.2 ffi_common.h,1.1,1.2,
Rhys Weatherley <address@hidden> <=