public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-196] [Ada] Remove CodePeer annotations for pragma Loop_Variant
@ 2022-05-09  9:32 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-09  9:32 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:348931ea3e09cbafa0bbd4dadfb05694aef531c0

commit r13-196-g348931ea3e09cbafa0bbd4dadfb05694aef531c0
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Jan 17 13:37:00 2022 +0100

    [Ada] Remove CodePeer annotations for pragma Loop_Variant
    
    Pragma Loop_Variant is now expanded into a null statement in CodePeer
    mode. Remove annotation related to false positives in runtime units.
    
    gcc/ada/
    
            * libgnat/s-expmod.adb: Remove CodePeer annotation for pragma
            Loop_Variant.

Diff:
---
 gcc/ada/libgnat/s-expmod.adb | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/ada/libgnat/s-expmod.adb b/gcc/ada/libgnat/s-expmod.adb
index 60d86e505b8..527338da081 100644
--- a/gcc/ada/libgnat/s-expmod.adb
+++ b/gcc/ada/libgnat/s-expmod.adb
@@ -251,9 +251,6 @@ is
             pragma Loop_Invariant (Equal_Modulo
               (Big (Result) * Big (Factor) ** Exp, Big (Left) ** Right));
             pragma Loop_Variant (Decreases => Exp);
-            pragma Annotate
-              (CodePeer, False_Positive,
-               "validity check", "confusion on generated code");
 
             if Exp rem 2 /= 0 then
                pragma Assert


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-09  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09  9:32 [gcc r13-196] [Ada] Remove CodePeer annotations for pragma Loop_Variant 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).