OSDN Git Service

2005-03-17 Javier Miranda <miranda@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2005 11:48:05 +0000 (11:48 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Mar 2005 11:48:05 +0000 (11:48 +0000)
commit056a3fdbecdaf2cef5307759e789b13ce21b6a12
treed2cdf3aa14acc3f051135a94e65cead5681dcdf6
parent9651fa4e3a9b77cfbf8c5fe9cc3ff67616331684
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96664 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/einfo.adb
gcc/ada/sem_ch12.adb
gcc/ada/sem_ch7.adb