https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111822
Bug ID: 111822 Summary: [12/13/14 Regression] during RTL pass: lr_shrinkage ICE: in operator[], at vec.h:910 with -O2 -m32 -flive-range-shrinkage -fno-dce -fnon-call-exceptions Product: gcc Version: 14.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 Target: x86_64-pc-linux-gnu Created attachment 56115 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56115&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -m32 -flive-range-shrinkage -fno-dce -fnon-call-exceptions testcase.C during RTL pass: lr_shrinkage testcase.C: In member function 'void SQVM::CallNative()': testcase.C:41:1: internal compiler error: in operator[], at vec.h:910 41 | } | ^ 0x7f615a vec<edge_def*, va_gc, vl_embed>::operator[](unsigned int) /repo/gcc-trunk/gcc/vec.h:910 0x7f63db vec<basic_block_def*, va_gc, vl_embed>::operator[](unsigned int) /repo/gcc-trunk/gcc/vec.h:936 0x7f63db pre_and_rev_post_order_compute_fn(function*, int*, int*, bool) /repo/gcc-trunk/gcc/cfganal.cc:1066 0x123b947 pre_and_rev_post_order_compute(int*, int*, bool) /repo/gcc-trunk/gcc/cfganal.cc:1079 0x1203292 init_alias_analysis() /repo/gcc-trunk/gcc/alias.cc:3429 0x285e960 sched_init() /repo/gcc-trunk/gcc/haifa-sched.cc:7331 0x286030d haifa_sched_init() /repo/gcc-trunk/gcc/haifa-sched.cc:7368 0x174ff5c schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.cc:3524 0x175063b schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.cc:3518 0x175063b rest_of_handle_live_range_shrinkage /repo/gcc-trunk/gcc/sched-rgn.cc:3720 0x175063b execute /repo/gcc-trunk/gcc/sched-rgn.cc:3807 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-r14-4642-20231015125226-g77faa3e198a-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.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 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-4642-20231015125226-g77faa3e198a-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231015 (experimental) (GCC)