Message ID | 20230516084011.1501341-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:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp271687vqo; Tue, 16 May 2023 01:45:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6jv+D6Xxt7e97cELfrz5MDi+fqC6QHXCCDmzqnmA9tB+I5QeWOI6XnadexvPN3S8jzUqJ+ X-Received: by 2002:a17:907:9347:b0:94f:694e:b953 with SMTP id bv7-20020a170907934700b0094f694eb953mr31700646ejc.59.1684226742955; Tue, 16 May 2023 01:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684226742; cv=none; d=google.com; s=arc-20160816; b=VV93kWs+sHwJ5zbyeqvagrWm/p/pZ/U3AH33L170izi70egp5ThNRwgrOdHxFw6kKW KhnpHcMZ6Pcq7Ci190Ur3FOAnfCfqDGvyTdZ/RAwGWg1RbznpRO9cVzI92Y/cr1D01+S pxi6lyxjpKx56aP1E6rjekzf/1dN20uwR5DX3+X4loSBPIvc0vC6FKdjyAxmncf2CAYR +aOmLiYhU6RCwKB0StKRHqdj0IdQPt+gw6eA1aJbdYR0lXIwKBr18TXak1+rsZihhodQ LJoZeaq5r0fXeC1RFtfIGkm/5SYwB5RZLS2yq7BXXXC3aGGTE3M7Q8uUOmKKRummTbMn Bzeg== 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=mj76bjeZocC06OSliOYdlB6KwMk+VK2IBQ0OOy1ioqU=; b=pef5Ta7/mStc9h0qiqSmQ0AH7GN40PvPqqybbXy7woonZPgdGyGrCBGfWqJMM6/kK+ JRszycjlSoQHufd+gIuxfEiIzkGyCaMLbTNCqC04ARwwJYpfQT8d3K04m+OPNuVv0Z6q Wk+2fDyX28pelGY545wODlwt7tpJ4E+IDIsBu0+AhMaZ512z0sq0bLG7HtxO+2mcyqe0 NXSEviocSDzeu3/zUqbMx6pD5g55XqOHKfAc/VhEEQE1nTY3uCtG1PovkWROpM0i1uU0 dAoMNGo+4zexYwziAWIvEP3k4x1Ij155B1ggkM0OTyIb7R0sgGAWUE3DZklLWYoTdmko Shfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=l25h1wX1; 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 gr8-20020a170906e2c800b00965c3c59301si12409698ejb.362.2023.05.16.01.45.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:45:42 -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=l25h1wX1; 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 3FC2D3829BD3 for <ouuuleilei@gmail.com>; Tue, 16 May 2023 08:42:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FC2D3829BD3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684226561; bh=mj76bjeZocC06OSliOYdlB6KwMk+VK2IBQ0OOy1ioqU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=l25h1wX1MRbkyqxqcTvlYSC0H86aIyBPKxOZ4UiHBagGVmMNjcgGBBXL1h6EIy0gg 0EsWhT8c1hacsmZR6pJpeYebu5to9vArWY3J2XWPk4xgMkeT6tzar4GF58M1tMMPPv elXaiCVB7sLM84uo/eq88DmWXc9wjVVU1zgqaLgg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 656B13855589 for <gcc-patches@gcc.gnu.org>; Tue, 16 May 2023 08:40:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 656B13855589 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-307d84f5ce4so4647880f8f.2 for <gcc-patches@gcc.gnu.org>; Tue, 16 May 2023 01:40:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684226413; x=1686818413; 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=mj76bjeZocC06OSliOYdlB6KwMk+VK2IBQ0OOy1ioqU=; b=XL9PtQlZZChGDKgjVhxKuuW+5TNJ3TDuvpdUPAzIXR1aHGFUWVQDfDngHmy7tZBopf SLUbgPm5oyFYBXIsTCLISb/NjkmKYK6iTTPxXoXnwkFaKmcHNu7fG0G+hhnWAwAk6LSP xZVW95toaGgm2B2n2kQYVQP8htKxu80fxKXXq0Tqpc4/Q7mHOO1JgHsUqh/tJiBH+wH0 Gjpmj2ckPix9NPtv6l+juVYXCmbasqGOTIKF5l0eTtd6JrlFGIUh331rgAd4HDIkDaAu aRb+0Hucsnk4k+UnJs+5jt3zn949ia2+/AmJoOawXtGzFmSWSHT5kFXo383R79P9LOqo PymA== X-Gm-Message-State: AC+VfDxPYd3Zzou37HAGltAVoAfn80irHJHhJWSjxSDd5DC9qlc9LUDo QUkmDevLYzoMIOeY8/KST2F6mkzDarX9vNSGCg5vEw== X-Received: by 2002:adf:dd87:0:b0:307:a52c:26b4 with SMTP id x7-20020adfdd87000000b00307a52c26b4mr16584531wrl.66.1684226413170; Tue, 16 May 2023 01:40:13 -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 l5-20020a5d5605000000b00309382eb047sm658662wrv.112.2023.05.16.01.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:40:12 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Richard Kenner <kenner@adacore.com> Subject: [COMMITTED] ada: Get name from entity if that's what's passed to Subprogram_Name Date: Tue, 16 May 2023 10:40:11 +0200 Message-Id: <20230516084011.1501341-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.5 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?1766039741498421205?= X-GMAIL-MSGID: =?utf-8?q?1766039741498421205?= |
Series |
[COMMITTED] ada: Get name from entity if that's what's passed to Subprogram_Name
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Marc Poulhiès
May 16, 2023, 8:40 a.m. UTC
From: Richard Kenner <kenner@adacore.com>
gcc/ada/
* sem_util.adb (Subprogram_Name): If what's passed is already an
entity, use that for the name.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_util.adb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index eb0d08a1851..8bce0229867 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -28095,6 +28095,9 @@ package body Sem_Util is Ent := Defining_Identifier (Ent); exit; + when N_Entity => + exit; + when others => null; end case;