From patchwork Mon Sep 12 08:19:42 2022 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: 1147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1781020wrt; Mon, 12 Sep 2022 01:28:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5qT4v/Mw/3V3UijU0RxRG0sJPw4zmYabYfSXnSwaGZbK87rxSRADp7Irqd4OdrnFzGGhJR X-Received: by 2002:a05:6402:cb2:b0:44e:4336:d2a0 with SMTP id cn18-20020a0564020cb200b0044e4336d2a0mr21239829edb.209.1662971337859; Mon, 12 Sep 2022 01:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662971337; cv=none; d=google.com; s=arc-20160816; b=TyVybf0mX+tE9Wu7EYhrst/I5RWqeGsPMW256wQnFltyzALiyTGqpGBchbDEEJtFYZ lM3XR8b1SX8ZtOWY/57ZT1qHzhwMkhwu91utGIwnsyJFOIeDeXIPR22j3LjvQLlAf1rB tgpF13QyVz6GLLjiRiVc6gQiKskso/xzhCIS+rBGCeGCaOm7iO5jqMiWF16kN6GnHRno zXpKdt+xsYssSPbbm1DeVTEeae450Ya1vtbRdFLvxNIQ2/DMjyqg2Gv0aT7FQjYuXbQ6 icLid5bexa5vdbVaDAIrSxpsfoLmROuaSSAeFWcy1FSoxwCDtHWpRE8X9hMhoYXkWpQT zsYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=2l8aDpHqamGKDRFtLQG5LmwyB0eZb59+S75+pzkyY1o=; b=OHecDr+abFpdlUyDDfbGclAqFWwYN1O8cTI+m2kR+d/cPAOUBoI9JuoOAjiHAlYmGC +rYjTvx0zolLOUS8SspmMjP5pWz/bHJtMxWzpzIu36hQ3vFzXDL6udIfoOTENiPXOTzN H0iQMGauvB51vrGQ/L8JQivzmArL71uDIUpKF9AO7Zo7WeIy8qvMGJJlVVK+Ld50JwKt 5HJz6Cpuz2hNkhxPDBs2jRDpQwRnrPmynn3nW8mTN84dO+cnyBckuW48JyG+ebcAgmXS J6nFmPwHpDff899/uiSBd+/ErhVg06kScTSYxJJiDdHL9H4MkwBZsN0KUef+Iui7Z2cs OaYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CvJOXpUO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id eb13-20020a0564020d0d00b00450c1de6234si6829900edb.587.2022.09.12.01.28.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CvJOXpUO; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 40293395A419 for ; Mon, 12 Sep 2022 08:23:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40293395A419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662971024; bh=2l8aDpHqamGKDRFtLQG5LmwyB0eZb59+S75+pzkyY1o=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=CvJOXpUO4VOWZkLC0tGOKhnPEe0jx8J5IL+bbAoqY3TW4mpQpCK/1M+Tfmn/SuVkG TGm551gMn7ezaNJSAd6CAR5yXms4522vmTPWVAZ33P4qaKdxglp3cNegpAT2KYdN4r OJPaMdxvZHUr0NnMGvjm+hGogUIFC5HA0dL7BYjI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id B71683851162 for ; Mon, 12 Sep 2022 08:19:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B71683851162 Received: by mail-wr1-x433.google.com with SMTP id b5so14045476wrr.5 for ; Mon, 12 Sep 2022 01:19:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=2l8aDpHqamGKDRFtLQG5LmwyB0eZb59+S75+pzkyY1o=; b=sLrjMe+AWXUY62+G+eejtEfg5A90avN5K5hC/pffldm3OpETMSeLXYCyaBpO82g5X7 ntQCC6E2GcsWoTn7D7QkLxmomrzkf4Q+GQPoPqE4rYVE6GGUVvUy+wSLK/qe5wt+MabB c2lTzV8IOESqLVM3yU3SO76CioXJhfY3cyd4z4TP69/6s4lEFwbSDV2lWxIwTv/xALsG iglOpY4p17vD+joE+GBuJL3i+o3EyMpKXONOya34GliC6tnHfyAJfg6tv9ltOSfyTSv3 LTPM97WlAH06E3UUWqo3+PmMYOk2bv7ybUi3BFwta0hiBOllOYqQn7MKF+VLdO9soBK9 7YKw== X-Gm-Message-State: ACgBeo3+RL3DZsQGfdsvkEjlB3rEkZB9qisKHQolmVjAImVq0vV7ZjCa OA8z6r/qhlCBRH9VPIglCUnBuA39WL4Oxg== X-Received: by 2002:a5d:56c5:0:b0:228:d5d9:5631 with SMTP id m5-20020a5d56c5000000b00228d5d95631mr14751915wrw.131.1662970783610; Mon, 12 Sep 2022 01:19:43 -0700 (PDT) Received: from poulhies-Precision-5550 (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id p35-20020a05600c1da300b003a5fa79007fsm7915908wms.7.2022.09.12.01.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:19:43 -0700 (PDT) Date: Mon, 12 Sep 2022 10:19:42 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Sync documentation of junk names with code Message-ID: <20220912081942.GA1513131@poulhies-Precision-5550> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.9 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: Marc =?iso-8859-1?q?Poulhi=E8s?= Cc: Piotr Trojanek 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?1743751833920455998?= X-GMAIL-MSGID: =?utf-8?q?1743751833920455998?= The list of junk entity names for which warnings are suppressed has been recently modified, so update the documentation accordingly. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * doc/gnat_rm/implementation_defined_pragmas.rst (Pragma Unreferenced): Sync description with Sem_Warn.Has_Junk_Name routine. * gnat_rm.texi: Regenerate. * gnat_ugn.texi: Regenerate. diff --git a/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst b/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst --- a/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst +++ b/gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst @@ -7125,7 +7125,7 @@ be. For the variable case, warnings are never given for unreferenced variables whose name contains one of the substrings -``DISCARD, DUMMY, IGNORE, JUNK, UNUSED`` in any casing. Such names +``DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP`` in any casing. Such names are typically to be used in cases where such warnings are expected. Thus it is never necessary to use ``pragma Unmodified`` for such variables, though it is harmless to do so. diff --git a/gcc/ada/gnat_rm.texi b/gcc/ada/gnat_rm.texi --- a/gcc/ada/gnat_rm.texi +++ b/gcc/ada/gnat_rm.texi @@ -8657,7 +8657,7 @@ be. For the variable case, warnings are never given for unreferenced variables whose name contains one of the substrings -@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSED} in any casing. Such names +@code{DISCARD, DUMMY, IGNORE, JUNK, UNUSE, TMP, TEMP} in any casing. Such names are typically to be used in cases where such warnings are expected. Thus it is never necessary to use @code{pragma Unmodified} for such variables, though it is harmless to do so. 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 @@ -29317,8 +29317,8 @@ to permit their use in free software. @printindex ge -@anchor{cf}@w{ } @anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } +@anchor{cf}@w{ } @c %**end of body @bye