diff options
author | Sam James <sam@gentoo.org> | 2023-11-07 21:41:25 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-11-08 01:49:42 +0000 |
commit | ab24188fb10cedfd69188118ee2f85a6c89211fa (patch) | |
tree | 2cf8cc7b522e471b66afdffee555b216ce9ca91a /eclass/toolchain.eclass | |
parent | app-admin/ansible: add 8.5.0, 8.6.0 (diff) | |
download | gentoo-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.eclass | 3 |
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) |