]> gcc.gnu.org Git - gcc.git/commit
ada: Fix fallout of recent fix for missing finalization
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 13 Apr 2023 21:11:38 +0000 (23:11 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Wed, 27 Sep 2023 08:16:27 +0000 (10:16 +0200)
commit4e4797ceb9c5fdce67172beae127b2c8e6ebffec
treeab193dc373795dbb1eb4d0bf96986f698b686b9c
parentd80b9d04bd053ba073eac64183d9d1b5be424661
ada: Fix fallout of recent fix for missing finalization

The original fix makes it possible to create transient scopes around return
statements in more cases, but it overlooks that transient scopes are reused
and, in particular, that they can be promoted to secondary stack management.

gcc/ada/

* exp_ch7.adb (Find_Enclosing_Transient_Scope): Return the index in
the scope table instead of the scope's entity.
(Establish_Transient_Scope): If an enclosing scope already exists,
do not set the Uses_Sec_Stack flag on it if the node to be wrapped
is a return statement which requires secondary stack management.
gcc/ada/exp_ch7.adb
This page took 0.063703 seconds and 6 git commands to generate.