diff options
| author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-08 09:23:53 +0000 |
|---|---|---|
| committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-08 09:23:53 +0000 |
| commit | 0873bfe5e3e9004382c8445db24dff5a197236e0 (patch) | |
| tree | 8f4ac86a0fd283dc8d370866b30cdb46c21b34e8 /gcc | |
| parent | c6c91d619ca37ad6d86612c9af96caf9a7c1a09d (diff) | |
| download | ppe42-gcc-0873bfe5e3e9004382c8445db24dff5a197236e0.tar.gz ppe42-gcc-0873bfe5e3e9004382c8445db24dff5a197236e0.zip | |
2006-11-08 Tobias Burnus <burnus@net-b.de>
* gfortran.texi: Add volatile and internal-file
namelist to Fortran 2003 status.
* intrinsic.texi: Correct CHMOD entry.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/fortran/ChangeLog | 8 | ||||
| -rw-r--r-- | gcc/fortran/gfortran.texi | 6 | ||||
| -rw-r--r-- | gcc/fortran/intrinsic.texi | 25 |
3 files changed, 35 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2298315de8e..42c07fe8032 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,4 +1,10 @@ -2006-11-07 Paul Thomas <pault@gcc.gnu.org> +2006-11-08 Tobias Burnus <burnus@net-b.de> + + * gfortran.texi: Add volatile and internal-file + namelist to Fortran 2003 status. + * intrinsic.texi: Correct CHMOD entry. + +2006-11-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/29539 PR fortran/29634 diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 9847cbf4415..d97785b16b5 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -1380,6 +1380,12 @@ TR 15581: The @code{OPEN} statement supports the @code{ACCESS='STREAM'} specifier, allowing I/O without any record structure. +@item +Namelist input/output for internal files. + +@item +@cindex @code{VOLATILE} +The @code{VOLATILE} statement and attribute. @end itemize diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index f4df01f3557..1411f925b28 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -1910,16 +1910,21 @@ END PROGRAM @item @emph{Description}: @code{CHMOD} changes the permissions of a file. This function invokes @code{/bin/chmod} and might therefore not work on all platforms. -@code{CHMOD} as an intrinsic function is not implemented in GNU Fortran. + +This intrinsic is provided in both subroutine and function forms; however, +only one form can be used in any given program unit. @item @emph{Standard}: GNU extension @item @emph{Class}: -Subroutine +Subroutine, non-elemental function @item @emph{Syntax}: -@code{CHMOD(NAME, MODE[, STATUS])} +@multitable @columnfractions .80 +@item @code{CALL CHMOD(NAME, MODE[, STATUS])} +@item @code{STATUS = CHMOD(NAME, MODE)} +@end multitable @item @emph{Arguments}: @multitable @columnfractions .15 .80 @@ -1936,7 +1941,12 @@ used as the file name. @code{0} on success and non-zero otherwise. @end multitable +@item @emph{Return value}: +In either syntax, @var{STATUS} is set to @code{0} on success and non-zero +otherwise. + @item @emph{Example}: +@code{CHMOD} as subroutine @smallexample program chmod_test implicit none @@ -1945,6 +1955,15 @@ program chmod_test print *, 'Status: ', status end program chmod_test @end smallexample +@code{CHMOD} as non-elemental function: +@smallexample +program chmod_test + implicit none + integer :: status + status = chmod('test.dat','u+x') + print *, 'Status: ', status +end program chmod_test +@end smallexample @item @emph{Specific names}: @item @emph{See also}: |

