OSDN Git Service

* config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Dec 2010 17:26:33 +0000 (17:26 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Dec 2010 17:26:33 +0000 (17:26 +0000)
WCHAR_TYPE_SIZE): Define.
* config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
WCHAR_TYPE_SIZE): Don't define.
* config.gcc (mcore-*-elf): Don't use svr4.h.

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

gcc/ChangeLog
gcc/config.gcc
gcc/config/mcore/mcore.h
gcc/config/svr3.h

index d60e4ac..e30b062 100644 (file)
@@ -1,5 +1,13 @@
 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,
+       WCHAR_TYPE_SIZE): Don't define.
+       * config.gcc (mcore-*-elf): Don't use svr4.h.
+
+2010-12-09  Joseph Myers  <joseph@codesourcery.com>
+
        * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
        m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
 
index ac84b12..3d09ee8 100644 (file)
@@ -1751,7 +1751,7 @@ m68k-*-rtems*)
        extra_parts="crtbegin.o crtend.o"
        ;;
 mcore-*-elf)
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
        tmake_file=mcore/t-mcore
        inhibit_libc=true
        ;;
index f1be994..3f76e18 100644 (file)
@@ -692,9 +692,18 @@ extern const enum reg_class reg_class_from_letter[];
 /* 'char' is signed by default.  */
 #define DEFAULT_SIGNED_CHAR  0
 
-/* The type of size_t unsigned int.  */
+#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
+
 /* Max number of bytes we can move from memory to memory
    in one reasonably fast instruction.  */
 #define MOVE_MAX 4
index b3b64a0..2432062 100644 (file)
@@ -1,6 +1,7 @@
 /* Operating system specific defines to be used when targeting GCC for
    generic System V Release 3 system.
-   Copyright (C) 1991, 1996, 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1996, 2000, 2002, 2004, 2007, 2010
+   Free Software Foundation, Inc.
    Contributed by Ron Guilmette (rfg@monkeys.com).
 
 This file is part of GCC.
@@ -77,21 +78,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #undef DBX_DEBUGGING_INFO
 
-/* Define the actual types of some ANSI-mandated types.  These
-   definitions should work for most SVR3 systems.  */
-
-#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
-
 /* The prefix to add to user-visible assembler symbols.
 
    For System V Release 3 the convention is to prepend a leading