From: Martin Liska Date: Fri, 13 May 2016 11:16:59 +0000 (+0200) Subject: Fix ASAN bootstrap (uninitialized variable warning) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=310aba3bbe9b1e053ec90d92ed5a58d24cde3b85;p=gcc.git Fix ASAN bootstrap (uninitialized variable warning) * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Initialize a variable with default value. From-SVN: r236203 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 098da0a2320..de06ddd299b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-13 Martin Liska + + * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): + Initialize a variable with default value. + 2016-05-13 Martin Liska * doc/invoke.texi: Enhance explanation of error recovery diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index d08b4547756..cc8c445863e 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -3570,7 +3570,8 @@ vect_recog_mask_conversion_pattern (vec *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;