From patchwork Thu May 12 12:40:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1630178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=IFTnUb4f; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KzX2B1MpHz9sGF for ; Thu, 12 May 2022 23:00:34 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2DB1384B12B for ; Thu, 12 May 2022 13:00:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2DB1384B12B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652360431; bh=mDcXq1lIi0L4l3d++/CAByb7u6K2NpFN3mzBwlGSKx4=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=IFTnUb4fJaj1hfcuuKnt5vTmriX3D3WTrm3wCJI1cGqjf3dL8CDnwBU9vqqgFYl9c MSMn9hoZT869EjFDVC95aKWfaCBPx2trzmy+6x/uWjVIJzR0EhV6fMd2t1udkAy7Pc gWuZRdTbg3nAvjLe8SCypv0KBeZheXnSen13UrQ0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id A7C0F383D810 for ; Thu, 12 May 2022 12:40:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A7C0F383D810 Received: by mail-wm1-x330.google.com with SMTP id p189so2955499wmp.3 for ; Thu, 12 May 2022 05:40:11 -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=mDcXq1lIi0L4l3d++/CAByb7u6K2NpFN3mzBwlGSKx4=; b=FmgfXqZtG2Exv+PVmPhPd1PYB2T8N2gDxO3iH69DLSdLKIzbgO3RpxDAcJDA7gEW++ SbOT9DTntVGQTm/f5l5CiCr4H/UV6HdgAoiUf39+Kdq0cpM5usAwpIUBboX5Ooybi/WZ Jyl7DSGHbYJ8rhZ5+GJ6M5UkOq9ST+OPcFSAwacieDcbyr5gM3VOm/wEoW6+7MMS+CDD S1qr/QUwN0yuLneJo4kHNUnwVBIi8dyz8UiBWwY7b1p87/O/WPOfa/eZAJ36DxO+GJHV mLLYFaQTZJI8Bx5HkiNIJHzgD8dpCE1z0Rvs2Kk/9SDefKzUbDD+ApO6nR274gGIU0Cy RJVw== X-Gm-Message-State: AOAM531uU3ZLaqB73XMD3XFR4ou65uGCyb+xhoXHsEmYdkkxGQ/AaKkB vhPiKgA547aPJxGJd/SUlTvnrUK1RffGsA== X-Google-Smtp-Source: ABdhPJwdrKoetIRUg828VKv4LVloaVGNdf/4XTzUTN3fivHlCN0jtUljDKQ2bFV4Jf97tc6HdlROUw== X-Received: by 2002:a7b:c341:0:b0:37b:ed90:7dad with SMTP id l1-20020a7bc341000000b0037bed907dadmr9885261wmj.138.1652359210426; Thu, 12 May 2022 05:40:10 -0700 (PDT) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id q4-20020a05600c040400b003942a244f2esm2580253wmb.7.2022.05.12.05.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 05:40:09 -0700 (PDT) Date: Thu, 12 May 2022 12:40:09 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Remove useless pragma Warnings Off from runtime units Message-ID: <20220512124009.GA781082@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-13.2 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: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Yannick Moy Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" GNAT does not issue a warning anymore on a postcondition of True (used here to prevent inining inside GNATprove for proof). Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/s-valuei.ads: Remove pragma Warnings Off. * libgnat/s-valueu.ads: Same. * libgnat/s-valuti.ads: Same. diff --git a/gcc/ada/libgnat/s-valuei.ads b/gcc/ada/libgnat/s-valuei.ads --- a/gcc/ada/libgnat/s-valuei.ads +++ b/gcc/ada/libgnat/s-valuei.ads @@ -37,8 +37,6 @@ pragma Assertion_Policy (Pre => Ignore, Contract_Cases => Ignore, Ghost => Ignore, Subprogram_Variant => Ignore); -pragma Warnings (Off, "postcondition does not mention function result"); --- True postconditions are used to avoid inlining for GNATprove with System.Val_Util; use System.Val_Util; diff --git a/gcc/ada/libgnat/s-valueu.ads b/gcc/ada/libgnat/s-valueu.ads --- a/gcc/ada/libgnat/s-valueu.ads +++ b/gcc/ada/libgnat/s-valueu.ads @@ -43,8 +43,6 @@ pragma Assertion_Policy (Pre => Ignore, Contract_Cases => Ignore, Ghost => Ignore, Subprogram_Variant => Ignore); -pragma Warnings (Off, "postcondition does not mention function result"); --- True postconditions are used to avoid inlining for GNATprove with System.Val_Util; use System.Val_Util; diff --git a/gcc/ada/libgnat/s-valuti.ads b/gcc/ada/libgnat/s-valuti.ads --- a/gcc/ada/libgnat/s-valuti.ads +++ b/gcc/ada/libgnat/s-valuti.ads @@ -41,8 +41,6 @@ pragma Assertion_Policy (Pre => Ignore, Post => Ignore, Contract_Cases => Ignore, Ghost => Ignore); -pragma Warnings (Off, "postcondition does not mention function result"); --- True postconditions are used to avoid inlining for GNATprove with System.Case_Util;