From patchwork Thu May 10 14:33:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thomas_K=C3=B6nig?= X-Patchwork-Id: 911385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-477500-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tkoenig.net Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="EdZm70/e"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40hbM40kbyz9ry1 for ; Fri, 11 May 2018 00:33:51 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=iAyZs6LCE3ATmypOTJn9uBDyh/Cs6D9xRjgG5rHAaeQBGwpgzF kxHivMSPA3c2XjhL8VZ6s/WslGn+ZDq5ttIOEd46/abedxmWwOmuuyhcFQvAaSZz qlC81WwdK+62ViYPdA9qJ5XFYeBYjzDcJ6t81uhMKAhG3KwXy+DS1QNQc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=gTE5p4OGb/B8LNx53zY9lFh3hFA=; b=EdZm70/ebC2les2q9dqK 0IO47QBpal8ZAFE+8Gn+690MEgGmKZkLOp6F1ZQF4ybsZjyDnjapNuklFZJWN8dd DC+JjRIbhZ+AhuqO4ENjOCLgnBEyfVjVisIcOL3SCcyhb7XRXWcXeAeUMCkLPo7A pnGSUsk7fbh4q5XuqhWYbhg= Received: (qmail 11538 invoked by alias); 10 May 2018 14:33:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 11519 invoked by uid 89); 10 May 2018 14:33:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=260022, inclusive X-Spam-User: qpsmtpd, 2 recipients X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.218) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 May 2018 14:33:36 +0000 X-RZG-AUTH: ":OGckYUunfvGNVUL0FlRnC4eRM+bOwx0tUtYTrJ/xeZX+ZVZvrbiROUdgPG6Qd0k=" X-RZG-CLASS-ID: mo00 Received: from [192.168.178.68] by smtp.strato.de (RZmta 43.8 DYNA|AUTH) with ESMTPSA id e0b03cu4AEXXP6I (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Thu, 10 May 2018 16:33:33 +0200 (CEST) To: "fortran@gcc.gnu.org" , gcc-patches From: =?utf-8?q?Thomas_K=C3=B6nig?= Subject: [patch, fortran, doc, committed] Document BACK for MINLOC and MAXLOC Message-ID: <8ba7d80e-9ecf-0d9d-06ca-6c73a83f0599@tkoenig.net> Date: Thu, 10 May 2018 16:33:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Hello world, I just commmitted the attached patch as obvious after checking that it passes "make info", "make dvi" and "make pdf". Regards Thomas 2018-05-10 Thomas Koenig PR fortran/54613 * intrinsic.texi: Document BACK for MINLOC and MAXLOC. Index: intrinsic.texi =================================================================== --- intrinsic.texi (Revision 260022) +++ intrinsic.texi (Arbeitskopie) @@ -9991,8 +9991,10 @@ locations of the maximum element along each row of @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,6 +10002,7 @@ 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 @@ -10006,8 +10009,8 @@ 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 argume 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 @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,6 +10358,7 @@ 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 @@ -10358,8 +10365,8 @@ 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 argume 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}: