From patchwork Sun Aug 7 03:41:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Kleen X-Patchwork-Id: 656439 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 3s6RFB6Bc6z9t0Z for ; Sun, 7 Aug 2016 13:42:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=VQ66gzn3; 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:from :to:cc:subject:date:message-id; q=dns; s=default; b=SWT/JUpOe2/c dmPzKcx/aX84v+w//6dJmicidMtE9yVGoC4XMIDV+ILBSvOb5CSTI8PIgtxGsZcx uMiZjahUn11nYXCgXr43sBMKAIesa7cNf2TzpUFLjd6KDDsmtojcrIvc6gvJ/FRV AGVKKTWjfohFvPVei0OXldSszcZUvZ4= 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:from :to:cc:subject:date:message-id; s=default; bh=mXtuWsYyEyxu85xVEs i+doqmQVk=; b=VQ66gzn3LU52haVqO7Rd/e10qzpWfaOufs67MEXZiVQ5/vuiTn RwVkt50iZWCrS+NuVI0ZFHGYRFMewEiApl53FALfMcIAzLQBZbBGAzhGrcX2YFUY NcXhOV+LLPX5qWeIqkIg1FcixfYbTvE3dImjzpGliftPKG1FW0+w2T8OE= Received: (qmail 81911 invoked by alias); 7 Aug 2016 03:42:10 -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 81899 invoked by uid 89); 7 Aug 2016 03:42:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Always, H*r:sk:AECDH-A, sk:autopro X-HELO: one.firstfloor.org Received: from one.firstfloor.org (HELO one.firstfloor.org) (193.170.194.197) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sun, 07 Aug 2016 03:42:00 +0000 Received: from firstfloor.org (97-120-76-131.ptld.qwest.net [97.120.76.131]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by one.firstfloor.org (Postfix) with ESMTPSA id DF72B86A04; Sun, 7 Aug 2016 05:41:54 +0200 (CEST) Received: by firstfloor.org (Postfix, from userid 1000) id 729D4A3673; Sat, 6 Aug 2016 20:41:49 -0700 (PDT) From: Andi Kleen To: gcc-patches@gcc.gnu.org Cc: Andi Kleen Subject: [PATCH] Fix warning breaking profiled bootstrap Date: Sat, 6 Aug 2016 20:41:47 -0700 Message-Id: <20160807034147.24890-1-andi@firstfloor.org> From: Andi Kleen This patch fixes an bootstrap error with autoprofiledbootstrap due to uninitiliazed variables, because the compiler cannot figure out they don't need to be initialized in an error path. Just always initialize them. gcc/: 2016-08-06 Andi Kleen * tree-vrp.c (get_single_symbol): Always initialize inv and neg. --- gcc/tree-vrp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 44dfc84..7f71f8a 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -893,6 +893,9 @@ get_single_symbol (tree t, bool *neg, tree *inv) bool neg_; tree inv_; + *inv = NULL_TREE; + *neg = false; + if (TREE_CODE (t) == PLUS_EXPR || TREE_CODE (t) == POINTER_PLUS_EXPR || TREE_CODE (t) == MINUS_EXPR)