Skip to content

Commit 40750c0

Browse files
mips: Change target and multilib options
1 parent 0ef47a3 commit 40750c0

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

mips.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
TARGET=mips-elf
1+
TARGET=mips-mti-elf
22
TARGET_OPTIONS=

patches/mips/t-mti-elf.patch

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
--- gcc-13.2.0/gcc/config/mips/t-mti-elf 2023-07-27 11:13:04.000000000 +0300
2+
+++ gcc-13.2.0/gcc/config/mips/t-mti-elf-new 2024-04-06 05:57:41.083277145 +0300
3+
@@ -19,8 +19,8 @@
4+
# The default build is mips32r2, hard-float big-endian. Add mips32,
5+
# soft-float, and little-endian variations.
6+
7+
-MULTILIB_OPTIONS = mips32/mips64/mips64r2 mips16/mmicromips mabi=64 EL msoft-float mnan=2008
8+
-MULTILIB_DIRNAMES = mips32 mips64 mips64r2 mips16 micromips 64 el sof nan2008
9+
+MULTILIB_OPTIONS = mips32/mips32r6/mips64/mips64r2/mips64r6 mabi=64 EL msoft-float
10+
+MULTILIB_DIRNAMES = mips32 mips32r6 mips64 mips64r2 mips64r6 64 el sof
11+
MULTILIB_MATCHES = EL=mel EB=meb mips32r2=mips32r3 mips32r2=mips32r5 mips64r2=mips64r3 mips64r2=mips64r5
12+
13+
# The 64 bit ABI is not supported on the mips32 architecture.
14+
@@ -32,17 +32,4 @@
15+
# architecture flag instead.
16+
MULTILIB_EXCEPTIONS += mabi=64*
17+
18+
-# We do not want to build mips16 versions of mips64* architectures.
19+
-MULTILIB_EXCEPTIONS += *mips64*/*mips16*
20+
-MULTILIB_EXCEPTIONS += *mips16/mabi=64*
21+
-
22+
-# We only want micromips for mips32r2 architecture.
23+
-MULTILIB_EXCEPTIONS += *mips32/mmicromips*
24+
-MULTILIB_EXCEPTIONS += *mips64*/mmicromips*
25+
-MULTILIB_EXCEPTIONS += *mmicromips/mabi=64*
26+
-
27+
-# We do not want nan2008 libraries for soft-float,
28+
-# mips32[r1], or mips64[r1].
29+
-MULTILIB_EXCEPTIONS += *msoft-float*/*mnan=2008*
30+
-MULTILIB_EXCEPTIONS += *mips32/*mnan=2008*
31+
-MULTILIB_EXCEPTIONS += *mips64/*mnan=2008*
32+
+MULTILIB_EXCLUSIONS += mips64/!mabi=64 mips64r2/!mabi=64 mips64r6/!mabi=64

0 commit comments

Comments
 (0)