OSDN Git Service

* c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
[pf3gnuchains/gcc-fork.git] / gcc / config / mips / vxworks.h
1 /* Copyright (C) 1999, 2003 Free Software Foundation, Inc.
2
3 This file is part of GCC.
4
5 GCC is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 GCC is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GCC; see the file COPYING.  If not, write to
17 the Free Software Foundation, 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.  */
19
20 #undef  EXTRA_SECTIONS
21 #define EXTRA_SECTIONS in_sdata, in_sbss
22
23 #undef  EXTRA_SECTION_FUNCTIONS
24 #define EXTRA_SECTION_FUNCTIONS                                            \
25   SECTION_FUNCTION_TEMPLATE(sdata_section, in_sdata, SDATA_SECTION_ASM_OP) \
26   SECTION_FUNCTION_TEMPLATE(sbss_section, in_sbss, SBSS_SECTION_ASM_OP)
27
28
29 #undef  TARGET_VERSION
30 #define TARGET_VERSION fprintf (stderr, " (MIPS, VxWorks syntax)");
31
32 /* Combination of mips.h and svr4.h.  */
33 #undef  SWITCH_TAKES_ARG
34 #define SWITCH_TAKES_ARG(CHAR)          \
35   (DEFAULT_SWITCH_TAKES_ARG (CHAR)      \
36    || (CHAR) == 'G'                     \
37    || (CHAR) == 'h'                     \
38    || (CHAR) == 'x'                     \
39    || (CHAR) == 'z')
40
41 #undef  ASM_SPEC
42 #define ASM_SPEC "\
43 %{!G:-G 0} %{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} \
44 %{mips32} %{mips32r2} %{mips64} \
45 %{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \
46 %(subtarget_asm_optimizing_spec) \
47 %(subtarget_asm_debugging_spec) \
48 %{mabi=32:-32}%{mabi=n32:-n32}%{mabi=64:-64}%{mabi=n64:-64} \
49 %{mabi=eabi} %{mabi=o64} %{!mabi*: %(asm_abi_default_spec)} \
50 %{mgp32} %{mgp64} %{march=*} %{mxgot:-xgot} \
51 %(target_asm_spec) \
52 %(subtarget_asm_spec)"
53
54 #undef LINK_SPEC
55 /* LINK_SPEC is clobbered in svr4.h. ugh!  */
56 #define LINK_SPEC "\
57 %(endian_spec) \
58 %{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
59 %{bestGnum}"
60
61 #define TARGET_OS_CPP_BUILTINS()                        \
62   do                                                    \
63     {                                                   \
64       builtin_define ("__vxworks");                     \
65       builtin_assert ("system=unix");                   \
66     }                                                   \
67   while (0)
68
69 #undef SUBTARGET_CPP_SPEC
70 #define SUBTARGET_CPP_SPEC \
71 "%{!DCPU=*: %{mips3|mips4|mips64:-DCPU=MIPS64;:-DCPU=MIPS32}} \
72   %{EL|mel:-DMIPSEL;:-DMIPSEB} \
73   %{msoft-float:-DSOFT_FLOAT} \
74   %{mips1:-D_WRS_R3K_EXC_SUPPORT}"
75
76 /* No sdata.  */
77 #undef MIPS_DEFAULT_GVALUE
78 #define MIPS_DEFAULT_GVALUE 0