https://bugs.winehq.org/show_bug.cgi?id=49828
--- Comment #6 from Martin Storsjö martin@martin.st --- Hmm, I'm trying to read up on what's going on here... So if I've read correctly:
- One might consider whether the MSVC-mode specific quirk in LLVM's codegen for x86_32 (https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/X86/X86MCInst...) should be enabled for mingw mode too? How does GCC behave with respect to to this quirk (and how does GCC built Wine behave with regards to this bug?)
- Prefer MSVC mode over mingw mode, when both modes are available for Wine to use. Overall this could work (and I could see why it could be preferred, as that's a more pristine toolchain/environment for Wine to use). But specifically for arm32 mode, one can't build Wine with Clang in MSVC mode, because Wine doesn't provide the compiler_rt builtins that are needed there (it's around a dozen of functions needed; integer divisions, conversions between 64 bit integers and float/double). But with an exception for 32 bit arm, I'd be fine with such a preference change.