https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107833
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- printf isn't needed, -O2: int a, b[1] = { 0 }, c, *d = b, e, *f, g; __attribute__((noipa)) int foo (const char *x) { (void) x; return 0; } int main () { for (int h = 0; a < 2; a++) { int i; for (g = 0; g < 2; g++) if (a < h) { e = i % 2; c = *f; } for (h = 0; h < 3; h++) { if (d) break; i--; foo ("0"); } } return 0; } is miscompiled as well.