On Sat, Aug 20, 2022 at 3:34 PM Andreas Schwab <sch...@linux-m68k.org> wrote: > > This breaks bootstrap: > > ../../gcc/tree-vect-loop-manip.cc: In function 'void > vect_gen_vector_loop_niters(loop_vec_info, tree, tree_node**, tree_node**, > bool)': > ../../gcc/tree-vect-loop-manip.cc:1981:26: error: 'const_vf' may be used > uninitialized [-Werror=maybe-uninitialized] > 1981 | unsigned HOST_WIDE_INT const_vf; > | ^~~~~~~~ > cc1plus: all warnings being treated as errors > make[3]: *** [Makefile:1146: tree-vect-loop-manip.o] Error 1 > make[2]: *** [Makefile:4977: all-stage2-gcc] Error 2 > make[1]: *** [Makefile:30363: stage2-bubble] Error 2 > make: *** [Makefile:1065: all] Error 2
This looks like a real uninitialized variable issue. I even can't tell if the paths that lead to using const_vf will be always set so how we expect GCC to do the same. The code that uses const_vf was added with r11-5820-cdcbef3c3310, CCing the author there. Thanks, Andrew > > -- > Andreas Schwab, sch...@linux-m68k.org > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different."