https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116898
Bug ID: 116898 Summary: ICE: in block_range, at gimple-range-cache.cc:1293 with -O -finstrument-functions -fnon-call-exceptions and _BitInt() Product: gcc Version: 15.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 59226 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59226&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -finstrument-functions -fnon-call-exceptions testcase.c testcase.c: In function 'foo': testcase.c:11:5: warning: division by zero [-Wdiv-by-zero] 11 | a /= 0; | ^~ during GIMPLE pass: bitintlower testcase.c:5:1: internal compiler error: in block_range, at gimple-range-cache.cc:1293 5 | foo (_BitInt(31) c) | ^~~ 0x2c3b8fe internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xe7d74f fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1540 0xe39b90 ranger_cache::block_range(vrange&, basic_block_def*, tree_node*, bool) /repo/gcc-trunk/gcc/gimple-range-cache.cc:1293 0x29f47a3 gimple_ranger::range_on_entry(vrange&, basic_block_def*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:174 0x29f786f gimple_ranger::range_of_expr(vrange&, tree_node*, gimple*) /repo/gcc-trunk/gcc/gimple-range.cc:146 0x2a0c841 fold_using_range::range_of_range_op(vrange&, gimple_range_op_handler&, fur_source&) /repo/gcc-trunk/gcc/gimple-range-fold.cc:737 0x2a0e502 fold_using_range::fold_stmt(vrange&, gimple*, fur_source&, tree_node*) /repo/gcc-trunk/gcc/gimple-range-fold.cc:668 0x29f52e1 gimple_ranger::fold_range_internal(vrange&, gimple*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:277 0x29f52e1 gimple_ranger::prefill_stmt_dependencies(tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:416 0x29f615a gimple_ranger::range_of_stmt(vrange&, gimple*, tree_node*) /repo/gcc-trunk/gcc/gimple-range.cc:334 0x29f7bb8 gimple_ranger::range_of_expr(vrange&, tree_node*, gimple*) /repo/gcc-trunk/gcc/gimple-range.cc:142 0x29cf8b1 range_to_prec /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:2180 0x29d3f0b handle_operand_addr /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:2225 0x29d4c6f lower_muldiv_stmt /repo/gcc-trunk/gcc/gimple-lower-bitint.cc:3572 0x29e96a1 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-3941-20240928092031-g2531f014fb2-checking-yes-rtl-df-extra-nobootstrap-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 --disable-bootstrap --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-3941-20240928092031-g2531f014fb2-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240928 (experimental) (GCC)