Mercurial > hg > CbC > CbC_gcc
diff gcc/ada/libgnarl/s-tassta.adb @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/ada/libgnarl/s-tassta.adb Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/ada/libgnarl/s-tassta.adb Thu Feb 13 11:34:05 2020 +0900 @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2018, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -588,7 +588,7 @@ -- give up on creating this task, and simply return. if not Self_ID.Callable then - pragma Assert (Self_ID.Pending_ATC_Level = 0); + pragma Assert (Self_ID.Pending_ATC_Level = Level_Completed_Task); pragma Assert (Self_ID.Pending_Action); pragma Assert (Chain.T_ID = null or else Chain.T_ID.Common.State = Unactivated); @@ -1553,7 +1553,9 @@ -- for the task completion is an abort, we do not raise an exception. -- See RM 9.2(5). - if not Self_ID.Callable and then Self_ID.Pending_ATC_Level /= 0 then + if not Self_ID.Callable + and then Self_ID.Pending_ATC_Level /= Level_Completed_Task + then Activator.Common.Activation_Failed := True; end if; @@ -1980,7 +1982,7 @@ Self_ID.Master_Of_Task .. Self_ID.Master_Of_Task + 3); pragma Assert (Self_ID.Common.Wait_Count = 0); pragma Assert (Self_ID.Open_Accepts = null); - pragma Assert (Self_ID.ATC_Nesting_Level = 1); + pragma Assert (Self_ID.ATC_Nesting_Level = Level_No_ATC_Occurring); pragma Debug (Debug.Trace (Self_ID, "V_Complete_Task", 'C'));