From patchwork Fri Feb 10 12:54:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 726533 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 3vKZfS5jHKz9ryr for ; Fri, 10 Feb 2017 23:54:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Ys0Fsv7N"; 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=lUfv3OHJlIlUQ5Wgh oebrJ0ju7FohRn+vGPTLeFCk1f52dsaGcgV+IX9JFD5x+V7MGbFZKuvV6aj9fMSG 6PEaSRbQCjYrFa2ShWpnZG03lIonTlZexxNRmS+LzaF+tc/2LpI5tTBVL16QPQfy fKYJ+TCuR4Qd11VCQDS3X3bUvs= 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=JzZ7ZrsZA97UAk1Yz+YNq9M HZk0=; b=Ys0Fsv7NMnf0raYWRoMS6g+aymqFFEkVzdWdY9HyNwFzrbPBZLpVqqM oH4n1Cb+9FCm/lb82xuBYq2rP+uJlWKwwMCL5IXXR/QKuF6fxSbl/qsq1493dqPT mPAy/Bmio/TE10Jf15mRk9y7QTURrvA9BhBhIzyDKxdElhVvN5/o= Received: (qmail 118139 invoked by alias); 10 Feb 2017 12:54:48 -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 116934 invoked by uid 89); 10 Feb 2017 12:54:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=HTo:U*cesar, vries X-Spam-User: qpsmtpd, 2 recipients 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; Fri, 10 Feb 2017 12:54:36 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ccAif-0006jW-IH from Tom_deVries@mentor.com ; Fri, 10 Feb 2017 04:54:33 -0800 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 10 Feb 2017 12:54:28 +0000 Subject: Re: [gomp4] enable GOMP_MAP_FIRSTPRIVATE_INT in OpenACC To: Thomas Schwinge , Cesar Philippidis References: <98207124-0c8a-4ea6-fd94-88587e14c77f@codesourcery.com> <87o9yoc0l9.fsf@euler.schwinge.homeip.net> CC: "gcc-patches@gcc.gnu.org" , Fortran List From: Tom de Vries Message-ID: <53a3cb7b-cb0e-9627-4c20-f551af6d3d70@mentor.com> Date: Fri, 10 Feb 2017 13:54:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <87o9yoc0l9.fsf@euler.schwinge.homeip.net> X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) On 30/01/17 11:18, Thomas Schwinge wrote: >> +static tree >> +convert_from_firstprivate_pointer (tree var, bool is_ref, gimple_seq *gs) >> +{ >> + tree type = TREE_TYPE (var); >> + tree new_type = NULL_TREE; >> + tree tmp = NULL_TREE; >> + tree inner_type = NULL_TREE; > [...]/source-gcc/gcc/omp-low.c: In function 'tree_node* convert_from_firstprivate_pointer(tree, bool, gimple**)': > [...]/source-gcc/gcc/omp-low.c:16515:8: warning: unused variable 'inner_type' [-Wunused-variable] Fixed while bootstrapping gomp-4_0-branch with --enable-werror. Thanks, - Tom Remove unused var in convert_from_firstprivate_int 2017-02-10 Tom de Vries * omp-low.c (convert_from_firstprivate_int): Remove unused variable. --- gcc/omp-low.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/omp-low.c b/gcc/omp-low.c index bb2d1fa..0f79533 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -16531,7 +16531,6 @@ convert_from_firstprivate_int (tree var, bool is_ref, gimple_seq *gs) tree type = TREE_TYPE (var); tree new_type = NULL_TREE; tree tmp = NULL_TREE; - tree inner_type = NULL_TREE; gcc_assert (TREE_CODE (var) == MEM_REF); var = TREE_OPERAND (var, 0);