From patchwork Tue Jan 9 13:15:57 2024 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: 186371 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp100169dyi; Tue, 9 Jan 2024 05:19:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4piqNnKvvuJfN6L0VoXupdWHRPlrwKM5ZIdioSu7O8sJ6ReiQlfXKCudgybDPaa6Qdlci X-Received: by 2002:a05:6214:23ce:b0:680:e32d:a2de with SMTP id hr14-20020a05621423ce00b00680e32da2demr916443qvb.21.1704806366050; Tue, 09 Jan 2024 05:19:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704806366; cv=pass; d=google.com; s=arc-20160816; b=JUPUd596PLlbAmL143/aT6EGvN3ghq523j1Ao0/KOVo15Tewz1Fcnrny+z/hBH+jWB 2GtOQGK75gHMZC7RsTELQKkKb0DRuyxIkgsWVoujBEFqHNznHxFmSiZ4TDdnx9g7Uf9y bqsWfgtc9V88lceUJVDhKWlGFk+jT2Gxa6HPnRZBA/Gyuwqx25TbYO/i3P7qq9FDoX8o lCXP/iSuz0Ubv5wsH960SQZLVhpOLANkfO8yI/yzLIMfZA2uTaRdf5cs8siFxk4m5/++ CtqQQp1sm1sQruZch/+Ee0M72tjVGlvxyhNTinBnFsrft5Zxori7NStVOIAe0Klkb9LO eAtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=J+EQ8bDxSWbBhNlzq/SU5AIBHRm5nnWb6YHvVVzGn9s=; fh=2OQ2D33Mj5i184RAM+HipkBHQbq3Jto2o2pTnCBu17E=; b=VWqk+wSRxhNDeBEuME/+x96F6Yenc4rY1KnFFH3827Vb3DTZGhAJQ7eYpUIk5oL8AH 46B5DNT8wHGnjz+GNcJiQJO6bse4Thtw+aMu/QSXYLxVnU1iVoCmTm5Ql49hj2RLGNVc 2mi0SUeGPu2XddAqJOaQ1d934G22XPapYm7tsGu4wcFuHKWOb4J1mIWrj55oD3d0QMCd ix47stGsH6s2RgHxPjrjZAGHOeBG+TZWCsKnv61wZYFHbrlWEGIuemXdV+ZCQ0aag3Zi Uz+Y6/+xW5ckvUj4GS1GShFY/Bs+ozcj1ekgXQFxt124aj20BjHJCi5cDbzIGb3VHmzc ZJrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=GVmT0NF6; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c13-20020a0cf2cd000000b0067f7b4604e7si2222488qvm.93.2024.01.09.05.19.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:19:26 -0800 (PST) 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=@adacore.com header.s=google header.b=GVmT0NF6; arc=pass (i=1); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 169F0384DEC2 for ; Tue, 9 Jan 2024 13:19:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 2E3473861858 for ; Tue, 9 Jan 2024 13:16:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E3473861858 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2E3473861858 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704806161; cv=none; b=MgUXmRu786gUJxwNsp1rAasFIOek9gsP2tqHjGYAhuTHrTURoEzSQ0gWaFU6KPSBgU10QaBtRtGhbj4M9tAE4ReS+ktxbkdpm1XEFWmyDML/EY5YHtfdMK+tY1CqDQEpVjK+rw9CgivBIYD+L0BrH4jYvr4ufN3cpIwy8aqVGjA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704806161; c=relaxed/simple; bh=3E9FnUibxXv0f6nJ1sXs+HCh0rD123h54yd//HsDJ0Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gqgqWuUwU6Ddd+CxVRuRKwdDYEStMFaRhifsrRAnWEfLTNeiUMKCWoodvLCb7P5mRko358rC7E+YGGF36e/ah6j3AlQgn09EB0RKu5v+p30XWxTNpSYZo9PYK6JGzr+0Dw+5Ro0+FrleY9yzwj7A5md48DdEJQ0oUimyN1zz7aE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e490c2115so10587605e9.0 for ; Tue, 09 Jan 2024 05:16:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1704806159; x=1705410959; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=J+EQ8bDxSWbBhNlzq/SU5AIBHRm5nnWb6YHvVVzGn9s=; b=GVmT0NF6wpL/qHNYxQzZmtDn+oRaOJ171zKl/QKhX5GuWmev3EtMz8LUamoZ5KdBSS UpkAeOPL1JTDAZFAuRYlqnUH7O1NEncya4u/9kO4m2g7NRndMsMqij+L9iQb0822tphL BvpiDdEANpbJ3llmr6PJknnz5l8J4fMlfSwH2yQ+7fW73QjPbWYbc8qlttkbvUtEGHjQ 4em+BTwteZq4CLDK6+cix2ZGO0TvWi/gD4uEf+o6ZLx3HC/0bgMTxgNZnkW+fLGZn2QP +WjWKem0qY5JEsHja5DtcjDjyht21B2aKCcj1Lls34dcmQ3qGT74viiyAvHnKl2dFZd5 doMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704806159; x=1705410959; 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=J+EQ8bDxSWbBhNlzq/SU5AIBHRm5nnWb6YHvVVzGn9s=; b=W84YnsD/Gr5R5TSOqV5N3MNg/a2uxePucMy3su48aSftOLRgAdNWNVd3WYudNZ/06Y uhTjsKhveLzwRO9pSQSbmCx7QwSDvasnDe/5L9g5+d+6nGX1Z2R0huwXRgwMDLrwAuQy GQSsuujp5AEDfJvoF48yswiaCcw9WurDHl5ojDTpqNZb4+2vNYIAJuE+sfKuKOGqxFNw B0+Laz2VW1OsBv91hXePGvAsKpD1Nk22DjAwcfBB67E9iQ0UUlswa5BHo+tnvy7U0BpJ ImsALbK8/HHBHtkc6R0d1Hhh2x6KW2oPVfX60RorqokkMr3pDyl8i7zmj99CnWmOUngr jIQA== X-Gm-Message-State: AOJu0YxHjZP9clPSJFX5AuGkzMY1OL8RPhwXrjp0rp27ZxQJyF6u83TV vZX/1u6OXeLo0cgT7XHSjXhn+5xXMZsdY87z/ekcHQ52Vw== X-Received: by 2002:a05:600c:1c1b:b0:40d:855c:21c4 with SMTP id j27-20020a05600c1c1b00b0040d855c21c4mr450490wms.4.1704806158960; Tue, 09 Jan 2024 05:15:58 -0800 (PST) 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 s13-20020a05600c384d00b0040e4a2b36bfsm5379692wmr.22.2024.01.09.05.15.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:15:58 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Gary Dismukes Subject: [COMMITTED] ada: Minor change replacing "not Present" tests with "No" tests Date: Tue, 9 Jan 2024 14:15:57 +0100 Message-ID: <20240109131557.744875-1-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787619039981075648 X-GMAIL-MSGID: 1787619039981075648 From: Gary Dismukes Fixing two places flagged by gnatcheck to use "No" instead of "not Present". gcc/ada/ * exp_aggr.adb (Expand_Container_Aggregate): Change "not Present" tests to tests using "No" (in two places). Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_aggr.adb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb index 6fceda3ceff..25215cb8499 100644 --- a/gcc/ada/exp_aggr.adb +++ b/gcc/ada/exp_aggr.adb @@ -7047,7 +7047,7 @@ package body Exp_Aggr is -- Determine whether this is an indexed aggregate (see RM 4.3.5(25/5)). if Present (New_Indexed_Subp) then - if not Present (Add_Unnamed_Subp) then + if No (Add_Unnamed_Subp) then Is_Indexed_Aggregate := True; else @@ -7226,7 +7226,7 @@ package body Exp_Aggr is end Expand_Range_Component; begin - pragma Assert (not Present (Expressions (N))); + pragma Assert (No (Expressions (N))); if Siz > 0 then