From patchwork Wed Nov 9 12:41:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 60269 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E3EA1384601B for ; Wed, 9 Nov 2022 12:41:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 879573851405 for ; Wed, 9 Nov 2022 12:41:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 879573851405 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 804181F99C for ; Wed, 9 Nov 2022 12:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1667997662; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p9vBHPEIDZR8AZAnZtd0+D6skwOQyRm19DcwZzGaE8g=; b=zfjyulVXPQvjridHV22BFFcAK+PWpXhXhRK1XgcOoxFGOrWyTS0hBpPs4qzoGpmzn3MMT0 uMuJA9BtoZX7Dl6ickMrpolp7ABgeo1r8B88P7vaOFfwgUcbzW4cj6oyjvYZIgR2+QNu/z YxgoSMEexR3ghdWRec4x4Fz3YIfT1QQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1667997662; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p9vBHPEIDZR8AZAnZtd0+D6skwOQyRm19DcwZzGaE8g=; b=E64AcwJpIpH/F49rRoOi4XIqT6sE994EAN+8PFoNoPSwm9ytVrM0MkHZQEaLKwSOAU6i3K Xy1pMnMIHMlSuDAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6FEB4139F1 for ; Wed, 9 Nov 2022 12:41:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oDMXGt6fa2OmZwAAMHmgww (envelope-from ) for ; Wed, 09 Nov 2022 12:41:02 +0000 Message-ID: <60dbd5ca-ae0b-a968-a702-23fccd82889f@suse.cz> Date: Wed, 9 Nov 2022 13:41:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] docs: fix: WARNING: Parsing of expression failed. Using fallback parser. To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" For the future, we can use https://sphinx-fortran.readthedocs.io/ for Fortran functions which can have optional arguments. However, it's an additional dependency. Simplify the function declration. gcc/fortran/ChangeLog: * doc/gfortran/intrinsic-procedures/aint.rst: Simplify function declaration. * doc/gfortran/intrinsic-procedures/anint.rst: Likewise. * doc/gfortran/intrinsic-procedures/char.rst: Likewise. * doc/gfortran/intrinsic-procedures/real.rst: Likewise. --- gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst | 4 ++-- gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst | 4 ++-- gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst | 4 ++-- gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst | 4 ++-- gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst b/gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst index 2550442c246..f95a60121aa 100644 --- a/gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst +++ b/gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst @@ -16,7 +16,7 @@ AINT --- Truncate to a whole number *********************************** -.. function:: AINT(A [, KIND]) +.. function:: AINT(A, KIND) ``AINT(A [, KIND])`` truncates its argument to a whole number. @@ -75,4 +75,4 @@ AINT --- Truncate to a whole number * - ``DINT(A)`` - ``REAL(8) A`` - ``REAL(8)`` - - Fortran 77 and later \ No newline at end of file + - Fortran 77 and later diff --git a/gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst b/gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst index 889585c412f..7c1d324cfc7 100644 --- a/gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst +++ b/gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst @@ -16,7 +16,7 @@ ANINT --- Nearest whole number ****************************** -.. function:: ANINT(A [, KIND]) +.. function:: ANINT(A, KIND) ``ANINT(A [, KIND])`` rounds its argument to the nearest whole number. @@ -73,4 +73,4 @@ ANINT --- Nearest whole number * - ``DNINT(A)`` - ``REAL(8) A`` - ``REAL(8)`` - - Fortran 77 and later \ No newline at end of file + - Fortran 77 and later diff --git a/gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst b/gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst index 221deca4882..a51b927d0b3 100644 --- a/gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst +++ b/gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst @@ -12,7 +12,7 @@ CHAR --- Character conversion function ************************************** -.. function:: CHAR(I [, KIND]) +.. function:: CHAR(I, KIND) ``CHAR(I [, KIND])`` returns the character represented by the integer :samp:`{I}`. @@ -68,4 +68,4 @@ CHAR --- Character conversion function See also: :ref:`ACHAR`, :ref:`IACHAR`, - :ref:`ICHAR` \ No newline at end of file + :ref:`ICHAR` diff --git a/gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst b/gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst index 43d2a56be38..83a35aef529 100644 --- a/gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst +++ b/gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst @@ -16,7 +16,7 @@ INT --- Convert to integer type ******************************* -.. function:: INT(A , KIND)) +.. function:: INT(A, KIND) Convert to integer type @@ -73,4 +73,4 @@ INT --- Convert to integer type * - ``IDINT(A)`` - ``REAL(8) A`` - ``INTEGER`` - - Fortran 77 and later \ No newline at end of file + - Fortran 77 and later diff --git a/gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst b/gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst index 0f15f5cb8cc..be19a01723d 100644 --- a/gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst +++ b/gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst @@ -28,7 +28,7 @@ REAL --- Convert to real type ****************************** -.. function:: REAL(A [, KIND]) +.. function:: REAL(A, KIND) ``REAL(A [, KIND])`` converts its argument :samp:`{A}` to a real type. The ``REALPART`` function is provided for compatibility with :command:`g77`, @@ -101,4 +101,4 @@ REAL --- Convert to real type - Fortran 77 and later See also: - :ref:`DBLE` \ No newline at end of file + :ref:`DBLE`