Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 23 Aug 2022 05:24:29
Message-Id: 1661232236.3e6f0d7e573c9141d2f3b5bb284caef999663294.sam@gentoo
1 commit: 3e6f0d7e573c9141d2f3b5bb284caef999663294
2 Author: Marek BehĂșn <kabel <AT> kernel <DOT> org>
3 AuthorDate: Thu Aug 18 17:53:10 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 23 05:23:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e6f0d7e
7
8 Revert "toolchain.eclass: ensure thumb mode for armv6m"
9
10 This reverts commit 903b71810e0b270a7d494e16e2d799fcd95ae50f.
11
12 The commit caused default libgcc to be built in thumb mode for armv6m
13 target, but it broke subsequent compilation of newlib via crossdev.
14
15 The whole reason of this commit was to have the compiler generate
16 correct code when libgcc was used in thumb mode, but now this is not
17 needed anymore, because now we configure gcc with
18 --with-multilib-list=aprofile,rmprofile for CTARGET=arm-* when used with
19 multilib, which generates compiler that builds correct binaries for
20 -march=armv6-m even if libgcc is used.
21
22 Signed-off-by: Marek BehĂșn <kabel <AT> kernel.org>
23 Closes: https://github.com/gentoo/gentoo/pull/26914
24 Signed-off-by: Sam James <sam <AT> gentoo.org>
25
26 eclass/toolchain.eclass | 2 --
27 1 file changed, 2 deletions(-)
28
29 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
30 index 29076efc3f54..5c6e39472a58 100644
31 --- a/eclass/toolchain.eclass
32 +++ b/eclass/toolchain.eclass
33 @@ -1187,8 +1187,6 @@ toolchain_src_configure() {
34 fi
35 done
36
37 - # Convert armv6m to armv6-m
38 - [[ ${arm_arch} == armv6m ]] && arm_arch=armv6-m
39 # Convert armv7{a,r,m} to armv7-{a,r,m}
40 [[ ${arm_arch} == armv7? ]] && arm_arch=${arm_arch/7/7-}
41 # See if this is a valid --with-arch flag