From patchwork Wed Sep 2 08:25:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 513363 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 260BB140187 for ; Wed, 2 Sep 2015 18:25:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=h9wD/1GC; 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=yx43GdwFquIgNdQqO 4usFQwvJ0rqFEo10N5ddvGh6vbSye3lYoDITXvXtcnzSmM7lyEmwyVRCVnlZphlO DAIDkqJ2L+QhNeyS/Hdk1knDrpGCL+AHAZZd1NlgE7oNhh0TWETTTX32ITc6nMv/ /jE0mS4+eCFs8DDnDkMJ/YN5RI= 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=/eb9QN4DRpD3aNQurcnOcM2 Akk8=; b=h9wD/1GCfJpuu+T8duC/waK8ithbrRNwwp7YEM1cXpcEqhf/i8jxDMl nMoiyGYjuKvVIa2JNjglPDxRHVqlmMFP5feyqXXlneKnkue/2ecccXuJOaydMrzU V9m1JVeUfoa6Hcehhyai5yDM/ThfFAFQRnx4jjq86Ic4x0+gp3Sk= Received: (qmail 37439 invoked by alias); 2 Sep 2015 08:25:49 -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 37426 invoked by uid 89); 2 Sep 2015 08:25:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Sep 2015 08:25:47 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZX3MW-0001Ri-2F from Tom_deVries@mentor.com ; Wed, 02 Sep 2015 01:25:44 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.224.2; Wed, 2 Sep 2015 09:25:42 +0100 Subject: Re: [gomp4] declare directive To: James Norris , References: <55CB9109.6030202@codesourcery.com> CC: Jakub Jelinek From: Tom de Vries Message-ID: <55E6B283.1040907@mentor.com> Date: Wed, 2 Sep 2015 10:25:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55CB9109.6030202@codesourcery.com> On 12-08-15 20:31, James Norris wrote: > diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c > index bc54067..eee5340 100644 > --- a/gcc/fortran/trans-decl.c > +++ b/gcc/fortran/trans-decl.c > @@ -5864,8 +5864,7 @@ void > finish_oacc_declare (gfc_namespace *ns, enum sym_flavor flavor) > { > gfc_code *code, *end_c, *code2; > - gfc_oacc_declare *oc; > - gfc_omp_clauses *omp_clauses = NULL, *ret_clauses = NULL; > + gfc_oacc_declare *oc, *new_oc; > gfc_omp_namelist *n; > locus where = gfc_current_locus; > This introduces an unused variable new_oc. Attached patch removes that and some other unused variables in finish_oacc_declare. Committed. Thanks, - Tom Remove unused vars in finish_oacc_declare 2015-09-02 Tom de Vries * trans-decl.c (finish_oacc_declare): Remove unused variables. --- gcc/fortran/trans-decl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c index c84b098..39acabd 100644 --- a/gcc/fortran/trans-decl.c +++ b/gcc/fortran/trans-decl.c @@ -5890,8 +5890,8 @@ find_module_oacc_declare_clauses (gfc_symbol *sym) void finish_oacc_declare (gfc_namespace *ns, enum sym_flavor flavor) { - gfc_code *code, *end_c, *code2; - gfc_oacc_declare *oc, *new_oc; + gfc_code *code; + gfc_oacc_declare *oc; gfc_omp_namelist *n; locus where = gfc_current_locus; -- 1.9.1