OSDN Git Service

* config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 2010 11:28:19 +0000 (11:28 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 2010 11:28:19 +0000 (11:28 +0000)
WCHAR_TYPE_SIZE): Define.
* config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.

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

gcc/ChangeLog
gcc/config.gcc
gcc/config/v850/v850.h

index 76dcb62..3cc4806 100644 (file)
@@ -1,5 +1,11 @@
 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
 
 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
 
+       * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
+       WCHAR_TYPE_SIZE): Define.
+       * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
+
+2010-12-13  Joseph Myers  <joseph@codesourcery.com>
+
        * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
        Don't use svr4.h.
 
        * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
        Don't use svr4.h.
 
index 60117f0..2272094 100644 (file)
@@ -2585,7 +2585,7 @@ spu-*-elf*)
        ;;
 v850e1-*-*)
        target_cpu_default="TARGET_CPU_v850e1"
        ;;
 v850e1-*-*)
        target_cpu_default="TARGET_CPU_v850e1"
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
        tm_p_file=v850/v850-protos.h
        tmake_file=v850/t-v850e
        md_file=v850/v850.md
        tm_p_file=v850/v850-protos.h
        tmake_file=v850/t-v850e
        md_file=v850/v850.md
@@ -2603,7 +2603,7 @@ v850e1-*-*)
        ;;
 v850e-*-*)
        target_cpu_default="TARGET_CPU_v850e"
        ;;
 v850e-*-*)
        target_cpu_default="TARGET_CPU_v850e"
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h v850/v850.h"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
        tm_p_file=v850/v850-protos.h
        tmake_file=v850/t-v850e
        md_file=v850/v850.md
        tm_p_file=v850/v850-protos.h
        tmake_file=v850/t-v850e
        md_file=v850/v850.md
@@ -2621,7 +2621,7 @@ v850e-*-*)
        ;;
 v850-*-*)
        target_cpu_default="TARGET_CPU_generic"
        ;;
 v850-*-*)
        target_cpu_default="TARGET_CPU_generic"
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
        tmake_file=v850/t-v850
        if test x$stabs = xyes
        then
        tmake_file=v850/t-v850
        if test x$stabs = xyes
        then
index c9bd7b2..c34ee88 100644 (file)
@@ -198,6 +198,18 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
 
    On the NEC V850, loads do sign extension, so make this default.  */
 #define DEFAULT_SIGNED_CHAR 1
 
    On the NEC V850, loads do sign extension, so make this default.  */
 #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
 /* Standard register usage.  */
 
 \f
 /* Standard register usage.  */