This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran, patch] intrinsic.texi - fix Fortran 2003 [, KIND] documentation
- From: Tobias Burnus <burnus at net-b dot de>
- To: "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 16 May 2008 14:31:51 +0200
- Subject: Re: [Fortran, patch] intrinsic.texi - fix Fortran 2003 [, KIND] documentation
- References: <482D77C8.8060307@net-b.de>
Tobias Burnus wrote:
Hi all,
This patch does:
a) Add [, KIND] to ACHAR
I forgot to add it also to NINT. I think KIND= was added in Fortran 90.
At least I cannot find it in Fortran 77 and it is present in Fortran 95.
Tobias
diff -u gcc/fortran/intrinsic.texi gcc/fortran/intrinsic.texi
--- gcc/fortran/intrinsic.texi (Arbeitskopie)
+++ gcc/fortran/intrinsic.texi (Arbeitskopie)
@@ -8108,17 +8108,20 @@
@code{NINT(X)} rounds its argument to the nearest whole number.
@item @emph{Standard}:
-Fortran 77 and later
+Fortran 77 and later, with @var{KIND} argument Fortran 90 and later
@item @emph{Class}:
Elemental function
@item @emph{Syntax}:
-@code{RESULT = NINT(X)}
+@code{RESULT = NINT(X [, KIND])}
@item @emph{Arguments}:
@multitable @columnfractions .15 .70
@item @var{X} @tab The type of the argument shall be @code{REAL}.
+@item @var{KIND} @tab (Optional) An @code{INTEGER} initialization
+ expression indicating the kind parameter of
+ the result.
@end multitable
@item @emph{Return value}: