diff options
author | Marcel Vollweiler <marcel@codesourcery.com> | 2021-10-11 04:34:51 -0700 |
---|---|---|
committer | Marcel Vollweiler <marcel@codesourcery.com> | 2021-10-11 04:34:51 -0700 |
commit | f70977936a306e2fb4140361ba47bf5d5cc0a47d (patch) | |
tree | edd1bc720eefa9625fd4bedfa4dbe06373186dd5 /libgomp/omp_lib.f90.in | |
parent | 07dd3bcda17f97cf5476c3d6f2f2501c1e0712e6 (diff) | |
download | gcc-f70977936a306e2fb4140361ba47bf5d5cc0a47d.tar.gz |
libgomp: Add tests for omp_atv_serialized and deprecate omp_atv_sequential.
The variable omp_atv_sequential was replaced by omp_atv_serialized in OpenMP
5.1. This was already implemented by Jakub (C/C++, commit ea82325afec) and
Tobias (Fortran, commit fff15bad1ab).
This patch adds two tests to check if omp_atv_serialized is available (one test
for C/C++ and one for Fortran). Besides that omp_atv_sequential is marked as
deprecated in C/C++ and Fortran for OpenMP 5.1.
libgomp/ChangeLog:
* allocator.c (omp_init_allocator): Replace omp_atv_sequential with
omp_atv_serialized.
* omp.h.in: Add deprecated flag for omp_atv_sequential.
* omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
* testsuite/libgomp.c-c++-common/alloc-10.c: New test.
* testsuite/libgomp.fortran/alloc-12.f90: New test.
Diffstat (limited to 'libgomp/omp_lib.f90.in')
-rw-r--r-- | libgomp/omp_lib.f90.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/omp_lib.f90.in b/libgomp/omp_lib.f90.in index 973b87be80a..e870755891c 100644 --- a/libgomp/omp_lib.f90.in +++ b/libgomp/omp_lib.f90.in @@ -840,7 +840,7 @@ #endif #if _OPENMP >= 202011 -!GCC$ ATTRIBUTES DEPRECATED :: omp_proc_bind_master +!GCC$ ATTRIBUTES DEPRECATED :: omp_proc_bind_master, omp_atv_sequential #endif end module omp_lib |