Patchwork Fix PR bootstrap/51112

login
register
mail settings
Submitter Ira Rosen
Date Nov. 14, 2011, 6:41 a.m.
Message ID <CAKSNEw5huE4J9NvReqCTO0bnyum8NXy6BF+aRLYnOhJUwB1YLA@mail.gmail.com>
Download mbox | patch
Permalink /patch/125494/
State New
Headers show

Comments

Ira Rosen - Nov. 14, 2011, 6:41 a.m.
Hi,

This patch fixes a maybe-uninitialized error.

Bootstrapped and tested on powerpc64-suse-linux.
Committed.

Ira

ChangeLog:

        PR bootstrap/51112
        * tree-vect-stmts.c (vectorizable_condition): Initialize comp_vectype.

Patch

Index: tree-vect-stmts.c
===================================================================
--- tree-vect-stmts.c   (revision 181345)
+++ tree-vect-stmts.c   (working copy)
@@ -4968,7 +4968,7 @@  vectorizable_condition (gimple stmt, gimple_stmt_i
   tree cond_expr, then_clause, else_clause;
   stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
   tree vectype = STMT_VINFO_VECTYPE (stmt_info);
-  tree comp_vectype;
+  tree comp_vectype = NULL_TREE;
   tree vec_cond_lhs = NULL_TREE, vec_cond_rhs = NULL_TREE;
   tree vec_then_clause = NULL_TREE, vec_else_clause = NULL_TREE;
   tree vec_compare, vec_cond_expr;