https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126067
Bug ID: 126067
Summary: [17 regression] Bootstrap fails with ICE in
vect_set_loop_condition_normal
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: build, ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
```
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/build/./gcc/xgcc
-B/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/build/./gcc/
-B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
/usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include
-fno-checking -g -O2 -O3 -march=native -fno-semantic-interposition -ggdb3
-pipe -fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never
-fdiagnostics-show-context=3 -Wa,-O2 -Wa,-mtune=znver2
--param=ggc-min-expand=120 -Wstrict-aliasing -Wfree-nonheap-object
-Wuninitialized -Wmaybe-uninitialized -Wreturn-type
-Wbuiltin-declaration-mismatch -Wtautological-compare -Werror=lto-type-mismatch
-Werror=strict-aliasing -Werror=odr -Wstringop-overread -Wstringop-overflow
-Wstringop-truncation -Wformat-overflow -Wformat-truncation -Wrestrict -ggdb3
-Wno-error=lto-type-mismatch -Wno-error=odr -O2 -g -O2 -O3 -march=native
-fno-semantic-interposition -ggdb3 -pipe -fcf-protection=none
-fdiagnostics-color=always -fdiagnostics-urls=never
-fdiagnostics-show-context=3 -Wa,-O2 -Wa,-mtune=znver2
--param=ggc-min-expand=120 -Wstrict-aliasing -Wfree-nonheap-object
-Wuninitialized -Wmaybe-uninitialized -Wreturn-type
-Wbuiltin-declaration-mismatch -Wtautological-compare -Werror=lto-type-mismatch
-Werror=strict-aliasing -Werror=odr -Wstringop-overread -Wstringop-overflow
-Wstringop-truncation -Wformat-overflow -Wformat-truncation -Wrestrict -ggdb3
-Wno-error=lto-type-mismatch -Wno-error=odr -DIN_GCC -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include -fPIC -
mlong-double-80 -DUSE_ELF_SYMVER -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -fno-stack-clash-protection -fPIC -mlong-double-80
-DUSE_ELF_SYMVER -I. -I. -I../.././gcc
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/.
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/../gcc
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/../include
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/config/i386
-I/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _gcov_info_to_gcda.o
-MT _gcov_info_to_gcda.o -MD -MP -MF_gcov_info_to_gcda.dep
-DL_gcov_info_to_gcda -c
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/libgcov-driver.c
during GIMPLE pass: vect
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/libgcov-driver.c:
In function ‘__gcov_info_to_gcda’:
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/libgcc/libgcov-driver.c:792:1:
internal compiler error: Segmentation fault
792 | __gcov_info_to_gcda (const struct gcov_info *gi_ptr,
| ^~~~~~~~~~~~~~~~~~~
0x55d8df09aed8 internal_error(char const*, ...)
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/diagnostic-global-context.cc:787
0x55d8dd4e6a66 crash_signal
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/toplev.cc:325
0x55d8dd8fd416 vect_set_loop_condition_normal
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vect-loop-manip.cc:1355
0x55d8dd8fd416 vect_set_loop_condition(loop*, edge_def*, _loop_vec_info*,
tree_node*, tree_node*, tree_node*, bool)
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vect-loop-manip.cc:1465
0x55d8dd9092f4 vect_do_peeling(_loop_vec_info*, tree_node*, tree_node*,
tree_node**, tree_node**, tree_node**, int, bool, bool, tree_node**)
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vect-loop-manip.cc:3602
0x55d8dd8daac8 vect_transform_loop(_loop_vec_info*, gimple*)
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vect-loop.cc:11241
0x55d8dd95e5d7 vect_transform_loops
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vectorizer.cc:1039
0x55d8dd95ed87 try_vectorize_loop_1
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vectorizer.cc:1188
0x55d8dd95ed87 try_vectorize_loop
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vectorizer.cc:1218
0x55d8dd95f3f4 execute
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.0.9999/gcc/tree-vectorizer.cc:1335
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.
make[3]: *** [Makefile:947: _gcov_info_to_gcda.o] Error 1
make[3]: Leaving directory
'/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** Waiting for unfinished jobs....
```
```
# /var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/build/./gcc/xgcc
-v
Using built-in specs.
COLLECT_GCC=/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/build/./gcc/xgcc
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage.notmp/portage/sys-devel/gcc-17.0.9999/work/gcc-17.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/17
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/17/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/17/include/g++-v17
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/17/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,algol68,m2,jit
--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 17.0.9999 p, commit
03c4df9126fe6f8d6b5cdd49e7116310773e87a7' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch
--enable-linker-build-id --enable-libada --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --with-tls=gnu2 --enable-multilib
--with-multilib-list=m32,mx32,m64 --disable-fixed-point --with-abi=m64
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--disable-cet --enable-systemtap --enable-valgrind-annotations
--enable-valgrind-interop --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-gxx-libcxx-include-dir=/usr/include/c++/v1 --enable-host-shared
--enable-libgdiagnostics --with-build-config='bootstrap-O3 bootstrap-lto-lean'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260701 (experimental)
44e33b2d621d6d5e5fd635ad2595bbf99cd80521 (Gentoo Hardened 17.0.9999 p, commit
03c4df9126fe6f8d6b5cdd49e7116310773e87a7)
```