commit:     72d5ea56d41b7d5aac351854b7479f5c2c430c83
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 21 09:31:40 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 09:31:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72d5ea56

toolchain.eclass: filter -fdiagnostics-explain-harder

This is an experimental flag not yet merged upstream but filtering
it makes it easier to test with so it doesn't confuse older unpatched (locally)
GCCs.

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

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

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6bad1def19f4..dd4130ef9b85 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1944,6 +1944,10 @@ gcc_do_filter_flags() {
                filter-flags -Walloc-size
        fi
 
+       if ver_test -lt 15.1 ; then
+               filter-flags -fdiagnostics-explain-harder
+       fi
+
        # Please use USE=lto instead (bug #906007).
        filter-lto
 

Reply via email to