]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
OpenMP: Fix target device ancestor tests according to reverse_offload.
authorMarcel Vollweiler <marcel@codesourcery.com>
Fri, 24 Sep 2021 15:32:53 +0000 (08:32 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:40 +0000 (14:11 +0100)
This patch removes the expectation that 'requires reverse_offload' is
unsupported from some 'target device ancester' tests which were introduced in
commit 03be3cfeef7b3811acb6c4a8da2fc5c1e25d3e4c. This is necessary since
commit f5bfc65f9a6e1f69b17d3740d043d2fbda339e05 changed the behaviour for
reverse_offload.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/target-device-ancestor-2.c: Remove message for
unsupported reverse offload.
* c-c++-common/gomp/target-device-ancestor-3.c: Likewise.
* c-c++-common/gomp/target-device-ancestor-4.c: Likewise.

gcc/testsuite/ChangeLog.omp
gcc/testsuite/c-c++-common/gomp/target-device-ancestor-2.c
gcc/testsuite/c-c++-common/gomp/target-device-ancestor-3.c
gcc/testsuite/c-c++-common/gomp/target-device-ancestor-4.c

index bd35a67a64db6a464409e069b7deedc3b774e7c8..0509227d06d228bae7138d72c2f864b6d82021e1 100644 (file)
@@ -1,3 +1,16 @@
+2021-09-24  Marcel Vollweiler  <marcel@codesourcery.com>
+
+       This patch removes the expectation that 'requires reverse_offload' is
+       unsupported from some 'target device ancester' tests which were introduced in
+       commit 03be3cfeef7b3811acb6c4a8da2fc5c1e25d3e4c. This is necessary since
+       commit f5bfc65f9a6e1f69b17d3740d043d2fbda339e05 changed the behaviour for
+       reverse_offload.
+
+       * c-c++-common/gomp/target-device-ancestor-2.c: Remove message for unsupported
+       reverse offload.
+       * c-c++-common/gomp/target-device-ancestor-3.c: Likewise.
+       * c-c++-common/gomp/target-device-ancestor-4.c: Likewise.
+
 2021-06-02  Julian Brown  <julian@codesourcery.com>
 
        * g++.dg/goacc/member-array-acc.C: New test.
index cf05c505004b3352d4562c6471376859c6957c34..6e9f02d80068fd156965b3f77f4f1b0611505d55 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 
-#pragma omp requires reverse_offload /* { dg-message "sorry, unimplemented: 'reverse_offload' clause on 'requires' directive not supported yet" } */
+#pragma omp requires reverse_offload
 
 void
 foo (int n)
index ea6e5a0cf6c5e1d2c67714b648234492001d3eb2..d16590107d2fe461f2b220bcf522340e690ddafc 100644 (file)
@@ -11,7 +11,7 @@ int bar (void);
 
 /* { dg-do compile } */
 
-#pragma omp requires reverse_offload /* { dg-message "sorry, unimplemented: 'reverse_offload' clause on 'requires' directive not supported yet" } */
+#pragma omp requires reverse_offload
 
 void
 foo (void)
index b4b5620bbc0f90ab93b33a1b9b10911492b2d541..37cd1a0f1d3e7fa285b8f7af5eb84b0a0fa58958 100644 (file)
@@ -4,7 +4,7 @@
   /* Test to ensure that device-modifier 'ancestor' is parsed correctly in
      device clauses. */
 
-#pragma omp requires reverse_offload /* { dg-message "sorry, unimplemented: 'reverse_offload' clause on 'requires' directive not supported yet" } */
+#pragma omp requires reverse_offload
 
 void
 foo (void)