From patchwork Mon Dec 28 21:03:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 561394 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 20278140C9C for ; Tue, 29 Dec 2015 08:03:38 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bnmo4Q6B; 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:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=RcSlvwmp9ZhxgJqxA WIlTBZFwMx6u/DPeQMoNgS//MLFh52Q+drXx8swQUbyEetiF6TYNHOuVrA2mhWuQ Ha3PM0MeR1cqqsOotmTcTjlKJE+1IkrMmBf/2INgEcNSu/F/opbo9+xcTb4780Qd rC6SPK53BCTG4XIlQbR41L0bWY= 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:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=X9cfMww2JeGDIFCCp26NQ6g MoGg=; b=bnmo4Q6BlFFtla18J7Vh5QZsDnFr3Y1ac+HtvwsdLak7iCaVeVQbsqB RpfBKGSN9t+mTz0VCw7blOjrED7XdayUyoucdp93AONhUBfs8bkT37AGK7JJQo3+ BgIImaLOzKmmfpQNPeffjZNdQVMwhagaf0G5lCrN3pTkOpdKtC9c= Received: (qmail 122420 invoked by alias); 28 Dec 2015 21:03:29 -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 122410 invoked by uid 89); 28 Dec 2015 21:03:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=99, 314, NOTHING X-HELO: mail-qk0-f182.google.com Received: from mail-qk0-f182.google.com (HELO mail-qk0-f182.google.com) (209.85.220.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 28 Dec 2015 21:03:27 +0000 Received: by mail-qk0-f182.google.com with SMTP id n135so78793682qka.2 for ; Mon, 28 Dec 2015 13:03:27 -0800 (PST) X-Received: by 10.55.71.82 with SMTP id u79mr73993989qka.55.1451336605249; Mon, 28 Dec 2015 13:03:25 -0800 (PST) Received: from ?IPv6:2601:181:c000:c497:a2a8:cdff:fe3e:b48? ([2601:181:c000:c497:a2a8:cdff:fe3e:b48]) by smtp.googlemail.com with ESMTPSA id l38sm27895146qgd.27.2015.12.28.13.03.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Dec 2015 13:03:24 -0800 (PST) Subject: Re: [gomp4] Simplify function discarding To: GCC Patches References: <56813D1B.2030407@acm.org> From: Nathan Sidwell Message-ID: <5681A39B.9040609@acm.org> Date: Mon, 28 Dec 2015 16:03:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56813D1B.2030407@acm.org> On 12/28/15 08:46, Nathan Sidwell wrote: > I noticed that the code dealing with bind and nohost clauses in > execute_oacc_device_lower looked like: Forgot the testsuite tweak that went along with the change. nathan 2015-12-28 Nathan Sidwell * c-c++-common/goacc/routine-nohost-1.c: Adjust expected dump output. Index: gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c =================================================================== --- gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c (revision 231972) +++ gcc/testsuite/c-c++-common/goacc/routine-nohost-1.c (working copy) @@ -9,9 +9,6 @@ int THREE(void) return 3; } -/* { dg-final { scan-tree-dump "Discarding function .THREE. with .nohost. clause" "oaccdevlow" } } */ - - #pragma acc routine nohost extern void NOTHING(void); @@ -19,9 +16,6 @@ void NOTHING(void) { } -/* { dg-final { scan-tree-dump "Discarding function .NOTHING. with .nohost. clause" "oaccdevlow" } } */ - - extern float ADD(float, float); #pragma acc routine (ADD) nohost @@ -31,4 +25,4 @@ float ADD(float x, float y) return x + y; } -/* { dg-final { scan-tree-dump "Discarding function .ADD. with .nohost. clause" "oaccdevlow" } } */ +/* { dg-final { scan-tree-dump-times "Discarding function" 3 "oaccdevlow" } } */