Minor texi patch
Tobias Burnus
burnus@net-b.de
Sat Aug 26 10:35:00 GMT 2006
Hello,
I change the following in the patch below
- In the backward compatibilty section in gfortran.texi about the
variables initialized in type declarations, I add the note this
those variables automatically aquire the SAVE attribute.
(This is often overlooked by programmers coming from C, thus it shouldn't
harm to have it also in this section.)
- I think nowhere one mentions the support of KIND=16 (though not supported
on most platforms) and also not KIND=10 (which most compilers don't have).
Thus I added them to the kind introduction at the top of intrinsic.tex
- I put in a pointer to INQUIRE for the unsupported g77 ACCESS
- Missing ) added to ACOS.
Tobias
Index: gfortran.texi
===================================================================
--- gfortran.texi (revision 116466)
+++ gfortran.texi (working copy)
@@ -801,6 +801,9 @@
DATA i,j,x /1,2,3*0.,1./
@end smallexample
+Note that variables initialized in type declarations
+automatically acquire the @code{SAVE} attribute.
+
@node Extensions to namelist
@section Extensions to namelist
@cindex Namelist
Index: intrinsic.texi
===================================================================
--- intrinsic.texi (revision 116466)
+++ intrinsic.texi (working copy)
@@ -253,6 +253,8 @@
respectively. The standard mandates that both data types shall have
another kind, which have more precision. On typical target architectures
supported by @command{gfortran}, this kind type parameter is @code{KIND=8}.
+Depending on the target architectures, @code{KIND=10} and @code{KIND=16}
+might also be available.
Hence, @code{REAL(KIND=8)} and @code{DOUBLE PRECISION} are equivalent.
In the description of generic intrinsic procedures, the kind type parameter
will be specified by @code{KIND=*}, and in the description of specific
@@ -264,7 +266,8 @@
This document follows the convention used in the Fortran 95 standard,
and denotes such arguments by square brackets.
-@command{Gfortran} offers the @option{-std=f95} and @option{-std=gnu}
options,
+@command{Gfortran} offers the @option{-std=f95}, @option{-std=f2003} and
+@option{-std=gnu} options,
which can be used to restrict the set of intrinsic procedures to a
given standard. By default, @command{gfortran} sets the @option{-std=gnu}
option, and so all intrinsic procedures described here are accepted. There
@@ -378,10 +381,13 @@
@findex @code{ACCESS}
@cindex file system functions
-Not yet implemented in gfortran.
+Not yet implemented in gfortran. Except for querying the executable state,
+the Fortran 95 intrinsic statement @code{INQUIRE} can be used instead.
@table @asis
@item @emph{Description}:
+Checks whether the file associated with the given file name exists, is
readable,
+writeable or executable.
@item @emph{Standard}:
GNU extension
@@ -445,7 +451,7 @@
@table @asis
@item @emph{Description}:
-@code{ACOS(X)} computes the arccosine of @var{X} (inverse of @code{COS(X)}.
+@code{ACOS(X)} computes the arccosine of @var{X} (inverse of
@code{COS(X)}).
@item @emph{Standard}:
F77 and later
More information about the Fortran
mailing list