[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 Dec 2011 14:09:26 +0000 (15:09 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 20 Dec 2011 14:09:26 +0000 (15:09 +0100)
commit51e641f8ef0fc822104911d964ee30f1afea179d
treeac63a7e65efa92d26e3151d25fca6787d7daa147
parentb2009d46817f00372f7552c068c4a7eb9bf1389b
[multiple changes]

2011-12-20  Ed Schonberg  <schonberg@adacore.com>

* sem_ch12.adb (Insert_Freeze_Node_For_Instance):  Further
refinements on the placement of a freeze node for a package
instantiation, when the generic appears within a previous
instantiation in the same unit.If the current instance is within
the one that contains the generic, the freeze node for the
current one must appear in the current declarative part. Ditto
if the current instance is within another package instance. In
these cases the freeze node of the previous instance is is not
relevant. New predicate Enclosing_Body simplifies the process.
(Freeze_Subprogram_Body): Rename Enclosing_Body to
Enclosing_Package_Body, to prevent confusion with subprogram of
same name elsewhere.
(Install_Body): Recognize enclosing subprogram bodies to determine
whether freeze_node belongs in current declarative list.

2011-12-20  Robert Dewar  <dewar@adacore.com>

* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Allow
attribute definition clause for renaming if generated internally
and generate duplicate clause to apply to renamed object.
(Rep_Item_Too_Late): Only diagnose source level entities
* prj-nmsc.adb: Minor reformatting.
* gcc-interface/Make-lang.in: Update dependencies.

From-SVN: r182542
gcc/ada/ChangeLog
gcc/ada/gcc-interface/Make-lang.in
gcc/ada/prj-nmsc.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch13.adb