]> git.ipfire.org Git - thirdparty/gcc.git/commit
libgomp.map (OMP_5.0): Export omp_pause_resource{,_all}{,_}.
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Jul 2018 12:55:28 +0000 (14:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Jul 2018 12:55:28 +0000 (14:55 +0200)
commitb9eb83516f43c5df77bdad7de9acc6d0e135020a
tree0bbffa694c5296e85a6c1133612b5bc5867dce61
parent61d19e0a2687d84b36862d77116eeaa2c5f37ab9
libgomp.map (OMP_5.0): Export omp_pause_resource{,_all}{,_}.

* libgomp.map (OMP_5.0): Export omp_pause_resource{,_all}{,_}.
* omp.h.in (omp_pause_resource_t): New typedef.
(omp_pause_resource, omp_pause_resource_all): New prototypes.
* omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
omp_pause_hard): New parameters.
(omp_pause_resource, omp_pause_resource_all): New interfaces.
* omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
omp_pause_hard): New parameters.
(omp_pause_resource, omp_pause_resource_all): New externals.
* libgomp.h (gomp_pause_host): New prototype.
* team.c (gomp_thread_attr): Remove comment.
(gomp_thread_start): Call pthread_detach.
(gomp_free_pool_helper): Likewise.
(gomp_team_start): Don't call pthread_attr_setdetachstate.
(gomp_pause_pool_helper, gomp_pause_host): New functions.
* target.c (omp_pause_resource, omp_pause_resource_all): New functions.
* env.c (initialize_env): Don't call pthread_attr_setdetachstate.
* fortran.c (omp_pause_resource, omp_pause_resource_all): Add
ialias_redirect.
(omp_pause_resource_, omp_pause_resource_all_): New functions.
* config/nvptx/team.c (gomp_pause_host): New function.
* config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
New functions.
* testsuite/libgomp.c-c++-common/pause-1.c: New test.
* testsuite/libgomp.c-c++-common/pause-2.c: New test.

From-SVN: r263029
14 files changed:
libgomp/ChangeLog.gomp
libgomp/config/nvptx/target.c
libgomp/config/nvptx/team.c
libgomp/env.c
libgomp/fortran.c
libgomp/libgomp.h
libgomp/libgomp.map
libgomp/omp.h.in
libgomp/omp_lib.f90.in
libgomp/omp_lib.h.in
libgomp/target.c
libgomp/team.c
libgomp/testsuite/libgomp.c-c++-common/pause-1.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c-c++-common/pause-2.c [new file with mode: 0644]