aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/mti-linux.h
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@imgtec.com>2015-07-09 22:17:22 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2015-07-09 22:17:22 +0000
commit1b57920b92facb68df956afbbb7715d2262c7e6c (patch)
tree64a9f80c4f423f58f6a47c693a6a7d0a2f9fb8b3 /gcc/config/mips/mti-linux.h
parenta0945730e542f08d3a575cb6c73fe3c6bc48fd03 (diff)
downloadgcc-1b57920b92facb68df956afbbb7715d2262c7e6c.zip
gcc-1b57920b92facb68df956afbbb7715d2262c7e6c.tar.gz
gcc-1b57920b92facb68df956afbbb7715d2262c7e6c.tar.bz2
mti-linux.h (MIPS_SYSVERSION_SPEC): Update to handle mips[32|64]r3 and mips[32|64]r5.
2015-07-09 Steve Ellcey <sellcey@imgtec.com> * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update to handle mips[32|64]r3 and mips[32|64]r5. From-SVN: r225643
Diffstat (limited to 'gcc/config/mips/mti-linux.h')
-rw-r--r--gcc/config/mips/mti-linux.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/mips/mti-linux.h b/gcc/config/mips/mti-linux.h
index 03d1baa..b497625 100644
--- a/gcc/config/mips/mti-linux.h
+++ b/gcc/config/mips/mti-linux.h
@@ -17,10 +17,14 @@ You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-/* This target is a multilib target, specify the sysroot paths. */
-#define MIPS_SYSVERSION_SPEC \
- "%{mips32:r1}%{mips64:r1}%{mips32r2:r2}%{mips64r2:r2}" \
- "%{mips32r6:r6}%{mips64r6:r6}%{mips16:-mips16}"
+/* This target is a multilib target, specify the sysroot paths.
+ MIPS_SYSVERSION_SPEC defaults to 'r2' (mips32r2 or mips64r2) unless
+ 'r1' or 'r6' are specifically given so that mips32r3, mips32r5,
+ mips64r3, and mips64r5 will all default to 'r2'. See MULTILIB_MATCHES
+ definition in t-mti-linux. */
+
+#define MIPS_SYSVERSION_SPEC \
+ "%{mips32|mips64:r1;mips32r6|mips64r6:r6;:r2}%{mips16:-mips16}"
#undef SYSROOT_SUFFIX_SPEC
#define SYSROOT_SUFFIX_SPEC \