* [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146]
@ 2024-08-15 20:37 Harald Anlauf
2024-08-16 5:46 ` Andre Vehreschild
0 siblings, 1 reply; 4+ messages in thread
From: Harald Anlauf @ 2024-08-15 20:37 UTC (permalink / raw)
To: fortran, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
Dear all,
here's a documentation bugfix. The previous wording was in conflict
with the standard, while the runtime behavior is apparently fine.
Checked with make dvi pdf .
OK for mainline?
Thanks,
Harald
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pr114146.diff --]
[-- Type: text/x-patch, Size: 1959 bytes --]
From 4515018fd858fb6ae98b54d507596ef123d7580e Mon Sep 17 00:00:00 2001
From: Harald Anlauf <anlauf@gmx.de>
Date: Thu, 15 Aug 2024 22:31:11 +0200
Subject: [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146]
gcc/fortran/ChangeLog:
* intrinsic.texi: Fix documentation of arguments of RANDOM_INIT,
which is conforming to the F2018 standard.
---
gcc/fortran/intrinsic.texi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 3d3b9edf8e6..10683e1185d 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}:
--
2.35.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146]
2024-08-15 20:37 [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146] Harald Anlauf
@ 2024-08-16 5:46 ` Andre Vehreschild
2024-08-16 16:37 ` Harald Anlauf
0 siblings, 1 reply; 4+ messages in thread
From: Andre Vehreschild @ 2024-08-16 5:46 UTC (permalink / raw)
To: Harald Anlauf; +Cc: fortran, gcc-patches
Hi Harald,
s/doumentation/documentation/
in the commit's title.
Thanks for the patch, ok to commit.
- Andre
On Thu, 15 Aug 2024 22:37:53 +0200
Harald Anlauf <anlauf@gmx.de> wrote:
> Dear all,
>
> here's a documentation bugfix. The previous wording was in conflict
> with the standard, while the runtime behavior is apparently fine.
>
> Checked with make dvi pdf .
>
> OK for mainline?
>
> Thanks,
> Harald
>
--
Andre Vehreschild * Email: vehre ad gmx dot de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146]
2024-08-16 5:46 ` Andre Vehreschild
@ 2024-08-16 16:37 ` Harald Anlauf
2024-08-16 16:37 ` Harald Anlauf
0 siblings, 1 reply; 4+ messages in thread
From: Harald Anlauf @ 2024-08-16 16:37 UTC (permalink / raw)
To: Andre Vehreschild; +Cc: fortran, gcc-patches
Hi Andre,
Am 16.08.24 um 07:46 schrieb Andre Vehreschild:
> Hi Harald,
>
> s/doumentation/documentation/
>
> in the commit's title.
oops! Thanks for pointing this out.
Fixed and pushed as r15-2955-g07ece73d4712c6 .
Harald
> Thanks for the patch, ok to commit.
>
> - Andre
>
> On Thu, 15 Aug 2024 22:37:53 +0200
> Harald Anlauf <anlauf@gmx.de> wrote:
>
>> Dear all,
>>
>> here's a documentation bugfix. The previous wording was in conflict
>> with the standard, while the runtime behavior is apparently fine.
>>
>> Checked with make dvi pdf .
>>
>> OK for mainline?
>>
>> Thanks,
>> Harald
>>
>
>
> --
> Andre Vehreschild * Email: vehre ad gmx dot de
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146]
2024-08-16 16:37 ` Harald Anlauf
@ 2024-08-16 16:37 ` Harald Anlauf
0 siblings, 0 replies; 4+ messages in thread
From: Harald Anlauf @ 2024-08-16 16:37 UTC (permalink / raw)
To: gcc-patches; +Cc: fortran
Hi Andre,
Am 16.08.24 um 07:46 schrieb Andre Vehreschild:
> Hi Harald,
>
> s/doumentation/documentation/
>
> in the commit's title.
oops! Thanks for pointing this out.
Fixed and pushed as r15-2955-g07ece73d4712c6 .
Harald
> Thanks for the patch, ok to commit.
>
> - Andre
>
> On Thu, 15 Aug 2024 22:37:53 +0200
> Harald Anlauf <anlauf@gmx.de> wrote:
>
>> Dear all,
>>
>> here's a documentation bugfix. The previous wording was in conflict
>> with the standard, while the runtime behavior is apparently fine.
>>
>> Checked with make dvi pdf .
>>
>> OK for mainline?
>>
>> Thanks,
>> Harald
>>
>
>
> --
> Andre Vehreschild * Email: vehre ad gmx dot de
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-16 16:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-15 20:37 [PATCH] Fortran: fix doumentation of intrinsic RANDOM_INIT [PR114146] Harald Anlauf
2024-08-16 5:46 ` Andre Vehreschild
2024-08-16 16:37 ` Harald Anlauf
2024-08-16 16:37 ` Harald Anlauf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).