https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82628
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Adjusted testcase that just aborts if miscompiled rather than hangs (and doesn't print anything): __attribute__((noipa)) void foo (const char *x) { asm volatile ("" : "+g" (x) : : "memory"); if (x) __builtin_abort (); } int a, b = 1; int main () { while (1) { unsigned long long d = 18446744073709551615UL; while (1) { int e = b; while (d < 2) foo ("0"); if (a) d++; if (b) break; } break; } return 0; }