Hey all, I've been able to verify that MSYS2's build of GCC results in terrible codegen compared to the same version in Godbolt, and same with https://winlibs.com/ . I don't have an idea how to be of help, but it's fairly easy to reproduce. Any ideas how to report it, or what could be the issue with it?
WinLibs - MinGW-w64 personal build = GCC for Windows 32-bit and 64-bit - Coming soon: the largest collection of open source libraries ported to Windows using MinGW-w64 and MSYS2.