aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2024-08-15 22:31:11 +0200
committerHarald Anlauf <anlauf@gmx.de>2024-08-16 18:29:04 +0200
commit07ece73d4712c68144a07681b24a8c1f963256ab (patch)
treefb0fd3ef6ed9e54a62a2214a29f2af58f60acd14 /gcc
parentb584f387bf74df9ba2cbbc07d00a05a105757329 (diff)
downloadgcc-07ece73d4712c68144a07681b24a8c1f963256ab.zip
gcc-07ece73d4712c68144a07681b24a8c1f963256ab.tar.gz
gcc-07ece73d4712c68144a07681b24a8c1f963256ab.tar.bz2
Fortran: fix documentation of intrinsic RANDOM_INIT [PR114146]
gcc/fortran/ChangeLog: PR fortran/114146 * intrinsic.texi: Fix documentation of arguments of RANDOM_INIT, which is conforming to the F2018 standard.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/intrinsic.texi12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 3d3b9ed..10683e1 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -11928,15 +11928,15 @@ Subroutine
and it is @code{INTENT(IN)}. If it is @code{.true.}, the seed is set to
a processor-dependent value that is the same each time @code{RANDOM_INIT}
is called from the same image. The term ``same image'' means a single
-instance of program execution. The sequence of random numbers is different
-for repeated execution of the program. If it is @code{.false.}, the seed
-is set to a processor-dependent value.
+instance of program execution. The sequence of random numbers is the same
+for repeated execution of the program with the same execution environment.
+If it is @code{.false.}, the seed is set to a processor-dependent value.
@item @var{IMAGE_DISTINCT} @tab Shall be a scalar with a
@code{LOGICAL} type, and it is @code{INTENT(IN)}. If it is @code{.true.},
-the seed is set to a processor-dependent value that is distinct from th
+the seed is set to a processor-dependent value that is distinct from the
seed set by a call to @code{RANDOM_INIT} in another image. If it is
-@code{.false.}, the seed is set to a value that does depend which image called
-@code{RANDOM_INIT}.
+@code{.false.}, the seed is set to a value that is the same on every image
+calling @code{RANDOM_INIT}.
@end multitable
@item @emph{Example}: