[patch] Fix PR bootstrap/51112

Ira Rosen ira.rosen@linaro.org
Mon Nov 14 09:51:00 GMT 2011


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.

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;



More information about the Gcc-patches mailing list