https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71751
Bug ID: 71751 Summary: [7 Regression] Segmentation fault in ssa_default_def Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org Target Milestone: --- The testcase below ICEs for me on aarch64-none-linux-gnu: int a, c; int b[1]; void fn1 () { for (;;) for (; a; a--) { short d = c = 0; for (; c <= 1; c++) b[c] = ++d; if (d) continue; return; } } with -Ofast -floop-interchange. This is likely a graphite bug. The backtrace is: report.c: In function ‘fn1’: report.c:4:1: internal compiler error: Segmentation fault fn1 () ^~~ 0xb0ce1f crash_signal $SRC/gcc/toplev.c:335 0xb5ed57 ssa_default_def(function*, tree_node*) $SRC/gcc/tree-dfa.c:305 0xb614e0 get_or_create_ssa_default_def(function*, tree_node*) $SRC/gcc/tree-dfa.c:357 0xb9d34e rewrite_update_phi_arguments $SRC/gcc/tree-into-ssa.c:2025 0xb9d34e rewrite_update_dom_walker::before_dom_children(basic_block_def*) $SRC/gcc/tree-into-ssa.c:2145 0x1056ee7 dom_walker::walk(basic_block_def*) $SRC/gcc/domwalk.c:265 0xb96b99 rewrite_blocks $SRC/gcc/tree-into-ssa.c:2202 0xb9ed24 update_ssa(unsigned int) $SRC/gcc/tree-into-ssa.c:3364 0x1083307 graphite_regenerate_ast_isl(scop*) $SRC/gcc/graphite-isl-ast-to-gimple.c:3202 0x107a12e graphite_transform_loops() $SRC/gcc/graphite.c:329 0x107a6c0 graphite_transforms $SRC/gcc/graphite.c:356 0x107a6c0 execute $SRC/gcc/graphite.c:433 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.