aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/atree.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2010-10-12 11:10:13 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2010-10-12 11:10:13 +0200
commit718deaf1af8c923d15f417fd3b49ba909c5f26eb (patch)
tree34e72a80fb14595699c393795268345a17abec04 /gcc/ada/atree.ads
parent6832435e85ed5dca261f6ae041e9f78e5ccfa285 (diff)
downloadgcc-718deaf1af8c923d15f417fd3b49ba909c5f26eb.zip
gcc-718deaf1af8c923d15f417fd3b49ba909c5f26eb.tar.gz
gcc-718deaf1af8c923d15f417fd3b49ba909c5f26eb.tar.bz2
[multiple changes]
2010-10-12 Robert Dewar <dewar@adacore.com> * aspects.ads, aspects.adb (Move_Aspects): New procedure. * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include aspect specifications. Recognize aspect specifications for all cases * par.adb: Recognize aspect specifications for all cases * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect specifications. * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze generic actual types (was missing some guards before). * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to generated object (Analyze_Single_Task_Declaration): Copy aspects to generated object 2010-10-12 Eric Botcazou <ebotcazou@adacore.com> * usage.adb (usage): Adjust line for -gnatn switch. 2010-10-12 Robert Dewar <dewar@adacore.com> * sem_attr.adb (Eval_Attribute): Only leave change active for aspect spec case. 2010-10-12 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a declaration of a null procedure resolve the types of the profile of the generated null body now. From-SVN: r165353
Diffstat (limited to 'gcc/ada/atree.ads')
-rw-r--r--gcc/ada/atree.ads5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ada/atree.ads b/gcc/ada/atree.ads
index 8b81ade..a40c192 100644
--- a/gcc/ada/atree.ads
+++ b/gcc/ada/atree.ads
@@ -398,7 +398,10 @@ package Atree is
-- The parent pointer of the destination and its list link, if any, are
-- not affected by the copy. Note that parent pointers of descendents
-- are not adjusted, so the descendents of the destination node after
- -- the Copy_Node is completed have dubious parent pointers.
+ -- the Copy_Node is completed have dubious parent pointers. Note that
+ -- this routine does NOT copy aspect specifications, the Has_Aspects
+ -- flag in the returned node will always be False. The caller must deal
+ -- 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