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

From-SVN: r167652

gcc/ChangeLog
gcc/config.gcc
gcc/config/frv/frv.h

index 3c1f24968047a5ed8cf325b261202969edce6438..108ef62cfd4292d3d0283a9defa6cc3f43176f8a 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-09  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
+       WCHAR_TYPE_SIZE): Define.
+       * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
+
 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
 
        * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
index 12afb36701bb0240c0ba214a3bec6d9ec0567a3f..5495015d26d7dd296966d281f7c8b4790c6fa0a1 100644 (file)
@@ -966,12 +966,12 @@ fr30-*-elf)
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        ;;
 frv-*-elf)
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h ${tm_file}"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
        tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
        tmake_file=frv/t-frv
        ;;
 frv-*-*linux*)
-       tm_file="dbxelf.h elfos.h svr4.h ${tm_file} \
+       tm_file="dbxelf.h elfos.h ${tm_file} \
                 linux.h glibc-stdint.h frv/linux.h"
        tm_file="${tm_file} ../../libgcc/config/frv/frv-abi.h"
        tmake_file="${tmake_file} frv/t-frv frv/t-linux"
index 1b97ae7247769e71caee9905ef3e63528c0de160..15467f2b8648fff3c75263489b111d04308df304 100644 (file)
    default with the options `-fsigned-char' and `-funsigned-char'.  */
 #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
 /* General purpose registers.  */
 #define GPR_FIRST       0                       /* First gpr */