mep.h (SIZE_TYPE, [...]): Define.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 9 Dec 2010 18:20:09 +0000 (18:20 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 9 Dec 2010 18:20:09 +0000 (18:20 +0000)
* config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Define.
* config.gcc (mep-*-*): Don't use svr4.h.

From-SVN: r167659

gcc/ChangeLog
gcc/config.gcc
gcc/config/mep/mep.h

index e30b062c877d61ec9c73d730784d7e213a15dc05..2a2eaca0bce2b3fee19832620ceeaa9dc26f0360 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-09  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
+       WCHAR_TYPE_SIZE): Define.
+       * config.gcc (mep-*-*): Don't use svr4.h.
+
 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
 
        * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
index 3d09ee8283adaae5710f7196873a914991a2ce7e..3e7b72cf95fb9027f3e5a65eb9281697fc5c67df 100644 (file)
@@ -1762,7 +1762,7 @@ mcore-*-pe*)
        use_gcc_stdint=wrap
        ;;
 mep-*-*)
-       tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
+       tm_file="dbxelf.h elfos.h ${tm_file}"
        tmake_file=mep/t-mep
        extra_parts="crtbegin.o crtend.o"
        c_target_objs="mep-pragma.o"
index 73675a3e1106940897d0a78138a594c9f07cef6c..5244bb38a4bdfbfb74e61e6f73713bbc41d3882a 100644 (file)
@@ -202,6 +202,18 @@ crtbegin.o%s"
 #define DOUBLE_TYPE_SIZE      64
 #define LONG_DOUBLE_TYPE_SIZE 64
 #define DEFAULT_SIGNED_CHAR    1
+
+#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
 /* Register numbers:
        0..15   core registers