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 | |
parent | 8ca07a3072438fa5e76f2b2cea9e51a98760a86f (diff) | |
download | gcc-fff15bad1ab571906c37b88380431768d917dcb0.zip gcc-fff15bad1ab571906c37b88380431768d917dcb0.tar.gz gcc-fff15bad1ab571906c37b88380431768d917dcb0.tar.bz2 |
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')
-rwxr-xr-x | libgomp/configure | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libgomp/configure b/libgomp/configure index fd65828..d85023f 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -647,6 +647,7 @@ OMP_NEST_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_LOCK_ALIGN OMP_LOCK_SIZE +INTPTR_T_KIND USE_FORTRAN_FALSE USE_FORTRAN_TRUE link_gomp @@ -11433,7 +11434,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11436 "configure" +#line 11437 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11539,7 +11540,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11542 "configure" +#line 11543 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16962,6 +16963,11 @@ for i in $config_path; do fi done +if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then : + +fi + + if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : else @@ -17041,6 +17047,7 @@ fi + CFLAGS="$save_CFLAGS" # Determine what GCC version number to use in filesystem paths. |