This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Also test -O0 for OpenACC C, C++ offloading test cases
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>, gcc-patches at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 22 Mar 2016 23:52:11 +0100
- Subject: Re: Also test -O0 for OpenACC C, C++ offloading test cases
- Authentication-results: sourceware.org; auth=none
- References: <87mvpqrets dot fsf at kepler dot schwinge dot homeip dot net>
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