]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Nested subprograms in protected subprograms improperly handled in GNAT-LLVM
authorGary Dismukes <dismukes@adacore.com>
Fri, 17 Apr 2020 20:56:58 +0000 (16:56 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 17 Jun 2020 08:14:21 +0000 (04:14 -0400)
commit89d9bab0aa00d6968621ec5db2ca36862ed6a64c
treeef4721513d82a4d583f079c6a4850ee45ab4f0bb
parent8afbdb8a64c8f269bdda336ee8150d86b42beb04
[Ada] Nested subprograms in protected subprograms improperly handled in GNAT-LLVM

2020-06-17  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

* exp_ch9.adb (Build_Protected_Subp_Specification): Add ???
comment about the flag Has_Nested_Subprogram not being set here.
(Expand_N_Protected_Body): If the original body for a protected
subprogram has the flag Has_Nested_Subprogram set, then set that
flag on the new unprotected subprogram body that's created for
it, and reset the Scope fields of its top level declarations,
which have been effectively taken from the original protected
subprogram body. Add ??? comment about unclear testing of
Corresponding_Spec.
gcc/ada/exp_ch9.adb