https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113989
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Feels like the old issue that the incoming stack in main() is not aligned as GCC it thinks it is? On x86_64-linux we dynamically re-align the stack: main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movl $1, %esi movq %rsp, %rbp .cfi_def_cfa_register 6 andq $-64, %rsp subq $64, %rsp movq %rsp, %rdi call _Z1fx does -mstackrealign make it work? I think there's some duplicate bugreports about mingw and stack alignment.