Gentoo Archives: gentoo-commits

From: Joshua Kinard <kumba@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 28 Mar 2020 19:59:33
Message-Id: 1585425538.d781ee4fa12765e0aa4fee1f451f1b01591f97a7.kumba@gentoo
1 commit: d781ee4fa12765e0aa4fee1f451f1b01591f97a7
2 Author: Joshua Kinard <kumba <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 28 19:52:59 2020 +0000
4 Commit: Joshua Kinard <kumba <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 28 19:58:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d781ee4f
7
8 eclass/flag-o-matic.eclass: Add missing MIPS CPU errata flags
9
10 Noticed during a glibc build for MIPS-III ISA that the -mfix-r4000
11 and -mfix-r4400 gcc flags got stripped off. These are needed to work
12 around known CPU errata in R4000 and R4400 CPUs. In addition, also
13 add the -mfix-rm7000 option (and it's -mno form) to fix errata in the
14 PMC RM7000 CPU, and the -mr10k-cache-barrier to control the generation
15 of cache barriers to work around the side-effects of R10000's
16 speculative execution capabilities.
17
18 Signed-off-by: Joshua Kinard <kumba <AT> gentoo.org>
19 Reviewed-by: Matt Turner <mattst88 <AT> gentoo.org>
20
21 eclass/flag-o-matic.eclass | 4 +++-
22 1 file changed, 3 insertions(+), 1 deletion(-)
23
24 diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
25 index e76eef293e8..0c67ec9f7a7 100644
26 --- a/eclass/flag-o-matic.eclass
27 +++ b/eclass/flag-o-matic.eclass
28 @@ -56,7 +56,9 @@ setup-allowed-flags() {
29 -mno-faster-structs -mfaster-structs -m32 -m64 -mx32 -mabi
30 -mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 -mcmodel
31 -mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' -mfloat-abi
32 - -mfix-r10000 -mno-fix-r10000 -mthumb -marm
33 + -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
34 + -mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000
35 + -mr10k-cache-barrier -mthumb -marm
36
37 # gcc 4.5
38 -mno-fma4 -mno-movbe -mno-xop -mno-lwp