aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/atree.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2013-10-15 12:33:29 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2013-10-15 12:33:29 +0200
commitef163a0a6343e7baf9767105a8e0c0553c89f7f2 (patch)
treeed41a8b405240d78469b5cb5efbb964e603d72d9 /gcc/ada/atree.ads
parent99f97947832b35ee949d5779faa3f6377c63349d (diff)
downloadgcc-ef163a0a6343e7baf9767105a8e0c0553c89f7f2.zip
gcc-ef163a0a6343e7baf9767105a8e0c0553c89f7f2.tar.gz
gcc-ef163a0a6343e7baf9767105a8e0c0553c89f7f2.tar.bz2
[multiple changes]
2013-10-15 Hristian Kirtchev <kirtchev@adacore.com> * sem_prag.adb (Analyze_Constituent): When a state acts as a constituent of another state, ensure that the said state has a Part_Of dependency in its corresponding aspect/pragma Abstract_State. 2013-10-15 Robert Dewar <dewar@adacore.com> * par-ch4.adb (P_If_expression): Handle redundant ELSE cleanly. 2013-10-15 Thomas Quinot <quinot@adacore.com> * atree.ads (New_Copy, Relocate_Node): Improve documentation (note that these subprograms reset Is_Overloaded). 2013-10-15 Thomas Quinot <quinot@adacore.com> * checks.adb (Check_Needed): Handle the case where the test in the left operand of the short circuit is wrapped in a qualified expression, type conversion, or expression with actions. 2013-10-15 Thomas Quinot <quinot@adacore.com> * sem_type.adb, sem_type.ads (Save_Interps): Also propagate Is_Overloaded to New_N, for consistency. 2013-10-15 Ed Schonberg <schonberg@adacore.com> * a-tienau.adb (Put): Use file parameter to query values of current column and line length. From-SVN: r203595
Diffstat (limited to 'gcc/ada/atree.ads')
-rw-r--r--gcc/ada/atree.ads29
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/ada/atree.ads b/gcc/ada/atree.ads
index 5465554..0f47e86 100644
--- a/gcc/ada/atree.ads
+++ b/gcc/ada/atree.ads
@@ -462,25 +462,26 @@ package Atree is
-- with copying aspect specifications where this is required.
function New_Copy (Source : Node_Id) return Node_Id;
- -- This function allocates a completely new node, and then initializes it
- -- by copying the contents of the source node into it. The contents of the
- -- source node is not affected. The target node is always marked as not
- -- being in a list (even if the source is a list member). The new node will
- -- have an extension if the source has an extension. New_Copy (Empty)
- -- returns Empty and New_Copy (Error) returns Error. Note that, unlike
- -- Copy_Separate_Tree, New_Copy does not recursively copy any descendents,
- -- so in general parent pointers are not set correctly for the descendents
- -- of the copied node. Both normal and extended nodes (entities) may be
- -- copied using New_Copy.
+ -- This function allocates a completely new node, and then initializes
+ -- it by copying the contents of the source node into it. The contents of
+ -- the source node is not affected. The target node is always marked as
+ -- not being in a list (even if the source is a list member), and not
+ -- overloaded. The new node will have an extension if the source has
+ -- an extension. New_Copy (Empty) returns Empty, and New_Copy (Error)
+ -- returns Error. Note that, unlike Copy_Separate_Tree, New_Copy does not
+ -- recursively copy any descendents, so in general parent pointers are not
+ -- set correctly for the descendents of the copied node. Both normal and
+ -- extended nodes (entities) may be copied using New_Copy.
function Relocate_Node (Source : Node_Id) return Node_Id;
-- Source is a non-entity node that is to be relocated. A new node is
- -- allocated and the contents of Source are copied to this node using
- -- Copy_Node. The parent pointers of descendents of the node are then
+ -- allocated, and the contents of Source are copied to this node, using
+ -- New_Copy. The parent pointers of descendents of the node are then
-- adjusted to point to the relocated copy. The original node is not
-- modified, but the parent pointers of its descendents are no longer
- -- valid. This routine is used in conjunction with the tree rewrite
- -- routines (see descriptions of Replace/Rewrite).
+ -- valid. The new copy is always marked as not overloaded. This routine is
+ -- used in conjunction with the tree rewrite routines (see descriptions of
+ -- Replace/Rewrite).
--
-- Note that the resulting node has the same parent as the source node, and
-- is thus still attached to the tree. It is valid for Source to be Empty,