checks.adb (Null_Exclusion_Static_Checks): In the case of N_Object_Declaration...
authorGary Dismukes <dismukes@adacore.com>
Mon, 4 Jul 2005 13:26:45 +0000 (15:26 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Jul 2005 13:26:45 +0000 (15:26 +0200)
commitc73ae90f23fab6c872b09e02b0d1e34727883056
tree633c05c9e717cfac8109be0508f2149ee422efed
parent3104eb4aac48292ca0ee231971420470efbf7b9b
checks.adb (Null_Exclusion_Static_Checks): In the case of N_Object_Declaration...

2005-07-04  Gary Dismukes  <dismukes@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>
    Javier Miranda  <miranda@adacore.com>

* checks.adb (Null_Exclusion_Static_Checks): In the case of
N_Object_Declaration, only perform the checks if the Object_Definition
is not an Access_Definition.

        * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
        where the parent of an the access definition is an N_Object_Declaration
        when determining the Associated_Node_For_Itype and scope of an
        anonymous access-to-subprogram type.

* exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
Corresponding_Spec on the body created for a null procedure. Add ???
comment. Remove New_Copy_Tree call on body argument to
Set_Body_To_Inline.

* exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
discriminants, use the type of the actual as well, because the
discriminants may be read by the called subprogram.

* sem_ch3.adb (Access_Type_Declaration): If the designated type is an
access type we do not need to handle non-limited views.
(Build_Derived_Record_Type): Additional check to check that in case of
private types, interfaces are only allowed in private extensions.

From-SVN: r101575
gcc/ada/checks.adb
gcc/ada/exp_ch6.adb
gcc/ada/sem_ch3.adb