Message ID | 20240610090747.1557638-27-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=Qo9NYV19; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4VyR2463DSz20V0 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jun 2024 19:14:04 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 09D293857000 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jun 2024 09:14:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 30793385700F for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 09:08:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30793385700F 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 30793385700F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::436 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718010506; cv=none; b=lHwjy+kyFHETdy8bEt7+4w9jAUytxStLCfAdDgVugUO6lrJvnOPBgx4GmsR16IWF8HkYZi+KJkfoosTp8iVxeSqwpwGzIlCbU3+jTWe0JBFPJcyeYr0ogbuPxEcB6KlwsddCJubUbZihbC6XFBfrfvEVAoQ69ZXjRgT8bTbve2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718010506; c=relaxed/simple; bh=iyEM1ssZVFqNQhk1weyF5R9/pPLTWjeCBliuaUkuvo8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=khqRyfMaoNLs1CyTqfOw0lwXv118rPfcpZbDynDeEXin3zG2O5LvCyxLUNvtJFmoAGmBZOg3w4pjDwNKSNvrs7BJfwQYsR9TE9h4nBpc9UNy6LFGPXclTm+ersaigKo8EIREaWW2eV10bdH0wOkyMrFQRUYHo9qa5iqFcixBzuY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-35f24fabb81so563276f8f.3 for <gcc-patches@gcc.gnu.org>; Mon, 10 Jun 2024 02:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718010503; x=1718615303; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9xcQziq/M5e0sHKWN4k2+exgXM+uz8ZJu8mJIugHaKQ=; b=Qo9NYV19ovIXR/WrF8pVro6oxe12RppATa97hT7s9jyaKsJS2BiMENs/hmtiiTC7gn FJIeUJ7GFf5AnE9chzocje8dgR2FFuF3eVQ/7VLBoNjokea88riTfFPTDuxSzLhZ1FA1 lP53WurFhtUCxkN3TXSmqaJ0jdgWZZ/+geIy9rb718Bdiyfj2AXHTrBp+qg79GZJeWfp RW2sGnrC0/vttvNcCpei6U3h/EgSpqta4NIcvIf/d4rPyKi9SBn1lKBref8EC2QcRwJy 5GTBY+guPYFkFOys778IiKr7DzrMs00hLP0FH1gaBq7KbQqnpDbarJp9COSjrZuDjL0k eNQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718010503; x=1718615303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9xcQziq/M5e0sHKWN4k2+exgXM+uz8ZJu8mJIugHaKQ=; b=ciiJ9bfC7SjR26pV2DEsYcNcFjgvOH43l9pXiA3g7kSx6Wc9EgJGdeHRL1UVGW1Sgq 2xHccSK3QyISjEIBuuD08IXYUuOaNxaghzjCP2DUf+Irm75VBejyQF4EWx8FTrwDxhbI NKENGafTnBuMp3r0d12kxmml+Z8rN8JlNUXNizMYKID5JiIPSfBu/k0NXmdrnGfaMA71 tDN2VRy1bC1lYjJLj5jG6p65nsRH+bHbwhvs76RjouXc/MdnzgIBPtCtVyfBy1rFNjlc 8b/WsMWg+E+k+IPBCvHl6Lo97DVNbRYIpObJUUBs8DGEbusK3B649v7EMpqdNBsYSTgy O8aQ== X-Gm-Message-State: AOJu0YzxMWMj9srKeDnWnieToTAx+Ai2nqh3U3QUw33p7iwv7SPwlywA sg2MO67QTjEwyu9nDG65p6nTOXvOgBU93BuQv+562SHOLUzC0YNOh3rPw0L1JeIH873CKAy4QPo = X-Google-Smtp-Source: AGHT+IGTcs53QQp81A/ii9yPPiMAqg63VhOYcIF86oVxaG/4G3yTY1AFhiXGl7JFrDUwRS9DUvHDbw== X-Received: by 2002:a5d:6c66:0:b0:35f:25aa:1b1c with SMTP id ffacd0b85a97d-35f25aa1e93mr1182732f8f.7.1718010502953; Mon, 10 Jun 2024 02:08:22 -0700 (PDT) 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 ffacd0b85a97d-35f0f551c20sm6454970f8f.69.2024.06.10.02.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 02:08:22 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Gary Dismukes <dismukes@adacore.com> Subject: [COMMITTED 27/30] ada: Minor code adjustment to "not Present" test Date: Mon, 10 Jun 2024 11:07:43 +0200 Message-ID: <20240610090747.1557638-27-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610090747.1557638-1-poulhies@adacore.com> References: <20240610090747.1557638-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/30] ada: Refactor checks for Refined_Global in generic instances
|
expand
|
diff --git a/gcc/ada/sem_aggr.adb b/gcc/ada/sem_aggr.adb index 51b88ab831f..249350d21de 100644 --- a/gcc/ada/sem_aggr.adb +++ b/gcc/ada/sem_aggr.adb @@ -3380,7 +3380,7 @@ package body Sem_Aggr is Key_Expr := Key_Expression (Comp); if Present (Key_Expr) then - if not Present (Add_Named_Subp) then + if No (Add_Named_Subp) then Error_Msg_N ("iterated_element_association with key_expression only " & "allowed for container type with Add_Named operation "
From: Gary Dismukes <dismukes@adacore.com> This is just changing a "not Present (...)" test to "No (...)" to address a CB complaint from gnatcheck. gcc/ada/ * sem_aggr.adb (Resolve_Iterated_Association): Change "not Present" to "No" in test of Add_Named_Subp. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_aggr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)