Pragma Annotate is now allowed between loop pragmas, in order to
be able to justify separate loop checks in GNATprove.
gcc/ada/
* sem_prag.adb (Check_Grouping): Allow Annotate pragmas between
loop pragmas.
elsif Is_Loop_Pragma (Stmt) then
Prag := Stmt;
+ -- Skip Annotate pragmas, typically used to justify
+ -- unproved loop pragmas in GNATprove.
+
+ elsif Nkind (Stmt) = N_Pragma
+ and then Pragma_Name (Stmt) = Name_Annotate
+ then
+ null;
+
-- Skip declarations and statements generated by
-- the compiler during expansion. Note that some
-- source statements (e.g. pragma Assert) may have