[libgomp, testsuite, openacc] Remove -foffload=-w in reduction-[1-5].c
authorTom de Vries <tdevries@suse.de>
Fri, 11 Jan 2019 11:46:06 +0000 (11:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 11 Jan 2019 11:46:06 +0000 (11:46 +0000)
Before the commit "[libgomp, testsuite, openacc] Don't use const int for
dimensions", the "const int" construct was used to set launch dimensions in
reductions-[1-5].c.  In the case of -xc -O0, the const int is implemented as a
variable by the C front-end.  Consequently, the nvptx back-end generated
warnings that vector_length was overridden to be hard-coded, rather than left to
be set at runtime.  The test-cases silenced these warnings by switching off all
warnings in the accelerator compiler using "-foffload=-w".

Given that no warnings occur anymore, remove the "-foffload=-w" setting.

2019-01-11  Tom de Vries  <tdevries@suse.de>

* testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
-foffload=-w.
* testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
* testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.

From-SVN: r267836

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-4.c
libgomp/testsuite/libgomp.oacc-c-c++-common/reduction-5.c

index 47af47f..ea339de 100644 (file)
@@ -1,5 +1,14 @@
 2019-01-11  Tom de Vries  <tdevries@suse.de>
 
+       * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
+       -foffload=-w.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
+       * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
+
+2019-01-11  Tom de Vries  <tdevries@suse.de>
+
        * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
        test.
 
index 3fe9ae6..4e76ccd 100644 (file)
@@ -1,8 +1,5 @@
 /* { dg-do run } */
 
-/* Ignore vector_length warnings for offloaded (nvptx) targets.  */
-/* { dg-additional-options "-foffload=-w" } */
-
 /* Integer reductions.  */
 
 #include <stdlib.h>
index 83986ab..96e6c07 100644 (file)
@@ -1,8 +1,5 @@
 /* { dg-do run } */
 
-/* Ignore vector_length warnings for offloaded (nvptx) targets.  */
-/* { dg-additional-options "-foffload=-w" } */
-
 /* float reductions.  */
 
 #include <stdlib.h>
index 3ac0f99..dc18426 100644 (file)
@@ -1,8 +1,5 @@
 /* { dg-do run } */
 
-/* Ignore vector_length warnings for offloaded (nvptx) targets.  */
-/* { dg-additional-options "-foffload=-w" } */
-
 /* double reductions.  */
 
 #include <stdlib.h>
index b8fa954..d152674 100644 (file)
@@ -1,8 +1,5 @@
 /* { dg-do run { target { ! { hppa*-*-hpux* } } } } */
 
-/* Ignore vector_length warnings for offloaded (nvptx) targets.  */
-/* { dg-additional-options "-foffload=-w" } */
-
 /* complex reductions.  */
 
 #include <stdlib.h>
index 215d919..6f5d293 100644 (file)
@@ -1,9 +1,6 @@
 /* { dg-do run } */
 /* { dg-additional-options "-w" } */
 
-/* Ignore vector_length warnings for offloaded (nvptx) targets.  */
-/* { dg-additional-options "-foffload=-w" } */
-
 /* Multiple reductions.  */
 
 #include <stdio.h>