From 12795ed0561fe52503d6aa3a1c60888553a03bd2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Oct 2023 20:41:49 +0100 Subject: gentoo auto-resync : 26:10:2023 - 20:41:49 --- eclass/Manifest.gz | Bin 39114 -> 39112 bytes eclass/toolchain.eclass | 12 ++++++++++++ 2 files changed, 12 insertions(+) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index b957ec8b6121..ca8e5635ab71 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ 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 -- cgit v1.2.3