aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Desplanques <desplanques@adacore.com>2023-07-13 12:59:19 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-09-05 13:05:11 +0200
commiteb7c56a0340363422481e4bccd3f86ddda9f9a23 (patch)
treeb62e1f9a3f7f33bbdde2ca779e62b3cee4de59ac
parent83bb096006630f2dafc9d2e58f2e31f0a9c0815b (diff)
downloadgcc-eb7c56a0340363422481e4bccd3f86ddda9f9a23.zip
gcc-eb7c56a0340363422481e4bccd3f86ddda9f9a23.tar.gz
gcc-eb7c56a0340363422481e4bccd3f86ddda9f9a23.tar.bz2
ada: Tweak comment about tasking corner case
This patch adjusts a comment that could have misleadingly suggested that a corner case related to tasks could not exist in Ada 2012 or Ada 2022. gcc/ada/ * libgnarl/s-tassta.adb: Tweak comment.
-rw-r--r--gcc/ada/libgnarl/s-tassta.adb4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/libgnarl/s-tassta.adb b/gcc/ada/libgnarl/s-tassta.adb
index 53633c9..5be6253 100644
--- a/gcc/ada/libgnarl/s-tassta.adb
+++ b/gcc/ada/libgnarl/s-tassta.adb
@@ -1615,8 +1615,8 @@ package body System.Tasking.Stages is
-- Usually, C.Common.Activator = Self_ID implies C.Master_Of_Task
-- = CM. The only case where C is pending activation by this
- -- task, but the master of C is not CM is in Ada 2005, when C is
- -- part of a return object of a build-in-place function.
+ -- task, but the master of C is not CM is when C is part of a
+ -- return object of a build-in-place function.
pragma Assert (C.Common.State = Unactivated);