From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id 21246385843E for ; Mon, 25 Oct 2021 15:09:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21246385843E Received: by mail-lj1-x22a.google.com with SMTP id o11so17270788ljg.10 for ; Mon, 25 Oct 2021 08:09:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=0JUSuQ6cHuJj8QToTC+wZIoAcBr6LqQRsn5/UF9NOK8=; b=mC3bXzmiAAWawMTWHle3aIYCxEVTI3rr8mSG/hcwcCS6h9Cc8ZF6tyT576Vk9EN96R TAVSDMpy2mQIx3/idnCg3+wedFuN6PHPWJur+7mpvjZ2YF+/7tYgwWUjKhuDJjwKfqMt 4lxXjWTsSmI71M9tHNVbZagjMOFRGAOwrSMfnjLJgEKKI18C0G1pOfrXR3SBPGepoOdR dzAlX4eEOlw5+k/9WYO+fiT4eyf0zbRUlDs/oA+3isHbhA0BK8ofgaydQr3exZAFC2SH +Zv3tV5J2yZpNgGO73eTxtmea6YYM2SKhuDAkdt3lArALughMEhCKZzQOLHmjcWcHFMi IWmw== X-Gm-Message-State: AOAM533RayAo2bREFBHGeXkRaex2S9vE2KgrPlj3GdCoaqqMW9E+dZT4 CccW4Aka3Jwr0l/c1S18RXfruyV8us1u35sp X-Google-Smtp-Source: ABdhPJwn65rSsmhDeGCy3xRiJVnAiytUmZZnMTiyNceS1QgRwTNb2DG8zQ4XOUqCbBX5PTayhBjnqw== X-Received: by 2002:a05:651c:11d1:: with SMTP id z17mr2416874ljo.411.1635174545011; Mon, 25 Oct 2021 08:09:05 -0700 (PDT) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id p21sm1672636lfg.18.2021.10.25.08.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 08:09:04 -0700 (PDT) Date: Mon, 25 Oct 2021 15:09:03 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Subject: [Ada] Shutdown codepeer message Message-ID: <20211025150903.GA346421@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2021 15:09:07 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Which is a false positive, caused by a confusion on the expanded code for pragma Loop_Variant. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/s-widthu.adb: Add pragma Annotate. --fUYQa+Pmc3FrFX/N Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" diff --git a/gcc/ada/libgnat/s-widthu.adb b/gcc/ada/libgnat/s-widthu.adb --- 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 --fUYQa+Pmc3FrFX/N--