https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106463
--- Comment #2 from Gordon Lack <gordon.lack at dsl dot pipex.com> --- Compilation options: gcc -O3 test.c -o test (or -O1) For gcc 4.4.7 it also needs -std=c99. And I'll also note that the gcc10.2.1 was on an armv7l system, while the 7.4.0 was on an arm64 one. It's also the same on 7.20 on a mips system.