1169689Skan/* Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. 2169689Skan 3169689SkanThis file is part of GCC. 4169689Skan 5169689SkanGCC is free software; you can redistribute it and/or modify 6169689Skanit under the terms of the GNU General Public License as published by 7169689Skanthe Free Software Foundation; either version 2, or (at your option) 8169689Skanany later version. 9169689Skan 10169689SkanGCC is distributed in the hope that it will be useful, 11169689Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of 12169689SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13169689SkanGNU General Public License for more details. 14169689Skan 15169689SkanYou should have received a copy of the GNU General Public License 16169689Skanalong with GCC; see the file COPYING. If not, write to 17169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor, 18169689SkanBoston, MA 02110-1301, USA. */ 19169689Skan 20169689Skan#undef TARGET_VERSION 21169689Skan#define TARGET_VERSION fprintf (stderr, " (MIPS, VxWorks syntax)"); 22169689Skan 23169689Skan/* Combination of mips.h and svr4.h. */ 24169689Skan#undef SWITCH_TAKES_ARG 25169689Skan#define SWITCH_TAKES_ARG(CHAR) \ 26169689Skan (DEFAULT_SWITCH_TAKES_ARG (CHAR) \ 27169689Skan || (CHAR) == 'G' \ 28169689Skan || (CHAR) == 'h' \ 29169689Skan || (CHAR) == 'x' \ 30169689Skan || (CHAR) == 'z') 31169689Skan 32169689Skan#undef ASM_SPEC 33169689Skan#define ASM_SPEC "\ 34169689Skan%{!G:-G 0} %{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} \ 35169689Skan%{mips32} %{mips32r2} %{mips64} \ 36169689Skan%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \ 37169689Skan%(subtarget_asm_optimizing_spec) \ 38169689Skan%(subtarget_asm_debugging_spec) \ 39169689Skan%{mabi=*} %{!mabi*: %(asm_abi_default_spec)} \ 40169689Skan%{mgp32} %{mgp64} %{march=*} %{mxgot:-xgot} \ 41169689Skan%{mtune=*} %{v} \ 42169689Skan%(subtarget_asm_spec)" 43169689Skan 44169689Skan#undef LINK_SPEC 45169689Skan/* LINK_SPEC is clobbered in svr4.h. ugh! */ 46169689Skan#define LINK_SPEC "\ 47169689Skan%(endian_spec) \ 48169689Skan%{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \ 49169689Skan%{bestGnum}" 50169689Skan 51169689Skan#define TARGET_OS_CPP_BUILTINS() \ 52169689Skan do \ 53169689Skan { \ 54169689Skan builtin_define ("__vxworks"); \ 55169689Skan builtin_assert ("system=unix"); \ 56169689Skan } \ 57169689Skan while (0) 58169689Skan 59169689Skan#undef SUBTARGET_CPP_SPEC 60169689Skan#define SUBTARGET_CPP_SPEC \ 61169689Skan"%{!DCPU=*: %{mips3|mips4|mips64:-DCPU=MIPS64;:-DCPU=MIPS32}} \ 62169689Skan %{EL|mel:-DMIPSEL;:-DMIPSEB} \ 63169689Skan %{msoft-float:-DSOFT_FLOAT} \ 64169689Skan %{mips1:-D_WRS_R3K_EXC_SUPPORT}" 65169689Skan 66169689Skan/* No sdata. */ 67169689Skan#undef MIPS_DEFAULT_GVALUE 68169689Skan#define MIPS_DEFAULT_GVALUE 0 69