summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-11-07 21:41:25 +0000
committerSam James <sam@gentoo.org>2023-11-08 01:49:42 +0000
commitab24188fb10cedfd69188118ee2f85a6c89211fa (patch)
tree2cf8cc7b522e471b66afdffee555b216ce9ca91a /eclass/toolchain.eclass
parentapp-admin/ansible: add 8.5.0, 8.6.0 (diff)
downloadgentoo-ab24188fb10cedfd69188118ee2f85a6c89211fa.tar.gz
gentoo-ab24188fb10cedfd69188118ee2f85a6c89211fa.tar.bz2
gentoo-ab24188fb10cedfd69188118ee2f85a6c89211fa.zip
toolchain.eclass: filter -Walloc-size for < GCC 14
New in GCC 14. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index bf5e5127036f..ac8b90c8c58a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1542,6 +1542,9 @@ 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=*'
+
+ # New in GCC 14.
+ filter-flags -Walloc-size
else
# Makes things painfully slow and no real benefit for the compiler.
append-flags $(test-flags-CC -fno-harden-control-flow-redundancy)