From patchwork Mon Nov 14 06:41:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Rosen X-Patchwork-Id: 5091 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 02C9D23E04 for ; Mon, 14 Nov 2011 06:41:56 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id DE1F0A1806A for ; Mon, 14 Nov 2011 06:41:55 +0000 (UTC) Received: by faaa26 with SMTP id a26so136999faa.11 for ; Sun, 13 Nov 2011 22:41:55 -0800 (PST) Received: by 10.152.104.1 with SMTP id ga1mr13020051lab.40.1321252915666; Sun, 13 Nov 2011 22:41:55 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.40.7 with SMTP id t7cs29263lak; Sun, 13 Nov 2011 22:41:55 -0800 (PST) Received: by 10.68.73.40 with SMTP id i8mr47780231pbv.45.1321252912674; Sun, 13 Nov 2011 22:41:52 -0800 (PST) Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by mx.google.com with ESMTPS id u4si25434087pba.166.2011.11.13.22.41.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Nov 2011 22:41:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) client-ip=209.85.210.42; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.42 is neither permitted nor denied by best guess record for domain of ira.rosen@linaro.org) smtp.mail=ira.rosen@linaro.org Received: by pzk36 with SMTP id 36so11467193pzk.1 for ; Sun, 13 Nov 2011 22:41:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.9.2 with SMTP id v2mr47195706pba.101.1321252911617; Sun, 13 Nov 2011 22:41:51 -0800 (PST) Received: by 10.143.31.19 with HTTP; Sun, 13 Nov 2011 22:41:51 -0800 (PST) Date: Mon, 14 Nov 2011 08:41:51 +0200 Message-ID: Subject: [patch] Fix PR bootstrap/51112 From: Ira Rosen To: gcc-patches@gcc.gnu.org Cc: Patch Tracking 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;