]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/mips/mti-linux.h
mti-linux.h (MIPS_SYSVERSION_SPEC): Update to handle mips[32|64]r3 and mips[32|64]r5.
[thirdparty/gcc.git] / gcc / config / mips / mti-linux.h
1 /* Target macros for mips*-mti-linux* targets.
2 Copyright (C) 2012-2015 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
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.
10
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.
15
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/>. */
19
20 /* This target is a multilib target, specify the sysroot paths.
21 MIPS_SYSVERSION_SPEC defaults to 'r2' (mips32r2 or mips64r2) unless
22 'r1' or 'r6' are specifically given so that mips32r3, mips32r5,
23 mips64r3, and mips64r5 will all default to 'r2'. See MULTILIB_MATCHES
24 definition in t-mti-linux. */
25
26 #define MIPS_SYSVERSION_SPEC \
27 "%{mips32|mips64:r1;mips32r6|mips64r6:r6;:r2}%{mips16:-mips16}"
28
29 #undef SYSROOT_SUFFIX_SPEC
30 #define SYSROOT_SUFFIX_SPEC \
31 "/%{mmicromips:micro}mips%{mel|EL:el}-"MIPS_SYSVERSION_SPEC \
32 "%{msoft-float:-soft;:-hard}" \
33 "%{!mips32r6:%{!mips64r6:%{mnan=2008:-nan2008}}}%{muclibc:-uclibc}"
34
35 #define SYSROOT_HEADERS_SUFFIX_SPEC SYSROOT_SUFFIX_SPEC
36
37 #undef STARTFILE_PREFIX_SPEC
38 #define STARTFILE_PREFIX_SPEC \
39 "%{mabi=32: /usr/local/lib/ /lib/ /usr/lib/} \
40 %{mabi=n32: /usr/local/lib32/ /lib32/ /usr/lib32/} \
41 %{mabi=64: /usr/local/lib64/ /lib64/ /usr/lib64/}"
42
43 #undef DRIVER_SELF_SPECS
44 #define DRIVER_SELF_SPECS \
45 /* Set the ISA for the default multilib. */ \
46 MIPS_DEFAULT_ISA_LEVEL_SPEC, \
47 \
48 /* Make sure a -mips option is present. This helps us to pick \
49 the right multilib, and also makes the later specs easier \
50 to write. */ \
51 MIPS_ISA_LEVEL_SPEC, \
52 \
53 /* Infer the default float setting from -march. */ \
54 MIPS_ARCH_FLOAT_SPEC, \
55 \
56 /* Infer the -msynci setting from -march if not explicitly set. */ \
57 MIPS_ISA_SYNCI_SPEC, \
58 \
59 /* If no ABI option is specified, infer one from the ISA level \
60 or -mgp setting. */ \
61 "%{!mabi=*: %{" MIPS_32BIT_OPTION_SPEC ": -mabi=32;: -mabi=n32}}", \
62 \
63 /* If no FP ABI option is specified, infer one from the \
64 ABI/ISA level. */ \
65 "%{!msoft-float: %{!msingle-float: %{!mfp*: %{mabi=32: %{" \
66 MIPS_FPXX_OPTION_SPEC ": -mfpxx}}}}}", \
67 \
68 /* Base SPECs. */ \
69 BASE_DRIVER_SELF_SPECS \
70 \
71 /* Use the standard linux specs for everything else. */ \
72 LINUX_DRIVER_SELF_SPECS