[Bug c++/125920] option -flto=auto breaks the program behaviour
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 22 07:54:21 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125920
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
-fwhole-program should be enough to trigger the issue. Note the testcase is
just exposing
asm volatile("" ::"m"(total) : "memory");
adding a
if (total == 0)
__builtin_abort ();
aborts all the time, even with -O -fwhole-program but not with -O0.
More information about the Gcc-bugs
mailing list