From patchwork Fri May 26 07:35:53 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: 99354 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp292521vqr; Fri, 26 May 2023 00:46:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Sg1Ed02lDSK0xMDAc8jTPwOq4Fhx+mFhGH+ugjGSoHNgrRSFWC5cRjqiikfISIkbsrUR/ X-Received: by 2002:a17:907:318a:b0:969:e95e:e4f3 with SMTP id xe10-20020a170907318a00b00969e95ee4f3mr1201040ejb.55.1685087167417; Fri, 26 May 2023 00:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087167; cv=none; d=google.com; s=arc-20160816; b=iImxECycydadzv3Hh7lNE5z/CeYixqdBPnDXUxWyY933S1RbksvWK4Y6YywaKxHGBV N3kE1baQAj57R1kErp7eGcI3AgqfAQTeHVkbD6gsTC2mE+b3rZghcVTm0sej7H/jKARo PsZ9Fz2PtPT16BxiuGLLXZBzlqNm9jGd5/K/BKWvu/WMrUtWgLeQlEr+o3aju0adx5rA DPj8Rqo6OtuHUD4w/5rzfVZciwJMftvAuouJkTEPR6ETDI2F8xacBAUM+cUuv/xCP3yi lnhOdVhFknvHpZm07r0fwzeMYi8tnzSM4DQYTQJtFVsoPvgI50mvaS0R04n3ExeFX2Wy DjZA== 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=p4cGyTuXJbWgUKGX0bbn86ytvThSTrB0kOm42esqFLs=; b=CuizXhTylXDx3aXZTv7XkyUFF0BmpWxK4ycs4OvDT8q3L6EkrUZ0qbX5G5vcyWWl51 zK+dK6SmX/8OhJFxZwVifrlW6cu3ABjth2f3uSOxyWoQbCxm4SdHTGJig7OLFUMqjqQr 8yLfTvu5CaZ946qtPYiJKboKPU6vVQHMSwhmbapEon02ea8LIarRCw/t2YZa8vYAUnNS bR+RZCa2xE+v5RJWgMMM1XrocW7uObj2EiPOOxQrct48h8be+0Z6jLh+873p6pYTecRc qPz4WS+bBt0ZfKR9JWRFYRjxlKyV+BRk0M35yEWVNGYG+63vkiZFIivMYaj09FaW3iKR Gprw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="qp/Jh2Us"; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id h21-20020a170906719500b00969c3b8ff16si2166587ejk.741.2023.05.26.00.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 00:46:07 -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="qp/Jh2Us"; 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 28D5C3952029 for ; Fri, 26 May 2023 07:40:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28D5C3952029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685086837; bh=p4cGyTuXJbWgUKGX0bbn86ytvThSTrB0kOm42esqFLs=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=qp/Jh2UsB+i559UAEQguErL8U0yo2XTwDTYbrZzpTrvyikMI+bme9JCM6iR1jbJHO fwuQLKu85CAkcOZYLGQfNwdnfrmFbsZa/KNucDEFDrFi7b3UuBg8HhFUp7tRjYcyWa INsZFv2x9Y6kBFSEiX2D9uKs//nStrZdgbCVgCeg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 578373858416 for ; Fri, 26 May 2023 07:35:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 578373858416 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f6094cb2d2so4505735e9.2 for ; Fri, 26 May 2023 00:35:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685086555; x=1687678555; 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=p4cGyTuXJbWgUKGX0bbn86ytvThSTrB0kOm42esqFLs=; b=cQuFhav/lE+J2TdUsh4BE9TEwT8T5VK5iAIkVylTaWG0mI4zPZAF2v1tzRV/U2nvXk ycUw024BQP1RyarVng0r5gNZD3xcQlBwmPf/mJ9saAPEJ+uwBaX34yAslzhgUtAHoBJS 8W1o4MW/u/jCAyx50dDU1oh3Q5X9kb3uNTvZj0jVxzCbHYDQ6KjMPwUspxfXYB2QxECQ q5Gf/5PwNodNVoNNeKlRvhmQjRT6aDEBOf0+RwNFVX+TH2EmaECAlQ+aolT8RiFvJ+o+ gsRP2s+fyIkoUf82+5gjsdIPQqY+I1kHhp8MimG+iibSKUXFLH/inmY7mFr5boRtn+v9 dg8g== X-Gm-Message-State: AC+VfDy2iQFcAc0OEYlO8ELbyLtWN11enU2FLRIAdJyVZE/2c3bsHS5e KuBZP12UPGqMoWyjEsDEE0X5ZO5+y4NRC4AzqU1T2w== X-Received: by 2002:a1c:7216:0:b0:3f6:476:915 with SMTP id n22-20020a1c7216000000b003f604760915mr779449wmc.6.1685086555061; Fri, 26 May 2023 00:35:55 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:777b:eef4:6f79:f26f]) by smtp.gmail.com with ESMTPSA id e2-20020adffc42000000b002ff2c39d072sm4142245wrs.104.2023.05.26.00.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 00:35:54 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [COMMITTED] ada: Minor tweak in condition Date: Fri, 26 May 2023 09:35:53 +0200 Message-Id: <20230526073553.2068097-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.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, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766941961525910497?= X-GMAIL-MSGID: =?utf-8?q?1766941961525910497?= From: Eric Botcazou gcc/ada/ * sem_util.adb (Compile_Time_Constraint_Error): Test the Ekind. 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 aabd01747fc..ea5be2ff4b5 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -6110,7 +6110,7 @@ package body Sem_Util is Conc_Typ : constant Entity_Id := (if Present (Init_Proc_Type) - and then Init_Proc_Type in E_Record_Type_Id + and then Ekind (Init_Proc_Type) = E_Record_Type then Corresponding_Concurrent_Type (Init_Proc_Type) else Empty);