From fbbf0ee3d56a6fd27adf182c6907dc745623aeaa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Aug 2024 11:05:14 +0100 Subject: gentoo auto-resync : 10:08:2024 - 11:05:14 --- eclass/toolchain.eclass | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'eclass/toolchain.eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 89af435dfbf6..2acade8e4ca8 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1926,23 +1926,25 @@ toolchain_src_test() { ( # Unexpected warnings confuse the tests. filter-flags -W* - # May break parsing. filter-flags '-fdiagnostics-color=*' '-fdiagnostics-urls=*' - # Gentoo QA flags which don't belong in tests filter-flags -frecord-gcc-switches filter-flags '-Wl,--defsym=__gentoo_check_ldflags__=0' + # Go doesn't support this and causes noisy warnings + filter-flags -Wbuiltin-declaration-mismatch + # The ASAN tests at least need LD_PRELOAD and the contract + # tests. + filter-flags -fno-semantic-interposition # Workaround our -Wformat-security default which breaks # various tests as it adds unexpected warning output. - # (Only for C/C++ here to avoid noise for Fortran.) - append-cflags -Wno-format-security -Wno-format - append-cxxflags -Wno-format-security -Wno-format + append-flags -Wno-format-security -Wno-format # Workaround our -Wtrampolines default which breaks # tests too. append-flags -Wno-trampolines - + # A handful of Ada (and objc++?) tests need an executable stack + append-ldflags -Wl,--no-warn-execstack # Avoid confusing tests like Fortran/C interop ones where # CFLAGS are used. append-flags -Wno-complain-wrong-lang @@ -1957,11 +1959,6 @@ toolchain_src_test() { # TODO: This isn't ideal given it obv. affects codegen # and we want to be sure it works. append-flags -fno-stack-clash-protection - # A handful of Ada (and objc++?) tests need an executable stack - append-ldflags -Wl,--no-warn-execstack - - # Go doesn't support this and causes noisy warnings - filter-flags -Wbuiltin-declaration-mismatch # configure defaults to '-O2 -g' and some tests expect it # accordingly. -- cgit v1.2.3