Message ID | 20220906071551.GA1280376@poulhies-Precision-5550 |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp505725wrt; Tue, 6 Sep 2022 00:25:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Qr70iyY7eGKfXzZjmy3I56j25h2nMr1PPwC/3n/MZ5cBNj3AxKTt7mLzBPQhOvw5Cg+jT X-Received: by 2002:a17:907:1dd2:b0:740:97ab:1f9b with SMTP id og18-20020a1709071dd200b0074097ab1f9bmr33799381ejc.319.1662449104851; Tue, 06 Sep 2022 00:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662449104; cv=none; d=google.com; s=arc-20160816; b=Wh3J6Xy71FL6WgJJPJ1vTYzHXeyFWsoNqoUrufe1s3PRHdMFYcmfsFilOFnf2ar3OG A9dWDUW2FhyUuI3M+MQvRbn22K/r0elFQia3hQcTzR0p80jVFZTBu+uP9//QKXEiUjr6 h9HRsk/BtTGqjLMawCiVyHEA+oBc9ZPlHHp3zxd7wQvaN0zUi5iNI0Scs41iI+zpLxO6 gieMEK0EFHn5Joszru5yTgo92TU7P4QVMw+h9VtE+LYavWYMD2X2AzMtdlIQlmbF9aXp wyi58+Et16ezWLcFdSo+zVnlEwiRKFh1+wr2Td1Y8FfwGpPa/1T/Q6Y6l55j8FxCOlDX qTpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=jLARXqcUwb0rLtygG+jz/8tfhfqGKGGShaM74pfAO1o=; b=AAM+EYq/Y3DlmcooBRbR8N+5RRZx+/u6hL9m2ArXK9bh7vP5c2HpaJQX7ntgJU34ho cegvvXqBdVIIv31ywatYkshhY5noN36CSq2Z3r6KB46Wx9J+mYkUwslezDqtOw/NcFLY 2IEQUJT6x17Um0275LPi5rTYoKtS1Ajxqs1BAbIt8X/ggHukpHmwwms8TEuiD4qMWtEd R7xDr50Wg7slPxUyaCZroxArb4OMND1NyX2jKxulv3uXneqGKVQfJoeBP6zrt88Hdg1v g3vvw651CwhN/aGMqtr8AYoDA0z8uuJw7yP/IouqwgUk1+O0sl4UjSRSCc/mXPg27dNp fKfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=hpJkbwty; 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 xc12-20020a170907074c00b00733016bd060si8609784ejb.139.2022.09.06.00.25.04 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:25:04 -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=hpJkbwty; 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 AA72A383E06E for <ouuuleilei@gmail.com>; Tue, 6 Sep 2022 07:20:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA72A383E06E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662448822; bh=jLARXqcUwb0rLtygG+jz/8tfhfqGKGGShaM74pfAO1o=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=hpJkbwtyrGMCTREy43ttOIA/OILKtQw1/p/bX8BbTX4quBx0I4Iq3XEzYWHYDg2Yj gMV7b+PNOnwtOsfRzrWhfXhTfQgLSqKyN6XHhAg4lE8d44sVAS90TH3UTh1mgUJsau e0cT4rHdOCHozkuVleKZAthCVmUNgfZ/owhieOFE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id AF59E3850859 for <gcc-patches@gcc.gnu.org>; Tue, 6 Sep 2022 07:15:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF59E3850859 Received: by mail-wr1-x42e.google.com with SMTP id k9so14056567wri.0 for <gcc-patches@gcc.gnu.org>; Tue, 06 Sep 2022 00:15:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=jLARXqcUwb0rLtygG+jz/8tfhfqGKGGShaM74pfAO1o=; b=PEX52RYoLQpJG3MrnpdWlRODWuA2G2aH11A/t46upRqSOqyiQJt2L1UuShvlEPmO6Y iO8eF4YVCvU+FDxDLVig6o+dNJLS7eUseVnnKu18qO7SR7ieadYKHE7caKPuqkQgl3cm /seAQs9mRzIWTgdswZw+X7+R+FvlfaEiTwayUWfOxHvloHmfLsG8hfO2g7b7DSufMVKh Y7f31aswPxn/Q4YnD4gbWPt3bn5Vzz2P3mtGD6y58xp+GDCqJPucPvgZS/sc+iWzQ0o1 BaDlHakxRd2GQO69AWF8NH9KkpesdkyTSCK/hAOrDBZIuPqdjn9hZbcPSEWlDu4T+jHI 37oQ== X-Gm-Message-State: ACgBeo0mDRrynZdzVWBMXXdAZ4XC2UFkJRVJDtN6iAM/W8xBXBDl1U2x ylK7Tjjquif//4Sp/7lHTZd1vZVnxEjAgg== X-Received: by 2002:a5d:6106:0:b0:226:e79f:5c2 with SMTP id v6-20020a5d6106000000b00226e79f05c2mr17184793wrt.284.1662448552677; Tue, 06 Sep 2022 00:15:52 -0700 (PDT) Received: from poulhies-Precision-5550 (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id v22-20020a7bcb56000000b003a5ad7f6de2sm13430077wmj.15.2022.09.06.00.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:15:52 -0700 (PDT) Date: Tue, 6 Sep 2022 09:15:51 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Cleanup unnecessary shadowing in expansion of attribute Old Message-ID: <20220906071551.GA1280376@poulhies-Precision-5550> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline X-Spam-Status: No, score=-12.9 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: Marc =?iso-8859-1?q?Poulhi=E8s?= <poulhies@adacore.com> Cc: Piotr Trojanek <trojanek@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?1743204232464825780?= X-GMAIL-MSGID: =?utf-8?q?1743204232464825780?= |
Series |
[Ada] Cleanup unnecessary shadowing in expansion of attribute Old
|
|
Commit Message
Marc Poulhiès
Sept. 6, 2022, 7:15 a.m. UTC
Code cleanup; semantics is unaffected. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Old]): Remove unnecessary local constant that was shadowing another constant with the same initial value.
diff --git a/gcc/ada/exp_attr.adb b/gcc/ada/exp_attr.adb --- a/gcc/ada/exp_attr.adb +++ b/gcc/ada/exp_attr.adb @@ -4884,7 +4884,6 @@ package body Exp_Attr is --------- when Attribute_Old => Old : declare - Typ : constant Entity_Id := Etype (N); CW_Temp : Entity_Id; CW_Typ : Entity_Id; Decl : Node_Id;