openmp: Mark deprecated symbols in OpenMP 5.0
authorKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 5 Nov 2020 18:11:23 +0000 (10:11 -0800)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 5 Nov 2020 18:32:56 +0000 (10:32 -0800)
commit10508db867934264bbc2578f1f454c19fa558fd3
tree78b3391e60cbbdc5ff85d144c861146e8fc8d196
parent7fa1b2c8dac00eefadb1f0d459fd716027aa1b67
openmp: Mark deprecated symbols in OpenMP 5.0

2020-11-05  Ulrich Drepper  <drepper@redhat.com>
    Kwok Cheung Yeung  <kcy@codesourcery.com>

libgomp/
* Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
* Makefile.in: Regenerate.
* fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
pragmas to ignore -Wdeprecated-declarations warnings.
* icv.c: Likewise.
* omp.h.in (__GOMP_DEPRECATED_5_0): Define.
Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
and omp_get_nested with __GOMP_DEPRECATED_5_0.
* omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
deprecated.
* testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
to test options.
* testsuite/libgomp.c/affinity-1.c: Likewise.
* testsuite/libgomp.c/affinity-2.c: Likewise.
* testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
* testsuite/libgomp.c/lib-1.c: Likewise.
* testsuite/libgomp.c/nested-1.c: Likewise.
* testsuite/libgomp.c/nested-2.c: Likewise.
* testsuite/libgomp.c/nested-3.c: Likewise.
* testsuite/libgomp.c/pr32362-1.c: Likewise.
* testsuite/libgomp.c/pr32362-2.c: Likewise.
* testsuite/libgomp.c/pr32362-3.c: Likewise.
* testsuite/libgomp.c/pr35549.c: Likewise.
* testsuite/libgomp.c/pr42942.c: Likewise.
* testsuite/libgomp.c/pr61200.c: Likewise.
* testsuite/libgomp.c/sort-1.c: Likewise.
* testsuite/libgomp.c/target-5.c: Likewise.
* testsuite/libgomp.c/target-6.c: Likewise.
* testsuite/libgomp.c/teams-1.c: Likewise.
* testsuite/libgomp.c/thread-limit-1.c: Likewise.
* testsuite/libgomp.c/thread-limit-2.c: Likewise.
* testsuite/libgomp.c/thread-limit-4.c: Likewise.
* testsuite/libgomp.fortran/affinity1.f90: Likewise.
* testsuite/libgomp.fortran/lib1.f90: Likewise.
* testsuite/libgomp.fortran/lib2.f: Likewise.
* testsuite/libgomp.fortran/nested1.f90: Likewise.
* testsuite/libgomp.fortran/teams1.f90: Likewise.
32 files changed:
libgomp/Makefile.am
libgomp/Makefile.in
libgomp/fortran.c
libgomp/icv.c
libgomp/omp.h.in
libgomp/omp_lib.f90.in
libgomp/testsuite/libgomp.c++/affinity-1.C
libgomp/testsuite/libgomp.c/affinity-1.c
libgomp/testsuite/libgomp.c/affinity-2.c
libgomp/testsuite/libgomp.c/appendix-a/a.15.1.c
libgomp/testsuite/libgomp.c/lib-1.c
libgomp/testsuite/libgomp.c/nested-1.c
libgomp/testsuite/libgomp.c/nested-2.c
libgomp/testsuite/libgomp.c/nested-3.c
libgomp/testsuite/libgomp.c/pr32362-1.c
libgomp/testsuite/libgomp.c/pr32362-2.c
libgomp/testsuite/libgomp.c/pr32362-3.c
libgomp/testsuite/libgomp.c/pr35549.c
libgomp/testsuite/libgomp.c/pr42942.c
libgomp/testsuite/libgomp.c/pr61200.c
libgomp/testsuite/libgomp.c/sort-1.c
libgomp/testsuite/libgomp.c/target-5.c
libgomp/testsuite/libgomp.c/target-6.c
libgomp/testsuite/libgomp.c/teams-1.c
libgomp/testsuite/libgomp.c/thread-limit-1.c
libgomp/testsuite/libgomp.c/thread-limit-2.c
libgomp/testsuite/libgomp.c/thread-limit-4.c
libgomp/testsuite/libgomp.fortran/affinity1.f90
libgomp/testsuite/libgomp.fortran/lib1.f90
libgomp/testsuite/libgomp.fortran/lib2.f
libgomp/testsuite/libgomp.fortran/nested1.f90
libgomp/testsuite/libgomp.fortran/teams1.f90