https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89489
Bug ID: 89489 Summary: [9 Regression] ICE in gimple_duplicate_bb, at tree-cfg.c:6257 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- gfortran-9.0.0-alpha20190224 snapshot (r269177) ICEs when compiling gcc/testsuite/gfortran.dg/inline_sum_5.f90 w/ -O1 -floop-parallelize-all -ftree-parallelize-loops=2: % powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190224 -O1 -floop-parallelize-all -ftree-parallelize-loops=2 -c gcc/testsuite/gfortran.dg/inline_sum_5.f90 during GIMPLE pass: cunroll f951: internal compiler error: in gimple_duplicate_bb, at tree-cfg.c:6257 0x64d066 gimple_duplicate_bb /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-cfg.c:6257 0x94d81e duplicate_block(basic_block_def*, edge_def*, basic_block_def*, copy_bb_data*) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/cfghooks.c:1085 0x94ee42 copy_bbs(basic_block_def**, unsigned int, basic_block_def**, edge_def**, unsigned int, edge_def**, loop*, basic_block_def*, bool) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/cfghooks.c:1353 0x95bebc duplicate_loop_to_header_edge(loop*, edge_def*, unsigned int, simple_bitmap_def*, edge_def*, vec<edge_def*, va_heap, vl_ptr>*, int) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/cfgloopmanip.c:1296 0xf00818 gimple_duplicate_loop_to_header_edge(loop*, edge_def*, unsigned int, simple_bitmap_def*, edge_def*, vec<edge_def*, va_heap, vl_ptr>*, int) /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-manip.c:921 0xee4df0 try_unroll_loop_completely /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:907 0xee4df0 canonicalize_loop_induction_variables /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1250 0xee6fc0 tree_unroll_loops_completely_1 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1391 0xee6f2a tree_unroll_loops_completely_1 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1344 0xee6f2a tree_unroll_loops_completely_1 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1344 0xee7223 tree_unroll_loops_completely /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1437 0xee761c execute /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190224/work/gcc-9-20190224/gcc/tree-ssa-loop-ivcanon.c:1597 (While my target here is powerpc, the ICE is not target-specific.)