r279289 - in /trunk/gcc/ada: ChangeLog exp_ch9.adb
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Thu Dec 12 10:02:00 GMT 2019
Author: pmderodat
Date: Thu Dec 12 10:02:38 2019
New Revision: 279289
URL: https://gcc.gnu.org/viewcvs?rev=279289&root=gcc&view=rev
Log:
[Ada] Handling up-level references in protected entries and freeze nodes
2019-12-12 Gary Dismukes <dismukes@adacore.com>
gcc/ada/
* exp_ch9.adb (Build_Protected_Entry): Analyze the block created
to hold the declarations and statements of the protected entry
body right after it's created, and then call Reset_Scopes_To on
that block to reset the Scope of nested entities to the block
scope.
(Reset_Scope): Add handling for N_Freeze_Entity nodes, calling
Reset_Scopes recursively on the Actions of such nodes. Also, for
subprogram bodies that are encountered that might not have a
separate declaration (such as type init procedures), reset the
Scope of the subprogram's entity.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/exp_ch9.adb
More information about the Gcc-cvs
mailing list