diff options
author | Sam James <sam@gentoo.org> | 2023-10-27 04:33:15 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-10-27 04:33:15 +0100 |
commit | 52f4e8653f56ce713659dfe7880b5c272cc5a817 (patch) | |
tree | a4c968e580958db8f130fc3d3918ba4973c7f4f2 /eclass | |
parent | sys-devel/gcc: remove unused patch (diff) | |
download | gentoo-52f4e8653f56ce713659dfe7880b5c272cc5a817.tar.gz gentoo-52f4e8653f56ce713659dfe7880b5c272cc5a817.tar.bz2 gentoo-52f4e8653f56ce713659dfe7880b5c272cc5a817.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 6 |
1 files 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 |