https://gcc.gnu.org/g:954f804b73e2fe3c23dffa93e9422eeaf8bc0008
commit r16-6738-g954f804b73e2fe3c23dffa93e9422eeaf8bc0008 Author: Thomas Schwinge <[email protected]> Date: Mon Dec 15 16:12:33 2025 +0100 openmp: Bump Version from 4.5 to 5.2 (2/4): Some more '-Wno-deprecated-openmp' 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. Diff: --- 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 6d5b5e479904..0c31c17ab617 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 d2ffa5637c5e..63cd3b45942c 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 bf8dc3e24417..6035e6cf17cd 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 d12abab098f1..08c657304e2f 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 591473c91239..62da6afe8785 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 1864a7a92776..07caa5318f75 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 e6941d32ffe9..cc391ed4e547 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 2249cd4c24d2..aa60611bdebd 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 18ede59c5418..346b03f73b48 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 20048f1d7025..b848821ceeec 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 cd2e472a1040..e579c3aa6102 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 b7b95e68ad8c..5585a429b93a 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 3703e961c0b3..1dd0c6c67409 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 e0d628944445..b7b914ee5ae5 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 46174cc2afc6..59dcc1897b90 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 1bd6e661e10c..69dd9319da70 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 4f67a73bc480..dda671103f13 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 a69d5e7e808c..104d0fd3d024 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 8c258c4011db..6b40690e7370 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 fa9efb4cea4d..4aa9c92f517f 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 f0b7c6db1ae6..e5b93f821673 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 213e904fc9cc..f414577fd944 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 3f68dc8cc7c7..20f91efff661 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 c1eed448f8be..2964ea23f5ac 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 39d64ca789df..5873ce8faf23 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 2a0c73227240..00afe5920b16 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 3c987ddbac83..c8a5f5504575 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 7d38b82c2a4e..90fbe34767a8 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 07d1254bbb66..8c6598b8f06a 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 d6ba097ce392..4011eed3aa56 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 37005fc5c7ff..a11c97e1a501 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 82981c5cbcc0..a715d4850b5c 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 89815fe760ef..ff599570099b 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 aeef690f8708..fe186a33f09e 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 799b5465bd43..43eb36b627a2 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 e8a6f63a0471..521605554f12 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 de5626efff8b..7d5a3baaddfc 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 dfad7ece1c95..006f9b10249d 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 c8c744662b1a..91a3134cb461 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 af81f1116d1b..40dcb4395f52 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 0c76f8e08a25..b217008c1c47 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 21ac91c1b58c..5819a56a574b 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 3f4e798a7554..2d359152a8b7 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 05e1568128a3..aa8afe974148 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 58f9e29332ec..84089356a28d 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 796a2a23bc3b..a2805bb0972b 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 e19eb043daaa..5150bd78b135 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 30adc1bd70af..19ecdb3804bd 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)
