diff options
author | Sam James <sam@gentoo.org> | 2024-10-30 02:25:37 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-30 02:26:29 +0000 |
commit | 30a37b9022cdb0108ba04051eba37c0da9f60a50 (patch) | |
tree | c786ad24195b06e3664fd5e3e6d2a6b2e0d701a7 /eclass | |
parent | x11-libs/pixman: Add patch to build with binutils-2.42 (diff) | |
download | gentoo-30a37b9022cdb0108ba04051eba37c0da9f60a50.tar.gz gentoo-30a37b9022cdb0108ba04051eba37c0da9f60a50.tar.bz2 gentoo-30a37b9022cdb0108ba04051eba37c0da9f60a50.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
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 |