https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58372
--- Comment #32 from Terry Guo <xuepeng.guo at intel dot com> --- (In reply to David Grayson from comment #27) > Thanks to everyone who is working on this. I can confirm that the patch in > comment #20 by Uroš Bizjak applies cleanly to GCC 7.3.0, and I successfully > used the resulting toolchain targeting i686-w64-mingw32 to build Qt and > several Qt GUI examples, all of which run correctly. > > Just in case it helps you find more bugs: I noticed there are several other > places in the code (of gcc-8-20181019) where ctrl->preferred_stack_boundary > gets updated without any obvious update of ctrl->stack_alignment_needed: > > gcc/explow.c:1247 in get_dynamic_stack_size > gcc/explow.c:1595 in get_dynamic_stack_base > gcc/calls.c:3811 in expand_call > gcc/config/i386/i386.c:12593 in ix86_update_stack_boundary Hello David, Do you have instructions about how to build toolchain targeting i686-w64-mingw32? I searched around and just found: https://sourceforge.net/p/mingw-w64/code/HEAD/tree/trunk/mingw-w64-doc/howto-build/mingw-w64-howto-build.txt