From patchwork Thu Jan 5 14:38:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 39616 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp333070wrt; Thu, 5 Jan 2023 06:42:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXtzOdnPlehLnxEzBo9dZAYhQ/MEVoWeTuL1ed3rrOgg+u4oFMLGDTKrKF9/U0XZElQAEbyL X-Received: by 2002:a17:907:1246:b0:7c0:b6ec:3ff3 with SMTP id wc6-20020a170907124600b007c0b6ec3ff3mr36702054ejb.65.1672929764072; Thu, 05 Jan 2023 06:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672929764; cv=none; d=google.com; s=arc-20160816; b=CZagYblzQ2qFKSUDDCkTKsKrcv+m4msNrwazM0ZSMJE+0mhKdmSC06f7Xj/aF73qeq zYCB19SBmpXxlbgW5rSev7Hy6dYm3n4+5dwpzFRooYzFnIf3gyCFvzkH9iobmf9Xy99V 1KLp3sFXdporwhgispKgKav3cfEb4eNz1ZkFRcZlcoTTfP9VAdWX38kLohSeLgKTWJix n6fVPZCvZqDjf7vNlhlVclmaYq+YnOPEYt2jM5aRg0WjHeEp1/4kC7eaBPFjMnMtHgmK kjS6BFOVWYfbzwph6XoEPibItKsWZJImrhLEcbzK4QHocuhNm4/eUkGAQ6F1Go7SV6JC tVaQ== 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=Z31twat2bczQT1hC/TuVwDikATMTA4YKRgKa8BC+mQ8=; b=DRVgZEbLPg4QEZr3oO/R9xVeQpwqLCshMZ0HxbxTelfPx6gwpLSULAJxLA8M9IqF7J eNaLYzmaB+wWBxXkbceq5GyUXtwDMjanmLghZIB2s5rgaeHubbql/BYLsqQUpN8JpPUt QOlsRAHHOspzze+UEMJY1hbmN2Erc5iIkFy17kDmUIMjYfyfLPii8fTLM6fdH13b7e7O 6GCceorfS7tvDyOGJxfTUSHAYetrRkAYkViFW3rnQOaG+s4lKftHCwLYjSgGEaDqQrjg N7d1cPOlWLbdFfhM4yjMAlaADofoD98hsDMWRyoJd+ujJCyhU+JOzDaKSOJCSbCb8Hpc vTAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=okfwWtZQ; 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 bb8-20020a1709070a0800b0077945c44b7fsi32131655ejc.856.2023.01.05.06.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 06:42:44 -0800 (PST) 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=okfwWtZQ; 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 9F167388A021 for ; Thu, 5 Jan 2023 14:40:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F167388A021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672929652; bh=Z31twat2bczQT1hC/TuVwDikATMTA4YKRgKa8BC+mQ8=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=okfwWtZQ5qyMvY/wL4cWeb5vXH+sIkdftsgowil1tC2kxP3nw/TrDoFVO2crjpPkE 884dCA8w/12BOdewj7XpPstqKFkPL90a1cUnyMjv4XTO/MbECqPakZE+/qjWqCKtri 51f8zf7iaXB2ZbZgQfJQP6pWKUyl7LkYUKxxD6wY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 38A933858417 for ; Thu, 5 Jan 2023 14:38:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38A933858417 Received: by mail-wr1-x42f.google.com with SMTP id bn26so16863877wrb.0 for ; Thu, 05 Jan 2023 06:38:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Z31twat2bczQT1hC/TuVwDikATMTA4YKRgKa8BC+mQ8=; b=F5i/YboaMWEvETGZX/LVh3cXcv7Z9mbWHDHWc5pUEW2r0efRUvFy8atzROgO1EBZMd +xw6sDYrTSc4FzToCqYciDoajMCHsFfbviIa2z6XhoxT1rwiDWwBYcPGabWGEGM2Y56P UdXwRjMfPmlnX3zcLXZqIJIdT5BMe+7xWiK+i6hplivqYj5HOQXbmC1JKTnuQumepBNq HG5qN0qimz33UVnHZmQZWbe7Tjzj7bkwy/zvrymvdnMTlpV27g/kAFVQ9AcRlEciwEK+ G8rbvDdYpTikVhTrvlZCdnLWz3ISQ919hLjKl6BhFyZi+CwaxeQ/9AVcClmFplMNDFoH uTfQ== X-Gm-Message-State: AFqh2kp/F/n2A0Rw79bPwEdMwLFUuZL4hAy2Gl2Humx3bWj6fK8L9WM6 mIVcReWvZnvcq//PJNlEOqpzwDSoyZVthVlO+UI= X-Received: by 2002:adf:e38e:0:b0:251:d76:94d6 with SMTP id e14-20020adfe38e000000b002510d7694d6mr29964736wrm.8.1672929536973; Thu, 05 Jan 2023 06:38:56 -0800 (PST) Received: from poulhies-Precision-5550.lan (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id o5-20020adfe805000000b0028cc9d2ec1csm23950505wrm.54.2023.01.05.06.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 06:38:56 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Bob Duff Subject: [COMMITTED] ada: Update doc for -gnatw_q Date: Thu, 5 Jan 2023 15:38:53 +0100 Message-Id: <20230105143853.155433-1-poulhies@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.6 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.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?1754194000230792884?= X-GMAIL-MSGID: =?utf-8?q?1754194000230792884?= From: Bob Duff The -gnatw_q switch turns on warnings for noncomposing "=" operators. This patch updates the doc to refer to relevant RM paragraphs. gcc/ada/ * doc/gnat_ugn/building_executable_programs_with_gnat.rst: Add RM references. * gnat_ugn.texi: Regenerate. Tested on x86_64-pc-linux-gnu, committed on master. --- .../doc/gnat_ugn/building_executable_programs_with_gnat.rst | 2 ++ gcc/ada/gnat_ugn.texi | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 index fe0b567c2b9..634bbc94c31 100644 --- a/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst +++ b/gcc/ada/doc/gnat_ugn/building_executable_programs_with_gnat.rst @@ -3704,6 +3704,8 @@ of the pragma in the :title:`GNAT_Reference_manual`). containing a component whose type has the user-defined "=" as primitive). Note that the user-defined "=" must be a primitive operator in order to trigger the warning. + See RM-4.5.2(14/3-15/5, 21, 24/3, 32.1/1) + for the exact Ada rules on composability of "=". The default is that these warnings are not given. diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 0470414e150..a1daff92fbe 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -19,7 +19,7 @@ @copying @quotation -GNAT User's Guide for Native Platforms , Jan 02, 2023 +GNAT User's Guide for Native Platforms , Jan 03, 2023 AdaCore @@ -11970,6 +11970,8 @@ not compose (i.e. is ignored for a predefined “=” for a composite type containing a component whose type has the user-defined “=” as primitive). Note that the user-defined “=” must be a primitive operator in order to trigger the warning. +See RM-4.5.2(14/3-15/5, 21, 24/3, 32.1/1) +for the exact Ada rules on composability of “=”. The default is that these warnings are not given. @end table