https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120407
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Daniel Starke from comment #0) > Compiling the following C++ code for mingw-w64 using `-O2 -s -static` > creates a 896 KiB executable instead of 119 KiB since git commit > releases/gcc-12.2.0-633-g00ac6fa3f2a. That should be r12-g00ac6fa3f2a (as Andrew linked to). That was backported from r13-6915-gbf78b43873b0b7