From 486208e77a7b49e1aa975d03773b5f827e6d27d9 Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Fri, 23 Oct 2015 22:38:37 +0000 Subject: [PATCH] tree-vect-generic.c (expand_vector_condition): Avoid uninitialized variable warning. gcc/ * tree-vect-generic.c (expand_vector_condition): Avoid uninitialized variable warning. From-SVN: r229274 --- gcc/ChangeLog | 5 +++++ gcc/tree-vect-generic.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77fe67856fd..03e2b5c535e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-23 Ilya Enkovich + + * tree-vect-generic.c (expand_vector_condition): Avoid + uninitialized variable warning. + 2015-10-23 Jeff Law * passes.c (execute_function_todo): Do not call flush_ssaname_freelist diff --git a/gcc/tree-vect-generic.c b/gcc/tree-vect-generic.c index 20053839d2b..d1fc0ba0f51 100644 --- a/gcc/tree-vect-generic.c +++ b/gcc/tree-vect-generic.c @@ -844,7 +844,7 @@ expand_vector_condition (gimple_stmt_iterator *gsi) tree type = gimple_expr_type (stmt); tree a = gimple_assign_rhs1 (stmt); tree a1 = a; - tree a2; + tree a2 = NULL_TREE; bool a_is_comparison = false; tree b = gimple_assign_rhs2 (stmt); tree c = gimple_assign_rhs3 (stmt); -- 2.30.2