libgomp: Add Fortran routine support for allocators
authorTobias Burnus <tobias@codesourcery.com>
Wed, 15 Jul 2020 06:33:20 +0000 (08:33 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 15 Jul 2020 06:33:20 +0000 (08:33 +0200)
commitfff15bad1ab571906c37b88380431768d917dcb0
treedb37c1397b78b5430555ef4c30fa39d6d288551c
parent8ca07a3072438fa5e76f2b2cea9e51a98760a86f
libgomp: Add Fortran routine support for allocators

libgomp/ChangeLog:

* allocator.c: Add ialias for omp_init_allocator and
omp_destroy_allocator.
* configure.ac: Set INTPTR_T_KIND.
* configure: Regenerate.
* Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
* fortran.c (omp_init_allocator_, omp_destroy_allocator_,
omp_set_default_allocator_, omp_get_default_allocator_): New
functions and ialias_redirect.
* icv.c: Add ialias for omp_set_default_allocator and
omp_get_default_allocator.
* libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
omp_destroy_allocator_, omp_set_default_allocator_ and
omp_get_default_allocator_.
* omp_lib.f90.in: Add allocator traits parameters, declare
allocator routines and add related kind parameters.
* omp_lib.h.in: Likewise.
* testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
* testsuite/libgomp.fortran/alloc-1.F90: New test.
* testsuite/libgomp.fortran/alloc-2.F90: New test.
* testsuite/libgomp.fortran/alloc-3.F: New test.
* testsuite/libgomp.fortran/alloc-4.f90: New test.
* testsuite/libgomp.fortran/alloc-5.f90: New test.
16 files changed:
libgomp/Makefile.in
libgomp/allocator.c
libgomp/configure
libgomp/configure.ac
libgomp/fortran.c
libgomp/icv.c
libgomp/libgomp.map
libgomp/omp_lib.f90.in
libgomp/omp_lib.h.in
libgomp/testsuite/Makefile.in
libgomp/testsuite/libgomp.c-c++-common/alloc-2.c
libgomp/testsuite/libgomp.fortran/alloc-1.F90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/alloc-2.F90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/alloc-3.F [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/alloc-4.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/alloc-5.f90 [new file with mode: 0644]