This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: vxWorks support for Arm
- To: law at cygnus dot com
- Subject: Re: vxWorks support for Arm
- From: mrs at wrs dot com (Mike Stump)
- Date: Tue, 23 Mar 1999 08:16:56 -0800
- Cc: egcs-patches at cygnus dot com
> Date: Mon, 22 Mar 1999 01:10:13 -0700
> From: Jeffrey A Law <law@upchuck.cygnus.com>
> Can you please update this for the current sources and change
> -Darm to -D__arm__ in CPP_PREDEFINES for the new file?
> I believe we can get this patch installed once those two issues
> are dealt with.
Sure:
1999-01-20 Mike Stump <mrs@wrs.com>
* arm/vxarm.h: Split out vxWorks support into separate headerfile
and vxify.
* arm/arm.h: Allow arm710 as default.
1999-01-20 Mike Stump <mrs@wrs.com>
* configure: Split out vxWorks support for Arm.
Doing diffs in .:
*** ./gcc/config/arm/vxarm.h.~1~ Tue Mar 23 08:00:24 1999
--- ./gcc/config/arm/vxarm.h Tue Mar 23 08:00:24 1999
***************
*** 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*:%{!m6:%{!m2:%{!m3:%{!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 ""
*** ./gcc/config/arm/arm.c.~1~ Tue Mar 23 07:23:56 1999
--- ./gcc/config/arm/arm.c Tue Mar 23 08:02:24 1999
*************** arm_override_options ()
*** 320,325 ****
--- 320,326 ----
{ 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" },
*** ./gcc/configure.in.~1~ Tue Mar 23 07:18:03 1999
--- ./gcc/configure.in Tue Mar 23 08:07:45 1999
*************** changequote([,])dnl
*** 665,670 ****
--- 665,674 ----
tm_file=arm/coff.h
tmake_file=arm/t-bare
;;
+ arm-*-vxworks*)
+ tm_file="arm/coff.h arm/vxarm.h"
+ tmake_file=arm/t-bare
+ ;;
changequote(,)dnl
arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
changequote([,])dnl
--------------