]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Accept aspect Always_Terminates on entries
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 12 May 2023 11:13:41 +0000 (13:13 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 15 Jun 2023 07:59:35 +0000 (09:59 +0200)
The recently added aspect Always_Terminates is allowed on both
procedures and entries.

gcc/ada/

* sem_prag.adb (Analyze_Pragma): Accept pragma Always_Terminates when
it applies to an entry.

gcc/ada/sem_prag.adb

index 0febc445b3533e6ea22b2ed1fb5871939d645e22..b1e4439b9f2594a18bc84cd3ba7198b77a6dc83c 100644 (file)
@@ -13370,6 +13370,11 @@ package body Sem_Prag is
                   return;
                end if;
 
+            --  Entry
+
+            elsif Nkind (Subp_Decl) = N_Entry_Declaration then
+               null;
+
             else
                Pragma_Misplaced;
             end if;