Message ID | 20240621085819.2485987-5-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=AvmSev9o; 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 4W5BB61gC7z20X4 for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2024 18:59:26 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 720763896C34 for <incoming@patchwork.ozlabs.org>; Fri, 21 Jun 2024 08:59:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id 6A79B3896C21 for <gcc-patches@gcc.gnu.org>; Fri, 21 Jun 2024 08:58:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A79B3896C21 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 6A79B3896C21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718960318; cv=none; b=fLaA3vesDEmieArOYOOl6J1FSjtmjZbr9tZnxgTMIp0+dyEXLHZkRy0U0jJgBSY03mFYLRBJOk0V5QKq5ZXkOLB1GbBJpmLs8Cn7rh4i6Ox+V2zYB9sHzrCAStL8vdYz+v/oJEAdlx5aLYsswSjoScTz223ek8ai2oBlRs8O/wg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718960318; c=relaxed/simple; bh=eZmh/sjLbcfowy1D83WAsBBt+YkpmkwnRO7SETLLCzM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=FgD3s/mb6A8N5BE7WalKOV37fk6wPMFQZh3Q18mnXpMbtVuH0yMfw5cNttTRMjKxHQhXPjtkltWPQpb4BXznKNo+LnkcVPpzUGxW85zuSchonrEPplt4p1TYi59nTUx8geUhP7SC82DtrB0NTfYY6uKS1mTxeUHxuWTfUMG/eIs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-52cd9f9505cso207585e87.0 for <gcc-patches@gcc.gnu.org>; Fri, 21 Jun 2024 01:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718960314; x=1719565114; 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=Bx3Y283PwkzPq/SyY7GuYpNPaqG5uiKb4QXI2dUyRgQ=; b=AvmSev9odgxrx2QTFd847dfkVluPcTl/vCBQG1gUIUx1qkjSykpQ21HzPDm+MKZ4cC pjAbqe3laGpZl2JU6OxGXYZqDhVDP5zxw2+F7iU1GoCeQzvyONmzAS8zI+eNghHKdeMN RYtkfzuL2k5vdeh3vZuHWy9y/dbUAz33WqQoHFRe0oDE3GJ9A2e9vY67lKKkbRYCCW5X nhgn26b+0Z2yJUgAomsmK5asnEGxLSksbF9T2B07wo8Vkgl0owDXe9ha0Nhz35IEDilR p4BrZ8TT0Cm/SB3O77aDdxOhBIY/WFD4D6HSYh6CR+jpsUAlIzL7edgrW/dZyMW8bkeU Fl0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718960314; x=1719565114; 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=Bx3Y283PwkzPq/SyY7GuYpNPaqG5uiKb4QXI2dUyRgQ=; b=mbermDblgHgcqR1Oe3voMN5VN2P3mMZydsKloFJrALX8r9jYVKO4PHlU6/eWvi495q Uc2JWsy4cylhI2sjhPzRsmh/MBHEV4pzDm3fSsOwagVwfcCPApyo/1xWycJGq0t7OpTO 866bypfDllMTarw1hNWUVWadNEm/iuvSAMpGAJss4COCA3BD7aL4eiXofF7ATspF3XaJ Dsq9UwJh5MSExgwcnPntbcgLiiVURCIfiGoEwM0MfhdoilPFa5pPxhTgAORHsHnbU0PW 4c0yQ7Ps59VSHLsBtGuhHQOUURoSrS566nWE3tTpPq7Nfb5iCEiDSE/3rKj9eBMvlYjm qdWg== X-Gm-Message-State: AOJu0Yw3QgWsB+Atqz5fSwt5nnDVBJAvwb+4UlwHcXDk0Oz7lT+UkoHz tOz00rflzFDPcNgdKp/bLWhUnIA5B550L+ETYwivIANcuGqdoLAh53BCCsqZT38z3fwDc/JJbc8 = X-Google-Smtp-Source: AGHT+IFbLuAIz2qA44qvt48HTQnOHnZaeYMCsaCgsOnUgItN+SM4urVmrAU0mzFDSgXtTOZpKNsp6Q== X-Received: by 2002:ac2:44d3:0:b0:52b:839c:78dc with SMTP id 2adb3069b0e04-52ccaa61d65mr4478524e87.29.1718960313789; Fri, 21 Jun 2024 01:58:33 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:a589:2704:bfe1:5d92]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247d0c5485sm55322375e9.21.2024.06.21.01.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 01:58:33 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED 05/22] ada: Fix gnatcheck violation reported after a recent cleanup Date: Fri, 21 Jun 2024 10:58:01 +0200 Message-ID: <20240621085819.2485987-5-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240621085819.2485987-1-poulhies@adacore.com> References: <20240621085819.2485987-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 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/22] ada: Spurious style error with mutiple square brackets
|
expand
|
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb index eebaedc216b..a1112d7b44a 100644 --- a/gcc/ada/sem_ch3.adb +++ b/gcc/ada/sem_ch3.adb @@ -1618,7 +1618,7 @@ package body Sem_Ch3 is Last_Tag := Empty; - if not Present (Component_List (Ext)) then + if No (Component_List (Ext)) then Set_Null_Present (Ext, False); L := New_List; Set_Component_List (Ext,
From: Piotr Trojanek <trojanek@adacore.com> Code cleanup; semantics is unaffected. gcc/ada/ * sem_ch3.adb (Add_Interface_Tag_Components): Simplify with No. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_ch3.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)