https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105763
Bug ID: 105763 Summary: ice in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 53048 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53048&action=edit C source code For the attached code, with compiler flag -O3, does this: during GIMPLE pass: unswitch rl2png.c: In function ‘rl2_decode_png’: rl2png.c:1292:1: internal compiler error: in outgoing_edge_range_p, at gimple-ra nge-gori.cc:1253 0xa17888 gori_compute::outgoing_edge_range_p(irange&, edge_def*, tree_node*, ran ge_query&) ../../trunk.git/gcc/gimple-range-gori.cc:1253 0x2da292b evaluate_control_stmt_using_entry_checks ../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:686 0x2da4e43 evaluate_bbs<evaluate_loop_insns_for_predicate(loop*, predicate_vector &, unswitch_predicate*, int, unsigned int*, unsigned int*)::<lambda(basic_block) > > ../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:830 0x2da97b6 evaluate_loop_insns_for_predicate ../../trunk.git/gcc/tree-ssa-loop-unswitch.cc:876 The problem first seems to occur sometime between git hash 442cf0977a299394 and 850a9ce8bcca59c7, a distance of some 32 commits. A reduction is running now and will be finishing in the next ten minutes.