aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/arm')
-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 ""