Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / config / mips / mti-linux.h
blob101c82a5a8ac27c0d8c4cc762c2395a40ebe46fe
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 #if MIPS_ISA_DEFAULT == 33 /* mips32r2 is the default */
23 #define SYSROOT_SUFFIX_SPEC \
24 "%{muclibc:/uclibc}%{mips32:/mips32}%{mips64:/mips64}%{mips64r2:/mips64r2}%{mips32r6:/mips32r6}%{mips64r6:/mips64r6}%{mips16:/mips16}%{mmicromips:/micromips}%{mabi=64:/64}%{mel|EL:/el}%{msoft-float:/sof}%{!mips32r6:%{!mips64r6:%{mnan=2008:/nan2008}}}"
25 #elif MIPS_ISA_DEFAULT == 37 /* mips32r6 is the default */
26 #define SYSROOT_SUFFIX_SPEC \
27 "%{muclibc:/uclibc}%{mips32:/mips32}%{mips64:/mips64}%{mips32r2:/mips32r2}%{mips64r2:/mips64r2}%{mips64r6:/mips64r6}%{mips16:/mips16}%{mmicromips:/micromips}%{mabi=64:/64}%{mel|EL:/el}%{msoft-float:/sof}%{!mips32r6:%{!mips64r6:%{mnan=2008:/nan2008}}}"
28 #else /* Unexpected default ISA. */
29 #error No SYSROOT_SUFFIX_SPEC exists for this default ISA
30 #endif
32 #define SYSROOT_HEADERS_SUFFIX_SPEC "%{muclibc:/uclibc}"
34 #undef DRIVER_SELF_SPECS
35 #define DRIVER_SELF_SPECS \
36 /* Make sure a -mips option is present. This helps us to pick \
37 the right multilib, and also makes the later specs easier \
38 to write. */ \
39 MIPS_ISA_LEVEL_SPEC, \
41 /* Infer the default float setting from -march. */ \
42 MIPS_ARCH_FLOAT_SPEC, \
44 /* Infer the -msynci setting from -march if not explicitly set. */ \
45 MIPS_ISA_SYNCI_SPEC, \
47 /* If no ABI option is specified, infer one from the ISA level \
48 or -mgp setting. */ \
49 "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=n32}}", \
51 /* If no FP ABI option is specified, infer one from the \
52 ABI/ISA level unless there is a conflicting option. */ \
53 "%{!msoft-float: %{!msingle-float: %{!mfp*: %{!mmsa: %{mabi=32: %{" \
54 MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}}", \
56 /* Base SPECs. */ \
57 BASE_DRIVER_SELF_SPECS \
59 /* Use the standard linux specs for everything else. */ \
60 LINUX_DRIVER_SELF_SPECS