]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust 'libgomp.c-c++-common/requires-3.c'
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 7 Jul 2022 12:05:17 +0000 (14:05 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 7 Jul 2022 12:05:17 +0000 (14:05 +0200)
As documented, this one does "Check diagnostic by device-compiler's lto1".
Indeed there are none when compiling with '-foffload=disable' with an
offloading-enabled compiler, so we should use 'offload_target_[...]', as
used in other similar test cases.

Follow-up to recent commit 683f11843974f0bdf42f79cdcbb0c2b43c7b81b0
"OpenMP: Move omp requires checks to libgomp".

libgomp/
* testsuite/libgomp.c-c++-common/requires-3.c: Adjust.

(cherry picked from commit 99831ceb872cd1a3f3207fd2dfe03ef65dd9089b)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.c-c++-common/requires-3.c

index ab3dce720778aef49554f33600095adacff6a149..8ace421648fa45a50605d0367acae8ea14c0a456 100644 (file)
@@ -1,3 +1,10 @@
+2022-07-07  Tobias Burnus  <tobias@codesourcery.com>
+
+       Backport from mainline:
+       2022-07-07  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * testsuite/libgomp.c-c++-common/requires-3.c: Adjust.
+
 2022-07-07  Tobias Burnus  <tobias@codesourcery.com>
 
        Backport from mainline:
index 4b07ffdd09b42fc3f0c24a5750b3a0593cd59132..7091f400ef047a38086cc9315ed510128864f64b 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do link { target offloading_enabled } } */
+/* { dg-do link { target { offload_target_nvptx || offload_target_amdgcn } } } */
 /* { dg-additional-sources requires-3-aux.c } */
 
 /* Check diagnostic by device-compiler's lto1.