dev-libs/icu: workaround GCC 16 bug

GCC 16 performs more aggressive speculative devirtualisation. It's not
clear yet if this is actually an ICU bug or not, but workaround it for
now.

Bug: https://gcc.gnu.org/PR122058
Bug: https://bugs.gentoo.org/963337
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-10-30 11:39:19 +00:00
parent 4aed04fafb
commit 6534bf4d1b
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -7,7 +7,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/icu.asc
inherit autotools multilib-minimal python-any-r1 toolchain-funcs verify-sig
inherit autotools flag-o-matic multilib-minimal python-any-r1 toolchain-funcs verify-sig
MY_PV=${PV/_rc/-rc}
MY_PV=${MY_PV//./_}
@ -98,6 +98,9 @@ src_configure() {
popd >/dev/null || die
fi
# Workaround for bug #963337 (gcc PR122058)
tc-is-gcc && [[ $(gcc-major-version) -eq 16 ]] && append-cxxflags -fno-devirtualize-speculatively
multilib-minimal_src_configure
}