linux.h (SIZE_TYPE, [...]): Undefine.
authorJoseph Myers <joseph@codesourcery.com>
Mon, 13 Dec 2010 11:26:42 +0000 (11:26 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 13 Dec 2010 11:26:42 +0000 (11:26 +0000)
* config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Undefine.
* config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (mn10300-*-*): Don't use svr4.h.

From-SVN: r167744

gcc/ChangeLog
gcc/config.gcc
gcc/config/mn10300/linux.h
gcc/config/mn10300/mn10300.h

index cbdd5940492bdc2bef18c919c6c8ae563c91ab5e..b673b0ed3dfa67285d8a5b7c755ae58d96e3b136 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-13  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
+       WCHAR_TYPE_SIZE): Undefine.
+       * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
+       WCHAR_TYPE_SIZE): Define.
+       * config.gcc (mn10300-*-*): Don't use svr4.h.
+
 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
 
        * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and
index 4c1c4bddf949544ae5abc71301547f28a5db5b92..491a5aa467992f0d566b56afd8486c60be179932 100644 (file)
@@ -1974,7 +1974,7 @@ mmix-knuth-mmixware)
        use_gcc_stdint=wrap
        ;;
 mn10300-*-*)
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
        if test x$stabs = xyes
        then
                tm_file="${tm_file} dbx.h"
index bed6ece543836929363c0b551c9e5d3462630453..cfaa0a8f34121eebfdc37922a063f99e16034786 100644 (file)
@@ -84,3 +84,7 @@ extern int mn10300_protect_label;
     }                                          \
   while (0)           
 
+#undef SIZE_TYPE
+#undef PTRDIFF_TYPE
+#undef WCHAR_TYPE
+#undef WCHAR_TYPE_SIZE
index 6db0ed0c70101187811ac6471e38e598a0fb1cee..67516b6ebe4ec816609782436909ab66245aeacb 100644 (file)
@@ -121,6 +121,18 @@ extern enum processor_type mn10300_tune_cpu;
 
 /* Define this as 1 if `char' should by default be signed; else as 0.  */
 #define DEFAULT_SIGNED_CHAR 0
+
+#undef  SIZE_TYPE
+#define SIZE_TYPE "unsigned int"
+
+#undef  PTRDIFF_TYPE
+#define PTRDIFF_TYPE "int"
+
+#undef  WCHAR_TYPE
+#define WCHAR_TYPE "long int"
+
+#undef  WCHAR_TYPE_SIZE
+#define WCHAR_TYPE_SIZE BITS_PER_WORD
 \f
 /* Standard register usage.  */