From patchwork Thu Oct 19 14:41:30 2023 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: 155623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp432980vqb; Thu, 19 Oct 2023 07:42:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdO4c/b8FYDsfq/LgaLHf4nYSZp/SpPONgULekGsnhQ5uNe2kQimXvGVzoNiSw03oCz/2T X-Received: by 2002:a05:6808:bd6:b0:3b2:e799:97f6 with SMTP id o22-20020a0568080bd600b003b2e79997f6mr2414222oik.59.1697726544384; Thu, 19 Oct 2023 07:42:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697726544; cv=pass; d=google.com; s=arc-20160816; b=EupLFWTsTMUf7uCBXIBdAtaB5pOpjKAlvYVXsD+DNrnjN1hDSs5BBofKc6KbgH207N k5f1zmu50TVskZExVHu9O/9BTls07HH72Eg979NX8Fwhd5CpD1iCJVGIFgZ8F1ELlAMM Sx+dwu96jhHMcRowh5PTobsHv4rzXgqRkMesW78EWlBrnJNyLgPl3kit61eToQwku2oT cWzTAFo4x3tZtS/OVq6OvZOPZZG5jo9QVzs4fN+JVH+eg7eWMDuygL/Lwz8BDjj+TPzb PIOnGhaTkmVSXHS34T+Ebu5mQod562XZJCkSpyKTgsyjzARAEn2EyfrQ9ogwuYKhz3KV fSTg== 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=jGBXxrwRmhul2512UzWl0QN/ykzGgEdiozQFIYc7XSk=; fh=QRb7QY4BZ0mIIAPiH2G4K0PcYKRtRn2i5A6VLUA8cN4=; b=flsxFQ6vkHbORyWrjdLa5P9TWMoE94YuEWu5/E0ScZ7JlhbUOy3yu5PcctmIiqyIFl 0wgwaeBqerrXt+St1zr6RJkefPmBp9XW+stVIsC0YzFg/CbIm8flOPgubDsYvWYdFYcL hJ4Qj1w7oWTu7QrwpKnDp1Tl47gmzmdJSqGT1QTHa3WHN50lf90FPpXZ7nYIptQjo1l8 QwCRBbqrXJbnBeUoxfq3wVjxNMc6CFvRR4iGosdC6LhQNKHB810+pGilfEiFEELQ7AQS a0wVWMmaaEql2LYhQqESQ44Jbf96wKO3jUnZN3hfP5uPmf73CQA/IZDci8WB4U9ApjSG VuGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=LM4qK3go; 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=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d11-20020a05620a240b00b00774182478b5si1731152qkn.11.2023.10.19.07.42.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:42:24 -0700 (PDT) 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=LM4qK3go; 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=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE2AF385C8B0 for ; Thu, 19 Oct 2023 14:42:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id B277B3858C52 for ; Thu, 19 Oct 2023 14:41:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B277B3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 B277B3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::333 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697726513; cv=none; b=BJwt7b+NnahStpW8IHlkQQP5QLKxmUFYi8SAdtLE1zMjPq1ufoBtRy85rTHPkKF9wT2nzY6SXaB5BOWA8Dn0paNeVTQMbK2WoNZHxBe31dghacoeRX3wpea+RCRjFPDZEAFuBoO9aZbwhroAm1KLXBvaQ8gq6GsyzgjvTAE/cq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697726513; c=relaxed/simple; bh=GgIXr9i3wsGwdTpxL8PcyrikBHzN8+V/s0W32wD6UXg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cCaldcotvkVaQZGGGOrZq6Z9nmFfDdmU5MwAM+QlWOv0y/5yx5XBeLYoFSpmAPW4mymwdt+GH16c+84P/vIMKH3ild9iITdHbbX2xZ2GJggIWqVcN5EN+za+PuxnWmbQtdBwhuErPbr7ZJVLXzNFCSa+Zt+dKzk+acXD/PUWlo4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4083f61322fso14083305e9.1 for ; Thu, 19 Oct 2023 07:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1697726510; x=1698331310; 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=jGBXxrwRmhul2512UzWl0QN/ykzGgEdiozQFIYc7XSk=; b=LM4qK3go4BndVXSc1POaNXwqfUGiiV/SUgZwSk94Enw5HtHqqtpG0n/YUGl8uh+dOL GqJg2RxZ8/jzZ9K4ntnceMULSE9XilZ+4x5e0tVbi4X6KoFB7BTof409VrheE2iT0Aay na4EA9Z9o6dzeaAVZZNGzJ0qBcA0AOyjfaXMcp6qyw74KhE1WwttBGNFBDEJ9GPPwbvl 0fkeuDJbdGqVOOjlE0X7maMW6exA2QW/V972izSxGb/3t7VO6Afqxz9onNZ0a2RurmuN QxwiZdTzIclv71dfoyxSob5THIPBjgvHaAu2ZisVy9F/FecpLkpkZaP1bWF3Qs+03wjU MdYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697726510; x=1698331310; 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=jGBXxrwRmhul2512UzWl0QN/ykzGgEdiozQFIYc7XSk=; b=tyHqeQzbOIsyRGcJWGfIxj+HCuDWTdu/s3An8EHKUxaWQdEg++MoR68ZpVa2B7oKZf HKcNknNOhE7tPUNHKoLX65p3/T5+4yspOdGd8Hlbp7D+Cb3e9CbmGVUGfVmX8K3J5/ii 3++e7jG1VP6f/5CaVo7nKoCRG6iBRnsRxU9lTrzXok1taNCITPDLr35q6HjTwaKGbpvV Ea8ipZztBAehknUwIymWWoeAWWzsGv1kLH4GyxsY9oVcGVOwyqZrDm7ax+tlFfCVXf4/ 7uLLeisV3ArLqxkLoda/Iow++dAIK9Fzj13lKpPL4djTyhVbZWXRGk+Xw/l4YiBjjoLu XTKw== X-Gm-Message-State: AOJu0YwB+fojGvViFO23dGKjQDPzz50YNEALc52gLWq+rXbdbJ2Q0AO2 2Nagc7YyH3BEhMkhO1hoTMTfI4pljiK+BHRpZ+FbIA== X-Received: by 2002:a5d:5642:0:b0:32d:9d80:4038 with SMTP id j2-20020a5d5642000000b0032d9d804038mr1984370wrw.49.1697726510299; Thu, 19 Oct 2023 07:41:50 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:b43b:dc95:363f:b759]) by smtp.gmail.com with ESMTPSA id o1-20020adfcf01000000b0031c52e81490sm4699480wrj.72.2023.10.19.07.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 07:41:49 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED] ada: Simplify "not Present" with "No" Date: Thu, 19 Oct 2023 16:41:30 +0200 Message-ID: <20231019144130.339314-1-poulhies@adacore.com> X-Mailer: git-send-email 2.42.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 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: 1780195308608756613 X-GMAIL-MSGID: 1780195308608756613 From: Piotr Trojanek gcc/ada/ * exp_aggr.adb (Expand_Container_Aggregate): Simplify with "No". Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_aggr.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb index e5f36326600..340c8c68465 100644 --- a/gcc/ada/exp_aggr.adb +++ b/gcc/ada/exp_aggr.adb @@ -7288,7 +7288,7 @@ package body Exp_Aggr is -- Iterated component association. Discard -- positional insertion procedure. - if not Present (Iterator_Specification (Comp)) then + if No (Iterator_Specification (Comp)) then Add_Named_Subp := Assign_Indexed_Subp; Add_Unnamed_Subp := Empty; end if;