From: Tobias Burnus Date: Mon, 3 Feb 2020 11:14:58 +0000 (+0100) Subject: [OpenMP] Add missing parameters to omp_lib documentation (PR fortran/93541) X-Git-Tag: releases/gcc-9.3.0~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41ef25ed059a187010c179c5ee304b2f5d66e141;p=thirdparty%2Fgcc.git [OpenMP] Add missing parameters to omp_lib documentation (PR fortran/93541) Backported from mainline 2020-02-03 Tobias Burnus PR fortran/93541 * intrinisic.texi (OpenMP Modules OMP_LIB and OMP_LIB_KINDS): Add undocumented parameters from omp_lib.f90.in. --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index ca80c1bcd229..0f5b7e60a504 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,12 @@ +2020-02-03 Tobias Burnus + + Backported from mainline + 2020-02-03 Tobias Burnus + + 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 Backported from mainline diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index f390761dc3d6..b39c576a8f60 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -15017,13 +15017,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 @@ -15054,6 +15057,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