[Ada] Unnesting: fix a missing activation record
authorEd Schonberg <schonberg@adacore.com>
Tue, 11 Dec 2018 11:11:58 +0000 (11:11 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 11 Dec 2018 11:11:58 +0000 (11:11 +0000)
commite60c10b3b91e9b26115620d57ed6485aedf7d65b
tree467c8ab2451dea59e9b8149b35f9045796d3e689
parent2ffa39d24733c209d32cc6b2cb87f4d38d8198a9
[Ada] Unnesting: fix a missing activation record

2018-12-11  Ed Schonberg  <schonberg@adacore.com>

gcc/ada

* exp_ch7.adb (Check_Unnesting_In_Declarations): Extend
subprogram so that it is usable for visible and private
declarations of a package declaration, not just for declarations
in the pakage body.
* exp_ch13.adb (Expand_Freeze_Entity): Handle properly the
freezing of a finalizer routine generated for a controlled objet
declaration. Special processing already applies to finalizers
because they are usually displaced into another construct.

From-SVN: r267010
gcc/ada/ChangeLog
gcc/ada/exp_ch13.adb
gcc/ada/exp_ch7.adb