2015-08-15 Teresa Johnson <tejohnson@google.com>
[official-gcc.git] / gcc-4_9 / gcc / config / mips / mti-linux.h
blobdb9896b4047abb1b88f96fd684429f7dd8f57f79
1 /* Target macros for mips*-mti-linux* targets.
2 Copyright (C) 2012-2014 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)
9 any later version.
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/>. */
20 /* This target is a multilib target, specify the sysroot paths. */
21 #undef SYSROOT_SUFFIX_SPEC
22 #define SYSROOT_SUFFIX_SPEC \
23 "%{mips32:/mips32}%{mips64:/mips64}%{mips64r2:/mips64r2}%{mips16:/mips16}%{mmicromips:/micromips}%{mabi=64:/64}%{mel|EL:/el}%{msoft-float:/sof}%{mfp64:/fp64}%{mnan=2008:/nan2008}"
25 #undef DRIVER_SELF_SPECS
26 #define DRIVER_SELF_SPECS \
27 /* Make sure a -mips option is present. This helps us to pick \
28 the right multilib, and also makes the later specs easier \
29 to write. */ \
30 MIPS_ISA_LEVEL_SPEC, \
32 /* Infer the default float setting from -march. */ \
33 MIPS_ARCH_FLOAT_SPEC, \
35 /* Infer the -msynci setting from -march if not explicitly set. */ \
36 MIPS_ISA_SYNCI_SPEC, \
38 /* If no ABI option is specified, infer one from the ISA level \
39 or -mgp setting. */ \
40 "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=n32}}", \
42 /* Base SPECs. */ \
43 BASE_DRIVER_SELF_SPECS \
45 /* Use the standard linux specs for everything else. */ \
46 LINUX64_DRIVER_SELF_SPECS