From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 501113858001; Wed, 10 Mar 2021 20:27:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 501113858001 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tobias_Burnus@mentor.com IronPort-SDR: cyDEcSCFEdtWzAvYFBLeo/FZ7hskq28B53KyzGjIjzresRmhEe7zHjH7Za1QWYKDVWAxx7f4dn rJ/OPkcyIkLm82L8EDCRVuwh3Urxd2HKy9ttFclhpoTd6IdCHYeVVd4DbbnUr4do0rMLMQRq1F mFqQdMpoFut1wUm8aMpLQPOrWQnGVYrUGJJurheq7HfEKRg84dZgtMj7jgJfnpGB8GEY9F/ypq h5lXbgCHn4gc84C9zqZbYA9FrQkVN90b6n2ulWeY/WP6j2bIAnk+cxK3YS5okOxBKQqXnBPXob qW4= X-IronPort-AV: E=Sophos;i="5.81,238,1610438400"; d="diff'?scan'208";a="58960718" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 10 Mar 2021 12:27:26 -0800 IronPort-SDR: luyIVwhjWUqWlHfEp0q5Uorf7rY0nV7RpSTEiOJGffe7yMK531BqBIpK4ZL0N37LsUvOKAlyOz 3jCGDRARxoN2ISKvpDvfKzQnWpFoJwXEuvXo8wcJ1DlfdzjpytSug5poRC8oMw38ACWU9KgIBf VM+LyESFe+We9QZYyvkYvNvHabe5F3SHX3zT3q58jmQj6NZ3Z3bd9SbL9pc5Y5zvWfHs+MHl5Z /rBqvNqrjMpBlvvev6mTdrdrZ53d2WCjrUVwtIHs12Tx1jP3cXt6EdbjmNg3yY9foxSy/VYBsf N5k= Subject: [Patch, committed] Fortran: Fix wording in intrinsic.texi's MIN (was: Minor error on MIN() page) To: Russ Childers , , fortran References: From: Tobias Burnus Message-ID: <75e23dc9-c44a-8afa-867b-bec4f2e165ce@codesourcery.com> Date: Wed, 10 Mar 2021 21:27:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------6FADF1534BF1C9CFDB1C674E" Content-Language: en-US X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 20:27:30 -0000 --------------6FADF1534BF1C9CFDB1C674E Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Thanks for the report. I have now applied the attached patch. Tobias On 10.03.21 20:44, Russ Childers via Gcc wrote: > https://gcc.gnu.org/onlinedocs/gfortran/MIN.html > > ...says > > " > The return value corresponds to the maximum value among the arguments, an= d > has the same type and kind as the first argument. > " > > Should be "minimum value" > > Best, > Russ Childers ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 M=C3=BCnchen R= egistergericht M=C3=BCnchen HRB 106955, Gesch=C3=A4ftsf=C3=BChrer: Thomas H= eurung, Frank Th=C3=BCrauf --------------6FADF1534BF1C9CFDB1C674E Content-Type: text/x-patch; charset="UTF-8"; name="committed.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="committed.diff" commit 9dcc2edfa657d26223f7e74d27af225d4bbf11a9 Author: Tobias Burnus Date: Wed Mar 10 21:24:18 2021 +0100 Fortran: Fix wording in intrinsic.texi's MIN gcc/fortran/ChangeLog: * intrinsic.texi (MIN): Correct 'maximum' to 'minimum'. diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index ea78f7d343a..73baa34104e 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -10621,21 +10621,21 @@ Elemental function @item @emph{Arguments}: @multitable @columnfractions .15 .70 @item @var{A1} @tab The type shall be @code{INTEGER} or @code{REAL}. @item @var{A2}, @var{A3}, ... @tab An expression of the same type and kind as @var{A1}. (As a GNU extension, arguments of different kinds are permitted.) @end multitable @item @emph{Return value}: -The return value corresponds to the maximum value among the arguments, +The return value corresponds to the minimum value among the arguments, and has the same type and kind as the first argument. @item @emph{Specific names}: @multitable @columnfractions .20 .20 .20 .25 @item Name @tab Argument @tab Return type @tab Standard @item @code{MIN0(A1)} @tab @code{INTEGER(4) A1} @tab @code{INTEGER(4)} @tab Fortran 77 and later @item @code{AMIN0(A1)} @tab @code{INTEGER(4) A1} @tab @code{REAL(4)} @tab Fortran 77 and later @item @code{MIN1(A1)} @tab @code{REAL A1} @tab @code{INTEGER(4)} @tab Fortran 77 and later @item @code{AMIN1(A1)} @tab @code{REAL(4) A1} @tab @code{REAL(4)} @tab Fortran 77 and later @item @code{DMIN1(A1)} @tab @code{REAL(8) A1} @tab @code{REAL(8)} @tab Fortran 77 and later --------------6FADF1534BF1C9CFDB1C674E--