https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117176
Bug ID: 117176 Summary: [15 regression] ICE when building netpbm-11.8.0 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 59362 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59362&action=edit pnmpsnr.i.xz ``` $ gcc -c ./pnmpsnr.i -O2 -march=znver2 during GIMPLE pass: vect pnmpsnr.c: In function ‘main’: pnmpsnr.c:576:1: internal compiler error: in operator[], at vec.h:910 576 | main (int argc, const char **argv) { | ^~~~ 0x5f7e773cecfd internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x5f7e773ac190 fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1535 0x5f7e763e00e0 vec<_slp_tree*, va_heap, vl_embed>::operator[](unsigned int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/vec.h:910 0x5f7e763e00e0 vec<_slp_tree*, va_heap, vl_ptr>::operator[](unsigned int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/vec.h:1599 0x5f7e763e00e0 vect_is_simple_use(vec_info*, _stmt_vec_info*, _slp_tree*, unsigned int, tree_node**, _slp_tree**, vect_def_type*, tree_node**, _stmt_vec_info**) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-stmts.cc:14216 0x5f7e77eafeda vectorizable_comparison_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-stmts.cc:12809 0x5f7e77c47d1a vectorizable_early_exit(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, gimple**, _slp_tree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-stmts.cc:13142 0x5f7e77c47d1a vectorizable_early_exit(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, gimple**, _slp_tree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-stmts.cc:13021 0x5f7e77b4fa2d vect_slp_analyze_operations(vec_info*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-slp.cc:8158 0x5f7e77edbea5 vect_analyze_loop_2 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-loop.cc:2976 0x5f7e77eda8d6 vect_analyze_loop_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-loop.cc:3454 0x5f7e77c1063a vect_analyze_loop(loop*, gimple*, vec_info_shared*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vect-loop.cc:3614 0x5f7e77ed965d try_vectorize_loop_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vectorizer.cc:1072 0x5f7e77ed965d try_vectorize_loop /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vectorizer.cc:1189 0x5f7e77c0e185 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree-vectorizer.cc:1305 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit b4a852b00ffc7c9436d15867d602c28837c97758' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241014 (experimental) e7380688fa5917011c3fb85b5e06fb00f776a95d (Gentoo Hardened 15.0.9999 p, commit b4a852b00ffc7c9436d15867d602c28837c97758) ```