]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Shutdown codepeer message
authorArnaud Charlet <charlet@adacore.com>
Tue, 19 Oct 2021 16:44:17 +0000 (12:44 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 25 Oct 2021 15:07:20 +0000 (15:07 +0000)
gcc/ada/

* libgnat/s-widthu.adb: Add pragma Annotate.

gcc/ada/libgnat/s-widthu.adb

index e0e4d17b4d19180343ca0b0da55ea4bc9de58154..fce8c7ad3e0c03a185606834c58a8c9c63ad5323 100644 (file)
@@ -134,10 +134,13 @@ begin
          W := W + 1;
          Pow := Pow * 10;
 
-         pragma Loop_Variant (Decreases => T);
          pragma Loop_Invariant (W in 3 .. Max_W + 3);
          pragma Loop_Invariant (Pow = Big_10 ** (W - 2));
          pragma Loop_Invariant (Big (T) = Big (T_Init) / Pow);
+         pragma Loop_Variant (Decreases => T);
+         pragma Annotate
+           (CodePeer, False_Positive,
+            "validity check", "confusion on generated code");
       end loop;
 
       declare