]> 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)
committerEric Botcazou <ebotcazou@adacore.com>
Thu, 12 Jun 2025 11:02:38 +0000 (13:02 +0200)
commit67c494899585c26427dee8e9f562b87b7e502390
treee428bbb36cd1fde3e1a442e2182a3dab47dcfda8
parentea4155a94fe4cafd4fe59789858d7cf040fbdf2e
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