* config/pa/linux-atomic.c (__kernel_cmpxchg): Reorder arguments to
[official-gcc.git] / gcc / config / mips / mti-linux.h
blob03d1baa8411f9273a888539b7d2e7068fdbf5bf4
1 /* Target macros for mips*-mti-linux* targets.
2 Copyright (C) 2012-2015 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 #define MIPS_SYSVERSION_SPEC \
22 "%{mips32:r1}%{mips64:r1}%{mips32r2:r2}%{mips64r2:r2}" \
23 "%{mips32r6:r6}%{mips64r6:r6}%{mips16:-mips16}"
25 #undef SYSROOT_SUFFIX_SPEC
26 #define SYSROOT_SUFFIX_SPEC \
27 "/%{mmicromips:micro}mips%{mel|EL:el}-"MIPS_SYSVERSION_SPEC \
28 "%{msoft-float:-soft;:-hard}" \
29 "%{!mips32r6:%{!mips64r6:%{mnan=2008:-nan2008}}}%{muclibc:-uclibc}"
31 #define SYSROOT_HEADERS_SUFFIX_SPEC SYSROOT_SUFFIX_SPEC
33 #undef STARTFILE_PREFIX_SPEC
34 #define STARTFILE_PREFIX_SPEC \
35 "%{mabi=32: /usr/local/lib/ /lib/ /usr/lib/} \
36 %{mabi=n32: /usr/local/lib32/ /lib32/ /usr/lib32/} \
37 %{mabi=64: /usr/local/lib64/ /lib64/ /usr/lib64/}"
39 #undef DRIVER_SELF_SPECS
40 #define DRIVER_SELF_SPECS \
41 /* Set the ISA for the default multilib. */ \
42 MIPS_DEFAULT_ISA_LEVEL_SPEC, \
44 /* Make sure a -mips option is present. This helps us to pick \
45 the right multilib, and also makes the later specs easier \
46 to write. */ \
47 MIPS_ISA_LEVEL_SPEC, \
49 /* Infer the default float setting from -march. */ \
50 MIPS_ARCH_FLOAT_SPEC, \
52 /* Infer the -msynci setting from -march if not explicitly set. */ \
53 MIPS_ISA_SYNCI_SPEC, \
55 /* If no ABI option is specified, infer one from the ISA level \
56 or -mgp setting. */ \
57 "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=n32}}", \
59 /* If no FP ABI option is specified, infer one from the \
60 ABI/ISA level. */ \
61 "%{!msoft-float: %{!msingle-float: %{!mfp*: %{mabi=32: %{" \
62 MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}", \
64 /* Base SPECs. */ \
65 BASE_DRIVER_SELF_SPECS \
67 /* Use the standard linux specs for everything else. */ \
68 LINUX_DRIVER_SELF_SPECS