Fix ASAN bootstrap (uninitialized variable warning)
authorMartin Liska <mliska@suse.cz>
Fri, 13 May 2016 11:16:59 +0000 (13:16 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 13 May 2016 11:16:59 +0000 (11:16 +0000)
* tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
Initialize a variable with default value.

From-SVN: r236203

gcc/ChangeLog
gcc/tree-vect-patterns.c

index 098da0a23206d87a0fe0482ec5d74b45a1b9e73d..de06ddd299b6b2044bad93890c10242ba53fd313 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-13  Martin Liska  <mliska@suse.cz>
+
+       * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
+       Initialize a variable with default value.
+
 2016-05-13  Martin Liska  <mliska@suse.cz>
 
        * doc/invoke.texi: Enhance explanation of error recovery
index d08b45477568dec2bf291ee8c271b42d29585533..cc8c445863e01871b83b9e461d5968f25d6d940c 100644 (file)
@@ -3570,7 +3570,8 @@ vect_recog_mask_conversion_pattern (vec<gimple *> *stmts, tree *type_in,
 {
   gimple *last_stmt = stmts->pop ();
   enum tree_code rhs_code;
-  tree lhs, rhs1, rhs2, tmp, rhs1_type, rhs2_type, vectype1, vectype2;
+  tree lhs = NULL_TREE, rhs1, rhs2, tmp, rhs1_type, rhs2_type;
+  tree vectype1, vectype2;
   stmt_vec_info stmt_vinfo = vinfo_for_stmt (last_stmt);
   stmt_vec_info pattern_stmt_info;
   vec_info *vinfo = stmt_vinfo->vinfo;