]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak special handling of synchronized type scopes
authorRonan Desplanques <desplanques@adacore.com>
Wed, 2 Apr 2025 08:48:57 +0000 (10:48 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 12 Jun 2025 08:37:53 +0000 (10:37 +0200)
commita09a8093da4329b42309c56e86da49d18e6c8fde
tree41b361975a2c946c51b4284b33ad32dbce68ced0
parent931705767443587dfd8efd4e1296fdcdc6540e6f
ada: Tweak special handling of synchronized type scopes

Exp_Util.Insert_Actions handles scopes of synchronized types specially,
but the condition it tested before this patch was not quite correct in
some cases, for example during some expansion operations made under
Expand_N_Task_Type_Declaration. This patch refines the test.

gcc/ada/ChangeLog:

* exp_util.adb (Insert_Actions): Refine test.
gcc/ada/exp_util.adb