summaryrefslogtreecommitdiff
path: root/gcc/config/moxie
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-12-09 17:21:24 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-12-09 17:21:24 +0000
commit28e95e49fb4835d839b4f52dca47c54392f6b1e6 (patch)
tree216c11e16ed71462558590bc6704183df673d9e2 /gcc/config/moxie
parenta3724010252cc46308cb813953c5e4c52d11fa45 (diff)
downloadgcc-28e95e49fb4835d839b4f52dca47c54392f6b1e6.tar.gz
moxie.h (LINK_SPEC, [...]): Define.
* 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
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r--gcc/config/moxie/moxie.h16
-rw-r--r--gcc/config/moxie/rtems.h6
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index eae86cc67e8..76ab62ecc89 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -48,6 +48,10 @@
#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
@@ -61,6 +65,18 @@
#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
diff --git a/gcc/config/moxie/rtems.h b/gcc/config/moxie/rtems.h
index 42893f8a172..f42baf3f70c 100644
--- a/gcc/config/moxie/rtems.h
+++ b/gcc/config/moxie/rtems.h
@@ -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