aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2020-02-03 10:02:47 +0100
committerTobias Burnus <tobias@codesourcery.com>2020-02-03 10:02:47 +0100
commit7c8e1f920a7f85fcf7b69072926a7b6e0a7e49c5 (patch)
tree3c6a779451baab501925abf6721e8ff8b961abb1
parentae86ede8e988d1863b92a19f35d5f7c6b998bf8c (diff)
downloadgcc-7c8e1f920a7f85fcf7b69072926a7b6e0a7e49c5.zip
gcc-7c8e1f920a7f85fcf7b69072926a7b6e0a7e49c5.tar.gz
gcc-7c8e1f920a7f85fcf7b69072926a7b6e0a7e49c5.tar.bz2
[OpenMP] Add missing parameters to omp_lib documentation (PR fortran/93541)
PR fortran/93541 * intrinisic.texi (OpenMP Modules OMP_LIB and OMP_LIB_KINDS): Add undocumented parameters from omp_lib.f90.in.
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/intrinsic.texi21
2 files changed, 27 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 570cacb..b74c2dd 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,11 @@
2020-02-03 Tobias Burnus <tobias@codesourcery.com>
+ PR fortran/93541
+ * intrinisic.texi (OpenMP Modules OMP_LIB and OMP_LIB_KINDS):
+ Add undocumented parameters from omp_lib.f90.in.
+
+2020-02-03 Tobias Burnus <tobias@codesourcery.com>
+
PR fortran/93427
* resolve.c (resolve_assoc_var): Remove too strict check.
* gfortran.dg/associate_51.f90: Update test case.
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 823cb9c..842c88b 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -15307,13 +15307,16 @@ below.
For details refer to the actual
@uref{http://www.openmp.org/wp-content/uploads/openmp-4.5.pdf,
OpenMP Application Program Interface v4.5}.
+And for the @code{pause}-related constants to the OpenMP 5.0 specification.
@code{OMP_LIB_KINDS} provides the following scalar default-integer
named constants:
@table @asis
@item @code{omp_lock_kind}
+@item @code{omp_lock_hint_kind}
@item @code{omp_nest_lock_kind}
+@item @code{omp_pause_resource_kind}
@item @code{omp_proc_bind_kind}
@item @code{omp_sched_kind}
@end table
@@ -15344,6 +15347,24 @@ kind @code{omp_proc_bind_kind}:
@item @code{omp_proc_bind_spread}
@end table
+The following scalar integer named constants are of the
+kind @code{omp_lock_hint_kind}:
+
+@table @asis
+@item @code{omp_lock_hint_none}
+@item @code{omp_lock_hint_uncontended}
+@item @code{omp_lock_hint_contended}
+@item @code{omp_lock_hint_nonspeculative}
+@item @code{omp_lock_hint_speculative}
+@end table
+
+And the following two scalar integer named constants are of the
+kind @code{omp_pause_resource_kind}:
+
+@table @asis
+@item @code{omp_pause_soft}
+@item @code{omp_pause_hard}
+@end table
@node OpenACC Module OPENACC