OSDN Git Service

* config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Dec 2010 18:20:09 +0000 (18:20 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Dec 2010 18:20:09 +0000 (18:20 +0000)
WCHAR_TYPE_SIZE): Define.
* config.gcc (mep-*-*): Don't use svr4.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167659 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e30b062..2a2eaca 100644 (file)
@@ -1,5 +1,11 @@
 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,
        WCHAR_TYPE_SIZE): Define.
        * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
index 3d09ee8..3e7b72c 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 73675a3..5244bb3 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