Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / config / mips / vxworks.h
blobac34e632bc9fcd3d0d03dbd49f88c99444b4e10b
1 /* Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc.
3 This file is part of GCC.
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.
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.
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. */
20 #undef EXTRA_SECTIONS
21 #define EXTRA_SECTIONS in_sdata, in_sbss
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)
29 #undef TARGET_VERSION
30 #define TARGET_VERSION fprintf (stderr, " (MIPS, VxWorks syntax)");
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')
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=*} %{!mabi*: %(asm_abi_default_spec)} \
49 %{mgp32} %{mgp64} %{march=*} %{mxgot:-xgot} \
50 %{mtune=*} %{v} \
51 %(subtarget_asm_spec)"
53 #undef LINK_SPEC
54 /* LINK_SPEC is clobbered in svr4.h. ugh! */
55 #define LINK_SPEC "\
56 %(endian_spec) \
57 %{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
58 %{bestGnum}"
60 #define TARGET_OS_CPP_BUILTINS() \
61 do \
62 { \
63 builtin_define ("__vxworks"); \
64 builtin_assert ("system=unix"); \
65 } \
66 while (0)
68 #undef SUBTARGET_CPP_SPEC
69 #define SUBTARGET_CPP_SPEC \
70 "%{!DCPU=*: %{mips3|mips4|mips64:-DCPU=MIPS64;:-DCPU=MIPS32}} \
71 %{EL|mel:-DMIPSEL;:-DMIPSEB} \
72 %{msoft-float:-DSOFT_FLOAT} \
73 %{mips1:-D_WRS_R3K_EXC_SUPPORT}"
75 /* No sdata. */
76 #undef MIPS_DEFAULT_GVALUE
77 #define MIPS_DEFAULT_GVALUE 0