https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110939
Bug ID: 110939 Summary: 14.0 ICE at rtl.h:2297 while bootstrapping on loongarch64 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: panchenghui at loongson dot cn Target Milestone: --- since commit 7cdd0860949c6c3232e6cff1d7ca37bb5234074c, I get ICE at rtl.h:2297 when I try to bootstrap on loongarch64. I have seen the similar case in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110869 and try to build with the latest commits in master branch but the problem still exists. Configure: ../gcc/configure --prefix=/home/panchenghui/upstream-unmodded/build/install --disable-libsanitizer --disable-gcov --disable-multilib ICE output: during RTL pass: combine /home/panchenghui/upstream-unmodded/gcc/gcc/tree-cfgcleanup.cc: In function 'bool want_merge_blocks_p(basic_block, basic_block)': /home/panchenghui/upstream-unmodded/gcc/gcc/tree-cfgcleanup.cc:761:1: internal compiler error: in decompose, at rtl.h:2297 761 | } | ^ 0x1210c7997 wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*, unsigned int, std::pair<rtx_def*, machine_mode> const&) /home/panchenghui/upstream-unmodded/gcc/gcc/rtl.h:2297 0x1211478cb wide_int_ref_storage<false, true>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /home/panchenghui/upstream-unmodded/gcc/gcc/wide-int.h:1030 0x121146bab generic_wide_int<wide_int_ref_storage<false, true> >::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*, machine_mode> const&) /home/panchenghui/upstream-unmodded/gcc/gcc/wide-int.h:788 0x12177d13b simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) /home/panchenghui/upstream-unmodded/gcc/gcc/simplify-rtx.cc:2131 0x1217774e7 simplify_context::simplify_unary_operation(rtx_code, machine_mode, rtx_def*, machine_mode) /home/panchenghui/upstream-unmodded/gcc/gcc/simplify-rtx.cc:889 0x12177568f simplify_context::simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode) /home/panchenghui/upstream-unmodded/gcc/gcc/simplify-rtx.cc:360 0x120f6e79f simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode) /home/panchenghui/upstream-unmodded/gcc/gcc/rtl.h:3520 0x12227818b simplify_comparison /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:13129 0x1222607c7 combine_simplify_rtx /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:6176 0x12225e30f subst /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:5609 0x12225df23 subst /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:5536 0x12225df23 subst /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:5536 0x122256ac7 try_combine /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:3369 0x1222506fb combine_instructions /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:1357 0x12227da6b rest_of_handle_combine /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:15063 0x12227db83 execute /home/panchenghui/upstream-unmodded/gcc/gcc/combine.cc:15107