From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 075CB3857373; Mon, 9 May 2022 09:32:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 075CB3857373 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-196] [Ada] Remove CodePeer annotations for pragma Loop_Variant X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: 785b1b5d43be6bbbf38d8c8dc40d6d0c991cf99b X-Git-Newrev: 348931ea3e09cbafa0bbd4dadfb05694aef531c0 Message-Id: <20220509093206.075CB3857373@sourceware.org> Date: Mon, 9 May 2022 09:32:06 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 09:32:06 -0000 https://gcc.gnu.org/g:348931ea3e09cbafa0bbd4dadfb05694aef531c0 commit r13-196-g348931ea3e09cbafa0bbd4dadfb05694aef531c0 Author: Piotr Trojanek 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