[Bug middle-end/103052] [9/10/11/12 Regression] Function call omitted at -O1 optimization level.

tor at ccxvii dot net gcc-bugzilla@gcc.gnu.org
Tue Nov 2 22:19:09 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103052

--- Comment #4 from Tor Andersson <tor at ccxvii dot net> ---
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 
SUCCESS: exit with exception as expected!


More information about the Gcc-bugs mailing list