From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107549 invoked by alias); 22 Mar 2016 22:52:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 107486 invoked by uid 89); 22 Mar 2016 22:52:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 22 Mar 2016 22:52:15 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 8A8E57AE95; Tue, 22 Mar 2016 22:52:14 +0000 (UTC) Received: from localhost.localdomain (vpn1-4-180.ams2.redhat.com [10.36.4.180]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2MMqBf6005378; Tue, 22 Mar 2016 18:52:12 -0400 Subject: Re: Also test -O0 for OpenACC C, C++ offloading test cases To: Thomas Schwinge , gcc-patches@gcc.gnu.org, Jakub Jelinek References: <87mvpqrets.fsf@kepler.schwinge.homeip.net> From: Bernd Schmidt Message-ID: <56F1CC9B.1060003@redhat.com> Date: Wed, 23 Mar 2016 00:03:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <87mvpqrets.fsf@kepler.schwinge.homeip.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg01277.txt.bz2 On 03/22/2016 11:23 AM, Thomas Schwinge wrote: > diff --git libgomp/testsuite/libgomp.oacc-c-c++-common/routine-w-1.c libgomp/testsuite/libgomp.oacc-c-c++-common/routine-w-1.c > index 01d1dc8..5806cb3 100644 > --- libgomp/testsuite/libgomp.oacc-c-c++-common/routine-w-1.c > +++ libgomp/testsuite/libgomp.oacc-c-c++-common/routine-w-1.c > @@ -1,5 +1,6 @@ > -/* { dg-do run } */ > -/* { dg-additional-options "-O2" } */ > +/* Dead code elimination for blocks guarded by acc_on_device () only works with > + optimizations enabled. > + { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ What exactly is going on with these? Do these tests fail with -O0, and is that likely to be a problem in practice? Also, why remove the dg-do run? Bernd