https://bugs.winehq.org/show_bug.cgi?id=24421
--- Comment #12 from Austin English austinenglish@gmail.com --- (In reply to comment #11)
Try to annotate only X11DRV_EnumDisplayMonitors() with optimize 'disable' hint:
http://source.winehq.org/git/wine.git/blob/ 0f03f264b772e8638d4f1311a2cbdfc515b7faa5:/dlls/winex11.drv/xinerama.c#l250
--- snip --- BOOL CDECL __attribute__((optimize("-O0"))) X11DRV_EnumDisplayMonitors( HDC hdc, LPRECT rect, MONITORENUMPROC proc, LPARAM lp ) --- snip ---
That works for me with wine-1.7.11-272-gc7a11f9 on Gentoo.