commit: 52f4e8653f56ce713659dfe7880b5c272cc5a817
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 27 03:33:15 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 03:33:15 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52f4e865
toolchain.eclass: only pass -fno-harden-control-flow-redundancy for new enough
GCC too
Even if it's OK for the stage1 compiler, it may not be later.
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index b2d5a62165a6..bf5e5127036f 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1542,11 +1542,11 @@ gcc_do_filter_flags() {
-fharden-control-flow-redundancy
-fno-harden-control-flow-redundancy \
-fhardcfr-skip-leaf -fhardcfr-check-exceptions \
-fhardcfr-check-returning-calls
'-fhardcfr-check-noreturn-calls=*'
+ else
+ # Makes things painfully slow and no real benefit for the
compiler.
+ append-flags $(test-flags-CC
-fno-harden-control-flow-redundancy)
fi
- # Makes things painfully slow and no real beenfit for the compiler.
- append-flags $(test-flags-CC -fno-harden-control-flow-redundancy)
-
# Please use USE=lto instead (bug #906007).
filter-lto