diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-07-15 08:33:20 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-07-15 08:33:20 +0200 |
commit | fff15bad1ab571906c37b88380431768d917dcb0 (patch) | |
tree | db37c1397b78b5430555ef4c30fa39d6d288551c /libgomp/configure.ac | |
parent | 8ca07a3072438fa5e76f2b2cea9e51a98760a86f (diff) | |
download | gcc-fff15bad1ab571906c37b88380431768d917dcb0.tar.gz |
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.
Diffstat (limited to 'libgomp/configure.ac')
-rw-r--r-- | libgomp/configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgomp/configure.ac b/libgomp/configure.ac index 201d26fff7a..d1034dab7f8 100644 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac @@ -395,6 +395,7 @@ for i in $config_path; do fi done +_AC_COMPUTE_INT([sizeof (__INTPTR_TYPE__)], [INTPTR_T_KIND]) _AC_COMPUTE_INT([sizeof (omp_lock_t)], [OMP_LOCK_SIZE],, [AC_MSG_ERROR([unsupported system, cannot find sizeof (omp_lock_t)])]) _AC_COMPUTE_INT([__alignof (omp_lock_t)], [OMP_LOCK_ALIGN]) @@ -428,6 +429,7 @@ if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NE OMP_NEST_LOCK_25_KIND=8 fi +AC_SUBST(INTPTR_T_KIND) AC_SUBST(OMP_LOCK_SIZE) AC_SUBST(OMP_LOCK_ALIGN) AC_SUBST(OMP_NEST_LOCK_SIZE) |