From dfd0139069bb79941b882fe714d38b7fc8dcdb16 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 15 Apr 2025 08:45:29 +0100 Subject: gentoo auto-resync : 15:04:2025 - 08:45:29 --- eclass/Manifest.gz | Bin 40345 -> 40350 bytes eclass/toolchain.eclass | 15 ++++++--------- 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index d402575513ab..93d7b6da8b24 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index b6cc4df5364a..d96c4acabbe2 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2125,8 +2125,6 @@ gcc_do_filter_flags() { -fharden-control-flow-redundancy -fno-harden-control-flow-redundancy \ -fhardcfr-skip-leaf -fhardcfr-check-exceptions \ -fhardcfr-check-returning-calls '-fhardcfr-check-noreturn-calls=*' - - # New in GCC 14. filter-flags -Walloc-size fi @@ -2135,6 +2133,10 @@ gcc_do_filter_flags() { filter-flags -fdiagnostics-set-output=text:experimental-nesting=yes fi + # Ada: PR116226 + # D: PR117002 (bug #940750) + filter-flags -Warray-bounds + # Please use USE=lto instead (bug #906007). filter-lto @@ -2330,18 +2332,13 @@ gcc_do_make() { BOOT_LDFLAGS=${BOOT_LDFLAGS-"${abi_ldflags} ${LDFLAGS}"} LDFLAGS_FOR_TARGET="${LDFLAGS_FOR_TARGET:-${LDFLAGS}}" - if _tc_use_if_iuse d ; then + if _tc_use_if_iuse d && use hardened ; then # If we need to in future, we could really simplify this # to just be unconditional for stage1. It doesn't really # matter there. If we want to go in the other direction # and make this more conditional, we could check if # the bootstrap compiler is < GCC 12. See bug #940470. - if use hardened ; then - STAGE1_CXXFLAGS+=" -U_GLIBCXX_ASSERTIONS" - fi - - # This can be dropped a while after 2025-03-31 (bug #940750). - STAGE1_GDCFLAGS+=" -Wno-array-bounds" + STAGE1_CXXFLAGS+=" -U_GLIBCXX_ASSERTIONS" fi emakeargs+=( -- cgit v1.2.3