https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125318

--- Comment #5 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
I personally use this hack locally:

--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -10153,7 +10153,7 @@ vectorizable_load (vec_info *vinfo,
       tree ivstep;
       tree running_off;
       vec<constructor_elt, va_gc> *v = NULL;
-      tree stride_base, stride_step, alias_off;
+      tree stride_base, stride_step = NULL_TREE, alias_off;
       /* Checked by get_load_store_type.  */
       unsigned int const_nunits = nunits.to_constant ();
       unsigned HOST_WIDE_INT cst_offset = 0;

But I'm not sure if it reintroduces some form of -Wunused-but-set-variable.

Reply via email to