From 30a37b9022cdb0108ba04051eba37c0da9f60a50 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 30 Oct 2024 02:25:37 +0000 Subject: 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 --- eclass/toolchain.eclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad