aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm/vxarm.h
diff options
context:
space:
mode:
authorMike Stump <mrs@wrs.com>1999-03-23 21:49:39 +0000
committerJeff Law <law@gcc.gnu.org>1999-03-23 14:49:39 -0700
commit2aa0c933d18af401d7ab2aece07db65ff63ecb35 (patch)
treeae30bc8e1ed698a8fa6d499ea26e9a0c9bc81965 /gcc/config/arm/vxarm.h
parent5ef2fb7986c0605225dfb979acc55d73e7a8b001 (diff)
downloadgcc-2aa0c933d18af401d7ab2aece07db65ff63ecb35.zip
gcc-2aa0c933d18af401d7ab2aece07db65ff63ecb35.tar.gz
gcc-2aa0c933d18af401d7ab2aece07db65ff63ecb35.tar.bz2
vxarm.h: Split out vxWorks support into separate headerfile and vxify.
* arm/vxarm.h: Split out vxWorks support into separate headerfile and vxify. * arm/arm.c (cpu_defaults): Allow arm710 as default. * configure.in: Split out vxWorks support for Arm. * configure: Rebuilt. From-SVN: r25932
Diffstat (limited to 'gcc/config/arm/vxarm.h')
-rw-r--r--gcc/config/arm/vxarm.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/config/arm/vxarm.h b/gcc/config/arm/vxarm.h
new file mode 100644
index 0000000..0707345
--- /dev/null
+++ b/gcc/config/arm/vxarm.h
@@ -0,0 +1,36 @@
+#undef SUBTARGET_CPP_SPEC
+#define SUBTARGET_CPP_SPEC "%{march=arm710:-DCPU=ARM710A} \
+%{march=arm7tdmi:-DCPU=ARM7TDMI} \
+%{march=arm810:-DCPU=ARM810} \
+%{march=strongarm110:-DCPU=ARMSA110} \
+%{!march=*: \
+ %{mcpu=arm710:-DCPU=ARM710A} \
+ %{mcpu=arm7tdmi:-DCPU=ARM7TDMI} \
+ %{mcpu=arm810:-DCPU=ARM810} \
+ %{mcpu=strongarm110:-DCPU=ARMSA110}} \
+%{!mcpu*:%{!march=*:-DCPU=ARM710A}} \
+"
+
+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm710
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-D__vxworks -D__arm__ -Acpu(arm) -Amachine(arm)"
+
+/* VxWorks does all the library stuff itself. */
+
+#undef LIB_SPEC
+#define LIB_SPEC ""
+
+/* VxWorks uses object files, not loadable images. make linker just
+ combine objects. */
+
+#undef LINK_SPEC
+#define LINK_SPEC "-r"
+
+/* VxWorks provides the functionality of crt0.o and friends itself. */
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC ""
+
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC ""