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: 1884453 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=GVmT0NF6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T8WjD6XzXz1yPh for ; Wed, 10 Jan 2024 00:18:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EC41038618A2 for ; Tue, 9 Jan 2024 13:18:54 +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-Google-Smtp-Source: AGHT+IEhpJjK/WJ9ze8tQwyA/i436/In3Sg2VV0VNzpIZcdtI90aiVjbVOrsn3RcsmcWQNgePJ3R+w== 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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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