moxie.h (LINK_SPEC, [...]): Define.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 9 Dec 2010 17:21:24 +0000 (17:21 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 9 Dec 2010 17:21:24 +0000 (17:21 +0000)
* config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
* config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.

From-SVN: r167653

gcc/ChangeLog
gcc/config.gcc
gcc/config/moxie/moxie.h
gcc/config/moxie/rtems.h

index 108ef62cfd4292d3d0283a9defa6cc3f43176f8a..ee384793dd46ba238675e80e5bbeb4d9aa5f80ed 100644 (file)
@@ -1,3 +1,11 @@
+2010-12-09  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
+       WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
+       * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
+       WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
+       * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
+
 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
 
        * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
index 5495015d26d7dd296966d281f7c8b4790c6fa0a1..1371c43b10f49a87d8973b949034d4789658b4ac 100644 (file)
@@ -979,14 +979,14 @@ frv-*-*linux*)
 moxie-*-elf)
        gas=yes
        gnu_ld=yes
-       tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
+       tm_file="dbxelf.h elfos.h ${tm_file}"
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
        ;;
 moxie-*-uclinux*)
        gas=yes
        gnu_ld=yes
-       tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h"
+       tm_file="dbxelf.h elfos.h ${tm_file} linux.h glibc-stdint.h moxie/uclinux.h"
        extra_parts="crti.o crtn.o crtbegin.o crtend.o"
        tmake_file="${tmake_file} moxie/t-moxie moxie/t-moxie-softfp soft-fp/t-softfp"
        tm_defines="${tm_defines} DEFAULT_LIBC=LIBC_UCLIBC"
index eae86cc67e8787f2f276f8bec597580d4087e347..76ab62ecc89a8bd75ba8532185d86397a139ef12 100644 (file)
 #undef LIB_SPEC
 #define LIB_SPEC "%{!shared:%{!symbolic:-lc}}"
 
+#undef  LINK_SPEC
+#define LINK_SPEC "%{h*} %{v:-V} \
+                  %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic}"
+
 /* Layout of Source Language Data Types */
 
 #define INT_TYPE_SIZE 32
 
 #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
+
 /* Registers...
 
    $fp  - frame pointer
index 42893f8a17217d05c6e41a20c4464ba7bfb111f7..f42baf3f70cffd7efc6a5e95bc6639c485200817 100644 (file)
@@ -27,3 +27,9 @@ along with GCC; see the file COPYING3.  If not see
       builtin_assert ("system=rtems");         \
     }                                          \
   while (0)
+
+#undef LINK_SPEC
+#undef SIZE_TYPE
+#undef PTRDIFF_TYPE
+#undef WCHAR_TYPE
+#undef WCHAR_TYPE_SIZE