From 310aba3bbe9b1e053ec90d92ed5a58d24cde3b85 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 13 May 2016 13:16:59 +0200 Subject: [PATCH] Fix ASAN bootstrap (uninitialized variable warning) * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Initialize a variable with default value. From-SVN: r236203 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-patterns.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2