1 /* Copyright (C) 1999, 2003, 2004, 2007, 2008, 2010
2 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC 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 3, or (at your option)
11 GCC 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.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
21 #define TARGET_VERSION fprintf (stderr, " (MIPS, VxWorks syntax)");
25 %{!G:-G 0} %{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} \
26 %{mips32} %{mips32r2} %{mips64} \
27 %{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \
28 %(subtarget_asm_optimizing_spec) \
29 %(subtarget_asm_debugging_spec) \
30 %{mabi=*} %{!mabi*: %(asm_abi_default_spec)} \
31 %{mgp32} %{mgp64} %{march=*} %{mxgot:-xgot} \
33 %(subtarget_asm_spec)"
36 /* LINK_SPEC is clobbered in svr4.h. ugh! */
39 %{!G:-G 0} %{G*} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64} \
44 #define LIB_SPEC VXWORKS_LIB_SPEC
46 #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
48 #define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
50 #define TARGET_OS_CPP_BUILTINS() \
54 builtin_define ("CPU=MIPS64"); \
56 builtin_define ("CPU=MIPS32"); \
57 if (TARGET_BIG_ENDIAN) \
58 builtin_define ("MIPSEB"); \
60 builtin_define ("MIPSEL"); \
61 if (TARGET_SOFT_FLOAT) \
62 builtin_define ("SOFT_FLOAT"); \
63 VXWORKS_OS_CPP_BUILTINS (); \
67 #undef SUBTARGET_CPP_SPEC
68 #define SUBTARGET_CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
71 #undef MIPS_DEFAULT_GVALUE
72 #define MIPS_DEFAULT_GVALUE 0
74 /* No _mcount profiling on VxWorks. */
75 #undef FUNCTION_PROFILER
76 #define FUNCTION_PROFILER VXWORKS_FUNCTION_PROFILER
78 #undef SUBTARGET_ASM_SPEC
79 #define SUBTARGET_ASM_SPEC "%{mrtp:%{fPIC|fpic:-mvxworks-pic}}"
81 #undef SUBTARGET_OVERRIDE_OPTIONS
82 #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS