https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90139
Bug ID: 90139 Summary: ICE in emit_block_move_hints, at expr.c:1601 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: ebotcazou at gcc dot gnu.org Target Milestone: --- Target: sparc*-sun-solaris2.11 Created attachment 46194 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46194&action=edit reduced testcase The following reduced testcase ICEs on trunk: $ ./xg++ -B./ -S -m64 -O skcms.ii during RTL pass: expand skcms.ii: In function ‘void m()’: skcms.ii:7:6: internal compiler error: in emit_block_move_hints, at expr.c:1601 7 | void m() { | ^ 0x9a8f4f emit_block_move_hints(rtx_def*, rtx_def*, rtx_def*, block_op_methods, unsigned int, long long, unsigned long long, unsigned long long, unsigned long long) /vol/gcc/src/hg/trunk/local/gcc/expr.c:1601 0x9a9043 emit_block_move(rtx_def*, rtx_def*, rtx_def*, block_op_methods) /vol/gcc/src/hg/trunk/local/gcc/expr.c:1655 0xe8dd23 emit_partition_copy /vol/gcc/src/hg/trunk/local/gcc/tree-outof-ssa.c:226 0xe8dd23 insert_part_to_rtx_on_edge /vol/gcc/src/hg/trunk/local/gcc/tree-outof-ssa.c:391 0xe8dd23 elim_create /vol/gcc/src/hg/trunk/local/gcc/tree-outof-ssa.c:677 0xe8dd23 eliminate_phi /vol/gcc/src/hg/trunk/local/gcc/tree-outof-ssa.c:735 0xe8dd23 expand_phi_nodes(ssaexpand*) /vol/gcc/src/hg/trunk/local/gcc/tree-outof-ssa.c:988 0x84bd23 execute /vol/gcc/src/hg/trunk/local/gcc/cfgexpand.c:6486 While the original testcase shows the same ICE back to gcc 5, this one also ICEs on mainline.