https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114998
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|ICE on valid code at -O3 |[14/15 Regression] ICE on |with "-fno-inline |valid code at -O3 with |-fno-tree-dce -fno-ipa-cp" |"-fno-tree-dce" on |on x86_64-linux-gnu: |x86_64-linux-gnu: |Segmentation fault |Segmentation fault Last reconfirmed| |2024-05-09 Target Milestone|--- |14.2 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. here is a testcase with only `-O3 -fno-tree-dce` as this basically does what `-fno-inline` and `-fno-ipa-cp` cause: ``` short a, d; int b, c, f, g, h, i, j[2], o; __attribute__((const)) int s(char r); int main() { int l, m, k, n; if (b) { char p; for (; p >= 0; p--) { int e[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0}; if (j[p]) { int q[1]; i = o; o = q[h]; if (g) n = d; m = 4; for (; m; m--) { if (l) k |= c; if (a) break; } } s(n); f |= b; } } return 0; } ```