https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119664
--- Comment #2 from Mikael Pettersson <mikpelinux at gmail dot com> --- It's enough to compile with: -std=gnu89 -Os -fno-omit-frame-pointer. Using -O2 or dropping -fno-omit-frame-pointer hides the issue.