aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDominique d'Humieres <dominiq@lps.ens.fr>2016-04-13 17:04:57 +0200
committerDominique d'Humieres <dominiq@gcc.gnu.org>2016-04-13 17:04:57 +0200
commit5267cfcc82d1ea904335486e476c4945ad4da6e7 (patch)
treeaa88ba0e77cc76549e93f0bcdb6fd6326f0484bc /gcc
parent463d91c64d2562c68c7173339527bc5ee33868f3 (diff)
downloadgcc-5267cfcc82d1ea904335486e476c4945ad4da6e7.zip
gcc-5267cfcc82d1ea904335486e476c4945ad4da6e7.tar.gz
gcc-5267cfcc82d1ea904335486e476c4945ad4da6e7.tar.bz2
re PR fortran/67039 (Documentation of pseudorandom number intrinsics is incorrect)
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/67039 * intrinsic.texi: Correct the documentation of pseudorandom number intrinsics. From-SVN: r234946
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/intrinsic.texi10
2 files changed, 12 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 8ab7cac..e2f216d 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,11 @@
2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
+ PR fortran/67039
+ * intrinsic.texi: Correct the documentation of pseudorandom
+ number intrinsics.
+
+2016-04-13 Dominique d'Humieres <dominiq@lps.ens.fr>
+
PR fortran/58000
* gfortran.texi: Document OPEN( ... NAME=) as not implemented
in GNU Fortran
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index f9760f6..8840630 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -12628,10 +12628,12 @@ Does not return anything.
See @code{RAND} and @code{IRAND} for examples.
@item @emph{Notes}:
-The Fortran 2003 standard specifies the intrinsic @code{RANDOM_SEED} to
-initialize the pseudo-random numbers generator and @code{RANDOM_NUMBER}
-to generate pseudo-random numbers. Please note that in
-GNU Fortran, these two sets of intrinsics (@code{RAND},
+The Fortran standard specifies the intrinsic subroutines
+@code{RANDOM_SEED} to initialize the pseudo-random number
+generator and @code{RANDOM_NUMBER} to generate pseudo-random numbers.
+These subroutines should be used in new codes.
+
+Please note that in GNU Fortran, these two sets of intrinsics (@code{RAND},
@code{IRAND} and @code{SRAND} on the one hand, @code{RANDOM_NUMBER} and
@code{RANDOM_SEED} on the other hand) access two independent
pseudo-random number generators.