Message ID | 20230525080603.1956979-1-poulhies@adacore.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp200337vqr; Thu, 25 May 2023 01:20:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Oh0fzsnuagYVrfs8aLua6lFzxcD6cwQ5SgwHpBbQCe1MQN9LBsBN/cORo0tvaKkMkXr4O X-Received: by 2002:a05:6402:614:b0:50d:56df:fca7 with SMTP id n20-20020a056402061400b0050d56dffca7mr4667401edv.6.1685002832666; Thu, 25 May 2023 01:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685002832; cv=none; d=google.com; s=arc-20160816; b=qA+X7e4etidEa3qU+/94Pbm5nkrfpgYp0L/Q8rcG7K9dIfIBpqjk3ZqItOiM+uVl8C XuTio/7V6wc2X+RGWGjL9N8RhESvgBgt8kUr8/Kn2IDq4yzdJhtC1StVovsq4mcMoR9V eW+eyfeNEwq6TPjE33Yvngujr9N2pYflRU545ebclF4lCFyP00JMakayqzRzPmN7S2u/ ptlDX2a8hjiOZ1Bz8EBTrb8ggL0YD8OPZzCTeDmIon1Nh6N+ZLifKG5M5GM0fy+RSBMu LzRMTpmlCM3nYe/4hFIpgt9ZmS6484ttplBVdXGf86v8Mux0ew90Q8RnWdmSlVNLcNwo coxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Ekv2SMLdj89bGLzKwQS5GTr8v8qsVe5+YvEp5Ium12Y=; b=RJq7B4fglNSjz8lmwqTocbkTMofGGGcY6eyoFLYPaLARaIUw4IgPXFMw9ur0pRLc6S DjleCHeQvmvo9SPB5o7BtISU6URoYmUStbQqkko7og/NsD+X+EcXX7JfEWFN5VpTJgVV iUP8S9FNY2RvP8LznA+XD52kKSIx6kLGlgH+dXkK/PLePbHFjkzw51qaW2v82gFRGLhM 7bmHiTGywohnlLv2eh6Np84VFKQ9KeNBWRxUDZVoZqTsmqKB3T4wewbmUDvf300tUOOc tAcFlHNktbgce5metJiIG7ILxmuVsnFmCiyXuCtQqwOxe1ZWJmoqrZIGZZla9WhU19MV vxrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=r3gz8qu9; 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=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c14-20020aa7d60e000000b00504a7debfe2si623278edr.214.2023.05.25.01.20.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 01:20:32 -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=@gcc.gnu.org header.s=default header.b=r3gz8qu9; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DED74388459F for <ouuuleilei@gmail.com>; Thu, 25 May 2023 08:13:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DED74388459F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685002413; bh=Ekv2SMLdj89bGLzKwQS5GTr8v8qsVe5+YvEp5Ium12Y=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=r3gz8qu9uS1WGqe9qJDBTTCS7UpNGlLJrBs2apQjoAfz+WCvG8+ZYeNJLqoSaKL3r 4wbSZENIEVmEnmLh21ARRuLMfFnjjtRljM8TKanKPX5g98pJ0yUK69k+bPCyMCjbjv vTIkODVY82XOETxMTIwCMnu0UyeRui7W98s0Z2JQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 8D791385700C for <gcc-patches@gcc.gnu.org>; Thu, 25 May 2023 08:06:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D791385700C Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f608074b50so3092115e9.0 for <gcc-patches@gcc.gnu.org>; Thu, 25 May 2023 01:06:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685001964; x=1687593964; 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=Ekv2SMLdj89bGLzKwQS5GTr8v8qsVe5+YvEp5Ium12Y=; b=aEMThOJHfHO/RkIO8+eElw0Iw876aMnQgN0WBvLTILxeuFFr/O7FCeGvLE26AvN1KK 50FicZziHFlaEqHVa0I54DVAlxEm9+uGwoHcvuo13I7UoEjRsn9g9MTTZR2ORkeOf7su MsZnaYGQOTSux0HGXiAKfda6Daw1ZXnbTaVpo74MENCPR3+mPKa+z9nmle5WzlrWb/k0 OGuFOQHAzbGeFLETSsj3agNDEVOGSWnFNnRFgE6k2JZdGzA5knssALPga0SFeLqolU5O B4vPn/FysSZvNu8WwUbE16pzc5t58PlJS+vREZLCsrZOklTi05gTIuAQyDQ+7pgDdQMx lL9w== X-Gm-Message-State: AC+VfDy88XMOqsJ850QjeyFJYm7QUGMIcNHFM9ddw8LXAeOg2h3wSQaf C+4VORnrL9TO3B++46e8WeyvXMxx/mjToh1BrUyHsQ== X-Received: by 2002:a7b:c7ca:0:b0:3f6:683:6276 with SMTP id z10-20020a7bc7ca000000b003f606836276mr1584483wmk.35.1685001964456; Thu, 25 May 2023 01:06:04 -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 b14-20020adff90e000000b00307972e46fasm830234wrr.107.2023.05.25.01.06.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 01:06:03 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED] ada: Clean up copying of node trees Date: Thu, 25 May 2023 10:06:03 +0200 Message-Id: <20230525080603.1956979-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.6 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.29 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> From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766853530114204634?= X-GMAIL-MSGID: =?utf-8?q?1766853530114204634?= |
Series |
[COMMITTED] ada: Clean up copying of node trees
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
May 25, 2023, 8:06 a.m. UTC
From: Piotr Trojanek <trojanek@adacore.com>
Before calling routine In_Entity_Map we checked if the entity map is
present; inside this routine we checked this again.
Code cleanup; semantics is unaffected.
gcc/ada/
* sem_util.adb (Update_New_Entities): Remove redundant check for entity
map being present.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_util.adb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index bfe1b9fc74d..8b536ec4e42 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -23858,9 +23858,7 @@ package body Sem_Util is -- ??? Is there a better way of distinguishing those? while Present (Old_Id) and then Present (New_Id) loop - if not (Present (Entity_Map) - and then In_Entity_Map (Old_Id, Entity_Map)) - then + if not In_Entity_Map (Old_Id, Entity_Map) then Update_Semantic_Fields (New_Id); end if;