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-1487] [Ada] Remove repeated analysis for pragma Thread_Local_Storage
Date: Tue,  5 Jul 2022 08:30:29 +0000 (GMT)	[thread overview]
Message-ID: <20220705083029.2570B384D159@sourceware.org> (raw)

https://gcc.gnu.org/g:824211e18b96dc56d3a530b31aa16cded2c941eb

commit r13-1487-g824211e18b96dc56d3a530b31aa16cded2c941eb
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Mon Jun 6 15:27:38 2022 +0200

    [Ada] Remove repeated analysis for pragma Thread_Local_Storage
    
    When analysing pragma Thread_Local_Storage its argument is analysed by
    the call to Check_Arg_Is_Library_Level_Local_Name. There is no need to
    reanalyse it. Code cleanup; behaviour is not affected.
    
    gcc/ada/
    
            * sem_prag.adb (Analyze_Pragma): Remove unnecessary call to
            Analyze.

Diff:
---
 gcc/ada/sem_prag.adb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb
index 3431e3f6101..9ebac413990 100644
--- a/gcc/ada/sem_prag.adb
+++ b/gcc/ada/sem_prag.adb
@@ -24861,7 +24861,6 @@ package body Sem_Prag is
             Check_Arg_Is_Library_Level_Local_Name (Arg1);
 
             Id := Get_Pragma_Arg (Arg1);
-            Analyze (Id);
 
             if not Is_Entity_Name (Id)
               or else Ekind (Entity (Id)) /= E_Variable


                 reply	other threads:[~2022-07-05  8:30 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=20220705083029.2570B384D159@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).