commit:     30a37b9022cdb0108ba04051eba37c0da9f60a50
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 30 02:25:37 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 30 02:26:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30a37b90

toolchain.eclass: filter -Warray-bounds if building D

Bug: https://gcc.gnu.org/PR116975
Closes: https://bugs.gentoo.org/940750
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 dd4130ef9b85..438ef6c2c66a 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1948,6 +1948,11 @@ gcc_do_filter_flags() {
                filter-flags -fdiagnostics-explain-harder
        fi
 
+       if is_d ; then
+               # bug #940750
+               filter-flags -Warray-bounds
+       fi
+
        # Please use USE=lto instead (bug #906007).
        filter-lto
 

Reply via email to