https://bugs.winehq.org/show_bug.cgi?id=42406
--- Comment #6 from Viktor Yu. Kovalskii vityokster@gmail.com --- (In reply to winetest from comment #5)
(In reply to NP-Hardass from comment #4)
(In reply to Alexandre Julliard from comment #3)
You should probably file a bug with Gentoo then.
I am the Gentoo maintainer for Wine.
I reproduced the bug on both Gentoo (GCC-5.4.0) and Ubuntu (GCC-5.4.1), so it looks more likely that it is a GCC-5.4 issue than a Gentoo one.
From the Gentoo bug: compiling with CFLAGS="-march=i686 -O2" causes the hang, but CFLAGS="-march=i686 -mtune=generic -O2" succeeds.
So could someone open a compiler bug then? Keeping bugs alive with no efforts fixing upsream helps none.
Upstream (GCC) bug was reported:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78911