public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-4006] [Ada] Add N_Entity_Name
Date: Fri,  1 Oct 2021 06:14:36 +0000 (GMT)	[thread overview]
Message-ID: <20211001061436.390DA3857C59@sourceware.org> (raw)

https://gcc.gnu.org/g:7916838b6674e7d0ed0c488d22e89e2b679f1292

commit r12-4006-g7916838b6674e7d0ed0c488d22e89e2b679f1292
Author: Richard Kenner <kenner@adacore.com>
Date:   Thu Aug 5 17:05:40 2021 -0400

    [Ada] Add N_Entity_Name
    
    gcc/ada/
    
            * gen_il-gen-gen_nodes.adb (N_Entity_Name): Add.
            * gen_il-types.ads (N_Entity_Name): Likewise.

Diff:
---
 gcc/ada/gen_il-gen-gen_nodes.adb | 10 ++++++++++
 gcc/ada/gen_il-types.ads         |  1 +
 2 files changed, 11 insertions(+)

diff --git a/gcc/ada/gen_il-gen-gen_nodes.adb b/gcc/ada/gen_il-gen-gen_nodes.adb
index 43d77f2032f..32cc89a081a 100644
--- a/gcc/ada/gen_il-gen-gen_nodes.adb
+++ b/gcc/ada/gen_il-gen-gen_nodes.adb
@@ -1662,4 +1662,14 @@ begin -- Gen_IL.Gen.Gen_Nodes
              N_Has_Entity,
              N_Subtype_Indication));
    --  Nodes that can be an index of an array
+
+   Union (N_Entity_Name,
+          Children =>
+            (N_Expanded_Name,
+             N_Identifier,
+             N_Operator_Symbol));
+   --  Nodes that are definitely representing an entity.
+   --  Some N_Attribute_Reference nodes may also represent an entity. See
+   --  Is_Entity_Name.
+
 end Gen_IL.Gen.Gen_Nodes;
diff --git a/gcc/ada/gen_il-types.ads b/gcc/ada/gen_il-types.ads
index c8f87f9d12d..4aadf99cf77 100644
--- a/gcc/ada/gen_il-types.ads
+++ b/gcc/ada/gen_il-types.ads
@@ -84,6 +84,7 @@ package Gen_IL.Types is
       N_Delay_Statement,
       N_Direct_Name,
       N_Entity,
+      N_Entity_Name,
       N_Formal_Subprogram_Declaration,
       N_Generic_Declaration,
       N_Generic_Instantiation,


                 reply	other threads:[~2021-10-01  6:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211001061436.390DA3857C59@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).