commit: 54e5dc5019e5506f386b80b35dca7ae439bed752 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue May 21 02:54:16 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue May 21 02:58:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54e5dc50
dev-util/mingw64-runtime: add workaround for gcc14 ICE w/ mingw Bug: https://bugs.gentoo.org/932319 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-util/mingw64-runtime/mingw64-runtime-11.0.1.ebuild | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/dev-util/mingw64-runtime/mingw64-runtime-11.0.1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-11.0.1.ebuild index 15f76259b1af..f2723d866456 100644 --- a/dev-util/mingw64-runtime/mingw64-runtime-11.0.1.ebuild +++ b/dev-util/mingw64-runtime/mingw64-runtime-11.0.1.ebuild @@ -65,11 +65,16 @@ src_configure() { # (primarily done for 23.0 profiles' -z, not full coverage) filter-flags '-Wl,-z,*' - # -mavx with mingw-gcc has a history of obscure issues and - # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg` - # crashes with -march=skylake >=wine-8.10, similar issues with - # znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273 - tc-is-gcc && append-flags -mno-avx + if tc-is-gcc; then + # -mavx with mingw-gcc has a history of obscure issues and + # disabling is seen as safer, e.g. `WINEARCH=win32 winecfg` + # crashes with -march=skylake >=wine-8.10, similar issues with + # znver4: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110273 + append-flags -mno-avx + + # gcc14 -fno-omit-frame-pointer ICE workaround (bug #932319) + append-flags -fomit-frame-pointer + fi strip-unsupported-flags