From ab24188fb10cedfd69188118ee2f85a6c89211fa Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 7 Nov 2023 21:41:25 +0000 Subject: toolchain.eclass: filter -Walloc-size for < GCC 14 New in GCC 14. Signed-off-by: Sam James --- eclass/toolchain.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass/toolchain.eclass') 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) -- cgit v1.2.3-65-gdbad