commit: 55065b06c6d9ea69732624565caca2ac10320543 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 18 16:41:43 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 22 22:18:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55065b06
flag-o-matic.eclass: allow Spectre mitigation flags Closes: https://bugs.gentoo.org/646076 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/flag-o-matic.eclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 37577209281a..d6590a2e52df 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -55,6 +55,11 @@ _setup-allowed-flags() { '-fstack-check*' -fno-stack-check -fbounds-check -fbounds-checking -fno-PIE -fno-pie -nopie -no-pie + # Spectre mitigations, bug #646076 + '-mindirect-branch=*' + -mindirect-branch-register + '-mfunction-return=*' + -mretpoline # Misc -fno-unit-at-a-time -fno-strict-overflow
