https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052
--- Comment #4 from Tor Andersson ---
I can make it succeed with -O1 if I add the -fipa-pure-const flag, if that can
help tracking down.
$ gcc -O1 xxx.c && ./a.out
FAIL: should NOT get here :(
$ gcc -O1 -fno-ipa-pure-const xxx.c && ./a.out
S
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052
--- Comment #2 from Tor Andersson ---
Same problem with gcc-11.
$ gcc-11 -O1 xxx.c && ./a.out
FAIL: should NOT get here :(
$ gcc-11 -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-11
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052
Bug ID: 103052
Summary: Function call omitted at -O1 optimization level.
Product: gcc
Version: 10.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen