aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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
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')
-rw-r--r--gcc/config/arm/arm.c1
-rw-r--r--gcc/config/arm/vxarm.h36
2 files changed, 37 insertions, 0 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index b3dedbd..0888c24 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -320,6 +320,7 @@ arm_override_options ()
{ TARGET_CPU_arm2, "arm2" },
{ TARGET_CPU_arm6, "arm6" },
{ TARGET_CPU_arm610, "arm610" },
+ { TARGET_CPU_arm710, "arm710" },
{ TARGET_CPU_arm7m, "arm7m" },
{ TARGET_CPU_arm7500fe, "arm7500fe" },
{ TARGET_CPU_arm7tdmi, "arm7tdmi" },
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 ""