From patchwork Fri Jan 7 16:27:08 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: 1576709 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=kUWpHefV; 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 (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JVpqx3r5nz9t25 for ; Sat, 8 Jan 2022 03:40:45 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 460D43857C6C for ; Fri, 7 Jan 2022 16:40:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 460D43857C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1641573643; bh=HwDkzEPh923GCf1cjz/+Y0K1sJb/SfHwhgrmtSh/dA4=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=kUWpHefVBW4s1Pahcmltc+gUGtww+1bY66DvtQlYZDNQH1mXPU2JaKo/AIAXW/F9v YKBlIdI0rWvsf+5HxJNpRhCfAH+vpUfYPbT4vnv/ZOCdxmmTp8TzXfjULWUjUmWoGP VJQ2bkyysbIsZ0AU5RrYrPUzbyvDuGsfZXijroV0= 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 58D923857C40 for ; Fri, 7 Jan 2022 16:27:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 58D923857C40 Received: by mail-wm1-x333.google.com with SMTP id bg19-20020a05600c3c9300b0034565e837b6so3611652wmb.1 for ; Fri, 07 Jan 2022 08:27:10 -0800 (PST) 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=HwDkzEPh923GCf1cjz/+Y0K1sJb/SfHwhgrmtSh/dA4=; b=LrBx3rXjXZ9H3Go7X9+ncQlMRWHvii0l5M6l6lo8RhAl8dwL4hX/ojMQ8IWVa6lUDt LqhlBnpc1YN75mxvXpDNE56Mq46UMuJCbIF9Y4ZU0ShgmX4G42JwmdJLLFVnsOCSDPKK zKMunGs2fnblSxSd189ye7CGm80UQSjdpcb6tQDMdUiijWrP6ZyTCYAu+B51/ArZYsrI eDQwgMYEIOw7ujbRJFCYJNjjfy06LdeqFjIDmAZlYn0eGcmTB10QdyZetwa/o2bHP+YU iW8de8dGKJAMpyPH+OlNn+xQv7ohjF6AaoG7qxSFP0/o84uqrCMcOqVxAQ1Z4MoafvW4 zEmg== X-Gm-Message-State: AOAM533Pls7edIk/H5OM1tdljvDpHi2Zrvpk4aHvr+oW5RKA7dXdlz79 f+7F0HgkEjt8xHElDN+6FyPUeopGwSI49g== X-Google-Smtp-Source: ABdhPJx+5Hvw60MhyEZUIj4/DqCyou3MtA6jx6qbJZRYRkn1cgnDOkfxFyrH7rtnArV8Tn+pmqUs3A== X-Received: by 2002:a7b:c357:: with SMTP id l23mr11750741wmj.35.1641572829427; Fri, 07 Jan 2022 08:27:09 -0800 (PST) Received: from adacore.com ([45.147.211.82]) by smtp.gmail.com with ESMTPSA id j11sm6497751wmq.23.2022.01.07.08.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jan 2022 08:27:08 -0800 (PST) Date: Fri, 7 Jan 2022 16:27:08 +0000 To: gcc-patches@gcc.gnu.org Subject: [Ada] Update -gnatwr doc for import of parent package Message-ID: <20220107162708.GA948430@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 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-Patchwork-Original-From: Pierre-Marie de Rodat via Gcc-patches From: Pierre-Marie de Rodat Reply-To: Pierre-Marie de Rodat Cc: Etienne Servais Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This construct is now flagged with -gnatwr. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Update -gnatwr documentation. * gnat_ugn.texi: Regenerate. diff --git a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -3703,6 +3703,8 @@ of the pragma in the :title:`GNAT_Reference_manual`). * Comparison of an object or (unary or binary) operation of boolean type to an explicit True value. + * Import of parent package. + The default is that warnings for redundant constructs are not given. diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -11974,6 +11974,9 @@ to be non-negative @item Comparison of an object or (unary or binary) operation of boolean type to an explicit True value. + +@item +Import of parent package. @end itemize The default is that warnings for redundant constructs are not given. @@ -29241,8 +29244,8 @@ to permit their use in free software. @printindex ge -@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } @anchor{cf}@w{ } +@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } @c %**end of body @bye