This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]