commit:     ab24188fb10cedfd69188118ee2f85a6c89211fa
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  7 21:41:25 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov  8 01:49:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab24188f

toolchain.eclass: filter -Walloc-size for < GCC 14

New in GCC 14.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 3 +++
 1 file changed, 3 insertions(+)

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)

Reply via email to