https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116003
Bug ID: 116003 Summary: [15 Regression] ICE: in register_initial_def, at value-relation.cc:610 with -O2 -fnon-call-exceptions -fprofile-arcs -finstrument-functions -fno-tree-copy-prop and _BitInt() Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 58707 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58707&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fnon-call-exceptions -fprofile-arcs -finstrument-functions -fno-tree-copy-prop testcase.c during GIMPLE pass: bitintlower testcase.c: In function 'foo': testcase.c:7:1: internal compiler error: in register_initial_def, at value-relation.cc:610 7 | foo(_BitInt(128) b128) | ^~~ 0x2c30d40 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:491 0xe4ae0b fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1725 0x8b98e1 equiv_oracle::register_initial_def(tree_node*) /repo/gcc-trunk/gcc/value-relation.cc:610 0x198df22 equiv_oracle::record(basic_block_def*, relation_kind_t, tree_node*, tree_node*) /repo/gcc-trunk/gcc/value-relation.cc:647 0x29edc63 fold_using_range::range_of_phi(vrange&, gphi*, fur_source&) /repo/gcc-trunk/gcc/gimple-range-fold.cc:999 0x29f14c0 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&, tree_node*) /repo/gcc-trunk/gcc/gimple-range-fold.cc:670 0x29d7b49 gimple_ranger::fold_range_internal(vrange&, gimple*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:277 0x29d7b49 gimple_ranger::prefill_stmt_dependencies(tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:416 0x29d8a4a gimple_ranger::range_of_stmt(vrange&, gimple*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:334 0x29da58a gimple_ranger::range_of_expr(vrange&, tree_node*, gimple*) /repo/gcc-trunk/gcc/gimple-range.cc:142 0x29b150c range_to_prec /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:2180 0x29b681e handle_operand_addr /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:2383 0x29b6bfd lower_muldiv_stmt /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:3572 0x29ca40a gimple_lower_bitint /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:6930 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r15-2152-20240719085347-gcea6473e48b-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-2152-20240719085347-gcea6473e48b-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240719 (experimental) (GCC)