]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove repeated analysis for pragma Thread_Local_Storage
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 6 Jun 2022 13:27:38 +0000 (15:27 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 5 Jul 2022 08:28:19 +0000 (08:28 +0000)
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.

gcc/ada/sem_prag.adb

index 3431e3f61019af4a71dfbdaebc834635662d0feb..9ebac413990c2f099018456da380b77c68d8ff68 100644 (file)
@@ -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