commit: 1f793c840c6e1854649b328bdb6b58f09b7bd77d
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 5 20:37:19 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 5 20:37:19 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f793c84
toolchain.eclass: drop flags not supported by GCC 9
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/toolchain.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 2bfa751b531d..fb8ebedd9de3 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2099,6 +2099,11 @@ gcc_do_filter_flags() {
# https://gcc.gnu.org/PR100431
filter-flags -Werror=format-security
+ if ver_test -lt 10.1 ; then
+ filter-flags '-fdiagnostics-urls=*'
+ filter-flags '-Wstringop-overread'
+ 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 \