]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix wrong comments
authorRonan Desplanques <desplanques@adacore.com>
Mon, 26 Jan 2026 14:55:55 +0000 (15:55 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 26 May 2026 08:38:18 +0000 (10:38 +0200)
Unlike what the comments said, most reserved interrupts are not masked
since they also belong to Keep_Unmasked.

gcc/ada/ChangeLog:

* libgnarl/s-interr.adb (Interrupt_Manager, Server_Task): Fix
comments.

gcc/ada/libgnarl/s-interr.adb

index a65c3f5a940a876d882658c48fedb9afa70efe2d..d3f1fa1b7dc918a1059846a1328e5520b37445c6 100644 (file)
@@ -953,9 +953,8 @@ package body System.Interrupts is
          end;
       end Initialize;
 
-      --  Note: All tasks in RTS will have all the Reserve Interrupts being
-      --  masked (except the Interrupt_Manager) and Keep_Unmasked unmasked
-      --  when created.
+      --  Note: All tasks in RTS will have all the Keep_Unmasked interrupts
+      --  unmasked when created.
 
       --  Abort_Task_Interrupt is one of the Interrupt unmasked in all tasks.
       --  We mask the Interrupt in this particular task so that "sigwait" is
@@ -1240,9 +1239,8 @@ package body System.Interrupts is
 
       IMOP.Install_Default_Action (IMNG.Interrupt_ID (Interrupt));
 
-      --  Note: All tasks in RTS will have all the Reserve Interrupts being
-      --  masked (except the Interrupt_Manager) and Keep_Unmasked unmasked when
-      --  created.
+      --  Note: All tasks in RTS will have all the Keep_Unmasked interrupts
+      --  unmasked when created.
 
       --  Abort_Task_Interrupt is one of the Interrupt unmasked in all tasks.
       --  We mask the Interrupt in this particular task so that "sigwait" is