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 098da0a..de06ddd 100644 (file)
@@ -1,5 +1,10 @@
 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
        of sanitizers.
 
index d08b454..cc8c445 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;