https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122419
Bug ID: 122419
Summary: [16 Regression] ice in vect_analyze_slp_reduc_chain
again
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: needs-bisection, needs-reduction
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 62630
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62630&action=edit
C source code
For the attached C code, recent gcc does this:
foundBugs $ ../results/bin/gcc -c -w -O1 bug1131.c
foundBugs $ ../results/bin/gcc -c -w -O1 -ftree-loop-vectorize bug1131.c
during GIMPLE pass: vect
runData/keep/in.17597.c: In function ‘main’:
runData/keep/in.17597.c:1045:5: internal compiler error: Segmentation fault
0x1f8ffa7 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xc6bc29 ???
/home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:323
0xfd1037 operator[]
../../trunk/gcc/vec.h:911
0xfd1037 operator[]
../../trunk/gcc/vec.h:1610
0xfd1037 vect_analyze_slp_reduc_chain
/home/dcb42/gcc/working/gcc/../../trunk/gcc/tree-vect-slp.cc:4237
foundBugs $ ../results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=../results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20251024.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20251024.asan.ubsan --disable-multilib
--disable-bootstrap --with-build-config='bootstrap-asan bootstrap-ubsan'
--with-pkgversion=b1c2006077085a12 --with-isl
--enable-checking=df,extra,fold,rtl,yes --disable-doc
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251024 (experimental) (b1c2006077085a12)
foundBugs $
This bug first seems to appear sometime between g:6c01778628d93c51
and g:b1c2006077085a12.