From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id B88FA3858CDA; Wed, 9 Nov 2022 12:56:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B88FA3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667998614; bh=mS9xlcjA0aIPsaXRI7vWvzGcCj2SRGGnyoSZB9ZbdrI=; h=From:To:Subject:Date:From; b=DkAU1qAdvTTTodDfuhaBX7EjK+2Ssnz2q4XsKDZEyBThphft/7Vk2eZqjT1UcIr5b 9Hvj7GzE29O6IzmQ+TwXf/QoHpMaa1ZPUcVVDc6YMDCP4BQFkr3HjTkQfHB0w/3rFY OCMA+zUrUFXhNkS42itsMC+p/PZ1cbnMUdNaVU7w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3854] docs: fix: WARNING: Parsing of expression failed. Using fallback parser. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 9c3bc557995463fe1dcc37ec503af780a6c1a341 X-Git-Newrev: a305ac87b46e263a3bc0c886f9dfddf2664f6af8 Message-Id: <20221109125654.B88FA3858CDA@sourceware.org> Date: Wed, 9 Nov 2022 12:56:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a305ac87b46e263a3bc0c886f9dfddf2664f6af8 commit r13-3854-ga305ac87b46e263a3bc0c886f9dfddf2664f6af8 Author: Martin Liska Date: Wed Nov 9 13:36:33 2022 +0100 docs: fix: WARNING: Parsing of expression failed. Using fallback parser. 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/int.rst: Likewise. * doc/gfortran/intrinsic-procedures/anint.rst: Likewise. * doc/gfortran/intrinsic-procedures/char.rst: Likewise. * doc/gfortran/intrinsic-procedures/real.rst: Likewise. Diff: --- 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`