OSDN Git Service

Add cpp predefines for VxWorks, and default to -mca
[pf3gnuchains/gcc-fork.git] / gcc / config / i960 / vx960-coff.h
1 /* Definitions of target machine for GNU compiler.  Vxworks i960 version.
2    Copyright (C) 1994, 1995 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
19
20 /* This file just exists to give specs for the 960 running on VxWorks.  */
21
22 #include "i960/i960-coff.h"
23
24 /* VxWorks does all the library stuff itself.  */
25
26 #undef LIB_SPEC
27 #define LIB_SPEC ""
28
29 /* VxWorks provides the functionality of crt0.o and friends itself.  */
30
31 #undef STARTFILE_SPEC
32 #define STARTFILE_SPEC ""
33
34 /* Predefine vxworks.  */
35
36 #undef CPP_PREDEFINES
37 #define CPP_PREDEFINES "-Di960 -Di80960 -DI960 -DI80960 -Dvxworks -Acpu(i960) -Amachine(i960)"
38
39 /* The VxWorks header files expect the compiler to define CPU to a
40    magic number.  */
41
42 #undef CPP_SPEC
43 #define CPP_SPEC "%{mic*:-D__i960\
44                         %{mka:-D__i960KA}%{mkb:-D__i960KB}\
45                         %{msa:-D__i960SA}%{msb:-D__i960SB}\
46                         %{mmc:-D__i960MC}\
47                         %{mca:-D__i960CA}%{mcc:-D__i960CC}\
48                         %{mcf:-D__i960CF}}\
49         %{mka:-D__i960KA__ -D__i960_KA__ %{!ansi:-DCPU=I960KA}}\
50         %{mkb:-D__i960KB__ -D__i960_KB__ %{!ansi:-DCPU=I960KB}}\
51         %{msa:-D__i960SA__ -D__i960_SA__}\
52         %{msb:-D__i960SB__ -D__i960_SB__}\
53         %{mmc:-D__i960MC__ -D__i960_MC__}\
54         %{mca:-D__i960CA__ -D__i960_CA__ %{!ansi:-DCPU=I960CA}}\
55         %{mcc:-D__i960CC__ -D__i960_CC__}\
56         %{mcf:-D__i960CF__ -D__i960_CF__}\
57         %{!mka:%{!mkb:%{!msa:%{!msb:%{!mmc:%{!mca:\
58                 %{!mcc:%{!mcf:-D__i960_CA -D__i960CA__ %{!ansi:-DCPU=I960CA}\
59                               %{mic*:-D__i960CA}}}}}}}}}"
60
61 /* Default to -mca.  */
62
63 #undef CC1_SPEC
64 #define CC1_SPEC \
65         "%{!mka:%{!mkb:%{!msa:%{!msb:%{!mmc:%{!mca:%{!mcc:%{!mcf:-mca}}}}}}}}\
66          %{!gs*:%{!gc*:%{mbout:%{g*:-gstabs}}\
67                        %{mcoff:%{g*:-gcoff}}\
68                        %{!mbout:%{!mcoff:%{g*:-gcoff}}}}}"