https://bugs.winehq.org/show_bug.cgi?id=38780
--- Comment #23 from Martin Storsjö martin@martin.st --- Created attachment 64286 --> https://bugs.winehq.org/attachment.cgi?id=64286 Patchset for practically working around the issue
As a full compiler based workaround isn't available yet (and isn't entirely trivial, and in addition to implementing it, could be controversial to be accepted upstream - it has been discussed upstream in llvm at http://lists.llvm.org/pipermail/llvm-dev/2019-April/131978.html), I'd suggest adding the attached patchset to Wine Staging at least.
Both patches have been sent to the list before, but haven't been picked up back then.
The first patch is correct and shouldn't have any drawbacks, and is a partial solution (but probably wasn't picked up as it isn't a full solution). The second patch is less clean but an effective workaround for what remains to be fixed after the first patch. (The third patch is just regenerating configure.)