https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105700
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- It's only a guess but since GCC 12 we enable vectorization by default and with wine and 32bit apps the stack might not be always aligned properly. So I'd try to use -fno-tree-vectorize as additional flag. pentium-m has SSE3 it seems so it might enable extra vectorization ontop of x86_64 -m32 (it depends how you configure GCC what the arch default is for that)