public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4672] [Ada] Shutdown codepeer message
@ 2021-10-25 15:08 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-10-25 15:08 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c652a33260b19ac1ee3cd15cadb4b3499ac587f9
commit r12-4672-gc652a33260b19ac1ee3cd15cadb4b3499ac587f9
Author: Arnaud Charlet <charlet@adacore.com>
Date: Tue Oct 19 12:44:17 2021 -0400
[Ada] Shutdown codepeer message
gcc/ada/
* libgnat/s-widthu.adb: Add pragma Annotate.
Diff:
---
gcc/ada/libgnat/s-widthu.adb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/libgnat/s-widthu.adb b/gcc/ada/libgnat/s-widthu.adb
index e0e4d17b4d1..fce8c7ad3e0 100644
--- a/gcc/ada/libgnat/s-widthu.adb
+++ b/gcc/ada/libgnat/s-widthu.adb
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-25 15:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 15:08 [gcc r12-4672] [Ada] Shutdown codepeer message Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).