public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3731] [Ada] Update comment for Error_Msg_Internal
@ 2021-09-21 15:26 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-09-21 15:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2528d0c7ce0536b3299f6a7452195362002c1a8c

commit r12-3731-g2528d0c7ce0536b3299f6a7452195362002c1a8c
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Thu Jul 1 15:42:56 2021 +0200

    [Ada] Update comment for Error_Msg_Internal
    
    gcc/ada/
    
            * errout.adb (Error_Msg_Internal): Fix references to Sptr and
            Optr in comment; fix grammar of "low-level" where it is used as
            an adjective.

Diff:
---
 gcc/ada/errout.adb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/ada/errout.adb b/gcc/ada/errout.adb
index 0b10d41181b..99c7f9a10b1 100644
--- a/gcc/ada/errout.adb
+++ b/gcc/ada/errout.adb
@@ -106,15 +106,15 @@ package body Errout is
       Opan     : Source_Span;
       Msg_Cont : Boolean;
       Node     : Node_Id);
-   --  This is the low level routine used to post messages after dealing with
+   --  This is the low-level routine used to post messages after dealing with
    --  the issue of messages placed on instantiations (which get broken up
-   --  into separate calls in Error_Msg). Sptr is the location on which the
+   --  into separate calls in Error_Msg). Span is the location on which the
    --  flag will be placed in the output. In the case where the flag is on
    --  the template, this points directly to the template, not to one of the
-   --  instantiation copies of the template. Optr is the original location
+   --  instantiation copies of the template. Opan is the original location
    --  used to flag the error, and this may indeed point to an instantiation
-   --  copy. So typically we can see Optr pointing to the template location
-   --  in an instantiation copy when Sptr points to the source location of
+   --  copy. So typically we can see Opan pointing to the template location
+   --  in an instantiation copy when Span points to the source location of
    --  the actual instantiation (i.e the line with the new). Msg_Cont is
    --  set true if this is a continuation message. Node is the relevant
    --  Node_Id for this message, to be used to compute the enclosing entity if


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-21 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 15:26 [gcc r12-3731] [Ada] Update comment for Error_Msg_Internal Pierre-Marie de Rodat

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