1 |
Noticed during a glibc build for MIPS-III ISA that the -mfix-r4000 |
2 |
and -mfix-r4400 gcc flags got stripped off. These are needed to work |
3 |
around known CPU errata in R4000 and R4400 CPUs. In addition, also |
4 |
add the -mfix-rm7000 option (and it's -mno form) to fix errata in the |
5 |
PMC RM7000 CPU, and the -mr10k-cache-barrier to control the generation |
6 |
of cache barriers to work around the side-effects of R10000's |
7 |
speculative execution capabilities. |
8 |
|
9 |
Signed-off-by: Joshua Kinard <kumba@g.o> |
10 |
--- |
11 |
eclass/flag-o-matic.eclass | 4 +++- |
12 |
1 file changed, 3 insertions(+), 1 deletion(-) |
13 |
|
14 |
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass |
15 |
index e76eef293e..0c67ec9f7a 100644 |
16 |
--- a/eclass/flag-o-matic.eclass |
17 |
+++ b/eclass/flag-o-matic.eclass |
18 |
@@ -56,7 +56,9 @@ setup-allowed-flags() { |
19 |
-mno-faster-structs -mfaster-structs -m32 -m64 -mx32 -mabi |
20 |
-mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 -mcmodel |
21 |
-mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' -mfloat-abi |
22 |
- -mfix-r10000 -mno-fix-r10000 -mthumb -marm |
23 |
+ -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400 |
24 |
+ -mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000 |
25 |
+ -mr10k-cache-barrier -mthumb -marm |
26 |
|
27 |
# gcc 4.5 |
28 |
-mno-fma4 -mno-movbe -mno-xop -mno-lwp |