]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Restore aarch64 bootstrap
authorRichard Biener <rguenther@suse.de>
Thu, 3 Oct 2024 11:26:21 +0000 (13:26 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 3 Oct 2024 11:26:21 +0000 (13:26 +0200)
This zero-initializes vec_init to avoid a bogus maybe-uninitialized
diagnostic.

* tree-vect-loop.cc (vectorizable_induction): Initialize
vec_init.

gcc/tree-vect-loop.cc

index f5ecf0bdb8050341b5018fe2cb7738ef2f0d0dd5..730888f627557b53cb96aaac1eb960c057b9338c 100644 (file)
@@ -10278,7 +10278,7 @@ vectorizable_induction (loop_vec_info loop_vinfo,
   tree vec_def;
   edge pe = loop_preheader_edge (loop);
   basic_block new_bb;
-  tree new_vec, vec_init, vec_step, t;
+  tree new_vec, vec_init = NULL_TREE, vec_step, t;
   tree new_name;
   gimple *new_stmt;
   gphi *induction_phi;