[Ada] Handle new At_End expansion during unnesting
authorJustin Squirek <squirek@adacore.com>
Thu, 18 Aug 2022 19:48:22 +0000 (19:48 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 6 Sep 2022 07:14:22 +0000 (09:14 +0200)
commitc66e69f33744e897c64a16e78ba893d1ea439139
treea4e428a3f8d71c30c5913d5c29929f5d94064baf
parentd644c519672601c7a2c1627a875dcd8e16aed9c9
[Ada] Handle new At_End expansion during unnesting

This patch modifies the marking of nested subprograms requiring static links,
so that the changes made to "At end" procedures get handled properly.

gcc/ada/

* exp_unst.adb
(Visit_Node): Add N_Block_Statement to the enclosing construct
case since they can now have "At end" procedures. Also, recognize
calls from "At end" procedures when recording subprograms.
gcc/ada/exp_unst.adb