diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-26 20:41:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-26 20:41:49 +0100 |
commit | 12795ed0561fe52503d6aa3a1c60888553a03bd2 (patch) | |
tree | bebc6554f117bd11f5e1c3503ed66966afcb5f3f /eclass/toolchain.eclass | |
parent | 7e8f2c69a019131eaeb989242d022260ea5a84ff (diff) |
gentoo auto-resync : 26:10:2023 - 20:41:49
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 8df8b506b0b1..4fd884f5f0bc 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1535,6 +1535,18 @@ gcc_do_filter_flags() { fi fi + + if ver_test -lt 13.6 ; then + # These aren't supported by the just-built compiler either. + filter-flags -fharden-compares -fharden-conditional-branches \ + -fharden-control-flow-redundancy -fhardcfr-skip-leaf \ + -fhardcfr-check-exceptions -fhardcfr-check-returning-calls \ + '-fhardcfr-check-noreturn-calls=*' + 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 |