diff options
author | Joshua Kinard <kumba@gentoo.org> | 2020-03-28 15:52:59 -0400 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2020-03-28 15:58:58 -0400 |
commit | d781ee4fa12765e0aa4fee1f451f1b01591f97a7 (patch) | |
tree | 14c560ec87f9ba35fd3c0021bd1e59945b85ba89 /eclass | |
parent | eclass/multilib.eclass: update copyright and fix typos (diff) | |
download | gentoo-d781ee4fa12765e0aa4fee1f451f1b01591f97a7.tar.gz gentoo-d781ee4fa12765e0aa4fee1f451f1b01591f97a7.tar.bz2 gentoo-d781ee4fa12765e0aa4fee1f451f1b01591f97a7.zip |
eclass/flag-o-matic.eclass: Add missing MIPS CPU errata flags
Noticed during a glibc build for MIPS-III ISA that the -mfix-r4000
and -mfix-r4400 gcc flags got stripped off. These are needed to work
around known CPU errata in R4000 and R4400 CPUs. In addition, also
add the -mfix-rm7000 option (and it's -mno form) to fix errata in the
PMC RM7000 CPU, and the -mr10k-cache-barrier to control the generation
of cache barriers to work around the side-effects of R10000's
speculative execution capabilities.
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Reviewed-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index e76eef293e89..0c67ec9f7a76 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -56,7 +56,9 @@ setup-allowed-flags() { -mno-faster-structs -mfaster-structs -m32 -m64 -mx32 -mabi -mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 -mcmodel -mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' -mfloat-abi - -mfix-r10000 -mno-fix-r10000 -mthumb -marm + -mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400 + -mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000 + -mr10k-cache-barrier -mthumb -marm # gcc 4.5 -mno-fma4 -mno-movbe -mno-xop -mno-lwp |