public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* online doc corr.
@ 2021-05-22 21:06 Johannes Nendwich
  2021-05-23 11:08 ` [Patch, committed] fortran/intrinsic.texi: Use proper variable name (Re: online doc corr.) Tobias Burnus
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Nendwich @ 2021-05-22 21:06 UTC (permalink / raw)
  To: gcc

https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/ATOMIC_005fADD.html#ATOMIC_005fADD

"ATOMIC_ADD(ATOM, VALUE) atomically adds the value of VAR to the
variable ATOM."

--> "... adds the value of VALUE ..." ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Patch, committed] fortran/intrinsic.texi: Use proper variable name (Re: online doc corr.)
  2021-05-22 21:06 online doc corr Johannes Nendwich
@ 2021-05-23 11:08 ` Tobias Burnus
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Burnus @ 2021-05-23 11:08 UTC (permalink / raw)
  To: Johannes Nendwich, gcc, gcc-patches, fortran

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Hi Johannes, hi all,

On 22.05.21 23:06, Johannes Nendwich via Gcc wrote:
> https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/ATOMIC_005fADD.html#ATOMIC_005fADD
> "ATOMIC_ADD(ATOM, VALUE) atomically adds the value of VAR to the
> variable ATOM."
> --> "... adds the value of VALUE ..." ?

Indeed – and the same a bit later in ATOMIC_FETCH_ADD.

Now fixed on mainline (GCC 12, commit
r12-1002-g5d3ef9189a7c57679b5fb06e51c90479df0548b0, cf. attachment) and
on GCC 11 (commit r11-8458-g9ee61d2b51df012c659359873637cc2162ecccf3).

Thanks for the report!

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf

[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 1506 bytes --]

commit 5d3ef9189a7c57679b5fb06e51c90479df0548b0
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Sun May 23 11:56:39 2021 +0200

    fortran/intrinsic.texi: Use proper variable name
    
    gcc/fortran/ChangeLog:
    
            * intrinsic.texi (ATOMIC_ADD, ATOMIC_FETCH_ADD): Use the
            proper variable name in the description.

diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index a62508745fd..ad164137986 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -1870,7 +1870,7 @@ Inverse function: @gol
 
 @table @asis
 @item @emph{Description}:
-@code{ATOMIC_ADD(ATOM, VALUE)} atomically adds the value of @var{VAR} to the
+@code{ATOMIC_ADD(ATOM, VALUE)} atomically adds the value of @var{VALUE} to the
 variable @var{ATOM}. When @var{STAT} is present and the invocation was
 successful, it is assigned the value 0. If it is present and the invocation
 has failed, it is assigned a positive value; in particular, for a coindexed
@@ -2090,7 +2090,7 @@ end program atomic
 @table @asis
 @item @emph{Description}:
 @code{ATOMIC_FETCH_ADD(ATOM, VALUE, OLD)} atomically stores the value of
-@var{ATOM} in @var{OLD} and adds the value of @var{VAR} to the
+@var{ATOM} in @var{OLD} and adds the value of @var{VALUE} to the
 variable @var{ATOM}. When @var{STAT} is present and the invocation was
 successful, it is assigned the value 0. If it is present and the invocation
 has failed, it is assigned a positive value; in particular, for a coindexed

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-23 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 21:06 online doc corr Johannes Nendwich
2021-05-23 11:08 ` [Patch, committed] fortran/intrinsic.texi: Use proper variable name (Re: online doc corr.) Tobias Burnus

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).