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.

Reply via email to