summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-06-01 18:13:57 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-06-01 18:27:39 +0100
commit609743f9fff7194ca58fec4ad967bdd9ef093f75 (patch)
treeedad4e60ae9f54a2e516ae98227b0ba426a389b4 /eclass
parentsys-devel/gcc: 9.4.0: cut 1 patchset, a copy of 9.3.0 patches (diff)
downloadgentoo-609743f9fff7194ca58fec4ad967bdd9ef093f75.tar.gz
gentoo-609743f9fff7194ca58fec4ad967bdd9ef093f75.tar.bz2
gentoo-609743f9fff7194ca58fec4ad967bdd9ef093f75.zip
toolchain.eclass: add -march=znver3 mangling
Noticed as a gcc-9 build failure as it does not support -march=znver3. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rwxr-xr-xeclass/tests/toolchain.sh1
-rw-r--r--eclass/toolchain.eclass1
2 files changed, 2 insertions, 0 deletions
diff --git a/eclass/tests/toolchain.sh b/eclass/tests/toolchain.sh
index 118d68c63df4..8e070cad4b98 100755
--- a/eclass/tests/toolchain.sh
+++ b/eclass/tests/toolchain.sh
@@ -86,6 +86,7 @@ test_downgrade_arch_flags 10 "-march=native" "-march=native"
test_downgrade_arch_flags 8 "-march=znver1" "-march=znver2"
test_downgrade_arch_flags 4.2 "-march=native" "-march=native"
test_downgrade_arch_flags 4.1 "-march=nocona" "-march=native"
+test_downgrade_arch_flags 9 "-march=znver2" "-march=znver3"
test_downgrade_arch_flags 10 "-march=foo -mno-sha -mno-rtm -mno-avx2 -mno-avx -mno-sse4.1" "-march=foo -mno-sha -mno-rtm -mno-avx2 -mno-avx -mno-sse4.1"
test_downgrade_arch_flags 4.9 "-march=foo -mno-sha -mno-rtm -mno-avx2 -mno-avx -mno-sse4.1" "-march=foo -mno-sha -mno-rtm -mno-avx2 -mno-avx -mno-sse4.1"
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index f41ce22c5915..3c495631a0e8 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1300,6 +1300,7 @@ downgrade_arch_flags() {
# "added" "arch" "replacement"
local archlist=(
+ 10 znver3 znver2
9 znver2 znver1
4.9 bdver4 bdver3
4.9 bonnell atom