einfo.adb (First_Private_Entity, [...]): Addition of one barrier to avoid wrong usage...
authorJavier Miranda <miranda@adacore.com>
Fri, 18 Mar 2005 11:48:05 +0000 (12:48 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 18 Mar 2005 11:48:05 +0000 (12:48 +0100)
commit7b1da1d017af4e414586eb027f06eb9b8c41fcdd
treed2cdf3aa14acc3f051135a94e65cead5681dcdf6
parent5e77b60afdb1ef7b0a6b3a711bd71560dc7c00d4
einfo.adb (First_Private_Entity, [...]): Addition of one barrier to avoid wrong usage of this attribute.

2005-03-17  Javier Miranda  <miranda@adacore.com>

* einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
of one barrier to avoid wrong usage of this attribute.

* sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
First_Private_Entity.

* sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
the subprogram against wrong usage.
Adapt the code to traverse the entities in the
scope of a record_type because in addition to its usage regarding
packages, this subprogram is also called by Expand_N_Freeze_Entity
to install the visible declarations of the enclosing scope of a
record_type_with_private to establish the proper visibility before
freezing the entity and related subprograms.

From-SVN: r96664
gcc/ada/einfo.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch7.adb