diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 10:33:29 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 10:33:29 +0000 |
commit | 9b2068d4d5f54aaf5fb8f7241463a3c8187766fc (patch) | |
tree | ed41a8b405240d78469b5cb5efbb964e603d72d9 /gcc/ada/atree.ads | |
parent | c86972c8f02ab3a717b2d7bb54bf2882d27d4929 (diff) | |
download | gcc-9b2068d4d5f54aaf5fb8f7241463a3c8187766fc.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203595 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/atree.ads')
-rw-r--r-- | gcc/ada/atree.ads | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/gcc/ada/atree.ads b/gcc/ada/atree.ads index 54655545dbd..0f47e862f45 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, |