summaryrefslogtreecommitdiff
path: root/gcc/ada/sinfo.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-17 06:56:06 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-17 06:56:06 +0000
commit3db983c4f5372a236150f9c95bf356359ab2e1d2 (patch)
tree6451be0d7983ed9f3a5aaa02d5f6ea3ee283cdd9 /gcc/ada/sinfo.ads
parent6ff6ab624bdd66d09bd25511e9d32e7384d1a85b (diff)
downloadgcc-3db983c4f5372a236150f9c95bf356359ab2e1d2.tar.gz
2014-07-17 Robert Dewar <dewar@adacore.com>
* sprint.adb (Write_Itype): Print proper header for string literal subtype. 2014-07-17 Steve Baird <baird@adacore.com> * sinfo.ads, sem_scil.ads: Improve comments, minor reformatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r--gcc/ada/sinfo.ads42
1 files changed, 26 insertions, 16 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads
index 4bb9d4f34fe..d6116484805 100644
--- a/gcc/ada/sinfo.ads
+++ b/gcc/ada/sinfo.ads
@@ -1959,20 +1959,27 @@ package Sinfo is
-- and multiplication operations.
-- SCIL_Entity (Node4-Sem)
- -- Present in SCIL nodes. Used to reference the tagged type associated
- -- with the SCIL node.
+ -- Present in SCIL nodes. References the specific tagged type associated
+ -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
+ -- the controlling type of the call; for an N_SCIL_Membership_Test node
+ -- generated as part of testing membership in T'Class, this is T; for an
+ -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
-- SCIL_Controlling_Tag (Node5-Sem)
- -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
- -- controlling tag of a dispatching call.
+ -- Present in N_SCIL_Dispatching_Call nodes. References the
+ -- controlling tag of a dispatching call. This is usually an
+ -- N_Selected_Component node (for a _tag component), but may
+ -- be an N_Object_Declaration or N_Parameter_Specification node
+ -- in some cases (e.g., for a call to a classwide streaming operation
+ -- or to an instance of Ada.Tags.Generic_Dispatching_Constructor).
-- SCIL_Tag_Value (Node5-Sem)
-- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
- -- value that is being tested.
+ -- of the value that is being tested.
-- SCIL_Target_Prim (Node2-Sem)
- -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
- -- type primitive associated with the SCIL node.
+ -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
+ -- operation named (statically) in a dispatching call.
-- Scope (Node3-Sem)
-- Present in defining identifiers, defining character literals and
@@ -7834,16 +7841,19 @@ package Sinfo is
-- Note: in the case where a debug source file is generated, the Sloc
-- for this node points to the quote in the Sprint file output.
- -----------------
- -- SCIL Nodes --
- -----------------
+ ----------------
+ -- SCIL Nodes --
+ ----------------
+
+ -- SCIL nodes are special nodes added to the tree when the CodePeer mode
+ -- is active. They are only generated if SCIL generation is enabled.
+ -- A standard tree-walk will not encounter these nodes even if they
+ -- are present; these nodes are only accessible via the function
+ -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
+ -- semantics.
- -- SCIL nodes are special nodes added to the tree when the CodePeer
- -- mode is active. They help the CodePeer backend to locate nodes that
- -- require special processing. They are only generated if SCIL
- -- generation is enabled. A standard tree-walk will not encounter
- -- these nodes even if they are present; these nodes are only
- -- accessible via the function SCIL_LL.Get_SCIL_Node.
+ -- Sprint syntax: [ <node kind> ]
+ -- No semantic field values are displayed.
-- N_SCIL_Dispatch_Table_Tag_Init
-- Sloc references a node for a tag initialization