aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Koenig <tkoenig@gcc.gnu.org>2018-05-10 14:31:54 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2018-05-10 14:31:54 +0000
commit6c4578da00267f279333154dc0b0bba391fe878a (patch)
treee8223ffc7b00caee9a1b3696d420522a6f448e42 /gcc
parent88bf4c34e3dc1de4253cd23abb26917976cec3dc (diff)
downloadgcc-6c4578da00267f279333154dc0b0bba391fe878a.zip
gcc-6c4578da00267f279333154dc0b0bba391fe878a.tar.gz
gcc-6c4578da00267f279333154dc0b0bba391fe878a.tar.bz2
re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=)
2018-05-10 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/54613 * intrinsic.texi: Document BACK for MINLOC and MAXLOC. From-SVN: r260116
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/intrinsic.texi22
2 files changed, 20 insertions, 7 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 34d776b..474cd70 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-10 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR fortran/54613
+ * intrinsic.texi: Document BACK for MINLOC and MAXLOC.
+
2018-05-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/68846
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index e38440d..adea02a 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -9991,8 +9991,10 @@ locations of the maximum element along each row of the array in the
@var{DIM} direction. If @var{MASK} is present, only the elements for
which @var{MASK} is @code{.TRUE.} are considered. If more than one
element in the array has the maximum value, the location returned is
-that of the first such element in array element order. If the array has
-zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
+that of the first such element in array element order if the
+@var{BACK} is not present, or if it false; otherwise, the location
+returned is that of the first such element. If the array has zero
+size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
the result is an array of zeroes. Similarly, if @var{DIM} is supplied
and all of the elements of @var{MASK} along a given row are zero, the
result value for that row is zero.
@@ -10000,14 +10002,15 @@ result value for that row is zero.
@item @emph{Standard}:
Fortran 95 and later; @var{ARRAY} of @code{CHARACTER} and the
@var{KIND} argument are available in Fortran 2003 and later.
+The @var{BACK} argument is available in Fortran 2008 and later.
@item @emph{Class}:
Transformational function
@item @emph{Syntax}:
@multitable @columnfractions .80
-@item @code{RESULT = MAXLOC(ARRAY, DIM [, MASK] [,KIND])}
-@item @code{RESULT = MAXLOC(ARRAY [, MASK] [,KIND])}
+@item @code{RESULT = MAXLOC(ARRAY, DIM [, MASK] [,KIND] [,BACK])}
+@item @code{RESULT = MAXLOC(ARRAY [, MASK] [,KIND] [,BACK])}
@end multitable
@item @emph{Arguments}:
@@ -10021,6 +10024,7 @@ inclusive. It may not be an optional dummy argument.
and conformable with @var{ARRAY}.
@item @var{KIND} @tab (Optional) An @code{INTEGER} initialization
expression indicating the kind parameter of the result.
+@item @var{BACK} @tab (Optional) A scalar of type @code{LOGICAL}.
@end multitable
@item @emph{Return value}:
@@ -10343,7 +10347,9 @@ locations of the minimum element along each row of the array in the
@var{DIM} direction. If @var{MASK} is present, only the elements for
which @var{MASK} is @code{.TRUE.} are considered. If more than one
element in the array has the minimum value, the location returned is
-that of the first such element in array element order. If the array has
+that of the first such element in array element order if the
+@var{BACK} is not present, or if it false; otherwise, the location
+returned is that of the first such element. If the array has
zero size, or all of the elements of @var{MASK} are @code{.FALSE.}, then
the result is an array of zeroes. Similarly, if @var{DIM} is supplied
and all of the elements of @var{MASK} along a given row are zero, the
@@ -10352,14 +10358,15 @@ result value for that row is zero.
@item @emph{Standard}:
Fortran 95 and later; @var{ARRAY} of @code{CHARACTER} and the
@var{KIND} argument are available in Fortran 2003 and later.
+The @var{BACK} argument is available in Fortran 2008 and later.
@item @emph{Class}:
Transformational function
@item @emph{Syntax}:
@multitable @columnfractions .80
-@item @code{RESULT = MINLOC(ARRAY, DIM [, MASK] [,KIND])}
-@item @code{RESULT = MINLOC(ARRAY [, MASK], [,KIND])}
+@item @code{RESULT = MINLOC(ARRAY, DIM [, MASK] [,KIND] [,BACK])}
+@item @code{RESULT = MINLOC(ARRAY [, MASK], [,KIND] [,BACK])}
@end multitable
@item @emph{Arguments}:
@@ -10373,6 +10380,7 @@ inclusive. It may not be an optional dummy argument.
and conformable with @var{ARRAY}.
@item @var{KIND} @tab (Optional) An @code{INTEGER} initialization
expression indicating the kind parameter of the result.
+@item @var{BACK} @tab (Optional) A scalar of type @code{LOGICAL}.
@end multitable
@item @emph{Return value}: