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