This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add various VxWorks target configs (1/3)
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: Phil Edwards <phil at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 20 Oct 2003 20:53:30 -0400
- Subject: Re: [PATCH] Add various VxWorks target configs (1/3)
- References: <3F943808.5080208@codesourcery.com>
Phil Edwards wrote:
This adds config stanzas to config.gcc, and the necessary headers and t-
fragments, for {arm,i?86,mips,sh}-wrs-vxworks targets. The mythical *grin*
WindISS target is expanded to MIPS in addition to PowerPC, with a comment
as to what it actually /is/, at the request of Nathanael.
This is an ongoing project at CodeSourcery, which means 1) I cannot take
all
the credit for the patch, and 2) more patches will be forthcoming, for
these
and other targets (such as WindISS).
2003-10-20 Phil Edwards <phil@codesourcery.com>
* config.gcc: Update *-*-vxworks* generic hook and comments.
(arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
* genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
* config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
* config/windiss.h: New file.
* config/arm/t-vxworks: New file.
* config/arm/vxworks.h: New file.
* config/i386/t-vxworks: New file.
* config/i386/vxworks.h: New file.
* config/mips/t-vxworks: New file.
* config/mips/vxworks.h: New file.
* config/mips/windiss.h: New file.
* config/sh/t-vxworks: New file.
* config/sh/vxworks.h: New file.
Please replace all references to "GNU compiler" and "GNU CC" with "GCC".
This needs to be in the GCC coding standards or something....
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.403
diff -u -p -r1.403 config.gcc
--- config.gcc 20 Oct 2003 06:27:31 -0000 1.403
+++ config.gcc 20 Oct 2003 18:58:11 -0000
@@ -495,8 +495,13 @@ case ${target} in
*-*-vxworks*)
tmake_file=t-vxworks
tm_file="${tm_file} elfos.h svr4.h vxworks.h"
- thread_file='vxworks'
+ case x${enable_threads} in
+ xno) ;;
+ x | xyes | xvxworks) thread_file='vxworks' ;;
+ *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
+ esac
These x'es are unnecessary. Write this:
case ${enable_threads} in
no) ;;
"" | yes | vxworks) thread_file='vxworks' ;;
*) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
esac
Please resubmit with those fixes and I'll take a look at it again. :-)