From patchwork Tue May 16 08:39:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 94516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp270121vqo; Tue, 16 May 2023 01:41:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mAKToCmbR9pYdZ+Bm6y+T5FB2YAY+tvAzHWXPp7yS1CQVMyFsSh30XCQA7OvzRg1Dl+np X-Received: by 2002:a05:6402:160e:b0:50b:ca4a:8451 with SMTP id f14-20020a056402160e00b0050bca4a8451mr28576659edv.14.1684226494027; Tue, 16 May 2023 01:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684226494; cv=none; d=google.com; s=arc-20160816; b=kGAtBCLwPE+k8Iz3ShpUPXeKXI7+i+FN8ooz/GeRi5IARRb8V4UTLgkfoHB980KMlC dFz2DS79xS0AQe4XcFucbs1D7/iTyDD/F2pu2gz3nvR5hxC91JhGXXOBg91YLQlYwGh8 DpKmFjNyIgxwllZT/nNjf4oQRaJaWyOGVU+og/EtpXv7WTViiRI+c4bXebyQqjZcYVOk o5vrrdv2nYCsdbJmoRfNbzvlK0ryUSbBGHnF4SfFlCDBT9W2ICFvCfLyQq/gzqd2t4mF KGxW2f630C/A+yEL+A3VnBPYiuliAeLxH34DjKWipm8sGPs+uYS5RpbpLQzojLscCmiM YQ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Ka2VFSGsk1fGgWH/vhEWl8+ksxjl8QsohBbwbf+NIXA=; b=Kogvia85MhT0wowhXvrr2BJjNoyASVqrctQq0r0zEzcycyeMDOvGnHNAPj7c3swJIR MVeNcSAvYzKmz4Mr43gYUy2QrUHN5fv8jcI6ziLW/8GsXo5y9HUJUzXDrtXa9FmFgnFT k9YDaLahvF96JhyRTU5Yr45uov2uyv+Vk2Ta6ckZRHIuhTGZc3KjY3jRKAiyl6xTlel5 oeUBvqzBQItw05z+DXisday0oHsn2e3OpvUMVjy5YmiNU/M+887XM33BZOKwUkpbGhez SOEL031KC6nOoXSLSRtkjrwfPIBrI9R7Nrygue0bfHNCPkMTT768oplq5YTxjVlq0tI2 KkIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=WMC31dX7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r8-20020aa7cfc8000000b0050bd1b55099si13192319edy.172.2023.05.16.01.41.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:41:34 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=WMC31dX7; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6E7F13853560 for ; Tue, 16 May 2023 08:40:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E7F13853560 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684226428; bh=Ka2VFSGsk1fGgWH/vhEWl8+ksxjl8QsohBbwbf+NIXA=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=WMC31dX75kbuI2kETEigOFqNMd9Bv5D8SnSy3qLKjmQKMHEpFRjjOpxTwzcUgbDso uSCC0QsH35d+ldu08FsKihzxP7ESyeboCZGGyZBRPN4+uycu0VtT00YoqHAMgL2iJ5 uPTq1pbpEBNONNzdLYrF1P2fpwx4PC/OGfOl5uO0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id 6D7D63856955 for ; Tue, 16 May 2023 08:39:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D7D63856955 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f42c865534so78672585e9.2 for ; Tue, 16 May 2023 01:39:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684226374; x=1686818374; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ka2VFSGsk1fGgWH/vhEWl8+ksxjl8QsohBbwbf+NIXA=; b=RvYjYTjlrlAm6ZZqf3mZaZwayGeGVXBxtiAKXq7dhRO+lMXsLQpDM+9e6+33iCu6Ws o69KOozd9h6CcmvFE24znPe2QW7cmgJMX7/5vp8fin/r2qRz4W64LU9L571/nmRd6hwU AThuT3hBtGAeOYMbJAAxpyM/jWHqLtLQZsXOWgS3QjVBo8QMSUkFNEHqhUFVybV6qaq+ 6Atab4eJi8W3IR0eUzMgTlf/8NH70A0RctEhHTkFx6/qr4juaOj3KKdhAWcOLnjoz1Jr 9HyYy10Yyjvo/RZPHjH8SGWmwTN66Zze3/JCX6CFM6Ezo4qzdBtS6tmSAGHUdGYH1ctT qZCA== X-Gm-Message-State: AC+VfDxnH5peiOq0rnSB/jvwOsDT1dnUtuEhdjDkotw0+6qPM8jNHjSB r4+1jwcSlZN5fbeJ2qqFeFIXSHBgRA6wNQ9j/jc+YA== X-Received: by 2002:a05:600c:228e:b0:3f4:2174:b28a with SMTP id 14-20020a05600c228e00b003f42174b28amr27550879wmf.15.1684226374125; Tue, 16 May 2023 01:39:34 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id f10-20020a7bcd0a000000b003f4f1b884b3sm1507975wmj.20.2023.05.16.01.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:39:33 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Yannick Moy Subject: [COMMITTED] ada: Set Loop_Variant assertion policy to Ignore in both Date: Tue, 16 May 2023 10:39:31 +0200 Message-Id: <20230516083931.1500816-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.5 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766039480270331907?= X-GMAIL-MSGID: =?utf-8?q?1766039480270331907?= From: Yannick Moy Set Loop_Variant assertion policy to Ignore in both. gcc/ada/ * libgnat/a-strsup.adb: Set assertion policy for Loop_Variant. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnat/a-strsup.adb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ada/libgnat/a-strsup.adb b/gcc/ada/libgnat/a-strsup.adb index 70aa4f8bcf3..25a843153f2 100644 --- a/gcc/ada/libgnat/a-strsup.adb +++ b/gcc/ada/libgnat/a-strsup.adb @@ -29,12 +29,13 @@ -- -- ------------------------------------------------------------------------------ --- Ghost code, loop invariants and assertions in this unit are meant for +-- Ghost code, loop (in)variants and assertions in this unit are meant for -- analysis only, not for run-time checking, as it would be too costly -- otherwise. This is enforced by setting the assertion policy to Ignore. pragma Assertion_Policy (Ghost => Ignore, Loop_Invariant => Ignore, + Loop_Variant => Ignore, Assert => Ignore); with Ada.Strings.Maps; use Ada.Strings.Maps;