This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
trivial applied mips patch: fix SIZE_TYPE, PTRDIFF_TYPEdefinitions
- From: cgd at broadcom dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: 30 Jul 2003 17:47:05 -0700
- Subject: trivial applied mips patch: fix SIZE_TYPE, PTRDIFF_TYPEdefinitions
This re-enables a change made on 2003-10-06, which was accidentally
clobbered on 2003-04-30 during the mips rewrite branch merge.
Eric said it was trivial and obvious.
I tested it anyway (target=mips-linux, host=x86-linux), building a
mips64 linux kernel. Works much better now that ptrdiff_t is the
right size. 8-)
cgd
===================================================================
2003-07-30 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
macros before defining them.
Index: config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.279
diff -u -p -r1.279 mips.h
--- config/mips/mips.h 15 Jul 2003 08:44:25 -0000 1.279
+++ config/mips/mips.h 31 Jul 2003 00:44:23 -0000
@@ -3817,13 +3817,11 @@ while (0)
/* Default definitions for size_t and ptrdiff_t. We must override the
definitions from ../svr4.h on mips-*-linux-gnu. */
-#ifndef SIZE_TYPE
+#undef SIZE_TYPE
#define SIZE_TYPE (POINTER_SIZE == 64 ? "long unsigned int" : "unsigned int")
-#endif
-#ifndef PTRDIFF_TYPE
+#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE (POINTER_SIZE == 64 ? "long int" : "int")
-#endif
/* See mips_expand_prologue's use of loadgp for when this should be
true. */