summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-22 15:32:13 +0000
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-22 15:32:13 +0000
commit4f3888311cff22e6caaa515fece0dd38719cce74 (patch)
tree50603beea6508a8104f982b927b2a6022f58cda3
parentc2a2674357a56c3d1386431392cf67ea81881d41 (diff)
downloadgcc-4f3888311cff22e6caaa515fece0dd38719cce74.tar.gz
2003-10-22 David Daney <ddaney@avtrex.com>
* src/mips/ffitarget.h: Replace undefined UINT32 and friends with __attribute__((__mode__(__SI__))) and friends. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72802 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libffi/ChangeLog5
-rw-r--r--libffi/src/mips/ffitarget.h8
2 files changed, 9 insertions, 4 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog
index 3fef2f8a3fa..74c6b74c602 100644
--- a/libffi/ChangeLog
+++ b/libffi/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-22 David Daney <ddaney@avtrex.com>
+
+ * src/mips/ffitarget.h: Replace undefined UINT32 and friends with
+ __attribute__((__mode__(__SI__))) and friends.
+
2003-10-22 Andreas Schwab <schwab@suse.de>
* src/ia64/ffi.c: Replace FALSE/TRUE with false/true.
diff --git a/libffi/src/mips/ffitarget.h b/libffi/src/mips/ffitarget.h
index f6b414313f1..9378ed0da48 100644
--- a/libffi/src/mips/ffitarget.h
+++ b/libffi/src/mips/ffitarget.h
@@ -125,12 +125,12 @@
#else /* !LIBFFI_ASM */
#ifdef FFI_MIPS_O32
/* O32 stack frames have 32bit integer args */
-typedef UINT32 ffi_arg;
-typedef SINT32 ffi_sarg;
+typedef unsigned int ffi_arg __attribute__((__mode__(__SI__)));
+typedef signed int ffi_sarg __attribute__((__mode__(__SI__)));
#else
/* N32 and N64 frames have 64bit integer args */
-typedef UINT64 ffi_arg;
-typedef SINT64 ffi_sarg;
+typedef unsigned int ffi_arg __attribute__((__mode__(__DI__)));
+typedef signed int ffi_sarg __attribute__((__mode__(__DI__)));
#endif
typedef enum ffi_abi {