https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106707
Bug ID: 106707 Summary: [13 Regression] ICE: in cselib_record_set, at cselib.cc:2687 with -Oz -g -fno-cprop-registers -fno-dce Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 53487 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53487&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Oz -g -fno-cprop-registers -fno-dce testcase.c during RTL pass: vartrack testcase.c: In function 'foo': testcase.c:15:1: internal compiler error: in cselib_record_set, at cselib.cc:2687 15 | } | ^ 0x6b5068 cselib_record_set /repo/gcc-trunk/gcc/cselib.cc:2687 0xef574c cselib_record_set /repo/gcc-trunk/gcc/cselib.cc:3011 0xef574c cselib_record_sets /repo/gcc-trunk/gcc/cselib.cc:3016 0xef7a86 cselib_process_insn(rtx_insn*) /repo/gcc-trunk/gcc/cselib.cc:3139 0x16ebde0 vt_initialize /repo/gcc-trunk/gcc/var-tracking.cc:10284 0x16f1c23 variable_tracking_main_1 /repo/gcc-trunk/gcc/var-tracking.cc:10512 0x16f1ddb variable_tracking_main() /repo/gcc-trunk/gcc/var-tracking.cc:10565 0x16f1ddb execute /repo/gcc-trunk/gcc/var-tracking.cc:10602 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-r13-2130-20220821001633-gd6a39c25c05-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.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 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r13-2130-20220821001633-gd6a39c25c05-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.0 20220821 (experimental) (GCC)