https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125318
Bug ID: 125318
Summary: [17 Regression] build error on
--enable-checking=release:
gcc/tree-vect-stmts.cc:10408:47: error: ‘stride_step’
may be used uninitialized
[-Werror=maybe-uninitialized]
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
The build fails on gcc-master. Tested on r17-515-g325b88b9a4588c, did not
bisect. I think `--enable-checking=release` is what it make it to fail compared
to the default build. Popped up a few days ago. Error:
/tmp/gb/./prev-gcc/xg++ -B/tmp/gb/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/slyfox/dev/git/gcc/libstdc++-v3/libsupc++
-L/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/tmp/gb/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -fno-PIE -c
-g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Wconditionally-supported
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -DHAVE_CONFIG_H -fno-PIE -I. -I.
-I/home/slyfox/dev/git/gcc/gcc -I/home/slyfox/dev/git/gcc/gcc/.
-I/home/slyfox/dev/git/gcc/gcc/../include
-I/home/slyfox/dev/git/gcc/gcc/../libcpp/include
-I/home/slyfox/dev/git/gcc/gcc/../libcody
-I/home/slyfox/dev/git/gcc/gcc/../libdecnumber
-I/home/slyfox/dev/git/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/slyfox/dev/git/gcc/gcc/../libbacktrace -o tree-vect-stmts.o -MT
tree-vect-stmts.o -MMD -MP -MF ./.deps/tree-vect-stmts.TPo
/home/slyfox/dev/git/gcc/gcc/tree-vect-stmts.cc
/home/slyfox/dev/git/gcc/gcc/tree-vect-stmts.cc: In function ‘bool
vectorizable_load(vec_info*, stmt_vec_info, gimple_stmt_iterator*, slp_tree,
stmt_vector_for_cost*)’:
/home/slyfox/dev/git/gcc/gcc/tree-vect-stmts.cc:10408:47: error: ‘stride_step’
may be used uninitialized [-Werror=maybe-uninitialized]
10408 | = gimple_build_assign (newoff,
POINTER_PLUS_EXPR,
|
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10409 | running_off,
stride_step);
|
~~~~~~~~~~~~~~~~~~~~~~~~~
/home/slyfox/dev/git/gcc/gcc/tree-vect-stmts.cc:10156:25: note: ‘stride_step’
was declared here
10156 | tree stride_base, stride_step, alias_off;
| ^~~~~~~~~~~
$ /tmp/gb/./prev-gcc/xg++ -B/tmp/gb/./prev-gcc/ -v
Reading specs from /tmp/gb/./prev-gcc/specs
COLLECT_GCC=/tmp/gb/./prev-gcc/xg++
COLLECT_LTO_WRAPPER=/tmp/gb/./prev-gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib :
(reconfigured) /home/slyfox/dev/git/gcc/configure --disable-multilib
--enable-checking=release
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 17.0.0 20260514 (experimental) (GCC)