From patchwork Tue Dec 17 12:50:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 1211384 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-516108-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Hf+CHUIT"; dkim-atps=neutral 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 47cdKf1cqFz9sNH for ; Tue, 17 Dec 2019 23:50:43 +1100 (AEDT) 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:mime-version:content-type; q=dns; s=default; b=Y9v6oork93xh337BMjTS0Ndbi4prfGKyMG0c3sTe8jPc4IZ8mq GKBd30yxNnGHsqTBqMuv2Y6Oj3OvqqGWrAIT+7IqwrVUNQTQTMtd4G4smp+E1iWb e942paswvTAa4yYrveW6mQ1Gtv6QFuLYSVlvxsWWK+qgF2l6/diBzRGgw= 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:mime-version:content-type; s= default; bh=FmrPmIU5SY1HjL8vtH2+apMvs8I=; b=Hf+CHUITT1PSGTQeYxPA aGStShJHigijJzbU1qTP71R/aVR6lOYghN1BTuMsm8G+kgSckxh4vOXxY7w/C9Gj ruiSK0GGU8jdIlJ0xHX5BdCr5YW22v/YajhaRlbRmUSQNESBfmiuFW2bVJ6QhRBX kGkZKBcoDid+JR/TZQ9v15A= Received: (qmail 65019 invoked by alias); 17 Dec 2019 12:50:36 -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 64339 invoked by uid 89); 17 Dec 2019 12:50:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1118 X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Dec 2019 12:50:35 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 55C34ACAE for ; Tue, 17 Dec 2019 12:50:33 +0000 (UTC) From: Martin Jambor To: GCC Patches Cc: Subject: [PATCH] IPA-CP: Remove bogus static keyword (PR 92971) User-Agent: Notmuch/0.29.2 (https://notmuchmail.org) Emacs/26.3 (x86_64-suse-linux-gnu) Date: Tue, 17 Dec 2019 13:50:32 +0100 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes Hi, as reported in PR 92971, IPA-CP's cgraph_edge_brings_all_agg_vals_for_node defines one local variable with the static keyword which is a clear mistake, probabley a cut'n'paste error when I originally wrote the code. I'll commit the following as obvious after a round of bootstrap and testing. Early next year, I'll also commit it to all opened release branches. Thanks, Martin 2019-12-17 Martin Jambor * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Remove static from local variable definition. --- gcc/ipa-cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 1a80ccbde2d..6692eb7b878 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -5117,7 +5117,7 @@ cgraph_edge_brings_all_agg_vals_for_node (struct cgraph_edge *cs, for (i = 0; i < count; i++) { - static vec values = vNULL; + vec values = vNULL; class ipcp_param_lattices *plats; bool interesting = false; for (struct ipa_agg_replacement_value *av = aggval; av; av = av->next)