https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117895
Bug ID: 117895 Summary: [15 regression] ICE in operand_subword_force Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: ebotcazou at gcc dot gnu.org, law at gcc dot gnu.org Target Milestone: --- Target: sparc-sun-solaris2.11 Between 20241129 (f93059c82e61d67bc550ba0e3bf915ab763b02c7) and 20241202 (a3e5fbcd055596e1496854326ffd17572e3ae42d), Solaris/SPARC bootstrap broke building libgo: libtool: compile: /var/gcc/regression/master/11.4-gcc/build/./gcc/gccgo -B/var/gcc/regression/master/11.4-gcc/build/./gcc/ -B/vol/gcc/sparc-sun-solaris2.11/bin/ -B/vol/gcc/sparc-sun-solaris2.11/lib/ -isystem /vol/gcc/sparc-sun-solaris2.11/include -isystem /vol/gcc/sparc-sun-solaris2.11/sys-include -fchecking=1 -g -O2 -I . -c -fgo-pkgpath=hash/crc64 /vol/gcc/src/hg/master/local/libgo/go/hash/crc64/crc64.go -o hash/crc64.o >/dev/null 2>&1 make: *** [Makefile:3055: hash/crc64.lo] Error 1 during RTL pass: expand /vol/gcc/src/hg/master/local/libgo/go/hash/crc64/crc64.go: In function ‘hash/crc64.buildSlicing8Tables’: /vol/gcc/src/hg/master/local/libgo/go/hash/crc64/crc64.go:41:1: internal compiler error: in operand_subword_force, at emit-rtl.cc:1824 41 | func buildSlicing8Tables() { | ^ 0x208a257 internal_error(char const*, ...) /vol/gcc/src/hg/master/local/gcc/diagnostic-global-context.cc:517 0x20769b3 fancy_abort(char const*, int, char const*) /vol/gcc/src/hg/master/local/gcc/diagnostic.cc:1696 0xac9687 operand_subword_force(rtx_def*, poly_int<1u, unsigned long long>, machine_mode) /vol/gcc/src/hg/master/local/gcc/emit-rtl.cc:1824 0xe8e883 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*, int, optab_methods) /vol/gcc/src/hg/master/local/gcc/optabs.cc:1751 0xaf1927 expand_and(machine_mode, rtx_def*, rtx_def*, rtx_def*) /vol/gcc/src/hg/master/local/gcc/expmed.cc:5521 0xb2ee5f calculate_table_based_CRC(rtx_def**, rtx_def* const&, rtx_def* const&, machine_mode, machine_mode) /vol/gcc/src/hg/master/local/gcc/expr.cc:14343 0xb2f0f7 expand_reversed_crc_table_based(rtx_def*, rtx_def*, rtx_def*, rtx_def*, machine_mode, void (*)(rtx_def**)) /vol/gcc/src/hg/master/local/gcc/expr.cc:14549 0xca121f expand_crc_optab_fn /vol/gcc/src/hg/master/local/gcc/internal-fn.cc:4116 0xca4703 expand_internal_call(internal_fn, gcall*) /vol/gcc/src/hg/master/local/gcc/internal-fn.cc:5312 0xca4703 expand_internal_call(gcall*) /vol/gcc/src/hg/master/local/gcc/internal-fn.cc:5320 0x99cfcb expand_call_stmt /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:2807 0x99cfcb expand_gimple_stmt_1 /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:3974 0x99cfcb expand_gimple_stmt /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:4121 0x99e61f expand_gimple_basic_block /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:6177 0x9a0b43 execute /vol/gcc/src/hg/master/local/gcc/cfgexpand.cc:6916 A reghunt identified commit 4d2b9202fe94c54e63fb07d48293a78da3d82532 Author: Mariam Arutunian <mariamarutun...@gmail.com> Date: Mon Nov 11 13:01:19 2024 -0700 [PATCH v7 11/12] Replace the original CRC loops with a faster CRC calculation as the culprit.