]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Small cleanup in support for protected subprograms
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 10 Feb 2023 18:07:33 +0000 (19:07 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 22 May 2023 08:46:13 +0000 (10:46 +0200)
commit8911204d4ab366d61c24ed8da9557fcf4c40e4bc
tree426a039e2d7389110198028466025bb09a850ca7
parent2d751b416a86ea4362c291397fa5b3f51395d5d5
ada: Small cleanup in support for protected subprograms

This moves the propagation of the Uses_Sec_Stack flag, from the original to
the rewritten subprogram, to the point where the latter is expanded, along
with the propagation of the Has_Nested_Subprogram flag, as well as addresses
a ??? comment in the same block of code.  No functional changes.

gcc/ada/

* inline.adb (Cleanup_Scopes): Do not propagate the Uses_Sec_Stack
flag from original to rewritten protected subprograms here...
* exp_ch9.adb (Expand_N_Protected_Body) <N_Subprogram_Body>:
...but here instead. Add local variables and remove a useless
test.
gcc/ada/exp_ch9.adb
gcc/ada/inline.adb