This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran, patch] intrinsic.texi - fix Fortran 2003 [, KIND] documentation


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}:



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]