stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 15 Dec 2010 12:55:45 +0000 (12:55 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 15 Dec 2010 12:55:45 +0000 (12:55 +0000)
* config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
* config.gcc (xstormy16-*-elf): Don't use svr4.h.

From-SVN: r167852

gcc/ChangeLog
gcc/config.gcc
gcc/config/stormy16/stormy16.h

index 6ac40331075b35b8c2617d159aa2daa699208ca5..68ac27bc3e1b912bf37da4324b6fa22eded1d010 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-15  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
+       * config.gcc (xstormy16-*-elf): Don't use svr4.h.
+
 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
 
        * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
index 94950b8e8244da66328355e937942697b22bcd79..51d9c264450ad356410e8ac6864535a0ce53442a 100644 (file)
@@ -2646,7 +2646,7 @@ vax-*-openbsd*)
        ;;
 xstormy16-*-elf)
        # For historical reasons, the target files omit the 'x'.
-       tm_file="dbxelf.h elfos.h svr4.h newlib-stdint.h stormy16/stormy16.h"
+       tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h"
        tm_p_file=stormy16/stormy16-protos.h
        md_file=stormy16/stormy16.md
        out_file=stormy16/stormy16.c
index 1781bc3adea05ee6a20fef6033a2081c0dde081d..f255ac9e413e0ef2ab94ce6d3be8484a107841b9 100644 (file)
 #undef  ASM_SPEC
 #define ASM_SPEC ""
 
+#undef  LINK_SPEC
+#define LINK_SPEC "%{h*} %{v:-V} \
+                  %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic}"
+
 /* For xstormy16:
    - If -msim is specified, everything is built and linked as for the sim.
    - If -T is specified, that linker script is used, and it should provide
 
 #define PTRDIFF_TYPE "int"
 
+#undef  WCHAR_TYPE
+#define WCHAR_TYPE "long int"
+
 #undef  WCHAR_TYPE_SIZE
 #define WCHAR_TYPE_SIZE 32