aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/v850
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2012-07-18 17:29:51 +0200
committerRalf Corsepius <corsepiu@gcc.gnu.org>2012-07-18 17:29:51 +0200
commitcc5476cb49a7d1a2ece0b9cdbe81930a9f6bdb14 (patch)
tree01f16fe0f73fcc25effa33caf46c7279f9a26df6 /gcc/config/v850
parent75cfe445d9e4e31043757b9aaec0fa9e33d7d7f1 (diff)
downloadgcc-cc5476cb49a7d1a2ece0b9cdbe81930a9f6bdb14.zip
gcc-cc5476cb49a7d1a2ece0b9cdbe81930a9f6bdb14.tar.gz
gcc-cc5476cb49a7d1a2ece0b9cdbe81930a9f6bdb14.tar.bz2
config.gcc (v850-*-rtems*): New target.
2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org> * config.gcc (v850-*-rtems*): New target. * config/v850/rtems.h: New. * config/v850/t-rtems: New. From-SVN: r189618
Diffstat (limited to 'gcc/config/v850')
-rw-r--r--gcc/config/v850/rtems.h29
-rw-r--r--gcc/config/v850/t-rtems3
2 files changed, 32 insertions, 0 deletions
diff --git a/gcc/config/v850/rtems.h b/gcc/config/v850/rtems.h
new file mode 100644
index 0000000..397d2e0
--- /dev/null
+++ b/gcc/config/v850/rtems.h
@@ -0,0 +1,29 @@
+/* Definitions for rtems targeting a v850 using ELF.
+ Copyright (C) 2012 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+/* Specify predefined symbols in preprocessor. */
+
+#define TARGET_OS_CPP_BUILTINS() do { \
+ builtin_define( "__rtems__" ); \
+ builtin_assert( "system=rtems" ); \
+} while (0)
+
+/* Map mv850e1 and mv850es to mv850e to match MULTILIB_MATCHES */
+#undef ASM_SPEC
+#define ASM_SPEC "%{mv850es:-mv850e} %{mv850e1:-mv850e} %{!mv850es:%{!mv850e1:%{mv*:-mv%*}}}"
diff --git a/gcc/config/v850/t-rtems b/gcc/config/v850/t-rtems
new file mode 100644
index 0000000..c3f4ee4
--- /dev/null
+++ b/gcc/config/v850/t-rtems
@@ -0,0 +1,3 @@
+# Custom multilibs for RTEMS
+
+MULTILIB_MATCHES += mv850e=mv850es