These changes should've been included in
commit 382edf047effcd5b1ce66389742bd1b3e178ac95
"openmp: Bump Version from 4.5 to 5.2 (2/4)", to avoid some more instances of:

    warning: use of 'omp declare target' as a synonym for 'omp begin declare 
target' has been deprecated since OpenMP 5.2 [-Wdeprecated-openmp]

    warning: 'to' clause with 'declare target' deprecated since OpenMP 5.2, use 
'enter' [-Wdeprecated-openmp]

    Warning: Non-C_PTR type argument at (1) is deprecated, use HAS_DEVICE_ADDR 
[-Wdeprecated-openmp]

    Warning: 'to' clause with 'declare target' at (1) deprecated since OpenMP 
5.2, use 'enter' [-Wdeprecated-openmp]

        libgomp/
        * testsuite/libgomp.c++/examples-4/declare_target-2.C: Add
        '-Wno-deprecated-openmp'.
        * testsuite/libgomp.c/declare-variant-3-sm30.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm35.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm37.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm52.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm53.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm61.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm70.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm75.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm80.c: Likewise.
        * testsuite/libgomp.c/declare-variant-3-sm89.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c:
        Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1030.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1031.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1032.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1033.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1034.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1035.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1036.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx11-generic.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1100.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1101.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1102.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1103.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1150.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1151.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1152.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx1153.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c:
        Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx9-generic.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx900.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx902.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx904.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx906.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx908.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx909.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx90a.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx90c.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx942.c: Likewise.
        * testsuite/libgomp.c/declare-variant-4-gfx950.c: Likewise.
        * testsuite/libgomp.c/examples-4/async_target-2.c: Likewise.
        * testsuite/libgomp.c/interop-hsa.c: Likewise.
        * testsuite/libgomp.c/target-20.c: Likewise.
        * testsuite/libgomp.c/target-simd-clone-1.c: Likewise.
        * testsuite/libgomp.c/target-simd-clone-2.c: Likewise.
        * testsuite/libgomp.c/target-simd-clone-3.c: Likewise.
        * testsuite/libgomp.fortran/alloc-managed-1.f90: Likewise.
        * testsuite/libgomp.fortran/target9.f90: Likewise.
---
 libgomp/testsuite/libgomp.c++/examples-4/declare_target-2.C     | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm37.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm52.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm61.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-3-sm89.c            | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1030.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1031.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1032.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1033.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1034.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1035.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx11-generic.c   | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1100.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1101.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1102.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1150.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1151.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1152.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx1153.c         | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c  | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-generic.c    | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx900.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx902.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx904.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx906.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx908.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx909.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx90a.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx942.c          | 1 +
 libgomp/testsuite/libgomp.c/declare-variant-4-gfx950.c          | 1 +
 libgomp/testsuite/libgomp.c/examples-4/async_target-2.c         | 1 +
 libgomp/testsuite/libgomp.c/interop-hsa.c                       | 1 +
 libgomp/testsuite/libgomp.c/target-20.c                         | 1 +
 libgomp/testsuite/libgomp.c/target-simd-clone-1.c               | 1 +
 libgomp/testsuite/libgomp.c/target-simd-clone-2.c               | 1 +
 libgomp/testsuite/libgomp.c/target-simd-clone-3.c               | 1 +
 libgomp/testsuite/libgomp.fortran/alloc-managed-1.f90           | 1 +
 libgomp/testsuite/libgomp.fortran/target9.f90                   | 1 +
 48 files changed, 48 insertions(+)

diff --git a/libgomp/testsuite/libgomp.c++/examples-4/declare_target-2.C 
b/libgomp/testsuite/libgomp.c++/examples-4/declare_target-2.C
index 6d5b5e47990..0c31c17ab61 100644
--- a/libgomp/testsuite/libgomp.c++/examples-4/declare_target-2.C
+++ b/libgomp/testsuite/libgomp.c++/examples-4/declare_target-2.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-require-effective-target offload_device_nonshared_as }
+// { dg-additional-options -Wno-deprecated-openmp }
 
 #include <stdlib.h>
 
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c
index d2ffa5637c5..63cd3b45942 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm30.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_30 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c
index bf8dc3e2441..6035e6cf17c 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm35.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_35 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm37.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm37.c
index d12abab098f..08c657304e2 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm37.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm37.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_37 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm52.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm52.c
index 591473c9123..62da6afe878 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm52.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm52.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_52 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c
index 1864a7a9277..07caa5318f7 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm53.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_53 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm61.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm61.c
index e6941d32ffe..cc391ed4e54 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm61.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm61.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_61 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c
index 2249cd4c24d..aa60611bdeb 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm70.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_70 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c
index 18ede59c541..346b03f73b4 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm75.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_75 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c
index 20048f1d702..b848821ceee 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm80.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_80 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-3-sm89.c 
b/libgomp/testsuite/libgomp.c/declare-variant-3-sm89.c
index cd2e472a104..e579c3aa610 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-3-sm89.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-3-sm89.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_nvptx } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=nvptx-none } */
 /* { dg-additional-options "-foffload=-misa=sm_89 -foffload=-mptx=_" } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c
index b7b95e68ad8..5585a429b93 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx10-3-generic.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx10-3-generic } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1030.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1030.c
index 3703e961c0b..1dd0c6c6740 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1030.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1030.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1030 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1031.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1031.c
index e0d62894444..b7b914ee5ae 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1031.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1031.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1031 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1032.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1032.c
index 46174cc2afc..59dcc1897b9 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1032.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1032.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1032 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1033.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1033.c
index 1bd6e661e10..69dd9319da7 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1033.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1033.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1033 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1034.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1034.c
index 4f67a73bc48..dda671103f1 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1034.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1034.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1034 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1035.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1035.c
index a69d5e7e808..104d0fd3d02 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1035.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1035.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1035 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c
index 8c258c4011d..6b40690e737 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1036.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1036 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx11-generic.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx11-generic.c
index fa9efb4cea4..4aa9c92f517 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx11-generic.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx11-generic.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx11-generic } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1100.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1100.c
index f0b7c6db1ae..e5b93f82167 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1100.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1100.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1100 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1101.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1101.c
index 213e904fc9c..f414577fd94 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1101.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1101.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1101 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1102.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1102.c
index 3f68dc8cc7c..20f91efff66 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1102.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1102.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1102 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c
index c1eed448f8b..2964ea23f5a 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1103.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1103 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1150.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1150.c
index 39d64ca789d..5873ce8faf2 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1150.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1150.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1150 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1151.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1151.c
index 2a0c7322724..00afe5920b1 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1151.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1151.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1151 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1152.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1152.c
index 3c987ddbac8..c8a5f550457 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1152.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1152.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1152 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1153.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1153.c
index 7d38b82c2a4..90fbe34767a 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1153.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx1153.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx1153 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c
index 07d1254bbb6..8c6598b8f06 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-4-generic.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx9-4-generic } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-generic.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-generic.c
index d6ba097ce39..4011eed3aa5 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-generic.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx9-generic.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx9-generic } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx900.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx900.c
index 37005fc5c7f..a11c97e1a50 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx900.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx900.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx900 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx902.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx902.c
index 82981c5cbcc..a715d4850b5 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx902.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx902.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx902 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx904.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx904.c
index 89815fe760e..ff599570099 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx904.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx904.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx904 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx906.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx906.c
index aeef690f870..fe186a33f09 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx906.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx906.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx906 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx908.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx908.c
index 799b5465bd4..43eb36b627a 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx908.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx908.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx908 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx909.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx909.c
index e8a6f63a047..521605554f1 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx909.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx909.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx909 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90a.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90a.c
index de5626efff8..7d5a3baaddf 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90a.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90a.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx90a } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c
index dfad7ece1c9..006f9b10249 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx90c.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx90c } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx942.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx942.c
index c8c744662b1..91a3134cb46 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx942.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx942.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx942 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx950.c 
b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx950.c
index af81f1116d1..40dcb4395f5 100644
--- a/libgomp/testsuite/libgomp.c/declare-variant-4-gfx950.c
+++ b/libgomp/testsuite/libgomp.c/declare-variant-4-gfx950.c
@@ -1,4 +1,5 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 /* { dg-additional-options -foffload=amdgcn-amdhsa } */
 /* { dg-additional-options -foffload=-march=gfx950 } */
 /* { dg-additional-options "-foffload=-fdump-tree-optimized" } */
diff --git a/libgomp/testsuite/libgomp.c/examples-4/async_target-2.c 
b/libgomp/testsuite/libgomp.c/examples-4/async_target-2.c
index 0c76f8e08a2..b217008c1c4 100644
--- a/libgomp/testsuite/libgomp.c/examples-4/async_target-2.c
+++ b/libgomp/testsuite/libgomp.c/examples-4/async_target-2.c
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target offload_device_nonshared_as } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 #include <omp.h>
 #include <stdlib.h>
diff --git a/libgomp/testsuite/libgomp.c/interop-hsa.c 
b/libgomp/testsuite/libgomp.c/interop-hsa.c
index 21ac91c1b58..5819a56a574 100644
--- a/libgomp/testsuite/libgomp.c/interop-hsa.c
+++ b/libgomp/testsuite/libgomp.c/interop-hsa.c
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target offload_device_gcn }
    The 'asm' insert is valid for GCN only:
    { dg-additional-options -foffload=amdgcn-amdhsa } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/libgomp/testsuite/libgomp.c/target-20.c 
b/libgomp/testsuite/libgomp.c/target-20.c
index 3f4e798a755..2d359152a8b 100644
--- a/libgomp/testsuite/libgomp.c/target-20.c
+++ b/libgomp/testsuite/libgomp.c/target-20.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target offload_device_nonshared_as } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 #include <stdlib.h>
 #include <assert.h>
diff --git a/libgomp/testsuite/libgomp.c/target-simd-clone-1.c 
b/libgomp/testsuite/libgomp.c/target-simd-clone-1.c
index 05e1568128a..aa8afe97414 100644
--- a/libgomp/testsuite/libgomp.c/target-simd-clone-1.c
+++ b/libgomp/testsuite/libgomp.c/target-simd-clone-1.c
@@ -1,5 +1,6 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
 /* { dg-additional-options "-O2 
-foffload-options=-fdump-ipa-simdclone-details" } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 /* Test that simd clones for the offload processor are generated for
    functions with "declare target" when enabled by default at -O2.  */
diff --git a/libgomp/testsuite/libgomp.c/target-simd-clone-2.c 
b/libgomp/testsuite/libgomp.c/target-simd-clone-2.c
index 58f9e29332e..84089356a28 100644
--- a/libgomp/testsuite/libgomp.c/target-simd-clone-2.c
+++ b/libgomp/testsuite/libgomp.c/target-simd-clone-2.c
@@ -1,5 +1,6 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
 /* { dg-additional-options "-foffload-options=-fdump-ipa-simdclone-details 
-foffload-options=-fno-openmp-target-simd-clone" } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 /* Test that simd clones for the offload processor are not generated for
    functions with "declare target" when explicitly disabled.  */
diff --git a/libgomp/testsuite/libgomp.c/target-simd-clone-3.c 
b/libgomp/testsuite/libgomp.c/target-simd-clone-3.c
index 796a2a23bc3..a2805bb0972 100644
--- a/libgomp/testsuite/libgomp.c/target-simd-clone-3.c
+++ b/libgomp/testsuite/libgomp.c/target-simd-clone-3.c
@@ -1,5 +1,6 @@
 /* { dg-do link { target { offload_target_amdgcn } } } */
 /* { dg-additional-options "-O2 
-foffload-options=-fdump-ipa-simdclone-details" } */
+/* { dg-additional-options -Wno-deprecated-openmp } */
 
 /* Test that device simd clones are not generated for functions with the host
    "declare target" clause only.  */
diff --git a/libgomp/testsuite/libgomp.fortran/alloc-managed-1.f90 
b/libgomp/testsuite/libgomp.fortran/alloc-managed-1.f90
index e19eb043daa..5150bd78b13 100644
--- a/libgomp/testsuite/libgomp.fortran/alloc-managed-1.f90
+++ b/libgomp/testsuite/libgomp.fortran/alloc-managed-1.f90
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-require-effective-target omp_managedmem }
+! { dg-additional-options -Wno-deprecated-openmp }
 ! { dg-additional-options -foffload-options=amdgcn-amdhsa=-mxnack=on { target 
offload_target_amdgcn_with_xnack } }
 
 ! Check that omp_alloc can allocate Managed Memory, and that host and target
diff --git a/libgomp/testsuite/libgomp.fortran/target9.f90 
b/libgomp/testsuite/libgomp.fortran/target9.f90
index 30adc1bd70a..19ecdb3804b 100644
--- a/libgomp/testsuite/libgomp.fortran/target9.f90
+++ b/libgomp/testsuite/libgomp.fortran/target9.f90
@@ -1,5 +1,6 @@
 ! { dg-do run }
 ! { dg-require-effective-target offload_device_nonshared_as } */
+! { dg-additional-options -Wno-deprecated-openmp }
 
 module target_test
   implicit none (type, external)
-- 
2.34.1

Reply via email to