From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id 2FD173858C50; Mon, 16 May 2022 08:45:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FD173858C50 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-500] [Ada] Remove useless code related to current value propagation X-Act-Checkin: gcc X-Git-Author: Piotr Trojanek X-Git-Refname: refs/heads/master X-Git-Oldrev: b32b51902cd97e3a8a2eede10a847688c5f15cde X-Git-Newrev: 20652c7f22b86d3cd646ecc2227a670f81302509 Message-Id: <20220516084504.2FD173858C50@sourceware.org> Date: Mon, 16 May 2022 08:45:04 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2022 08:45:04 -0000 https://gcc.gnu.org/g:20652c7f22b86d3cd646ecc2227a670f81302509 commit r13-500-g20652c7f22b86d3cd646ecc2227a670f81302509 Author: Piotr Trojanek Date: Wed Mar 16 14:22:42 2022 +0100 [Ada] Remove useless code related to current value propagation The current value propagation applies only to assignable objects and doesn't make sense for subprogram entities. This was a mistake introduced when extending the current value propagation years ago. Cleanup related to fixing interference between expansion of attribute Loop_Entry and current value propagation. gcc/ada/ * sem_attr.adb (Address_Checks): Remove call to Kill_Current_Values for subprogram entities, because this routine only does something for object entities. Diff: --- gcc/ada/sem_attr.adb | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 55da9ef73f2..b3965f3664e 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -504,7 +504,6 @@ package body Sem_Attr is begin if Is_Subprogram (Ent) then Set_Address_Taken (Ent); - Kill_Current_Values (Ent); -- An Address attribute is accepted when generated by the -- compiler for dispatching operation, and an error is