update copyrights in config dir.
[official-gcc.git] / gcc / config / arm / vxarm.h
blobb42bbbec00cdcf5bcd54fa075f3a1fed1d4a011a
1 /* Definitions of target machine for GNU compiler,
2 for ARM with targetting the VXWorks run time environment.
3 Copyright (C) 1999 Free Software Foundation, Inc.
5 Contributed by: Mike Stump <mrs@wrs.com>
7 This file is part of GNU CC.
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING. If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
24 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm710
26 #include "arm/coff.h"
28 #undef SUBTARGET_CPP_SPEC
29 #define SUBTARGET_CPP_SPEC \
30 "%{march=arm710:-DCPU=ARM710A} \
31 %{march=arm7tdmi:-DCPU=ARM7TDMI} \
32 %{march=arm810:-DCPU=ARM810} \
33 %{march=strongarm110:-DCPU=ARMSA110} \
34 %{!march=*: \
35 %{mcpu=arm710:-DCPU=ARM710A} \
36 %{mcpu=arm7tdmi:-DCPU=ARM7TDMI} \
37 %{mcpu=arm810:-DCPU=ARM810} \
38 %{mcpu=strongarm110:-DCPU=ARMSA110}} \
39 %{!mcpu*:%{!march=*:-DCPU=ARM710A}} \
41 #undef CPP_PREDEFINES
42 #define CPP_PREDEFINES "-D__vxworks -D__arm__ -Acpu(arm) -Amachine(arm)"
44 /* VxWorks does all the library stuff itself. */
46 #undef LIB_SPEC
47 #define LIB_SPEC ""
49 /* VxWorks uses object files, not loadable images. make linker just
50 combine objects. */
52 #undef LINK_SPEC
53 #define LINK_SPEC "-r"
55 /* VxWorks provides the functionality of crt0.o and friends itself. */
57 #undef STARTFILE_SPEC
58 #define STARTFILE_SPEC ""
60 #undef ENDFILE_SPEC
61 #define ENDFILE_SPEC ""
63 #undef TARGET_VERSION
64 #define TARGET_VERSION fputs (" (ARM/VxWorks)", stderr);
66 #undef ASM_FILE_START
67 #define ASM_FILE_START(STREAM) \
68 do \
69 { \
70 extern char * version_string; \
71 fprintf (STREAM, "%s Generated by gcc %s for ARM/VxWorks\n", \
72 ASM_COMMENT_START, version_string); \
73 } while (0)