summaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authordfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-11 23:08:01 +0000
committerdfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-11 23:08:01 +0000
commit5309bf0b5dd10a649d29cfeb69e785b1d5280457 (patch)
tree30db48b486d1a355cf8365acd0f1b88d893d685e /gcc/fortran
parent60fbbf9e72fbef8c57360f85de835bb251a30fc4 (diff)
downloadgcc-5309bf0b5dd10a649d29cfeb69e785b1d5280457.tar.gz
2007-02-11 Daniel Franke <franke.daniel@gmail.com>
* intrinsic.texi (HOSTNM): Fix typographical error in syntax. (SLEEP): Added section and documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/intrinsic.texi35
2 files changed, 39 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 63144257818..ae6444a1a7e 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-11 Daniel Franke <franke.daniel@gmail.com>
+
+ * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
+ (SLEEP): Added section and documentation.
+
2007-02-11 Tobias Schlüter <tobi@gcc.gnu.org>
PR fortran/30478
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 9252be1a652..26244b505ad 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -225,6 +225,7 @@ Some intrinsics have documentation yet to be completed as indicated by 'document
* @code{SIN}: SIN, Sine function
* @code{SINH}: SINH, Hyperbolic sine function
* @code{SIZE}: SIZE, Function to determine the size of an array
+* @code{SLEEP}: SLEEP, Sleep for the specified number of seconds
* @code{SNGL}: SNGL, Convert double precision real to default real
* @code{SPACING}: SPACING, Smallest distance between two numbers of a given type
* @code{SPREAD}: SPREAD, Add a dimension to an array
@@ -4477,7 +4478,7 @@ Subroutine, function
@item @emph{Syntax}:
@multitable @columnfractions .80
-@item @code{CALL HOSTNM(NAME, STATUS)}
+@item @code{CALL HOSTNM(NAME[, STATUS])}
@item @code{STATUS = HOSTNM(NAME)}
@end multitable
@@ -8105,6 +8106,38 @@ Inquiry function
+@node SLEEP
+@section @code{SLEEP} --- Sleep for the specified number of seconds
+@cindex @code{SLEEP} intrinsic
+
+@table @asis
+@item @emph{Description}:
+Calling this subroutine causes the process to pause for @var{SECONDS} seconds.
+
+@item @emph{Standard}:
+GNU extension
+
+@item @emph{Class}:
+Subroutine
+
+@item @emph{Syntax}:
+@code{CALL SLEEP(SECONDS)}
+
+@item @emph{Arguments}:
+@multitable @columnfractions .15 .80
+@item @var{SECONDS} @tab The type shall be of default @code{INTEGER}.
+@end multitable
+
+@item @emph{Example}:
+@smallexample
+program test_sleep
+ call sleep(5)
+end
+@end smallexample
+@end table
+
+
+
@node SNGL
@section @code{SNGL} --- Convert double precision real to default real
@cindex @code{SNGL} intrinsic