Message ID | 20230706113856.1766127-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:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2494815vqx; Thu, 6 Jul 2023 04:41:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlHAxDp7rDyZk32BCLqaSECjigEgbvgW8sh7a7drLT5jHnBbzjnXCNflOTdTCet72ND0s1dx X-Received: by 2002:aa7:d286:0:b0:51d:9232:2b5b with SMTP id w6-20020aa7d286000000b0051d92322b5bmr1308325edq.4.1688643716887; Thu, 06 Jul 2023 04:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688643716; cv=none; d=google.com; s=arc-20160816; b=cLQWTKFlyHEjhUF6m7/wHJOFRlVLlwdT1TtWrBPQ1SUIa9bzcr6Fxd3cbLREUEnG+r Wigho1Ol8mcTIOvgEQ27wAMQt6JNx7ZD66WAXDKEmgC8Qrm/q6yjDmgCH/XqJ92Nr17i rxJ9yLBWj+wvkj+YnyfzNV/usqA8zZIdL09anFy2mE9KtE/u2SFj7ffDc2OcB2L/depc 62aRCYvsTgkhlKwbdcTs4U+x9PtQ+32f8w9gErCW59yY9IScYxNDGBwfnGzAv0pQFw28 lkQoo71hmG3y6jX1AYF2yiWQ6fDpz5wtR8SnUeOD1kHatJpAsE3htzYArfys5H/6YFJc DGDw== 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=bJeZVum63Fuv7nZ5KIHeQJTQdOyuFFTDd/g3PIMyCLs=; fh=qgQjCcgTOS4PqJmTmRtvqfvUI8DwWNjxI7TYi3qv/40=; b=LorqqPUAAQxleoLmQeIEzvVCgTU8T4ACKDI12k6x7YiJrMjJBBdyfmPsOtWkFk/egf XCv+b7duew6PZAvW1eGgaaSDLktpY4XvachKM2KOskzUQLuHekRFoo06YFNQO3GCFbxm vIUwA5DUyQ+jmPjWNp1eEEJzJESt5rUy3qG5S345/XFkFC/OKkwes7uB6/JmBn9tYl/c U6tr9/mZaa+D29zhG00mACplISR7/+Fq9PlcZPA1v0kgOoy6hVYQR/SE1GOMZbZEC9Q0 DqU2LoE1se/mJkdhoB+9pRJiCLctZBs6v2issViVzj2AUrddUlSaJb7JvCSfDqtxxkbo 98ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=URqTo2OA; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id r10-20020aa7da0a000000b0051e186a6fabsi708031eds.206.2023.07.06.04.41.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 04:41:56 -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=URqTo2OA; 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 33E1C3853D26 for <ouuuleilei@gmail.com>; Thu, 6 Jul 2023 11:40:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33E1C3853D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688643641; bh=bJeZVum63Fuv7nZ5KIHeQJTQdOyuFFTDd/g3PIMyCLs=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=URqTo2OA7QdJg3g9vsYbMRukZvIljjms9MfZNVdiiVt2TZAOjYgNeuG77H5sy45ni t4A2KKUFA4Jpxacrx0ck/xovM2NoUkfZ8cvymg6sesfaIVs7zI5uge/LhCf1URMo56 uavvbonm5TTidkHCM/P05U4bP1QH/crk8MXxu2hQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 06C4F3856972 for <gcc-patches@gcc.gnu.org>; Thu, 6 Jul 2023 11:39:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06C4F3856972 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbc587febfso5629955e9.2 for <gcc-patches@gcc.gnu.org>; Thu, 06 Jul 2023 04:38:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688643539; x=1691235539; 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=bJeZVum63Fuv7nZ5KIHeQJTQdOyuFFTDd/g3PIMyCLs=; b=GMs6ofqNvnD45mbprNC5K4BC43GaRBRURL+NbYvk/Lkacn40DE9eHVwLCJczQeWSQt R49w0nfqmbZMomfMyTZLAKiCOqpee7L+gaVx8dhxqibgva1IHXcit3BihDofWh8c8ziF Wv8rtgy6FXPVAUhr1k2BpPuduUVsfGm2baqGV+JyRQ0IQQPnLiiFxyXHRlZ3ct5UGju6 4m5dhQok/oY7rVFSEm6vbCEAAH1YqY2Dz16mpAbAi1Rb/8wIe6L3hUFMY85aD8fsWD3d 8XjlixTHBv3qg7MdPaaWwhrn2c2jd1DDErumEtht3nv/EX06vPb68XNze4qlSIWC+KqC AzIA== X-Gm-Message-State: ABy/qLYPnrwBaO2+DZJKt+jSMdelKguauB0vOGJzYRulMnNiZFR9KZy+ zddohAObQMHCQqcSAo5priobyweEkaqS6+L0v1RF4g== X-Received: by 2002:a1c:cc0d:0:b0:3f9:70f:8b99 with SMTP id h13-20020a1ccc0d000000b003f9070f8b99mr1096933wmb.7.1688643538635; Thu, 06 Jul 2023 04:38:58 -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 h4-20020adffa84000000b003141e1e0b9asm1649435wrr.61.2023.07.06.04.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jul 2023 04:38:57 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Viljar Indus <indus@adacore.com> Subject: [COMMITTED] ada: Reuse code in Is_Fully_Initialized_Type Date: Thu, 6 Jul 2023 13:38:56 +0200 Message-Id: <20230706113856.1766127-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.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.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?1770671274277224981?= X-GMAIL-MSGID: =?utf-8?q?1770671274277224981?= |
Series |
[COMMITTED] ada: Reuse code in Is_Fully_Initialized_Type
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
July 6, 2023, 11:38 a.m. UTC
From: Viljar Indus <indus@adacore.com>
gcc/ada/
* sem_util.adb (Is_Fully_Initialized_Type): Avoid recalculating
the underlying type twice.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_util.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 736751f5fae..821aacf1ccb 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -17333,7 +17333,7 @@ package body Sem_Util is declare Init : constant Entity_Id := (Find_Optional_Prim_Op - (Underlying_Type (Typ), Name_Initialize)); + (Utyp, Name_Initialize)); begin if Present (Init)