public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Pierre-Marie de Rodat <pmderodat@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-500] [Ada] Remove useless code related to current value propagation
Date: Mon, 16 May 2022 08:45:04 +0000 (GMT)	[thread overview]
Message-ID: <20220516084504.2FD173858C50@sourceware.org> (raw)

https://gcc.gnu.org/g:20652c7f22b86d3cd646ecc2227a670f81302509

commit r13-500-g20652c7f22b86d3cd646ecc2227a670f81302509
Author: Piotr Trojanek <trojanek@adacore.com>
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


                 reply	other threads:[~2022-05-16  8:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220516084504.2FD173858C50@sourceware.org \
    --to=pmderodat@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).