From patchwork Wed Jun 24 14:09:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 488083 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0417A140157 for ; Thu, 25 Jun 2015 00:10:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=rBJ4GAVh; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=yWQ/1PKRXVk7Fdl79ZX+BfJkAKbltJwUz1z43XGxQRQKGAHSawsfj e6I1ppBAEPtFrRWTtieBfl/Rr9BrtMmCP9dScpcGgpZOfq4GWL31WWWpeZ1JToRB Z7/BClTL6sIc/u4gnnpXIMwkqRb+PmDGcfBxza/LEf55G/uH2Vm0lE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=Oiv7YU/z3twEPuT1kOoimz6cRGc=; b=rBJ4GAVhMFisDLQtZ6Jn hb1yMljjcvqp+Y3utJC2Bd+2amiGONkEiP7kgEbuaIlz0ZfSF2UlHw+PmU0AUdw8 8g4H3SVza7dNBRm4VZJFNp6v454NZzdeIt4//lCfpVQZ4HQiu6Ka/CTTNkVklz/I QwF1C2iuseuuIFNF+8LgjL4= Received: (qmail 62478 invoked by alias); 24 Jun 2015 14:09:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 62467 invoked by uid 89); 24 Jun 2015 14:09:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qg0-f43.google.com Received: from mail-qg0-f43.google.com (HELO mail-qg0-f43.google.com) (209.85.192.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 24 Jun 2015 14:09:51 +0000 Received: by qgal13 with SMTP id l13so14257853qga.3 for ; Wed, 24 Jun 2015 07:09:49 -0700 (PDT) X-Received: by 10.55.20.168 with SMTP id 40mr78327145qku.104.1435154989438; Wed, 24 Jun 2015 07:09:49 -0700 (PDT) Received: from msticlxl57.ims.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by mx.google.com with ESMTPSA id o3sm3181986qga.36.2015.06.24.07.09.46 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Jun 2015 07:09:49 -0700 (PDT) Date: Wed, 24 Jun 2015 17:09:22 +0300 From: Ilya Enkovich To: gcc-patches@gcc.gnu.org Subject: [PATCH, committed] Fix warning Message-ID: <20150624140922.GC15263@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi, I've committed this patch to fix a warning for mpx-bootstrap. /export/users/aguskov/MPX/git_branch/source/gcc/tree.h:2858:51: error: 'vectype' may be used uninitialized in this function [-Werror=maybe-uninitialized] tree_check_failed (__t, __f, __l, __g, __c, 0); ^ /export/users/aguskov/MPX/git_branch/source/gcc/tree-vect-slp.c:483:8: note: 'vectype' was declared here tree vectype, scalar_type, first_op1 = NULL_TREE; ^ Thanks, Ilya --- 2015-06-24 Ilya Enkovich * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype. diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 91ddc0f..bbc7d13 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -480,7 +480,7 @@ vect_build_slp_tree_1 (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo, enum tree_code first_cond_code = ERROR_MARK; tree lhs; bool need_same_oprnds = false; - tree vectype, scalar_type, first_op1 = NULL_TREE; + tree vectype = NULL_TREE, scalar_type, first_op1 = NULL_TREE; optab optab; int icode; machine_mode optab_op2_mode;