diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a18c7d2de85..3d661230c6b 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,15 @@ +2009-04-08 Thomas Quinot + + * sem_ch8.adb: Minor reformatting. + Minor code reorganization. + +2009-04-08 Robert Dewar + + * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb, + snames.ads, freeze.adb, par-prag.adb: Add implementation of + pragma Thread_Local_Storage, setting new flag + Has_Pragma_Thread_Local_Storage in corresponding entities. + 2009-04-08 Emmanuel Briot * prj.ads: Update comment on switches file diff --git a/gcc/ada/einfo.adb b/gcc/ada/einfo.adb index 255b7a0cdcc..9baaa3f832a 100644 --- a/gcc/ada/einfo.adb +++ b/gcc/ada/einfo.adb @@ -421,6 +421,7 @@ package body Einfo is -- Debug_Info_Off Flag166 -- Sec_Stack_Needed_For_Return Flag167 -- Materialize_Entity Flag168 + -- Has_Pragma_Thread_Local_Storage Flag169 -- Is_Known_Valid Flag170 -- Is_Hidden_Open_Scope Flag171 @@ -1346,6 +1347,11 @@ package body Einfo is return Flag179 (Id); end Has_Pragma_Pure_Function; + function Has_Pragma_Thread_Local_Storage (Id : E) return B is + begin + return Flag169 (Id); + end Has_Pragma_Thread_Local_Storage; + function Has_Pragma_Unmodified (Id : E) return B is begin return Flag233 (Id); @@ -3771,6 +3777,11 @@ package body Einfo is Set_Flag179 (Id, V); end Set_Has_Pragma_Pure_Function; + procedure Set_Has_Pragma_Thread_Local_Storage (Id : E; V : B := True) is + begin + Set_Flag169 (Id, V); + end Set_Has_Pragma_Thread_Local_Storage; + procedure Set_Has_Pragma_Unmodified (Id : E; V : B := True) is begin Set_Flag233 (Id, V); @@ -7516,6 +7527,7 @@ package body Einfo is W ("Has_Pragma_Preelab_Init", Flag221 (Id)); W ("Has_Pragma_Pure", Flag203 (Id)); W ("Has_Pragma_Pure_Function", Flag179 (Id)); + W ("Has_Pragma_Thread_Local_Storage", Flag169 (Id)); W ("Has_Pragma_Unmodified", Flag233 (Id)); W ("Has_Pragma_Unreferenced", Flag180 (Id)); W ("Has_Pragma_Unreferenced_Objects", Flag212 (Id)); diff --git a/gcc/ada/einfo.ads b/gcc/ada/einfo.ads index 409b001d39f..bc2190c9e46 100644 --- a/gcc/ada/einfo.ads +++ b/gcc/ada/einfo.ads @@ -1611,6 +1611,10 @@ package Einfo is -- Pure_Function was given for the entity. In some cases, we need to -- know that Is_Pure was explicitly set using this pragma. +-- Has_Pragma_Thread_Local_Storage (Flag169) +-- Present in all entities. If set, indicates that a valid pragma +-- Thread_Local_Storage was given for the entity. + -- Has_Pragma_Unmodified (Flag233) -- Present in all entities. Can only be set for variables (E_Variable, -- E_Out_Parameter, E_In_Out_Parameter). Set if a valid pragma Unmodified @@ -4562,6 +4566,7 @@ package Einfo is -- Has_Pragma_Pack (Flag121) (base type only) -- Has_Pragma_Pure (Flag203) -- Has_Pragma_Pure_Function (Flag179) + -- Has_Pragma_Thread_Local_Storage (Flag169) -- Has_Pragma_Unmodified (Flag233) -- Has_Pragma_Unreferenced (Flag180) -- Has_Private_Declaration (Flag155) @@ -5885,6 +5890,7 @@ package Einfo is function Has_Pragma_Preelab_Init (Id : E) return B; function Has_Pragma_Pure (Id : E) return B; function Has_Pragma_Pure_Function (Id : E) return B; + function Has_Pragma_Thread_Local_Storage (Id : E) return B; function Has_Pragma_Unmodified (Id : E) return B; function Has_Pragma_Unreferenced (Id : E) return B; function Has_Pragma_Unreferenced_Objects (Id : E) return B; @@ -6442,6 +6448,7 @@ package Einfo is procedure Set_Has_Pragma_Preelab_Init (Id : E; V : B := True); procedure Set_Has_Pragma_Pure (Id : E; V : B := True); procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True); + procedure Set_Has_Pragma_Thread_Local_Storage (Id : E; V : B := True); procedure Set_Has_Pragma_Unmodified (Id : E; V : B := True); procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True); procedure Set_Has_Pragma_Unreferenced_Objects (Id : E; V : B := True); @@ -7089,6 +7096,7 @@ package Einfo is pragma Inline (Has_Pragma_Preelab_Init); pragma Inline (Has_Pragma_Pure); pragma Inline (Has_Pragma_Pure_Function); + pragma Inline (Has_Pragma_Thread_Local_Storage); pragma Inline (Has_Pragma_Unmodified); pragma Inline (Has_Pragma_Unreferenced); pragma Inline (Has_Pragma_Unreferenced_Objects); @@ -7514,6 +7522,7 @@ package Einfo is pragma Inline (Set_Has_Pragma_Preelab_Init); pragma Inline (Set_Has_Pragma_Pure); pragma Inline (Set_Has_Pragma_Pure_Function); + pragma Inline (Set_Has_Pragma_Thread_Local_Storage); pragma Inline (Set_Has_Pragma_Unmodified); pragma Inline (Set_Has_Pragma_Unreferenced); pragma Inline (Set_Has_Pragma_Unreferenced_Objects); diff --git a/gcc/ada/freeze.adb b/gcc/ada/freeze.adb index 9a2372efe1a..a26879af35f 100644 --- a/gcc/ada/freeze.adb +++ b/gcc/ada/freeze.adb @@ -1436,6 +1436,9 @@ package body Freeze is Formal : Entity_Id; Atype : Entity_Id; + Has_Default_Initialization : Boolean := False; + -- This flag gets set to true for a variable with default initialization + procedure Check_Current_Instance (Comp_Decl : Node_Id); -- Check that an Access or Unchecked_Access attribute with a prefix -- which is the current instance type can only be applied when the type @@ -2714,10 +2717,39 @@ package body Freeze is (Needs_Simple_Initialization (Etype (E)) and then not Is_Internal (E))) then + Has_Default_Initialization := True; Check_Restriction (No_Default_Initialization, Declaration_Node (E)); end if; + -- Check that a Thread_Local_Storage variable does not have + -- default initialization, and any explicit initialization must + -- either be the null constant or a static constant. + + if Has_Pragma_Thread_Local_Storage (E) then + declare + Decl : constant Node_Id := Declaration_Node (E); + begin + if Has_Default_Initialization + or else + (Has_Init_Expression (Decl) + and then + (No (Expression (Decl)) + or else not + (Is_Static_Expression (Expression (Decl)) + or else + Nkind (Expression (Decl)) = N_Null))) + then + Error_Msg_NE + ("Thread_Local_Storage variable& is " + & "improperly initialized", Decl, E); + Error_Msg_NE + ("\only allowed initialization is explicit " + & "NULL or static expression", Decl, E); + end if; + end; + end if; + -- For imported objects, set Is_Public unless there is also an -- address clause, which means that there is no external symbol -- needed for the Import (Is_Public may still be set for other diff --git a/gcc/ada/par-prag.adb b/gcc/ada/par-prag.adb index fc2360cd149..5f6ed14b766 100644 --- a/gcc/ada/par-prag.adb +++ b/gcc/ada/par-prag.adb @@ -1187,6 +1187,7 @@ begin Pragma_Task_Info | Pragma_Task_Name | Pragma_Task_Storage | + Pragma_Thread_Local_Storage | Pragma_Time_Slice | Pragma_Title | Pragma_Unchecked_Union | diff --git a/gcc/ada/sem_ch8.adb b/gcc/ada/sem_ch8.adb index 4fb37aef2e9..c7cda589446 100644 --- a/gcc/ada/sem_ch8.adb +++ b/gcc/ada/sem_ch8.adb @@ -402,8 +402,8 @@ package body Sem_Ch8 is -- references the package in question. procedure Attribute_Renaming (N : Node_Id); - -- Analyze renaming of attribute as function. The renaming declaration N - -- is rewritten as a function body that returns the attribute reference + -- Analyze renaming of attribute as subprogram. The renaming declaration N + -- is rewritten as a subprogram body that returns the attribute reference -- applied to the formals of the function. procedure Check_Frozen_Renaming (N : Node_Id; Subp : Entity_Id); @@ -2546,9 +2546,9 @@ package body Sem_Ch8 is end if; else - -- If the use_type_clause appears in a compilation context, + -- If the use_type_clause appears in a compilation unit context, -- check whether it comes from a unit that may appear in a - -- limited with_clause, for a better error message. + -- limited_with_clause, for a better error message. if Nkind (Parent (N)) = N_Compilation_Unit and then Nkind (Id) /= N_Identifier @@ -2558,32 +2558,31 @@ package body Sem_Ch8 is Pref : Node_Id; function Mentioned (Nam : Node_Id) return Boolean; - -- check whether the prefix of expanded name for the - -- type appears in the prefix of some limited_with_clause. + -- Check whether the prefix of expanded name for the type + -- appears in the prefix of some limited_with_clause. + + --------------- + -- Mentioned -- + --------------- function Mentioned (Nam : Node_Id) return Boolean is begin - if Nkind (Name (Item)) = N_Selected_Component - and then Chars (Prefix (Name (Item))) = Chars (Nam) - then - return True; - else - return False; - end if; + return Nkind (Name (Item)) = N_Selected_Component + and then + Chars (Prefix (Name (Item))) = Chars (Nam); end Mentioned; begin Pref := Prefix (Id); Item := First (Context_Items (Parent (N))); - while Present (Item) - and then Item /= N - loop + + while Present (Item) and then Item /= N loop if Nkind (Item) = N_With_Clause and then Limited_Present (Item) and then Mentioned (Pref) then - Change_Error_Text (Get_Msg_Id, - "premature usage of incomplete type"); + Change_Error_Text + (Get_Msg_Id, "premature usage of incomplete type"); end if; Next (Item); @@ -2650,11 +2649,11 @@ package body Sem_Ch8 is begin Generate_Definition (New_S); - -- This procedure is called in the context of subprogram renaming, - -- and thus the attribute must be one that is a subprogram. All of - -- those have at least one formal parameter, with the singular - -- exception of AST_Entry (which is a real oddity, it is odd that - -- this can be renamed at all!) + -- This procedure is called in the context of subprogram renaming, and + -- thus the attribute must be one that is a subprogram. All of those + -- have at least one formal parameter, with the singular exception of + -- AST_Entry (which is a real oddity, it is odd that this can be renamed + -- at all!) if not Is_Non_Empty_List (Parameter_Specifications (Spec)) then if Aname /= Name_AST_Entry then @@ -2689,22 +2688,22 @@ package body Sem_Ch8 is Chars => Chars (Defining_Identifier (Param_Spec)))); -- The expressions in the attribute reference are not freeze - -- points. Neither is the attribute as a whole, see below. + -- points. Neither is the attribute as a whole, see below. Set_Must_Not_Freeze (Last (Expr_List)); Next (Param_Spec); end loop; end if; - -- Immediate error if too many formals. Other mismatches in numbers - -- of number of types of parameters are detected when we analyze the - -- body of the subprogram that we construct. + -- Immediate error if too many formals. Other mismatches in number or + -- types of parameters are detected when we analyze the body of the + -- subprogram that we construct. if Form_Num > 2 then Error_Msg_N ("too many formals for attribute", N); - -- Error if the attribute reference has expressions that look - -- like formal parameters. + -- Error if the attribute reference has expressions that look like + -- formal parameters. elsif Present (Expressions (Nam)) then Error_Msg_N ("illegal expressions in attribute reference", Nam); @@ -2731,10 +2730,10 @@ package body Sem_Ch8 is end if; end if; - -- AST_Entry is an odd case. It doesn't really make much sense to - -- allow it to be renamed, but that's the DEC rule, so we have to - -- do it right. The point is that the AST_Entry call should be made - -- now, and what the function will return is the returned value. + -- AST_Entry is an odd case. It doesn't really make much sense to allow + -- it to be renamed, but that's the DEC rule, so we have to do it right. + -- The point is that the AST_Entry call should be made now, and what the + -- function will return is the returned value. -- Note that there is no Expr_List in this case anyway diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index bb62b286a81..cee2069a030 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -11239,6 +11239,42 @@ package body Sem_Prag is end if; end Task_Storage; + -------------------------- + -- Thread_Local_Storage -- + -------------------------- + + -- pragma Thread_Local_Storage ([Entity =>] LOCAL_NAME); + + when Pragma_Thread_Local_Storage => Thread_Local_Storage : declare + Id : Node_Id; + E : Entity_Id; + + begin + GNAT_Pragma; + Check_Arg_Count (1); + Check_Optional_Identifier (Arg1, Name_Entity); + Check_Arg_Is_Local_Name (Arg1); + + Id := Expression (Arg1); + Analyze (Id); + + if not Is_Entity_Name (Id) + or else Ekind (Entity (Id)) /= E_Variable + then + Error_Pragma_Arg ("local variable name required", Arg1); + end if; + + E := Entity (Id); + + if Rep_Item_Too_Early (E, N) + or else Rep_Item_Too_Late (E, N) + then + raise Pragma_Exit; + end if; + + Set_Has_Pragma_Thread_Local_Storage (E); + end Thread_Local_Storage; + ---------------- -- Time_Slice -- ---------------- @@ -12367,6 +12403,7 @@ package body Sem_Prag is Pragma_Task_Info => -1, Pragma_Task_Name => -1, Pragma_Task_Storage => 0, + Pragma_Thread_Local_Storage => 0, Pragma_Time_Slice => -1, Pragma_Title => -1, Pragma_Unchecked_Union => 0, diff --git a/gcc/ada/snames.adb b/gcc/ada/snames.adb index 28656c0ad1d..0617391ba06 100644 --- a/gcc/ada/snames.adb +++ b/gcc/ada/snames.adb @@ -327,6 +327,7 @@ package body Snames is "task_info#" & "task_name#" & "task_storage#" & + "thread_local_storage#" & "time_slice#" & "title#" & "unchecked_union#" & diff --git a/gcc/ada/snames.ads b/gcc/ada/snames.ads index 930d2886019..b5fbeb1fc5b 100644 --- a/gcc/ada/snames.ads +++ b/gcc/ada/snames.ads @@ -523,19 +523,20 @@ package Snames is Name_Task_Info : constant Name_Id := N + 266; -- GNAT Name_Task_Name : constant Name_Id := N + 267; -- GNAT Name_Task_Storage : constant Name_Id := N + 268; -- VMS - Name_Time_Slice : constant Name_Id := N + 269; -- GNAT - Name_Title : constant Name_Id := N + 270; -- GNAT - Name_Unchecked_Union : constant Name_Id := N + 271; -- Ada 05 - Name_Unimplemented_Unit : constant Name_Id := N + 272; -- GNAT - Name_Universal_Aliasing : constant Name_Id := N + 273; -- GNAT - Name_Unmodified : constant Name_Id := N + 274; -- GNAT - Name_Unreferenced : constant Name_Id := N + 275; -- GNAT - Name_Unreferenced_Objects : constant Name_Id := N + 276; -- GNAT - Name_Unreserve_All_Interrupts : constant Name_Id := N + 277; -- GNAT - Name_Volatile : constant Name_Id := N + 278; - Name_Volatile_Components : constant Name_Id := N + 279; - Name_Weak_External : constant Name_Id := N + 280; -- GNAT - Last_Pragma_Name : constant Name_Id := N + 280; + Name_Thread_Local_Storage : constant Name_Id := N + 269; -- GNAT + Name_Time_Slice : constant Name_Id := N + 270; -- GNAT + Name_Title : constant Name_Id := N + 271; -- GNAT + Name_Unchecked_Union : constant Name_Id := N + 272; -- Ada 05 + Name_Unimplemented_Unit : constant Name_Id := N + 273; -- GNAT + Name_Universal_Aliasing : constant Name_Id := N + 274; -- GNAT + Name_Unmodified : constant Name_Id := N + 275; -- GNAT + Name_Unreferenced : constant Name_Id := N + 276; -- GNAT + Name_Unreferenced_Objects : constant Name_Id := N + 277; -- GNAT + Name_Unreserve_All_Interrupts : constant Name_Id := N + 278; -- GNAT + Name_Volatile : constant Name_Id := N + 279; + Name_Volatile_Components : constant Name_Id := N + 280; + Name_Weak_External : constant Name_Id := N + 281; -- GNAT + Last_Pragma_Name : constant Name_Id := N + 281; -- Language convention names for pragma Convention/Export/Import/Interface -- Note that Name_C is not included in this list, since it was already @@ -546,120 +547,120 @@ package Snames is -- Entry and Protected, this is because these conventions cannot be -- specified by a pragma. - First_Convention_Name : constant Name_Id := N + 281; - Name_Ada : constant Name_Id := N + 281; - Name_Assembler : constant Name_Id := N + 282; - Name_CIL : constant Name_Id := N + 283; - Name_COBOL : constant Name_Id := N + 284; - Name_CPP : constant Name_Id := N + 285; - Name_Fortran : constant Name_Id := N + 286; - Name_Intrinsic : constant Name_Id := N + 287; - Name_Java : constant Name_Id := N + 288; - Name_Stdcall : constant Name_Id := N + 289; - Name_Stubbed : constant Name_Id := N + 290; - Last_Convention_Name : constant Name_Id := N + 290; + First_Convention_Name : constant Name_Id := N + 282; + Name_Ada : constant Name_Id := N + 282; + Name_Assembler : constant Name_Id := N + 283; + Name_CIL : constant Name_Id := N + 284; + Name_COBOL : constant Name_Id := N + 285; + Name_CPP : constant Name_Id := N + 286; + Name_Fortran : constant Name_Id := N + 287; + Name_Intrinsic : constant Name_Id := N + 288; + Name_Java : constant Name_Id := N + 289; + Name_Stdcall : constant Name_Id := N + 290; + Name_Stubbed : constant Name_Id := N + 291; + Last_Convention_Name : constant Name_Id := N + 291; -- The following names are preset as synonyms for Assembler - Name_Asm : constant Name_Id := N + 291; - Name_Assembly : constant Name_Id := N + 292; + Name_Asm : constant Name_Id := N + 292; + Name_Assembly : constant Name_Id := N + 293; -- The following names are preset as synonyms for C - Name_Default : constant Name_Id := N + 293; + Name_Default : constant Name_Id := N + 294; -- Name_External (previously defined as pragma) -- The following names are preset as synonyms for CPP - Name_C_Plus_Plus : constant Name_Id := N + 294; + Name_C_Plus_Plus : constant Name_Id := N + 295; -- The following names are present as synonyms for Stdcall - Name_DLL : constant Name_Id := N + 295; - Name_Win32 : constant Name_Id := N + 296; + Name_DLL : constant Name_Id := N + 296; + Name_Win32 : constant Name_Id := N + 297; -- Other special names used in processing pragmas - Name_As_Is : constant Name_Id := N + 297; - Name_Assertion : constant Name_Id := N + 298; - Name_Attribute_Name : constant Name_Id := N + 299; - Name_Body_File_Name : constant Name_Id := N + 300; - Name_Boolean_Entry_Barriers : constant Name_Id := N + 301; - Name_Casing : constant Name_Id := N + 302; - Name_Code : constant Name_Id := N + 303; - Name_Component : constant Name_Id := N + 304; - Name_Component_Size_4 : constant Name_Id := N + 305; - Name_Copy : constant Name_Id := N + 306; - Name_D_Float : constant Name_Id := N + 307; - Name_Descriptor : constant Name_Id := N + 308; - Name_Dot_Replacement : constant Name_Id := N + 309; - Name_Dynamic : constant Name_Id := N + 310; - Name_Entity : constant Name_Id := N + 311; - Name_Entry_Count : constant Name_Id := N + 312; - Name_External_Name : constant Name_Id := N + 313; - Name_First_Optional_Parameter : constant Name_Id := N + 314; - Name_Form : constant Name_Id := N + 315; - Name_G_Float : constant Name_Id := N + 316; - Name_Gcc : constant Name_Id := N + 317; - Name_Gnat : constant Name_Id := N + 318; - Name_GPL : constant Name_Id := N + 319; - Name_IEEE_Float : constant Name_Id := N + 320; - Name_Ignore : constant Name_Id := N + 321; - Name_Info : constant Name_Id := N + 322; - Name_Internal : constant Name_Id := N + 323; - Name_Link_Name : constant Name_Id := N + 324; - Name_Lowercase : constant Name_Id := N + 325; - Name_Max_Entry_Queue_Depth : constant Name_Id := N + 326; - Name_Max_Entry_Queue_Length : constant Name_Id := N + 327; - Name_Max_Size : constant Name_Id := N + 328; - Name_Mechanism : constant Name_Id := N + 329; - Name_Message : constant Name_Id := N + 330; - Name_Mixedcase : constant Name_Id := N + 331; - Name_Modified_GPL : constant Name_Id := N + 332; - Name_Name : constant Name_Id := N + 333; - Name_NCA : constant Name_Id := N + 334; - Name_No : constant Name_Id := N + 335; - Name_No_Dependence : constant Name_Id := N + 336; - Name_No_Dynamic_Attachment : constant Name_Id := N + 337; - Name_No_Dynamic_Interrupts : constant Name_Id := N + 338; - Name_No_Requeue : constant Name_Id := N + 339; - Name_No_Requeue_Statements : constant Name_Id := N + 340; - Name_No_Task_Attributes : constant Name_Id := N + 341; - Name_No_Task_Attributes_Package : constant Name_Id := N + 342; - Name_On : constant Name_Id := N + 343; - Name_Parameter_Types : constant Name_Id := N + 344; - Name_Reference : constant Name_Id := N + 345; - Name_Restricted : constant Name_Id := N + 346; - Name_Result_Mechanism : constant Name_Id := N + 347; - Name_Result_Type : constant Name_Id := N + 348; - Name_Runtime : constant Name_Id := N + 349; - Name_SB : constant Name_Id := N + 350; - Name_Secondary_Stack_Size : constant Name_Id := N + 351; - Name_Section : constant Name_Id := N + 352; - Name_Semaphore : constant Name_Id := N + 353; - Name_Short_Descriptor : constant Name_Id := N + 354; - Name_Simple_Barriers : constant Name_Id := N + 355; - Name_Spec_File_Name : constant Name_Id := N + 356; - Name_State : constant Name_Id := N + 357; - Name_Static : constant Name_Id := N + 358; - Name_Stack_Size : constant Name_Id := N + 359; - Name_Subunit_File_Name : constant Name_Id := N + 360; - Name_Task_Stack_Size_Default : constant Name_Id := N + 361; - Name_Task_Type : constant Name_Id := N + 362; - Name_Time_Slicing_Enabled : constant Name_Id := N + 363; - Name_Top_Guard : constant Name_Id := N + 364; - Name_UBA : constant Name_Id := N + 365; - Name_UBS : constant Name_Id := N + 366; - Name_UBSB : constant Name_Id := N + 367; - Name_Unit_Name : constant Name_Id := N + 368; - Name_Unknown : constant Name_Id := N + 369; - Name_Unrestricted : constant Name_Id := N + 370; - Name_Uppercase : constant Name_Id := N + 371; - Name_User : constant Name_Id := N + 372; - Name_VAX_Float : constant Name_Id := N + 373; - Name_VMS : constant Name_Id := N + 374; - Name_Vtable_Ptr : constant Name_Id := N + 375; - Name_Working_Storage : constant Name_Id := N + 376; + Name_As_Is : constant Name_Id := N + 298; + Name_Assertion : constant Name_Id := N + 299; + Name_Attribute_Name : constant Name_Id := N + 300; + Name_Body_File_Name : constant Name_Id := N + 301; + Name_Boolean_Entry_Barriers : constant Name_Id := N + 302; + Name_Casing : constant Name_Id := N + 303; + Name_Code : constant Name_Id := N + 304; + Name_Component : constant Name_Id := N + 305; + Name_Component_Size_4 : constant Name_Id := N + 306; + Name_Copy : constant Name_Id := N + 307; + Name_D_Float : constant Name_Id := N + 308; + Name_Descriptor : constant Name_Id := N + 309; + Name_Dot_Replacement : constant Name_Id := N + 310; + Name_Dynamic : constant Name_Id := N + 311; + Name_Entity : constant Name_Id := N + 312; + Name_Entry_Count : constant Name_Id := N + 313; + Name_External_Name : constant Name_Id := N + 314; + Name_First_Optional_Parameter : constant Name_Id := N + 315; + Name_Form : constant Name_Id := N + 316; + Name_G_Float : constant Name_Id := N + 317; + Name_Gcc : constant Name_Id := N + 318; + Name_Gnat : constant Name_Id := N + 319; + Name_GPL : constant Name_Id := N + 320; + Name_IEEE_Float : constant Name_Id := N + 321; + Name_Ignore : constant Name_Id := N + 322; + Name_Info : constant Name_Id := N + 323; + Name_Internal : constant Name_Id := N + 324; + Name_Link_Name : constant Name_Id := N + 325; + Name_Lowercase : constant Name_Id := N + 326; + Name_Max_Entry_Queue_Depth : constant Name_Id := N + 327; + Name_Max_Entry_Queue_Length : constant Name_Id := N + 328; + Name_Max_Size : constant Name_Id := N + 329; + Name_Mechanism : constant Name_Id := N + 330; + Name_Message : constant Name_Id := N + 331; + Name_Mixedcase : constant Name_Id := N + 332; + Name_Modified_GPL : constant Name_Id := N + 333; + Name_Name : constant Name_Id := N + 334; + Name_NCA : constant Name_Id := N + 335; + Name_No : constant Name_Id := N + 336; + Name_No_Dependence : constant Name_Id := N + 337; + Name_No_Dynamic_Attachment : constant Name_Id := N + 338; + Name_No_Dynamic_Interrupts : constant Name_Id := N + 339; + Name_No_Requeue : constant Name_Id := N + 340; + Name_No_Requeue_Statements : constant Name_Id := N + 341; + Name_No_Task_Attributes : constant Name_Id := N + 342; + Name_No_Task_Attributes_Package : constant Name_Id := N + 343; + Name_On : constant Name_Id := N + 344; + Name_Parameter_Types : constant Name_Id := N + 345; + Name_Reference : constant Name_Id := N + 346; + Name_Restricted : constant Name_Id := N + 347; + Name_Result_Mechanism : constant Name_Id := N + 348; + Name_Result_Type : constant Name_Id := N + 349; + Name_Runtime : constant Name_Id := N + 350; + Name_SB : constant Name_Id := N + 351; + Name_Secondary_Stack_Size : constant Name_Id := N + 352; + Name_Section : constant Name_Id := N + 353; + Name_Semaphore : constant Name_Id := N + 354; + Name_Short_Descriptor : constant Name_Id := N + 355; + Name_Simple_Barriers : constant Name_Id := N + 356; + Name_Spec_File_Name : constant Name_Id := N + 357; + Name_State : constant Name_Id := N + 358; + Name_Static : constant Name_Id := N + 359; + Name_Stack_Size : constant Name_Id := N + 360; + Name_Subunit_File_Name : constant Name_Id := N + 361; + Name_Task_Stack_Size_Default : constant Name_Id := N + 362; + Name_Task_Type : constant Name_Id := N + 363; + Name_Time_Slicing_Enabled : constant Name_Id := N + 364; + Name_Top_Guard : constant Name_Id := N + 365; + Name_UBA : constant Name_Id := N + 366; + Name_UBS : constant Name_Id := N + 367; + Name_UBSB : constant Name_Id := N + 368; + Name_Unit_Name : constant Name_Id := N + 369; + Name_Unknown : constant Name_Id := N + 370; + Name_Unrestricted : constant Name_Id := N + 371; + Name_Uppercase : constant Name_Id := N + 372; + Name_User : constant Name_Id := N + 373; + Name_VAX_Float : constant Name_Id := N + 374; + Name_VMS : constant Name_Id := N + 375; + Name_Vtable_Ptr : constant Name_Id := N + 376; + Name_Working_Storage : constant Name_Id := N + 377; -- Names of recognized attributes. The entries with the comment "Ada 83" -- are attributes that are defined in Ada 83, but not in Ada 95. These @@ -673,178 +674,178 @@ package Snames is -- The entries marked VMS are recognized only in OpenVMS implementations -- of GNAT, and are treated as illegal in all other contexts. - First_Attribute_Name : constant Name_Id := N + 377; - Name_Abort_Signal : constant Name_Id := N + 377; -- GNAT - Name_Access : constant Name_Id := N + 378; - Name_Address : constant Name_Id := N + 379; - Name_Address_Size : constant Name_Id := N + 380; -- GNAT - Name_Aft : constant Name_Id := N + 381; - Name_Alignment : constant Name_Id := N + 382; - Name_Asm_Input : constant Name_Id := N + 383; -- GNAT - Name_Asm_Output : constant Name_Id := N + 384; -- GNAT - Name_AST_Entry : constant Name_Id := N + 385; -- VMS - Name_Bit : constant Name_Id := N + 386; -- GNAT - Name_Bit_Order : constant Name_Id := N + 387; - Name_Bit_Position : constant Name_Id := N + 388; -- GNAT - Name_Body_Version : constant Name_Id := N + 389; - Name_Callable : constant Name_Id := N + 390; - Name_Caller : constant Name_Id := N + 391; - Name_Code_Address : constant Name_Id := N + 392; -- GNAT - Name_Component_Size : constant Name_Id := N + 393; - Name_Compose : constant Name_Id := N + 394; - Name_Constrained : constant Name_Id := N + 395; - Name_Count : constant Name_Id := N + 396; - Name_Default_Bit_Order : constant Name_Id := N + 397; -- GNAT - Name_Definite : constant Name_Id := N + 398; - Name_Delta : constant Name_Id := N + 399; - Name_Denorm : constant Name_Id := N + 400; - Name_Digits : constant Name_Id := N + 401; - Name_Elaborated : constant Name_Id := N + 402; -- GNAT - Name_Emax : constant Name_Id := N + 403; -- Ada 83 - Name_Enabled : constant Name_Id := N + 404; -- GNAT - Name_Enum_Rep : constant Name_Id := N + 405; -- GNAT - Name_Enum_Val : constant Name_Id := N + 406; -- GNAT - Name_Epsilon : constant Name_Id := N + 407; -- Ada 83 - Name_Exponent : constant Name_Id := N + 408; - Name_External_Tag : constant Name_Id := N + 409; - Name_Fast_Math : constant Name_Id := N + 410; -- GNAT - Name_First : constant Name_Id := N + 411; - Name_First_Bit : constant Name_Id := N + 412; - Name_Fixed_Value : constant Name_Id := N + 413; -- GNAT - Name_Fore : constant Name_Id := N + 414; - Name_Has_Access_Values : constant Name_Id := N + 415; -- GNAT - Name_Has_Discriminants : constant Name_Id := N + 416; -- GNAT - Name_Has_Tagged_Values : constant Name_Id := N + 417; -- GNAT - Name_Identity : constant Name_Id := N + 418; - Name_Img : constant Name_Id := N + 419; -- GNAT - Name_Integer_Value : constant Name_Id := N + 420; -- GNAT - Name_Invalid_Value : constant Name_Id := N + 421; -- GNAT - Name_Large : constant Name_Id := N + 422; -- Ada 83 - Name_Last : constant Name_Id := N + 423; - Name_Last_Bit : constant Name_Id := N + 424; - Name_Leading_Part : constant Name_Id := N + 425; - Name_Length : constant Name_Id := N + 426; - Name_Machine_Emax : constant Name_Id := N + 427; - Name_Machine_Emin : constant Name_Id := N + 428; - Name_Machine_Mantissa : constant Name_Id := N + 429; - Name_Machine_Overflows : constant Name_Id := N + 430; - Name_Machine_Radix : constant Name_Id := N + 431; - Name_Machine_Rounding : constant Name_Id := N + 432; -- Ada 05 - Name_Machine_Rounds : constant Name_Id := N + 433; - Name_Machine_Size : constant Name_Id := N + 434; -- GNAT - Name_Mantissa : constant Name_Id := N + 435; -- Ada 83 - Name_Max_Size_In_Storage_Elements : constant Name_Id := N + 436; - Name_Maximum_Alignment : constant Name_Id := N + 437; -- GNAT - Name_Mechanism_Code : constant Name_Id := N + 438; -- GNAT - Name_Mod : constant Name_Id := N + 439; -- Ada 05 - Name_Model_Emin : constant Name_Id := N + 440; - Name_Model_Epsilon : constant Name_Id := N + 441; - Name_Model_Mantissa : constant Name_Id := N + 442; - Name_Model_Small : constant Name_Id := N + 443; - Name_Modulus : constant Name_Id := N + 444; - Name_Null_Parameter : constant Name_Id := N + 445; -- GNAT - Name_Object_Size : constant Name_Id := N + 446; -- GNAT - Name_Old : constant Name_Id := N + 447; -- GNAT - Name_Partition_ID : constant Name_Id := N + 448; - Name_Passed_By_Reference : constant Name_Id := N + 449; -- GNAT - Name_Pool_Address : constant Name_Id := N + 450; - Name_Pos : constant Name_Id := N + 451; - Name_Position : constant Name_Id := N + 452; - Name_Priority : constant Name_Id := N + 453; -- Ada 05 - Name_Range : constant Name_Id := N + 454; - Name_Range_Length : constant Name_Id := N + 455; -- GNAT - Name_Result : constant Name_Id := N + 456; -- GNAT - Name_Round : constant Name_Id := N + 457; - Name_Safe_Emax : constant Name_Id := N + 458; -- Ada 83 - Name_Safe_First : constant Name_Id := N + 459; - Name_Safe_Large : constant Name_Id := N + 460; -- Ada 83 - Name_Safe_Last : constant Name_Id := N + 461; - Name_Safe_Small : constant Name_Id := N + 462; -- Ada 83 - Name_Scale : constant Name_Id := N + 463; - Name_Scaling : constant Name_Id := N + 464; - Name_Signed_Zeros : constant Name_Id := N + 465; - Name_Size : constant Name_Id := N + 466; - Name_Small : constant Name_Id := N + 467; - Name_Storage_Size : constant Name_Id := N + 468; - Name_Storage_Unit : constant Name_Id := N + 469; -- GNAT - Name_Stream_Size : constant Name_Id := N + 470; -- Ada 05 - Name_Tag : constant Name_Id := N + 471; - Name_Target_Name : constant Name_Id := N + 472; -- GNAT - Name_Terminated : constant Name_Id := N + 473; - Name_To_Address : constant Name_Id := N + 474; -- GNAT - Name_Type_Class : constant Name_Id := N + 475; -- GNAT - Name_UET_Address : constant Name_Id := N + 476; -- GNAT - Name_Unbiased_Rounding : constant Name_Id := N + 477; - Name_Unchecked_Access : constant Name_Id := N + 478; - Name_Unconstrained_Array : constant Name_Id := N + 479; - Name_Universal_Literal_String : constant Name_Id := N + 480; -- GNAT - Name_Unrestricted_Access : constant Name_Id := N + 481; -- GNAT - Name_VADS_Size : constant Name_Id := N + 482; -- GNAT - Name_Val : constant Name_Id := N + 483; - Name_Valid : constant Name_Id := N + 484; - Name_Value_Size : constant Name_Id := N + 485; -- GNAT - Name_Version : constant Name_Id := N + 486; - Name_Wchar_T_Size : constant Name_Id := N + 487; -- GNAT - Name_Wide_Wide_Width : constant Name_Id := N + 488; -- Ada 05 - Name_Wide_Width : constant Name_Id := N + 489; - Name_Width : constant Name_Id := N + 490; - Name_Word_Size : constant Name_Id := N + 491; -- GNAT + First_Attribute_Name : constant Name_Id := N + 378; + Name_Abort_Signal : constant Name_Id := N + 378; -- GNAT + Name_Access : constant Name_Id := N + 379; + Name_Address : constant Name_Id := N + 380; + Name_Address_Size : constant Name_Id := N + 381; -- GNAT + Name_Aft : constant Name_Id := N + 382; + Name_Alignment : constant Name_Id := N + 383; + Name_Asm_Input : constant Name_Id := N + 384; -- GNAT + Name_Asm_Output : constant Name_Id := N + 385; -- GNAT + Name_AST_Entry : constant Name_Id := N + 386; -- VMS + Name_Bit : constant Name_Id := N + 387; -- GNAT + Name_Bit_Order : constant Name_Id := N + 388; + Name_Bit_Position : constant Name_Id := N + 389; -- GNAT + Name_Body_Version : constant Name_Id := N + 390; + Name_Callable : constant Name_Id := N + 391; + Name_Caller : constant Name_Id := N + 392; + Name_Code_Address : constant Name_Id := N + 393; -- GNAT + Name_Component_Size : constant Name_Id := N + 394; + Name_Compose : constant Name_Id := N + 395; + Name_Constrained : constant Name_Id := N + 396; + Name_Count : constant Name_Id := N + 397; + Name_Default_Bit_Order : constant Name_Id := N + 398; -- GNAT + Name_Definite : constant Name_Id := N + 399; + Name_Delta : constant Name_Id := N + 400; + Name_Denorm : constant Name_Id := N + 401; + Name_Digits : constant Name_Id := N + 402; + Name_Elaborated : constant Name_Id := N + 403; -- GNAT + Name_Emax : constant Name_Id := N + 404; -- Ada 83 + Name_Enabled : constant Name_Id := N + 405; -- GNAT + Name_Enum_Rep : constant Name_Id := N + 406; -- GNAT + Name_Enum_Val : constant Name_Id := N + 407; -- GNAT + Name_Epsilon : constant Name_Id := N + 408; -- Ada 83 + Name_Exponent : constant Name_Id := N + 409; + Name_External_Tag : constant Name_Id := N + 410; + Name_Fast_Math : constant Name_Id := N + 411; -- GNAT + Name_First : constant Name_Id := N + 412; + Name_First_Bit : constant Name_Id := N + 413; + Name_Fixed_Value : constant Name_Id := N + 414; -- GNAT + Name_Fore : constant Name_Id := N + 415; + Name_Has_Access_Values : constant Name_Id := N + 416; -- GNAT + Name_Has_Discriminants : constant Name_Id := N + 417; -- GNAT + Name_Has_Tagged_Values : constant Name_Id := N + 418; -- GNAT + Name_Identity : constant Name_Id := N + 419; + Name_Img : constant Name_Id := N + 420; -- GNAT + Name_Integer_Value : constant Name_Id := N + 421; -- GNAT + Name_Invalid_Value : constant Name_Id := N + 422; -- GNAT + Name_Large : constant Name_Id := N + 423; -- Ada 83 + Name_Last : constant Name_Id := N + 424; + Name_Last_Bit : constant Name_Id := N + 425; + Name_Leading_Part : constant Name_Id := N + 426; + Name_Length : constant Name_Id := N + 427; + Name_Machine_Emax : constant Name_Id := N + 428; + Name_Machine_Emin : constant Name_Id := N + 429; + Name_Machine_Mantissa : constant Name_Id := N + 430; + Name_Machine_Overflows : constant Name_Id := N + 431; + Name_Machine_Radix : constant Name_Id := N + 432; + Name_Machine_Rounding : constant Name_Id := N + 433; -- Ada 05 + Name_Machine_Rounds : constant Name_Id := N + 434; + Name_Machine_Size : constant Name_Id := N + 435; -- GNAT + Name_Mantissa : constant Name_Id := N + 436; -- Ada 83 + Name_Max_Size_In_Storage_Elements : constant Name_Id := N + 437; + Name_Maximum_Alignment : constant Name_Id := N + 438; -- GNAT + Name_Mechanism_Code : constant Name_Id := N + 439; -- GNAT + Name_Mod : constant Name_Id := N + 440; -- Ada 05 + Name_Model_Emin : constant Name_Id := N + 441; + Name_Model_Epsilon : constant Name_Id := N + 442; + Name_Model_Mantissa : constant Name_Id := N + 443; + Name_Model_Small : constant Name_Id := N + 444; + Name_Modulus : constant Name_Id := N + 445; + Name_Null_Parameter : constant Name_Id := N + 446; -- GNAT + Name_Object_Size : constant Name_Id := N + 447; -- GNAT + Name_Old : constant Name_Id := N + 448; -- GNAT + Name_Partition_ID : constant Name_Id := N + 449; + Name_Passed_By_Reference : constant Name_Id := N + 450; -- GNAT + Name_Pool_Address : constant Name_Id := N + 451; + Name_Pos : constant Name_Id := N + 452; + Name_Position : constant Name_Id := N + 453; + Name_Priority : constant Name_Id := N + 454; -- Ada 05 + Name_Range : constant Name_Id := N + 455; + Name_Range_Length : constant Name_Id := N + 456; -- GNAT + Name_Result : constant Name_Id := N + 457; -- GNAT + Name_Round : constant Name_Id := N + 458; + Name_Safe_Emax : constant Name_Id := N + 459; -- Ada 83 + Name_Safe_First : constant Name_Id := N + 460; + Name_Safe_Large : constant Name_Id := N + 461; -- Ada 83 + Name_Safe_Last : constant Name_Id := N + 462; + Name_Safe_Small : constant Name_Id := N + 463; -- Ada 83 + Name_Scale : constant Name_Id := N + 464; + Name_Scaling : constant Name_Id := N + 465; + Name_Signed_Zeros : constant Name_Id := N + 466; + Name_Size : constant Name_Id := N + 467; + Name_Small : constant Name_Id := N + 468; + Name_Storage_Size : constant Name_Id := N + 469; + Name_Storage_Unit : constant Name_Id := N + 470; -- GNAT + Name_Stream_Size : constant Name_Id := N + 471; -- Ada 05 + Name_Tag : constant Name_Id := N + 472; + Name_Target_Name : constant Name_Id := N + 473; -- GNAT + Name_Terminated : constant Name_Id := N + 474; + Name_To_Address : constant Name_Id := N + 475; -- GNAT + Name_Type_Class : constant Name_Id := N + 476; -- GNAT + Name_UET_Address : constant Name_Id := N + 477; -- GNAT + Name_Unbiased_Rounding : constant Name_Id := N + 478; + Name_Unchecked_Access : constant Name_Id := N + 479; + Name_Unconstrained_Array : constant Name_Id := N + 480; + Name_Universal_Literal_String : constant Name_Id := N + 481; -- GNAT + Name_Unrestricted_Access : constant Name_Id := N + 482; -- GNAT + Name_VADS_Size : constant Name_Id := N + 483; -- GNAT + Name_Val : constant Name_Id := N + 484; + Name_Valid : constant Name_Id := N + 485; + Name_Value_Size : constant Name_Id := N + 486; -- GNAT + Name_Version : constant Name_Id := N + 487; + Name_Wchar_T_Size : constant Name_Id := N + 488; -- GNAT + Name_Wide_Wide_Width : constant Name_Id := N + 489; -- Ada 05 + Name_Wide_Width : constant Name_Id := N + 490; + Name_Width : constant Name_Id := N + 491; + Name_Word_Size : constant Name_Id := N + 492; -- GNAT -- Attributes that designate attributes returning renamable functions, -- i.e. functions that return other than a universal value and that -- have non-universal arguments. - First_Renamable_Function_Attribute : constant Name_Id := N + 492; - Name_Adjacent : constant Name_Id := N + 492; - Name_Ceiling : constant Name_Id := N + 493; - Name_Copy_Sign : constant Name_Id := N + 494; - Name_Floor : constant Name_Id := N + 495; - Name_Fraction : constant Name_Id := N + 496; - Name_From_Any : constant Name_Id := N + 497; -- GNAT - Name_Image : constant Name_Id := N + 498; - Name_Input : constant Name_Id := N + 499; - Name_Machine : constant Name_Id := N + 500; - Name_Max : constant Name_Id := N + 501; - Name_Min : constant Name_Id := N + 502; - Name_Model : constant Name_Id := N + 503; - Name_Pred : constant Name_Id := N + 504; - Name_Remainder : constant Name_Id := N + 505; - Name_Rounding : constant Name_Id := N + 506; - Name_Succ : constant Name_Id := N + 507; - Name_To_Any : constant Name_Id := N + 508; -- GNAT - Name_Truncation : constant Name_Id := N + 509; - Name_TypeCode : constant Name_Id := N + 510; -- GNAT - Name_Value : constant Name_Id := N + 511; - Name_Wide_Image : constant Name_Id := N + 512; - Name_Wide_Wide_Image : constant Name_Id := N + 513; - Name_Wide_Value : constant Name_Id := N + 514; - Name_Wide_Wide_Value : constant Name_Id := N + 515; - Last_Renamable_Function_Attribute : constant Name_Id := N + 515; + First_Renamable_Function_Attribute : constant Name_Id := N + 493; + Name_Adjacent : constant Name_Id := N + 493; + Name_Ceiling : constant Name_Id := N + 494; + Name_Copy_Sign : constant Name_Id := N + 495; + Name_Floor : constant Name_Id := N + 496; + Name_Fraction : constant Name_Id := N + 497; + Name_From_Any : constant Name_Id := N + 498; -- GNAT + Name_Image : constant Name_Id := N + 499; + Name_Input : constant Name_Id := N + 500; + Name_Machine : constant Name_Id := N + 501; + Name_Max : constant Name_Id := N + 502; + Name_Min : constant Name_Id := N + 503; + Name_Model : constant Name_Id := N + 504; + Name_Pred : constant Name_Id := N + 505; + Name_Remainder : constant Name_Id := N + 506; + Name_Rounding : constant Name_Id := N + 507; + Name_Succ : constant Name_Id := N + 508; + Name_To_Any : constant Name_Id := N + 509; -- GNAT + Name_Truncation : constant Name_Id := N + 510; + Name_TypeCode : constant Name_Id := N + 511; -- GNAT + Name_Value : constant Name_Id := N + 512; + Name_Wide_Image : constant Name_Id := N + 513; + Name_Wide_Wide_Image : constant Name_Id := N + 514; + Name_Wide_Value : constant Name_Id := N + 515; + Name_Wide_Wide_Value : constant Name_Id := N + 516; + Last_Renamable_Function_Attribute : constant Name_Id := N + 516; -- Attributes that designate procedures - First_Procedure_Attribute : constant Name_Id := N + 516; - Name_Output : constant Name_Id := N + 516; - Name_Read : constant Name_Id := N + 517; - Name_Write : constant Name_Id := N + 518; - Last_Procedure_Attribute : constant Name_Id := N + 518; + First_Procedure_Attribute : constant Name_Id := N + 517; + Name_Output : constant Name_Id := N + 517; + Name_Read : constant Name_Id := N + 518; + Name_Write : constant Name_Id := N + 519; + Last_Procedure_Attribute : constant Name_Id := N + 519; -- Remaining attributes are ones that return entities - First_Entity_Attribute_Name : constant Name_Id := N + 519; - Name_Elab_Body : constant Name_Id := N + 519; -- GNAT - Name_Elab_Spec : constant Name_Id := N + 520; -- GNAT - Name_Storage_Pool : constant Name_Id := N + 521; + First_Entity_Attribute_Name : constant Name_Id := N + 520; + Name_Elab_Body : constant Name_Id := N + 520; -- GNAT + Name_Elab_Spec : constant Name_Id := N + 521; -- GNAT + Name_Storage_Pool : constant Name_Id := N + 522; -- These attributes are the ones that return types - First_Type_Attribute_Name : constant Name_Id := N + 522; - Name_Base : constant Name_Id := N + 522; - Name_Class : constant Name_Id := N + 523; - Name_Stub_Type : constant Name_Id := N + 524; - Last_Type_Attribute_Name : constant Name_Id := N + 524; - Last_Entity_Attribute_Name : constant Name_Id := N + 524; - Last_Attribute_Name : constant Name_Id := N + 524; + First_Type_Attribute_Name : constant Name_Id := N + 523; + Name_Base : constant Name_Id := N + 523; + Name_Class : constant Name_Id := N + 524; + Name_Stub_Type : constant Name_Id := N + 525; + Last_Type_Attribute_Name : constant Name_Id := N + 525; + Last_Entity_Attribute_Name : constant Name_Id := N + 525; + Last_Attribute_Name : constant Name_Id := N + 525; -- Names of recognized locking policy identifiers @@ -852,10 +853,10 @@ package Snames is -- name (e.g. C for Ceiling_Locking). If new policy names are added, -- the first character must be distinct. - First_Locking_Policy_Name : constant Name_Id := N + 525; - Name_Ceiling_Locking : constant Name_Id := N + 525; - Name_Inheritance_Locking : constant Name_Id := N + 526; - Last_Locking_Policy_Name : constant Name_Id := N + 526; + First_Locking_Policy_Name : constant Name_Id := N + 526; + Name_Ceiling_Locking : constant Name_Id := N + 526; + Name_Inheritance_Locking : constant Name_Id := N + 527; + Last_Locking_Policy_Name : constant Name_Id := N + 527; -- Names of recognized queuing policy identifiers @@ -863,10 +864,10 @@ package Snames is -- name (e.g. F for FIFO_Queuing). If new policy names are added, -- the first character must be distinct. - First_Queuing_Policy_Name : constant Name_Id := N + 527; - Name_FIFO_Queuing : constant Name_Id := N + 527; - Name_Priority_Queuing : constant Name_Id := N + 528; - Last_Queuing_Policy_Name : constant Name_Id := N + 528; + First_Queuing_Policy_Name : constant Name_Id := N + 528; + Name_FIFO_Queuing : constant Name_Id := N + 528; + Name_Priority_Queuing : constant Name_Id := N + 529; + Last_Queuing_Policy_Name : constant Name_Id := N + 529; -- Names of recognized task dispatching policy identifiers @@ -874,285 +875,285 @@ package Snames is -- name (e.g. F for FIFO_Within_Priorities). If new policy names -- are added, the first character must be distinct. - First_Task_Dispatching_Policy_Name : constant Name_Id := N + 529; - Name_EDF_Across_Priorities : constant Name_Id := N + 529; - Name_FIFO_Within_Priorities : constant Name_Id := N + 530; - Name_Non_Preemptive_Within_Priorities : constant Name_Id := N + 531; - Name_Round_Robin_Within_Priorities : constant Name_Id := N + 532; - Last_Task_Dispatching_Policy_Name : constant Name_Id := N + 532; + First_Task_Dispatching_Policy_Name : constant Name_Id := N + 530; + Name_EDF_Across_Priorities : constant Name_Id := N + 530; + Name_FIFO_Within_Priorities : constant Name_Id := N + 531; + Name_Non_Preemptive_Within_Priorities : constant Name_Id := N + 532; + Name_Round_Robin_Within_Priorities : constant Name_Id := N + 533; + Last_Task_Dispatching_Policy_Name : constant Name_Id := N + 533; -- Names of recognized checks for pragma Suppress - First_Check_Name : constant Name_Id := N + 533; - Name_Access_Check : constant Name_Id := N + 533; - Name_Accessibility_Check : constant Name_Id := N + 534; - Name_Alignment_Check : constant Name_Id := N + 535; -- GNAT - Name_Discriminant_Check : constant Name_Id := N + 536; - Name_Division_Check : constant Name_Id := N + 537; - Name_Elaboration_Check : constant Name_Id := N + 538; - Name_Index_Check : constant Name_Id := N + 539; - Name_Length_Check : constant Name_Id := N + 540; - Name_Overflow_Check : constant Name_Id := N + 541; - Name_Range_Check : constant Name_Id := N + 542; - Name_Storage_Check : constant Name_Id := N + 543; - Name_Tag_Check : constant Name_Id := N + 544; - Name_Validity_Check : constant Name_Id := N + 545; -- GNAT - Name_All_Checks : constant Name_Id := N + 546; - Last_Check_Name : constant Name_Id := N + 546; + First_Check_Name : constant Name_Id := N + 534; + Name_Access_Check : constant Name_Id := N + 534; + Name_Accessibility_Check : constant Name_Id := N + 535; + Name_Alignment_Check : constant Name_Id := N + 536; -- GNAT + Name_Discriminant_Check : constant Name_Id := N + 537; + Name_Division_Check : constant Name_Id := N + 538; + Name_Elaboration_Check : constant Name_Id := N + 539; + Name_Index_Check : constant Name_Id := N + 540; + Name_Length_Check : constant Name_Id := N + 541; + Name_Overflow_Check : constant Name_Id := N + 542; + Name_Range_Check : constant Name_Id := N + 543; + Name_Storage_Check : constant Name_Id := N + 544; + Name_Tag_Check : constant Name_Id := N + 545; + Name_Validity_Check : constant Name_Id := N + 546; -- GNAT + Name_All_Checks : constant Name_Id := N + 547; + Last_Check_Name : constant Name_Id := N + 547; -- Names corresponding to reserved keywords, excluding those already -- declared in the attribute list (Access, Delta, Digits, Mod, Range). - Name_Abort : constant Name_Id := N + 547; - Name_Abs : constant Name_Id := N + 548; - Name_Accept : constant Name_Id := N + 549; - Name_And : constant Name_Id := N + 550; - Name_All : constant Name_Id := N + 551; - Name_Array : constant Name_Id := N + 552; - Name_At : constant Name_Id := N + 553; - Name_Begin : constant Name_Id := N + 554; - Name_Body : constant Name_Id := N + 555; - Name_Case : constant Name_Id := N + 556; - Name_Constant : constant Name_Id := N + 557; - Name_Declare : constant Name_Id := N + 558; - Name_Delay : constant Name_Id := N + 559; - Name_Do : constant Name_Id := N + 560; - Name_Else : constant Name_Id := N + 561; - Name_Elsif : constant Name_Id := N + 562; - Name_End : constant Name_Id := N + 563; - Name_Entry : constant Name_Id := N + 564; - Name_Exception : constant Name_Id := N + 565; - Name_Exit : constant Name_Id := N + 566; - Name_For : constant Name_Id := N + 567; - Name_Function : constant Name_Id := N + 568; - Name_Generic : constant Name_Id := N + 569; - Name_Goto : constant Name_Id := N + 570; - Name_If : constant Name_Id := N + 571; - Name_In : constant Name_Id := N + 572; - Name_Is : constant Name_Id := N + 573; - Name_Limited : constant Name_Id := N + 574; - Name_Loop : constant Name_Id := N + 575; - Name_New : constant Name_Id := N + 576; - Name_Not : constant Name_Id := N + 577; - Name_Null : constant Name_Id := N + 578; - Name_Of : constant Name_Id := N + 579; - Name_Or : constant Name_Id := N + 580; - Name_Others : constant Name_Id := N + 581; - Name_Out : constant Name_Id := N + 582; - Name_Package : constant Name_Id := N + 583; - Name_Pragma : constant Name_Id := N + 584; - Name_Private : constant Name_Id := N + 585; - Name_Procedure : constant Name_Id := N + 586; - Name_Raise : constant Name_Id := N + 587; - Name_Record : constant Name_Id := N + 588; - Name_Rem : constant Name_Id := N + 589; - Name_Renames : constant Name_Id := N + 590; - Name_Return : constant Name_Id := N + 591; - Name_Reverse : constant Name_Id := N + 592; - Name_Select : constant Name_Id := N + 593; - Name_Separate : constant Name_Id := N + 594; - Name_Subtype : constant Name_Id := N + 595; - Name_Task : constant Name_Id := N + 596; - Name_Terminate : constant Name_Id := N + 597; - Name_Then : constant Name_Id := N + 598; - Name_Type : constant Name_Id := N + 599; - Name_Use : constant Name_Id := N + 600; - Name_When : constant Name_Id := N + 601; - Name_While : constant Name_Id := N + 602; - Name_With : constant Name_Id := N + 603; - Name_Xor : constant Name_Id := N + 604; + Name_Abort : constant Name_Id := N + 548; + Name_Abs : constant Name_Id := N + 549; + Name_Accept : constant Name_Id := N + 550; + Name_And : constant Name_Id := N + 551; + Name_All : constant Name_Id := N + 552; + Name_Array : constant Name_Id := N + 553; + Name_At : constant Name_Id := N + 554; + Name_Begin : constant Name_Id := N + 555; + Name_Body : constant Name_Id := N + 556; + Name_Case : constant Name_Id := N + 557; + Name_Constant : constant Name_Id := N + 558; + Name_Declare : constant Name_Id := N + 559; + Name_Delay : constant Name_Id := N + 560; + Name_Do : constant Name_Id := N + 561; + Name_Else : constant Name_Id := N + 562; + Name_Elsif : constant Name_Id := N + 563; + Name_End : constant Name_Id := N + 564; + Name_Entry : constant Name_Id := N + 565; + Name_Exception : constant Name_Id := N + 566; + Name_Exit : constant Name_Id := N + 567; + Name_For : constant Name_Id := N + 568; + Name_Function : constant Name_Id := N + 569; + Name_Generic : constant Name_Id := N + 570; + Name_Goto : constant Name_Id := N + 571; + Name_If : constant Name_Id := N + 572; + Name_In : constant Name_Id := N + 573; + Name_Is : constant Name_Id := N + 574; + Name_Limited : constant Name_Id := N + 575; + Name_Loop : constant Name_Id := N + 576; + Name_New : constant Name_Id := N + 577; + Name_Not : constant Name_Id := N + 578; + Name_Null : constant Name_Id := N + 579; + Name_Of : constant Name_Id := N + 580; + Name_Or : constant Name_Id := N + 581; + Name_Others : constant Name_Id := N + 582; + Name_Out : constant Name_Id := N + 583; + Name_Package : constant Name_Id := N + 584; + Name_Pragma : constant Name_Id := N + 585; + Name_Private : constant Name_Id := N + 586; + Name_Procedure : constant Name_Id := N + 587; + Name_Raise : constant Name_Id := N + 588; + Name_Record : constant Name_Id := N + 589; + Name_Rem : constant Name_Id := N + 590; + Name_Renames : constant Name_Id := N + 591; + Name_Return : constant Name_Id := N + 592; + Name_Reverse : constant Name_Id := N + 593; + Name_Select : constant Name_Id := N + 594; + Name_Separate : constant Name_Id := N + 595; + Name_Subtype : constant Name_Id := N + 596; + Name_Task : constant Name_Id := N + 597; + Name_Terminate : constant Name_Id := N + 598; + Name_Then : constant Name_Id := N + 599; + Name_Type : constant Name_Id := N + 600; + Name_Use : constant Name_Id := N + 601; + Name_When : constant Name_Id := N + 602; + Name_While : constant Name_Id := N + 603; + Name_With : constant Name_Id := N + 604; + Name_Xor : constant Name_Id := N + 605; -- Names of intrinsic subprograms -- Note: Asm is missing from this list, since Asm is a legitimate -- convention name. So is To_Address, which is a GNAT attribute. - First_Intrinsic_Name : constant Name_Id := N + 605; - Name_Divide : constant Name_Id := N + 605; - Name_Enclosing_Entity : constant Name_Id := N + 606; - Name_Exception_Information : constant Name_Id := N + 607; - Name_Exception_Message : constant Name_Id := N + 608; - Name_Exception_Name : constant Name_Id := N + 609; - Name_File : constant Name_Id := N + 610; - Name_Generic_Dispatching_Constructor : constant Name_Id := N + 611; - Name_Import_Address : constant Name_Id := N + 612; - Name_Import_Largest_Value : constant Name_Id := N + 613; - Name_Import_Value : constant Name_Id := N + 614; - Name_Is_Negative : constant Name_Id := N + 615; - Name_Line : constant Name_Id := N + 616; - Name_Rotate_Left : constant Name_Id := N + 617; - Name_Rotate_Right : constant Name_Id := N + 618; - Name_Shift_Left : constant Name_Id := N + 619; - Name_Shift_Right : constant Name_Id := N + 620; - Name_Shift_Right_Arithmetic : constant Name_Id := N + 621; - Name_Source_Location : constant Name_Id := N + 622; - Name_Unchecked_Conversion : constant Name_Id := N + 623; - Name_Unchecked_Deallocation : constant Name_Id := N + 624; - Name_To_Pointer : constant Name_Id := N + 625; - Last_Intrinsic_Name : constant Name_Id := N + 625; + First_Intrinsic_Name : constant Name_Id := N + 606; + Name_Divide : constant Name_Id := N + 606; + Name_Enclosing_Entity : constant Name_Id := N + 607; + Name_Exception_Information : constant Name_Id := N + 608; + Name_Exception_Message : constant Name_Id := N + 609; + Name_Exception_Name : constant Name_Id := N + 610; + Name_File : constant Name_Id := N + 611; + Name_Generic_Dispatching_Constructor : constant Name_Id := N + 612; + Name_Import_Address : constant Name_Id := N + 613; + Name_Import_Largest_Value : constant Name_Id := N + 614; + Name_Import_Value : constant Name_Id := N + 615; + Name_Is_Negative : constant Name_Id := N + 616; + Name_Line : constant Name_Id := N + 617; + Name_Rotate_Left : constant Name_Id := N + 618; + Name_Rotate_Right : constant Name_Id := N + 619; + Name_Shift_Left : constant Name_Id := N + 620; + Name_Shift_Right : constant Name_Id := N + 621; + Name_Shift_Right_Arithmetic : constant Name_Id := N + 622; + Name_Source_Location : constant Name_Id := N + 623; + Name_Unchecked_Conversion : constant Name_Id := N + 624; + Name_Unchecked_Deallocation : constant Name_Id := N + 625; + Name_To_Pointer : constant Name_Id := N + 626; + Last_Intrinsic_Name : constant Name_Id := N + 626; -- Names used in processing intrinsic calls - Name_Free : constant Name_Id := N + 626; + Name_Free : constant Name_Id := N + 627; -- Reserved words used only in Ada 95 - First_95_Reserved_Word : constant Name_Id := N + 627; - Name_Abstract : constant Name_Id := N + 627; - Name_Aliased : constant Name_Id := N + 628; - Name_Protected : constant Name_Id := N + 629; - Name_Until : constant Name_Id := N + 630; - Name_Requeue : constant Name_Id := N + 631; - Name_Tagged : constant Name_Id := N + 632; - Last_95_Reserved_Word : constant Name_Id := N + 632; + First_95_Reserved_Word : constant Name_Id := N + 628; + Name_Abstract : constant Name_Id := N + 628; + Name_Aliased : constant Name_Id := N + 629; + Name_Protected : constant Name_Id := N + 630; + Name_Until : constant Name_Id := N + 631; + Name_Requeue : constant Name_Id := N + 632; + Name_Tagged : constant Name_Id := N + 633; + Last_95_Reserved_Word : constant Name_Id := N + 633; subtype Ada_95_Reserved_Words is Name_Id range First_95_Reserved_Word .. Last_95_Reserved_Word; -- Miscellaneous names used in semantic checking - Name_Raise_Exception : constant Name_Id := N + 633; + Name_Raise_Exception : constant Name_Id := N + 634; -- Additional reserved words and identifiers used in GNAT Project Files -- Note that Name_External is already previously declared - Name_Ada_Roots : constant Name_Id := N + 634; - Name_Aggregate : constant Name_Id := N + 635; - Name_Archive_Builder : constant Name_Id := N + 636; - Name_Archive_Builder_Append_Option : constant Name_Id := N + 637; - Name_Archive_Indexer : constant Name_Id := N + 638; - Name_Archive_Suffix : constant Name_Id := N + 639; - Name_Binder : constant Name_Id := N + 640; - Name_Binder_Prefix : constant Name_Id := N + 641; - Name_Body_Suffix : constant Name_Id := N + 642; - Name_Builder : constant Name_Id := N + 643; - Name_Builder_Switches : constant Name_Id := N + 644; - Name_Compiler : constant Name_Id := N + 645; - Name_Compiler_Kind : constant Name_Id := N + 646; - Name_Config_Body_File_Name : constant Name_Id := N + 647; - Name_Config_Body_File_Name_Pattern : constant Name_Id := N + 648; - Name_Config_File_Switches : constant Name_Id := N + 649; - Name_Config_File_Unique : constant Name_Id := N + 650; - Name_Config_Spec_File_Name : constant Name_Id := N + 651; - Name_Config_Spec_File_Name_Pattern : constant Name_Id := N + 652; - Name_Configuration : constant Name_Id := N + 653; - Name_Cross_Reference : constant Name_Id := N + 654; - Name_Default_Language : constant Name_Id := N + 655; - Name_Default_Switches : constant Name_Id := N + 656; - Name_Dependency_Driver : constant Name_Id := N + 657; - Name_Dependency_File_Kind : constant Name_Id := N + 658; - Name_Dependency_Switches : constant Name_Id := N + 659; - Name_Driver : constant Name_Id := N + 660; - Name_Excluded_Source_Dirs : constant Name_Id := N + 661; - Name_Excluded_Source_Files : constant Name_Id := N + 662; - Name_Excluded_Source_List_File : constant Name_Id := N + 663; - Name_Exec_Dir : constant Name_Id := N + 664; - Name_Executable : constant Name_Id := N + 665; - Name_Executable_Suffix : constant Name_Id := N + 666; - Name_Extends : constant Name_Id := N + 667; - Name_Externally_Built : constant Name_Id := N + 668; - Name_Finder : constant Name_Id := N + 669; - Name_Global_Compilation_Switches : constant Name_Id := N + 670; - Name_Global_Configuration_Pragmas : constant Name_Id := N + 671; - Name_Global_Config_File : constant Name_Id := N + 672; - Name_Gnatls : constant Name_Id := N + 673; - Name_Gnatstub : constant Name_Id := N + 674; - Name_Implementation : constant Name_Id := N + 675; - Name_Implementation_Exceptions : constant Name_Id := N + 676; - Name_Implementation_Suffix : constant Name_Id := N + 677; - Name_Include_Switches : constant Name_Id := N + 678; - Name_Include_Path : constant Name_Id := N + 679; - Name_Include_Path_File : constant Name_Id := N + 680; - Name_Inherit_Source_Path : constant Name_Id := N + 681; - Name_Language_Kind : constant Name_Id := N + 682; - Name_Language_Processing : constant Name_Id := N + 683; - Name_Languages : constant Name_Id := N + 684; - Name_Library : constant Name_Id := N + 685; - Name_Library_Ali_Dir : constant Name_Id := N + 686; - Name_Library_Auto_Init : constant Name_Id := N + 687; - Name_Library_Auto_Init_Supported : constant Name_Id := N + 688; - Name_Library_Builder : constant Name_Id := N + 689; - Name_Library_Dir : constant Name_Id := N + 690; - Name_Library_GCC : constant Name_Id := N + 691; - Name_Library_Interface : constant Name_Id := N + 692; - Name_Library_Kind : constant Name_Id := N + 693; - Name_Library_Name : constant Name_Id := N + 694; - Name_Library_Major_Minor_Id_Supported : constant Name_Id := N + 695; - Name_Library_Options : constant Name_Id := N + 696; - Name_Library_Partial_Linker : constant Name_Id := N + 697; - Name_Library_Reference_Symbol_File : constant Name_Id := N + 698; - Name_Library_Src_Dir : constant Name_Id := N + 699; - Name_Library_Support : constant Name_Id := N + 700; - Name_Library_Symbol_File : constant Name_Id := N + 701; - Name_Library_Symbol_Policy : constant Name_Id := N + 702; - Name_Library_Version : constant Name_Id := N + 703; - Name_Library_Version_Switches : constant Name_Id := N + 704; - Name_Linker : constant Name_Id := N + 705; - Name_Linker_Executable_Option : constant Name_Id := N + 706; - Name_Linker_Lib_Dir_Option : constant Name_Id := N + 707; - Name_Linker_Lib_Name_Option : constant Name_Id := N + 708; - Name_Local_Config_File : constant Name_Id := N + 709; - Name_Local_Configuration_Pragmas : constant Name_Id := N + 710; - Name_Locally_Removed_Files : constant Name_Id := N + 711; - Name_Map_File_Option : constant Name_Id := N + 712; - Name_Mapping_File_Switches : constant Name_Id := N + 713; - Name_Mapping_Spec_Suffix : constant Name_Id := N + 714; - Name_Mapping_Body_Suffix : constant Name_Id := N + 715; - Name_Metrics : constant Name_Id := N + 716; - Name_Naming : constant Name_Id := N + 717; - Name_Object_Generated : constant Name_Id := N + 718; - Name_Objects_Linked : constant Name_Id := N + 719; - Name_Objects_Path : constant Name_Id := N + 720; - Name_Objects_Path_File : constant Name_Id := N + 721; - Name_Object_Dir : constant Name_Id := N + 722; - Name_Path_Syntax : constant Name_Id := N + 723; - Name_Pic_Option : constant Name_Id := N + 724; - Name_Pretty_Printer : constant Name_Id := N + 725; - Name_Prefix : constant Name_Id := N + 726; - Name_Project : constant Name_Id := N + 727; - Name_Roots : constant Name_Id := N + 728; - Name_Required_Switches : constant Name_Id := N + 729; - Name_Run_Path_Option : constant Name_Id := N + 730; - Name_Runtime_Project : constant Name_Id := N + 731; - Name_Shared_Library_Minimum_Switches : constant Name_Id := N + 732; - Name_Shared_Library_Prefix : constant Name_Id := N + 733; - Name_Shared_Library_Suffix : constant Name_Id := N + 734; - Name_Separate_Suffix : constant Name_Id := N + 735; - Name_Source_Dirs : constant Name_Id := N + 736; - Name_Source_Files : constant Name_Id := N + 737; - Name_Source_List_File : constant Name_Id := N + 738; - Name_Spec : constant Name_Id := N + 739; - Name_Spec_Suffix : constant Name_Id := N + 740; - Name_Specification : constant Name_Id := N + 741; - Name_Specification_Exceptions : constant Name_Id := N + 742; - Name_Specification_Suffix : constant Name_Id := N + 743; - Name_Stack : constant Name_Id := N + 744; - Name_Switches : constant Name_Id := N + 745; - Name_Symbolic_Link_Supported : constant Name_Id := N + 746; - Name_Sync : constant Name_Id := N + 747; - Name_Synchronize : constant Name_Id := N + 748; - Name_Toolchain_Description : constant Name_Id := N + 749; - Name_Toolchain_Version : constant Name_Id := N + 750; - Name_Runtime_Library_Dir : constant Name_Id := N + 751; + Name_Ada_Roots : constant Name_Id := N + 635; + Name_Aggregate : constant Name_Id := N + 636; + Name_Archive_Builder : constant Name_Id := N + 637; + Name_Archive_Builder_Append_Option : constant Name_Id := N + 638; + Name_Archive_Indexer : constant Name_Id := N + 639; + Name_Archive_Suffix : constant Name_Id := N + 640; + Name_Binder : constant Name_Id := N + 641; + Name_Binder_Prefix : constant Name_Id := N + 642; + Name_Body_Suffix : constant Name_Id := N + 643; + Name_Builder : constant Name_Id := N + 644; + Name_Builder_Switches : constant Name_Id := N + 645; + Name_Compiler : constant Name_Id := N + 646; + Name_Compiler_Kind : constant Name_Id := N + 647; + Name_Config_Body_File_Name : constant Name_Id := N + 648; + Name_Config_Body_File_Name_Pattern : constant Name_Id := N + 649; + Name_Config_File_Switches : constant Name_Id := N + 650; + Name_Config_File_Unique : constant Name_Id := N + 651; + Name_Config_Spec_File_Name : constant Name_Id := N + 652; + Name_Config_Spec_File_Name_Pattern : constant Name_Id := N + 653; + Name_Configuration : constant Name_Id := N + 654; + Name_Cross_Reference : constant Name_Id := N + 655; + Name_Default_Language : constant Name_Id := N + 656; + Name_Default_Switches : constant Name_Id := N + 657; + Name_Dependency_Driver : constant Name_Id := N + 658; + Name_Dependency_File_Kind : constant Name_Id := N + 659; + Name_Dependency_Switches : constant Name_Id := N + 660; + Name_Driver : constant Name_Id := N + 661; + Name_Excluded_Source_Dirs : constant Name_Id := N + 662; + Name_Excluded_Source_Files : constant Name_Id := N + 663; + Name_Excluded_Source_List_File : constant Name_Id := N + 664; + Name_Exec_Dir : constant Name_Id := N + 665; + Name_Executable : constant Name_Id := N + 666; + Name_Executable_Suffix : constant Name_Id := N + 667; + Name_Extends : constant Name_Id := N + 668; + Name_Externally_Built : constant Name_Id := N + 669; + Name_Finder : constant Name_Id := N + 670; + Name_Global_Compilation_Switches : constant Name_Id := N + 671; + Name_Global_Configuration_Pragmas : constant Name_Id := N + 672; + Name_Global_Config_File : constant Name_Id := N + 673; + Name_Gnatls : constant Name_Id := N + 674; + Name_Gnatstub : constant Name_Id := N + 675; + Name_Implementation : constant Name_Id := N + 676; + Name_Implementation_Exceptions : constant Name_Id := N + 677; + Name_Implementation_Suffix : constant Name_Id := N + 678; + Name_Include_Switches : constant Name_Id := N + 679; + Name_Include_Path : constant Name_Id := N + 680; + Name_Include_Path_File : constant Name_Id := N + 681; + Name_Inherit_Source_Path : constant Name_Id := N + 682; + Name_Language_Kind : constant Name_Id := N + 683; + Name_Language_Processing : constant Name_Id := N + 684; + Name_Languages : constant Name_Id := N + 685; + Name_Library : constant Name_Id := N + 686; + Name_Library_Ali_Dir : constant Name_Id := N + 687; + Name_Library_Auto_Init : constant Name_Id := N + 688; + Name_Library_Auto_Init_Supported : constant Name_Id := N + 689; + Name_Library_Builder : constant Name_Id := N + 690; + Name_Library_Dir : constant Name_Id := N + 691; + Name_Library_GCC : constant Name_Id := N + 692; + Name_Library_Interface : constant Name_Id := N + 693; + Name_Library_Kind : constant Name_Id := N + 694; + Name_Library_Name : constant Name_Id := N + 695; + Name_Library_Major_Minor_Id_Supported : constant Name_Id := N + 696; + Name_Library_Options : constant Name_Id := N + 697; + Name_Library_Partial_Linker : constant Name_Id := N + 698; + Name_Library_Reference_Symbol_File : constant Name_Id := N + 699; + Name_Library_Src_Dir : constant Name_Id := N + 700; + Name_Library_Support : constant Name_Id := N + 701; + Name_Library_Symbol_File : constant Name_Id := N + 702; + Name_Library_Symbol_Policy : constant Name_Id := N + 703; + Name_Library_Version : constant Name_Id := N + 704; + Name_Library_Version_Switches : constant Name_Id := N + 705; + Name_Linker : constant Name_Id := N + 706; + Name_Linker_Executable_Option : constant Name_Id := N + 707; + Name_Linker_Lib_Dir_Option : constant Name_Id := N + 708; + Name_Linker_Lib_Name_Option : constant Name_Id := N + 709; + Name_Local_Config_File : constant Name_Id := N + 710; + Name_Local_Configuration_Pragmas : constant Name_Id := N + 711; + Name_Locally_Removed_Files : constant Name_Id := N + 712; + Name_Map_File_Option : constant Name_Id := N + 713; + Name_Mapping_File_Switches : constant Name_Id := N + 714; + Name_Mapping_Spec_Suffix : constant Name_Id := N + 715; + Name_Mapping_Body_Suffix : constant Name_Id := N + 716; + Name_Metrics : constant Name_Id := N + 717; + Name_Naming : constant Name_Id := N + 718; + Name_Object_Generated : constant Name_Id := N + 719; + Name_Objects_Linked : constant Name_Id := N + 720; + Name_Objects_Path : constant Name_Id := N + 721; + Name_Objects_Path_File : constant Name_Id := N + 722; + Name_Object_Dir : constant Name_Id := N + 723; + Name_Path_Syntax : constant Name_Id := N + 724; + Name_Pic_Option : constant Name_Id := N + 725; + Name_Pretty_Printer : constant Name_Id := N + 726; + Name_Prefix : constant Name_Id := N + 727; + Name_Project : constant Name_Id := N + 728; + Name_Roots : constant Name_Id := N + 729; + Name_Required_Switches : constant Name_Id := N + 730; + Name_Run_Path_Option : constant Name_Id := N + 731; + Name_Runtime_Project : constant Name_Id := N + 732; + Name_Shared_Library_Minimum_Switches : constant Name_Id := N + 733; + Name_Shared_Library_Prefix : constant Name_Id := N + 734; + Name_Shared_Library_Suffix : constant Name_Id := N + 735; + Name_Separate_Suffix : constant Name_Id := N + 736; + Name_Source_Dirs : constant Name_Id := N + 737; + Name_Source_Files : constant Name_Id := N + 738; + Name_Source_List_File : constant Name_Id := N + 739; + Name_Spec : constant Name_Id := N + 740; + Name_Spec_Suffix : constant Name_Id := N + 741; + Name_Specification : constant Name_Id := N + 742; + Name_Specification_Exceptions : constant Name_Id := N + 743; + Name_Specification_Suffix : constant Name_Id := N + 744; + Name_Stack : constant Name_Id := N + 745; + Name_Switches : constant Name_Id := N + 746; + Name_Symbolic_Link_Supported : constant Name_Id := N + 747; + Name_Sync : constant Name_Id := N + 748; + Name_Synchronize : constant Name_Id := N + 749; + Name_Toolchain_Description : constant Name_Id := N + 750; + Name_Toolchain_Version : constant Name_Id := N + 751; + Name_Runtime_Library_Dir : constant Name_Id := N + 752; -- Other miscellaneous names used in front end - Name_Unaligned_Valid : constant Name_Id := N + 752; + Name_Unaligned_Valid : constant Name_Id := N + 753; -- Ada 2005 reserved words - First_2005_Reserved_Word : constant Name_Id := N + 753; - Name_Interface : constant Name_Id := N + 753; - Name_Overriding : constant Name_Id := N + 754; - Name_Synchronized : constant Name_Id := N + 755; - Last_2005_Reserved_Word : constant Name_Id := N + 755; + First_2005_Reserved_Word : constant Name_Id := N + 754; + Name_Interface : constant Name_Id := N + 754; + Name_Overriding : constant Name_Id := N + 755; + Name_Synchronized : constant Name_Id := N + 756; + Last_2005_Reserved_Word : constant Name_Id := N + 756; subtype Ada_2005_Reserved_Words is Name_Id range First_2005_Reserved_Word .. Last_2005_Reserved_Word; -- Mark last defined name for consistency check in Snames body - Last_Predefined_Name : constant Name_Id := N + 755; + Last_Predefined_Name : constant Name_Id := N + 756; --------------------------------------- -- Subtypes Defining Name Categories -- @@ -1546,6 +1547,7 @@ package Snames is Pragma_Task_Info, Pragma_Task_Name, Pragma_Task_Storage, + Pragma_Thread_Local_Storage, Pragma_Time_Slice, Pragma_Title, Pragma_Unchecked_Union, diff --git a/gcc/ada/snames.h b/gcc/ada/snames.h index 627950f5c9f..5ac699df65c 100644 --- a/gcc/ada/snames.h +++ b/gcc/ada/snames.h @@ -377,23 +377,24 @@ extern unsigned char Get_Pragma_Id (int); #define Pragma_Task_Info 150 #define Pragma_Task_Name 151 #define Pragma_Task_Storage 152 -#define Pragma_Time_Slice 153 -#define Pragma_Title 154 -#define Pragma_Unchecked_Union 155 -#define Pragma_Unimplemented_Unit 156 -#define Pragma_Universal_Aliasing 157 -#define Pragma_Unmodified 158 -#define Pragma_Unreferenced 159 -#define Pragma_Unreferenced_Objects 160 -#define Pragma_Unreserve_All_Interrupts 161 -#define Pragma_Volatile 162 -#define Pragma_Volatile_Components 163 -#define Pragma_Weak_External 164 -#define Pragma_AST_Entry 165 -#define Pragma_Fast_Math 166 -#define Pragma_Interface 167 -#define Pragma_Priority 168 -#define Pragma_Storage_Size 169 -#define Pragma_Storage_Unit 170 +#define Pragma_Thread_Local_Storage 153 +#define Pragma_Time_Slice 154 +#define Pragma_Title 155 +#define Pragma_Unchecked_Union 156 +#define Pragma_Unimplemented_Unit 157 +#define Pragma_Universal_Aliasing 158 +#define Pragma_Unmodified 159 +#define Pragma_Unreferenced 160 +#define Pragma_Unreferenced_Objects 161 +#define Pragma_Unreserve_All_Interrupts 162 +#define Pragma_Volatile 163 +#define Pragma_Volatile_Components 164 +#define Pragma_Weak_External 165 +#define Pragma_AST_Entry 166 +#define Pragma_Fast_Math 167 +#define Pragma_Interface 168 +#define Pragma_Priority 169 +#define Pragma_Storage_Size 170 +#define Pragma_Storage_Unit 171 /* End of snames.h (C version of Snames package spec) */