This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[commited] was Re: [PING] libffi reorg
Andreas Tobler wrote:
Tom Tromey wrote:
"David" == David Daney <ddaney@avtrex.com> writes:
David> This seems to fix it for me.
Looks ok to me. Please write a ChangeLog entry and check it in.
David, sorry for the breakage, will you do apply by yourself or shall
I do?
Let me know.
Andreas
2003-10-22 David Daney <ddaney@avtrex.com>
* src/mips/ffitarget.h: Replace undefined UINT32 and friends with
__attribute__((__mode__(__SI__))) and friends.
Index: src/mips/ffitarget.h
===================================================================
RCS file: /cvs/gcc/gcc/libffi/src/mips/ffitarget.h,v
retrieving revision 1.1
diff -3 -u -p -r1.1 ffitarget.h
--- src/mips/ffitarget.h 21 Oct 2003 19:07:51 -0000 1.1
+++ src/mips/ffitarget.h 22 Oct 2003 00:10:04 -0000
@@ -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 {
David Daney