https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103971
Bug ID: 103971 Summary: [12 regression] build fails after r12-6420, ICE at libgfortran/generated/matmul_i1.c:2450 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:d3ff7420e941931d32ce2e332e7968fe67ba20af, r12-6420 libtool: compile: /home/seurer/gcc/git/build/gcc-trunk/./gcc/xgcc -B/home/seurer/gcc/git/build/gcc-trunk/./gcc/ -B/home/seurer/gcc/git/install/gcc-trunk/powerpc64le-unknown-linux-gnu/bin/ -B/home/seurer/gcc/git/install/gcc-trunk/powerpc64le-unknown-linux-gnu/lib/ -isystem /home/seurer/gcc/git/install/gcc-trunk/powerpc64le-unknown-linux-gnu/include -isystem /home/seurer/gcc/git/install/gcc-trunk/powerpc64le-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/home/seurer/gcc/git/gcc-trunk/libgfortran -iquote/home/seurer/gcc/git/gcc-trunk/libgfortran/io -I/home/seurer/gcc/git/gcc-trunk/libgfortran/../gcc -I/home/seurer/gcc/git/gcc-trunk/libgfortran/../gcc/config -I/home/seurer/gcc/git/gcc-trunk/libgfortran/../libquadmath -I../.././gcc -I/home/seurer/gcc/git/gcc-trunk/libgfortran/../libgcc -I../libgcc -I/home/seurer/gcc/git/gcc-trunk/libgfortran/../libbacktrace -I../libbacktrace -I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules -ffunction-sections -fdata-sections -ffast-math -ftree-vectorize -funroll-loops --param max-unroll-times=4 -g -O2 -MT matmul_i1.lo -MD -MP -MF .deps/matmul_i1.Tpo -c /home/seurer/gcc/git/gcc-trunk/libgfortran/generated/matmul_i1.c -fPIC -DPIC -o .libs/matmul_i1.o during GIMPLE pass: vect /home/seurer/gcc/git/gcc-trunk/libgfortran/generated/matmul_i1.c: In function 'matmul_i1': /home/seurer/gcc/git/gcc-trunk/libgfortran/generated/matmul_i1.c:2450:1: internal compiler error: in operator[], at vec.h:889 2450 | matmul_i1 (gfc_array_i1 * const restrict retarray, | ^~~~~~~~~ 0x1022e357 vec<tree_node*, va_heap, vl_embed>::operator[](unsigned int) /home/seurer/gcc/git/gcc-trunk/gcc/vec.h:889 0x1022e357 vec<tree_node*, va_heap, vl_ptr>::operator[](unsigned int) /home/seurer/gcc/git/gcc-trunk/gcc/vec.h:1495 0x10fdf8d7 vec<machine_mode, va_heap, vl_ptr>::operator[](unsigned int) const /home/seurer/gcc/git/gcc-trunk/gcc/tree-vect-loop.c:2882 0x10fdf8d7 vect_analyze_loop_1 /home/seurer/gcc/git/gcc-trunk/gcc/tree-vect-loop.c:2826 0x10fe008b vect_analyze_loop(loop*, vec_info_shared*) /home/seurer/gcc/git/gcc-trunk/gcc/tree-vect-loop.c:3057 0x11023efb try_vectorize_loop_1 /home/seurer/gcc/git/gcc-trunk/gcc/tree-vectorizer.c:1047 0x11023efb try_vectorize_loop /home/seurer/gcc/git/gcc-trunk/gcc/tree-vectorizer.c:1162 0x11024b1b execute /home/seurer/gcc/git/gcc-trunk/gcc/tree-vectorizer.c:1278 commit d3ff7420e941931d32ce2e332e7968fe67ba20af (HEAD) Author: Andre Vieira <andre.simoesdiasvie...@arm.com> Date: Thu Dec 2 14:34:15 2021 +0000 [vect] Re-analyze all modes for epilogues