commit: 63c16d8b5e71b5f8e6185965062cf9c836800c29 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Mon Feb 22 21:57:22 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Mon Feb 22 22:00:10 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c16d8b
eclass/toolchain.eclass: disable USE=vtv on gcc-10 and above USE=vtv has a few problems: - it's build system has a few quirks: bug #767706, bug #582524 - it's developed in gcc for a while Bug: https://bugs.gentoo.org/582524 Bug: https://bugs.gentoo.org/767706 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> eclass/toolchain.eclass | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 59f8660a3d9..f41ce22c591 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -170,7 +170,16 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 6.5 && IUSE+=" graphite" TC_FEATURES+=(graphite) tc_version_is_between 4.9 8 && IUSE+=" cilk" - tc_version_is_at_least 4.9 && IUSE+=" ada +vtv" + tc_version_is_at_least 4.9 && IUSE+=" ada" + + # Don't enable USE=vtv starting from gcc-10. Once gcc-10 + # stable everywhere disable by default on older versions + # as well. + if tc_version_is_at_least 10; then + IUSE+=" vtv" + elif tc_version_is_at_least 4.9; then + IUSE+=" +vtv" + fi tc_version_is_at_least 5.0 && IUSE+=" jit" tc_version_is_between 5.0 9 && IUSE+=" mpx" tc_version_is_at_least 6.0 && IUSE+=" +pie +ssp +pch"