1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 with Namet; use Namet;
36 -- This package contains definitions of standard names (i.e. entries in the
37 -- Names table) that are used throughout the GNAT compiler. It also contains
38 -- the definitions of some enumeration types whose definitions are tied to the
39 -- order of these preset names.
45 -- The following are preset entries in the names table, which are entered
46 -- at the start of every compilation for easy access. Note that the order
47 -- of initialization of these names in the body must be coordinated with
48 -- the order of names in this table.
50 -- Note: a name may not appear more than once in the following list. If
51 -- additional pragmas or attributes are introduced which might otherwise
52 -- cause a duplicate, then list it only once in this table, and adjust the
53 -- definition of the functions for testing for pragma names and attribute
54 -- names, and returning their ID values. Of course everything is simpler if
55 -- no such duplications occur.
57 -- First we have the one character names used to optimize the lookup
58 -- process for one character identifiers (to avoid the hashing in this
59 -- case) There are a full 256 of these, but only the entries for lower
60 -- case and upper case letters have identifiers
62 -- The lower case letter entries are used for one character identifiers
63 -- appearing in the source, for example in pragma Interface (C).
65 Name_A : constant Name_Id := First_Name_Id + Character'Pos ('a');
66 Name_B : constant Name_Id := First_Name_Id + Character'Pos ('b');
67 Name_C : constant Name_Id := First_Name_Id + Character'Pos ('c');
68 Name_D : constant Name_Id := First_Name_Id + Character'Pos ('d');
69 Name_E : constant Name_Id := First_Name_Id + Character'Pos ('e');
70 Name_F : constant Name_Id := First_Name_Id + Character'Pos ('f');
71 Name_G : constant Name_Id := First_Name_Id + Character'Pos ('g');
72 Name_H : constant Name_Id := First_Name_Id + Character'Pos ('h');
73 Name_I : constant Name_Id := First_Name_Id + Character'Pos ('i');
74 Name_J : constant Name_Id := First_Name_Id + Character'Pos ('j');
75 Name_K : constant Name_Id := First_Name_Id + Character'Pos ('k');
76 Name_L : constant Name_Id := First_Name_Id + Character'Pos ('l');
77 Name_M : constant Name_Id := First_Name_Id + Character'Pos ('m');
78 Name_N : constant Name_Id := First_Name_Id + Character'Pos ('n');
79 Name_O : constant Name_Id := First_Name_Id + Character'Pos ('o');
80 Name_P : constant Name_Id := First_Name_Id + Character'Pos ('p');
81 Name_Q : constant Name_Id := First_Name_Id + Character'Pos ('q');
82 Name_R : constant Name_Id := First_Name_Id + Character'Pos ('r');
83 Name_S : constant Name_Id := First_Name_Id + Character'Pos ('s');
84 Name_T : constant Name_Id := First_Name_Id + Character'Pos ('t');
85 Name_U : constant Name_Id := First_Name_Id + Character'Pos ('u');
86 Name_V : constant Name_Id := First_Name_Id + Character'Pos ('v');
87 Name_W : constant Name_Id := First_Name_Id + Character'Pos ('w');
88 Name_X : constant Name_Id := First_Name_Id + Character'Pos ('x');
89 Name_Y : constant Name_Id := First_Name_Id + Character'Pos ('y');
90 Name_Z : constant Name_Id := First_Name_Id + Character'Pos ('z');
92 -- The upper case letter entries are used by expander code for local
93 -- variables that do not require unique names (e.g. formal parameter names
94 -- in constructed procedures).
96 Name_uA : constant Name_Id := First_Name_Id + Character'Pos ('A');
97 Name_uB : constant Name_Id := First_Name_Id + Character'Pos ('B');
98 Name_uC : constant Name_Id := First_Name_Id + Character'Pos ('C');
99 Name_uD : constant Name_Id := First_Name_Id + Character'Pos ('D');
100 Name_uE : constant Name_Id := First_Name_Id + Character'Pos ('E');
101 Name_uF : constant Name_Id := First_Name_Id + Character'Pos ('F');
102 Name_uG : constant Name_Id := First_Name_Id + Character'Pos ('G');
103 Name_uH : constant Name_Id := First_Name_Id + Character'Pos ('H');
104 Name_uI : constant Name_Id := First_Name_Id + Character'Pos ('I');
105 Name_uJ : constant Name_Id := First_Name_Id + Character'Pos ('J');
106 Name_uK : constant Name_Id := First_Name_Id + Character'Pos ('K');
107 Name_uL : constant Name_Id := First_Name_Id + Character'Pos ('L');
108 Name_uM : constant Name_Id := First_Name_Id + Character'Pos ('M');
109 Name_uN : constant Name_Id := First_Name_Id + Character'Pos ('N');
110 Name_uO : constant Name_Id := First_Name_Id + Character'Pos ('O');
111 Name_uP : constant Name_Id := First_Name_Id + Character'Pos ('P');
112 Name_uQ : constant Name_Id := First_Name_Id + Character'Pos ('Q');
113 Name_uR : constant Name_Id := First_Name_Id + Character'Pos ('R');
114 Name_uS : constant Name_Id := First_Name_Id + Character'Pos ('S');
115 Name_uT : constant Name_Id := First_Name_Id + Character'Pos ('T');
116 Name_uU : constant Name_Id := First_Name_Id + Character'Pos ('U');
117 Name_uV : constant Name_Id := First_Name_Id + Character'Pos ('V');
118 Name_uW : constant Name_Id := First_Name_Id + Character'Pos ('W');
119 Name_uX : constant Name_Id := First_Name_Id + Character'Pos ('X');
120 Name_uY : constant Name_Id := First_Name_Id + Character'Pos ('Y');
121 Name_uZ : constant Name_Id := First_Name_Id + Character'Pos ('Z');
123 -- Note: the following table is read by the utility program 'xsnamest', and
124 -- its format should not be changed without coordinating with this program.
126 N : constant Name_Id := First_Name_Id + 256;
127 -- Synonym used in standard name definitions
129 -- Names referenced in snames.h
131 Name_uParent : constant Name_Id := N + $;
132 Name_uTag : constant Name_Id := N + $;
133 Name_Off : constant Name_Id := N + $;
134 Name_Space : constant Name_Id := N + $;
135 Name_Time : constant Name_Id := N + $;
137 -- Names of aspects for which there are no matching pragmas or attributes
138 -- so that they need to be included for aspect specification use.
140 Name_Default_Value : constant Name_Id := N + $;
141 Name_Default_Component_Value : constant Name_Id := N + $;
142 Name_Dimension : constant Name_Id := N + $;
143 Name_Dimension_System : constant Name_Id := N + $;
144 Name_Disable_Controlled : constant Name_Id := N + $;
145 Name_Dynamic_Predicate : constant Name_Id := N + $;
146 Name_Static_Predicate : constant Name_Id := N + $;
147 Name_Synchronization : constant Name_Id := N + $;
148 Name_Unimplemented : constant Name_Id := N + $;
150 -- Some special names used by the expander. Note that the lower case u's
151 -- at the start of these names get translated to extra underscores. These
152 -- names are only referenced internally by expander generated code.
154 Name_uAbort_Signal : constant Name_Id := N + $;
155 Name_uAlignment : constant Name_Id := N + $;
156 Name_uAssign : constant Name_Id := N + $;
157 Name_uATCB : constant Name_Id := N + $;
158 Name_uChain : constant Name_Id := N + $;
159 Name_uController : constant Name_Id := N + $;
160 Name_uCPU : constant Name_Id := N + $;
161 Name_uDispatching_Domain : constant Name_Id := N + $;
162 Name_uEntry_Bodies : constant Name_Id := N + $;
163 Name_uExpunge : constant Name_Id := N + $;
164 Name_uFinalizer : constant Name_Id := N + $;
165 Name_uIdepth : constant Name_Id := N + $;
166 Name_uInit : constant Name_Id := N + $;
167 Name_uInvariant : constant Name_Id := N + $;
168 Name_uMaster : constant Name_Id := N + $;
169 Name_uObject : constant Name_Id := N + $;
170 Name_uPost : constant Name_Id := N + $;
171 Name_uPostconditions : constant Name_Id := N + $;
172 Name_uPre : constant Name_Id := N + $;
173 Name_uPriority : constant Name_Id := N + $;
174 Name_uProcess_ATSD : constant Name_Id := N + $;
175 Name_uRelative_Deadline : constant Name_Id := N + $;
176 Name_uResult : constant Name_Id := N + $;
177 Name_uSecondary_Stack : constant Name_Id := N + $;
178 Name_uSecondary_Stack_Size : constant Name_Id := N + $;
179 Name_uService : constant Name_Id := N + $;
180 Name_uSize : constant Name_Id := N + $;
181 Name_uStack : constant Name_Id := N + $;
182 Name_uTags : constant Name_Id := N + $;
183 Name_uTask : constant Name_Id := N + $;
184 Name_uTask_Id : constant Name_Id := N + $;
185 Name_uTask_Info : constant Name_Id := N + $;
186 Name_uTask_Name : constant Name_Id := N + $;
187 Name_uTrace_Sp : constant Name_Id := N + $;
188 Name_uType_Invariant : constant Name_Id := N + $;
190 -- Names of predefined primitives used in the expansion of dispatching
191 -- requeue and select statements, Abort, 'Callable and 'Terminated.
193 Name_uDisp_Asynchronous_Select : constant Name_Id := N + $;
194 Name_uDisp_Conditional_Select : constant Name_Id := N + $;
195 Name_uDisp_Get_Prim_Op_Kind : constant Name_Id := N + $;
196 Name_uDisp_Get_Task_Id : constant Name_Id := N + $;
197 Name_uDisp_Requeue : constant Name_Id := N + $;
198 Name_uDisp_Timed_Select : constant Name_Id := N + $;
200 -- Names of routines and fields in Ada.Finalization, needed by expander
202 Name_Initialize : constant Name_Id := N + $;
203 Name_Adjust : constant Name_Id := N + $;
204 Name_Finalize : constant Name_Id := N + $;
205 Name_Finalize_Address : constant Name_Id := N + $;
206 Name_Next : constant Name_Id := N + $;
207 Name_Prev : constant Name_Id := N + $;
209 -- Names of allocation routines, also needed by expander
211 Name_Allocate : constant Name_Id := N + $;
212 Name_Deallocate : constant Name_Id := N + $;
213 Name_Dereference : constant Name_Id := N + $;
215 -- Text_IO generic subpackages (see Rtsfind.Check_Text_IO_Special_Unit)
217 First_Text_IO_Package : constant Name_Id := N + $;
218 Name_Decimal_IO : constant Name_Id := N + $;
219 Name_Enumeration_IO : constant Name_Id := N + $;
220 Name_Fixed_IO : constant Name_Id := N + $;
221 Name_Float_IO : constant Name_Id := N + $;
222 Name_Integer_IO : constant Name_Id := N + $;
223 Name_Modular_IO : constant Name_Id := N + $;
224 Last_Text_IO_Package : constant Name_Id := N + $;
226 subtype Text_IO_Package_Name is Name_Id
227 range First_Text_IO_Package .. Last_Text_IO_Package;
229 -- Names used by the analyzer and expander for aspect Dimension and
230 -- Dimension_System to deal with Sqrt and IO routines.
232 Name_Dim_Symbol : constant Name_Id := N + $; -- Ada 12
233 Name_Item : constant Name_Id := N + $; -- Ada 12
234 Name_Put_Dim_Of : constant Name_Id := N + $; -- Ada 12
235 Name_Sqrt : constant Name_Id := N + $; -- Ada 12
236 Name_Symbol : constant Name_Id := N + $; -- Ada 12
237 Name_Unit_Symbol : constant Name_Id := N + $; -- Ada 12
239 -- Some miscellaneous names used for error detection/recovery
241 Name_Const : constant Name_Id := N + $;
242 Name_Error : constant Name_Id := N + $;
243 Name_False : constant Name_Id := N + $;
244 Name_Go : constant Name_Id := N + $;
245 Name_Put : constant Name_Id := N + $;
246 Name_Put_Line : constant Name_Id := N + $;
247 Name_To : constant Name_Id := N + $;
249 -- Name used by the integrated preprocessor
251 Name_Defined : constant Name_Id := N + $;
253 -- Names for packages that are treated specially by the compiler
255 Name_Exception_Traces : constant Name_Id := N + $;
256 Name_Finalization : constant Name_Id := N + $;
257 Name_Interfaces : constant Name_Id := N + $;
258 Name_Most_Recent_Exception : constant Name_Id := N + $;
259 Name_Standard : constant Name_Id := N + $;
260 Name_System : constant Name_Id := N + $;
261 Name_Text_IO : constant Name_Id := N + $;
262 Name_Wide_Text_IO : constant Name_Id := N + $;
263 Name_Wide_Wide_Text_IO : constant Name_Id := N + $;
265 -- Names for detecting predefined potentially blocking subprograms
267 Name_Abort_Task : constant Name_Id := N + $;
268 Name_Bounded_IO : constant Name_Id := N + $;
269 Name_C_Streams : constant Name_Id := N + $;
270 Name_Complex_IO : constant Name_Id := N + $;
271 Name_Directories : constant Name_Id := N + $;
272 Name_Direct_IO : constant Name_Id := N + $;
273 Name_Dispatching : constant Name_Id := N + $;
274 Name_Editing : constant Name_Id := N + $;
275 Name_EDF : constant Name_Id := N + $;
276 Name_Reset_Standard_Files : constant Name_Id := N + $;
277 Name_Sequential_IO : constant Name_Id := N + $;
278 Name_Strings : constant Name_Id := N + $;
279 Name_Streams : constant Name_Id := N + $;
280 Name_Suspend_Until_True : constant Name_Id := N + $;
281 Name_Suspend_Until_True_And_Set_Deadline : constant Name_Id := N + $;
282 Name_Synchronous_Barriers : constant Name_Id := N + $;
283 Name_Task_Identification : constant Name_Id := N + $;
284 Name_Text_Streams : constant Name_Id := N + $;
285 Name_Unbounded : constant Name_Id := N + $;
286 Name_Unbounded_IO : constant Name_Id := N + $;
287 Name_Wait_For_Release : constant Name_Id := N + $;
288 Name_Wide_Unbounded : constant Name_Id := N + $;
289 Name_Wide_Wide_Unbounded : constant Name_Id := N + $;
290 Name_Yield : constant Name_Id := N + $;
292 -- Names of implementations of the distributed systems annex
294 First_PCS_Name : constant Name_Id := N + $;
295 Name_No_DSA : constant Name_Id := N + $;
296 Name_GARLIC_DSA : constant Name_Id := N + $;
297 Name_PolyORB_DSA : constant Name_Id := N + $;
298 Last_PCS_Name : constant Name_Id := N + $;
300 subtype PCS_Names is Name_Id
301 range First_PCS_Name .. Last_PCS_Name;
303 -- Names of identifiers used in expanding distribution stubs
305 Name_Addr : constant Name_Id := N + $;
306 Name_Async : constant Name_Id := N + $;
307 Name_Get_Active_Partition_ID : constant Name_Id := N + $;
308 Name_Get_RCI_Package_Receiver : constant Name_Id := N + $;
309 Name_Get_RCI_Package_Ref : constant Name_Id := N + $;
310 Name_Origin : constant Name_Id := N + $;
311 Name_Params : constant Name_Id := N + $;
312 Name_Partition : constant Name_Id := N + $;
313 Name_Partition_Interface : constant Name_Id := N + $;
314 Name_Ras : constant Name_Id := N + $;
315 Name_uCall : constant Name_Id := N + $;
316 Name_RCI_Name : constant Name_Id := N + $;
317 Name_Receiver : constant Name_Id := N + $;
318 Name_Rpc : constant Name_Id := N + $;
319 Name_Subp_Id : constant Name_Id := N + $;
320 Name_Operation : constant Name_Id := N + $;
321 Name_Argument : constant Name_Id := N + $;
322 Name_Arg_Modes : constant Name_Id := N + $;
323 Name_Handler : constant Name_Id := N + $;
324 Name_Target : constant Name_Id := N + $;
325 Name_Req : constant Name_Id := N + $;
326 Name_Obj_TypeCode : constant Name_Id := N + $;
327 Name_Stub : constant Name_Id := N + $;
329 -- Operator Symbol entries. The actual names have an upper case O at the
330 -- start in place of the Op_ prefix (e.g. the actual name that corresponds
331 -- to Name_Op_Abs is "Oabs").
333 First_Operator_Name : constant Name_Id := N + $;
334 Name_Op_Abs : constant Name_Id := N + $; -- "abs"
335 Name_Op_And : constant Name_Id := N + $; -- "and"
336 Name_Op_Mod : constant Name_Id := N + $; -- "mod"
337 Name_Op_Not : constant Name_Id := N + $; -- "not"
338 Name_Op_Or : constant Name_Id := N + $; -- "or"
339 Name_Op_Rem : constant Name_Id := N + $; -- "rem"
340 Name_Op_Xor : constant Name_Id := N + $; -- "xor"
341 Name_Op_Eq : constant Name_Id := N + $; -- "="
342 Name_Op_Ne : constant Name_Id := N + $; -- "/="
343 Name_Op_Lt : constant Name_Id := N + $; -- "<"
344 Name_Op_Le : constant Name_Id := N + $; -- "<="
345 Name_Op_Gt : constant Name_Id := N + $; -- ">"
346 Name_Op_Ge : constant Name_Id := N + $; -- ">="
347 Name_Op_Add : constant Name_Id := N + $; -- "+"
348 Name_Op_Subtract : constant Name_Id := N + $; -- "-"
349 Name_Op_Concat : constant Name_Id := N + $; -- "&"
350 Name_Op_Multiply : constant Name_Id := N + $; -- "*"
351 Name_Op_Divide : constant Name_Id := N + $; -- "/"
352 Name_Op_Expon : constant Name_Id := N + $; -- "**"
353 Last_Operator_Name : constant Name_Id := N + $;
355 -- Names for all pragmas recognized by GNAT. The entries with the comment
356 -- "Ada 83" are pragmas that are defined in Ada 83, but not in Ada 95.
357 -- These pragmas are fully implemented in all modes (Ada 83, Ada 95, and
358 -- Ada 2005). In Ada 95 and Ada 2005 modes, they are technically considered
359 -- to be implementation dependent pragmas.
361 -- The entries marked GNAT are pragmas that are defined by GNAT and that
362 -- are implemented in all modes (Ada 83, Ada 95, and Ada 2005). Complete
363 -- descriptions of the syntax of these implementation dependent pragmas may
364 -- be found in the appropriate section in unit Sem_Prag in file
365 -- sem-prag.adb, and they are documented in the GNAT reference manual.
367 -- The entries marked Ada 05 are Ada 2005 pragmas. They are implemented in
368 -- Ada 83 and Ada 95 mode as well, where they are technically considered to
369 -- be implementation dependent pragmas.
371 -- The entries marked Ada 12 are Ada 2012 pragmas. They are implemented in
372 -- Ada 83, Ada 95, and Ada 2005 mode as well, where they are technically
373 -- considered to be implementation dependent pragmas.
375 -- The entries marked AAMP are AAMP specific pragmas that are recognized
376 -- only in GNAT for the AAMP. They are ignored in other versions with
377 -- appropriate warnings.
379 First_Pragma_Name : constant Name_Id := N + $;
381 -- Configuration pragmas are grouped at start. Note that there is a list
382 -- of them in the GNAT UG (doc/gnat_ugn/the_gnat_compilation_model.rst),
383 -- be sure to update this list if a new configuration pragma is added.
385 Name_Ada_83 : constant Name_Id := N + $; -- GNAT
386 Name_Ada_95 : constant Name_Id := N + $; -- GNAT
387 Name_Ada_05 : constant Name_Id := N + $; -- GNAT
388 Name_Ada_2005 : constant Name_Id := N + $; -- GNAT
389 Name_Ada_12 : constant Name_Id := N + $; -- GNAT
390 Name_Ada_2012 : constant Name_Id := N + $; -- GNAT
391 Name_Ada_2020 : constant Name_Id := N + $; -- GNAT
392 Name_Allow_Integer_Address : constant Name_Id := N + $; -- GNAT
393 Name_Annotate : constant Name_Id := N + $; -- GNAT
394 Name_Assertion_Policy : constant Name_Id := N + $; -- Ada 05
395 Name_Assume_No_Invalid_Values : constant Name_Id := N + $; -- GNAT
396 Name_C_Pass_By_Copy : constant Name_Id := N + $; -- GNAT
397 Name_Check_Float_Overflow : constant Name_Id := N + $; -- GNAT
398 Name_Check_Name : constant Name_Id := N + $; -- GNAT
399 Name_Check_Policy : constant Name_Id := N + $; -- GNAT
400 Name_Compile_Time_Error : constant Name_Id := N + $; -- GNAT
401 Name_Compile_Time_Warning : constant Name_Id := N + $; -- GNAT
402 Name_Compiler_Unit : constant Name_Id := N + $; -- GNAT
403 Name_Compiler_Unit_Warning : constant Name_Id := N + $; -- GNAT
404 Name_Component_Alignment : constant Name_Id := N + $; -- GNAT
405 Name_Convention_Identifier : constant Name_Id := N + $; -- GNAT
406 Name_Debug_Policy : constant Name_Id := N + $; -- GNAT
407 Name_Detect_Blocking : constant Name_Id := N + $; -- Ada 05
409 -- Note: Default_Scalar_Storage_Order is not in this list because its name
410 -- matches the name of the corresponding attribute. However, it is included
411 -- in the definition of the type Pragma_Id, and the functions Get_Pragma_Id
412 -- and Is_Pragma_Name correctly recognize Default_Scalar_Storage_Order.
414 Name_Default_Storage_Pool : constant Name_Id := N + $; -- Ada 12
415 Name_Disable_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
416 Name_Discard_Names : constant Name_Id := N + $;
417 Name_Elaboration_Checks : constant Name_Id := N + $; -- GNAT
418 Name_Eliminate : constant Name_Id := N + $; -- GNAT
419 Name_Enable_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
420 Name_Extend_System : constant Name_Id := N + $; -- GNAT
421 Name_Extensions_Allowed : constant Name_Id := N + $; -- GNAT
422 Name_External_Name_Casing : constant Name_Id := N + $; -- GNAT
424 -- Note: Fast_Math is not in this list because its name matches the name of
425 -- the corresponding attribute. However, it is included in the definition
426 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
427 -- correctly recognize and process Fast_Math.
429 Name_Favor_Top_Level : constant Name_Id := N + $; -- GNAT
430 Name_Ignore_Pragma : constant Name_Id := N + $; -- GNAT
431 Name_Implicit_Packing : constant Name_Id := N + $; -- GNAT
432 Name_Initialize_Scalars : constant Name_Id := N + $; -- GNAT
433 Name_Interrupt_State : constant Name_Id := N + $; -- GNAT
434 Name_License : constant Name_Id := N + $; -- GNAT
435 Name_Locking_Policy : constant Name_Id := N + $;
436 Name_No_Component_Reordering : constant Name_Id := N + $; -- GNAT
437 Name_No_Heap_Finalization : constant Name_Id := N + $; -- GNAT
438 Name_No_Run_Time : constant Name_Id := N + $; -- GNAT
439 Name_No_Strict_Aliasing : constant Name_Id := N + $; -- GNAT
440 Name_Normalize_Scalars : constant Name_Id := N + $;
441 Name_Optimize_Alignment : constant Name_Id := N + $; -- GNAT
442 Name_Overflow_Mode : constant Name_Id := N + $; -- GNAT
443 Name_Overriding_Renamings : constant Name_Id := N + $; -- GNAT
444 Name_Partition_Elaboration_Policy : constant Name_Id := N + $; -- Ada 05
445 Name_Persistent_BSS : constant Name_Id := N + $; -- GNAT
446 Name_Polling : constant Name_Id := N + $; -- GNAT
447 Name_Prefix_Exception_Messages : constant Name_Id := N + $; -- GNAT
448 Name_Priority_Specific_Dispatching : constant Name_Id := N + $; -- Ada 05
449 Name_Profile : constant Name_Id := N + $; -- Ada 05
450 Name_Profile_Warnings : constant Name_Id := N + $; -- GNAT
451 Name_Propagate_Exceptions : constant Name_Id := N + $; -- GNAT
452 Name_Queuing_Policy : constant Name_Id := N + $;
453 Name_Rational : constant Name_Id := N + $; -- GNAT
454 Name_Ravenscar : constant Name_Id := N + $; -- GNAT
455 Name_Rename_Pragma : constant Name_Id := N + $; -- GNAT
456 Name_Restricted_Run_Time : constant Name_Id := N + $; -- GNAT
457 Name_Restrictions : constant Name_Id := N + $;
458 Name_Restriction_Warnings : constant Name_Id := N + $; -- GNAT
459 Name_Reviewable : constant Name_Id := N + $;
460 Name_Short_Circuit_And_Or : constant Name_Id := N + $; -- GNAT
461 Name_Short_Descriptors : constant Name_Id := N + $; -- GNAT
462 Name_Source_File_Name : constant Name_Id := N + $; -- GNAT
463 Name_Source_File_Name_Project : constant Name_Id := N + $; -- GNAT
464 Name_SPARK_Mode : constant Name_Id := N + $; -- GNAT
465 Name_Style_Checks : constant Name_Id := N + $; -- GNAT
466 Name_Suppress : constant Name_Id := N + $;
467 Name_Suppress_Exception_Locations : constant Name_Id := N + $; -- GNAT
468 Name_Task_Dispatching_Policy : constant Name_Id := N + $;
469 Name_Unevaluated_Use_Of_Old : constant Name_Id := N + $; -- GNAT
470 Name_Universal_Data : constant Name_Id := N + $; -- AAMP
471 Name_Unsuppress : constant Name_Id := N + $; -- Ada 05
472 Name_Use_VADS_Size : constant Name_Id := N + $; -- GNAT
473 Name_Validity_Checks : constant Name_Id := N + $; -- GNAT
474 Name_Warning_As_Error : constant Name_Id := N + $; -- GNAT
475 Name_Warnings : constant Name_Id := N + $; -- GNAT
476 Name_Wide_Character_Encoding : constant Name_Id := N + $; -- GNAT
477 Last_Configuration_Pragma_Name : constant Name_Id := N + $;
479 -- Remaining pragma names (non-configuration pragmas)
481 Name_Abort_Defer : constant Name_Id := N + $; -- GNAT
482 Name_Abstract_State : constant Name_Id := N + $; -- GNAT
483 Name_Acc_Data : constant Name_Id := N + $;
484 Name_Acc_Kernels : constant Name_Id := N + $;
485 Name_Acc_Loop : constant Name_Id := N + $;
486 Name_Acc_Parallel : constant Name_Id := N + $;
487 Name_All_Calls_Remote : constant Name_Id := N + $;
488 Name_Assert : constant Name_Id := N + $; -- Ada 05
489 Name_Assert_And_Cut : constant Name_Id := N + $; -- GNAT
490 Name_Assume : constant Name_Id := N + $; -- GNAT
491 Name_Async_Readers : constant Name_Id := N + $; -- GNAT
492 Name_Async_Writers : constant Name_Id := N + $; -- GNAT
493 Name_Asynchronous : constant Name_Id := N + $;
494 Name_Atomic : constant Name_Id := N + $;
495 Name_Atomic_Components : constant Name_Id := N + $;
496 Name_Attach_Handler : constant Name_Id := N + $;
497 Name_Attribute_Definition : constant Name_Id := N + $; -- GNAT
498 Name_Check : constant Name_Id := N + $; -- GNAT
499 Name_Comment : constant Name_Id := N + $; -- GNAT
500 Name_Common_Object : constant Name_Id := N + $; -- GNAT
501 Name_Complete_Representation : constant Name_Id := N + $; -- GNAT
502 Name_Complex_Representation : constant Name_Id := N + $; -- GNAT
503 Name_Constant_After_Elaboration : constant Name_Id := N + $; -- GNAT
504 Name_Contract_Cases : constant Name_Id := N + $; -- GNAT
505 Name_Controlled : constant Name_Id := N + $;
506 Name_Convention : constant Name_Id := N + $;
507 Name_CPP_Class : constant Name_Id := N + $; -- GNAT
508 Name_CPP_Constructor : constant Name_Id := N + $; -- GNAT
509 Name_CPP_Virtual : constant Name_Id := N + $; -- GNAT
510 Name_CPP_Vtable : constant Name_Id := N + $; -- GNAT
512 -- Note: CPU is not in this list because its name matches the name of
513 -- the corresponding attribute. However, it is included in the definition
514 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
515 -- correctly recognize and process CPU. CPU is a standard Ada 2012 pragma.
517 Name_Deadline_Floor : constant Name_Id := N + $; -- GNAT
518 Name_Debug : constant Name_Id := N + $; -- GNAT
519 Name_Default_Initial_Condition : constant Name_Id := N + $; -- GNAT
520 Name_Depends : constant Name_Id := N + $; -- GNAT
522 -- Note: Dispatching_Domain is not in this list because its name matches
523 -- the name of the corresponding attribute. However, it is included in the
524 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
525 -- Is_Pragma_Name correctly recognize and process Dispatching_Domain.
526 -- Dispatching_Domain is a standard Ada 2012 pragma.
528 Name_Effective_Reads : constant Name_Id := N + $; -- GNAT
529 Name_Effective_Writes : constant Name_Id := N + $; -- GNAT
530 Name_Elaborate : constant Name_Id := N + $; -- Ada 83
531 Name_Elaborate_All : constant Name_Id := N + $;
532 Name_Elaborate_Body : constant Name_Id := N + $;
533 Name_Export : constant Name_Id := N + $;
534 Name_Export_Function : constant Name_Id := N + $; -- GNAT
535 Name_Export_Object : constant Name_Id := N + $; -- GNAT
536 Name_Export_Procedure : constant Name_Id := N + $; -- GNAT
537 Name_Export_Value : constant Name_Id := N + $; -- GNAT
538 Name_Export_Valued_Procedure : constant Name_Id := N + $; -- GNAT
539 Name_Extensions_Visible : constant Name_Id := N + $; -- GNAT
540 Name_External : constant Name_Id := N + $; -- GNAT
541 Name_Finalize_Storage_Only : constant Name_Id := N + $; -- GNAT
542 Name_Ghost : constant Name_Id := N + $; -- GNAT
543 Name_Global : constant Name_Id := N + $; -- GNAT
544 Name_Ident : constant Name_Id := N + $; -- GNAT
545 Name_Implementation_Defined : constant Name_Id := N + $; -- GNAT
546 Name_Implemented : constant Name_Id := N + $; -- Ada 12
547 Name_Import : constant Name_Id := N + $;
548 Name_Import_Function : constant Name_Id := N + $; -- GNAT
549 Name_Import_Object : constant Name_Id := N + $; -- GNAT
550 Name_Import_Procedure : constant Name_Id := N + $; -- GNAT
551 Name_Import_Valued_Procedure : constant Name_Id := N + $; -- GNAT
552 Name_Independent : constant Name_Id := N + $; -- Ada 12
553 Name_Independent_Components : constant Name_Id := N + $; -- Ada 12
554 Name_Initial_Condition : constant Name_Id := N + $; -- GNAT
555 Name_Initializes : constant Name_Id := N + $; -- GNAT
556 Name_Inline : constant Name_Id := N + $;
557 Name_Inline_Always : constant Name_Id := N + $; -- GNAT
558 Name_Inline_Generic : constant Name_Id := N + $; -- GNAT
559 Name_Inspection_Point : constant Name_Id := N + $;
561 -- Note: Interface is not in this list because its name matches an Ada 05
562 -- keyword. However it is included in the definition of the type Pragma_Id,
563 -- and the functions Get_Pragma_Id and Is_Pragma_Name correctly recognize
564 -- and process Name_Interface.
566 Name_Interface_Name : constant Name_Id := N + $; -- GNAT
567 Name_Interrupt_Handler : constant Name_Id := N + $;
569 -- Note: Interrupt_Priority is not in this list because its name matches
570 -- the name of the corresponding attribute. However, it is included in the
571 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
572 -- Is_Pragma_Name correctly recognize and process Interrupt_Priority.
574 Name_Invariant : constant Name_Id := N + $; -- GNAT
575 Name_Keep_Names : constant Name_Id := N + $; -- GNAT
576 Name_Link_With : constant Name_Id := N + $; -- GNAT
577 Name_Linker_Alias : constant Name_Id := N + $; -- GNAT
578 Name_Linker_Constructor : constant Name_Id := N + $; -- GNAT
579 Name_Linker_Destructor : constant Name_Id := N + $; -- GNAT
580 Name_Linker_Options : constant Name_Id := N + $;
581 Name_Linker_Section : constant Name_Id := N + $; -- GNAT
582 Name_List : constant Name_Id := N + $;
584 -- Note: Lock_Free is not in this list because its name matches the name of
585 -- the corresponding attribute. However, it is included in the definition
586 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
587 -- correctly recognize and process Lock_Free. Lock_Free is a GNAT pragma.
589 Name_Loop_Invariant : constant Name_Id := N + $; -- GNAT
590 Name_Loop_Optimize : constant Name_Id := N + $; -- GNAT
591 Name_Loop_Variant : constant Name_Id := N + $; -- GNAT
592 Name_Machine_Attribute : constant Name_Id := N + $; -- GNAT
593 Name_Main : constant Name_Id := N + $; -- GNAT
594 Name_Main_Storage : constant Name_Id := N + $; -- GNAT
595 Name_Max_Entry_Queue_Depth : constant Name_Id := N + $; -- Ada 12
596 Name_Max_Queue_Length : constant Name_Id := N + $; -- GNAT
597 Name_Memory_Size : constant Name_Id := N + $; -- Ada 83
598 Name_No_Body : constant Name_Id := N + $; -- GNAT
599 Name_No_Elaboration_Code_All : constant Name_Id := N + $; -- GNAT
600 Name_No_Inline : constant Name_Id := N + $; -- GNAT
601 Name_No_Return : constant Name_Id := N + $; -- Ada 05
602 Name_No_Tagged_Streams : constant Name_Id := N + $; -- GNAT
603 Name_Obsolescent : constant Name_Id := N + $; -- GNAT
604 Name_Optimize : constant Name_Id := N + $;
605 Name_Ordered : constant Name_Id := N + $; -- GNAT
606 Name_Pack : constant Name_Id := N + $;
607 Name_Page : constant Name_Id := N + $;
608 Name_Part_Of : constant Name_Id := N + $; -- GNAT
609 Name_Passive : constant Name_Id := N + $; -- GNAT
610 Name_Post : constant Name_Id := N + $; -- GNAT
611 Name_Postcondition : constant Name_Id := N + $; -- GNAT
612 Name_Post_Class : constant Name_Id := N + $; -- GNAT
613 Name_Pre : constant Name_Id := N + $; -- GNAT
614 Name_Precondition : constant Name_Id := N + $; -- GNAT
615 Name_Predicate : constant Name_Id := N + $; -- GNAT
616 Name_Predicate_Failure : constant Name_Id := N + $; -- Ada 12
617 Name_Preelaborable_Initialization : constant Name_Id := N + $; -- Ada 05
618 Name_Preelaborate : constant Name_Id := N + $;
619 Name_Pre_Class : constant Name_Id := N + $; -- GNAT
621 -- Note: Priority is not in this list because its name matches the name of
622 -- the corresponding attribute. However, it is included in the definition
623 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
624 -- correctly recognize and process Priority. Priority is a standard Ada 95
627 Name_Provide_Shift_Operators : constant Name_Id := N + $; -- GNAT
628 Name_Psect_Object : constant Name_Id := N + $; -- GNAT
629 Name_Pure : constant Name_Id := N + $;
630 Name_Pure_Function : constant Name_Id := N + $; -- GNAT
631 Name_Refined_Depends : constant Name_Id := N + $; -- GNAT
632 Name_Refined_Global : constant Name_Id := N + $; -- GNAT
633 Name_Refined_Post : constant Name_Id := N + $; -- GNAT
634 Name_Refined_State : constant Name_Id := N + $; -- GNAT
635 Name_Relative_Deadline : constant Name_Id := N + $; -- Ada 05
636 Name_Remote_Access_Type : constant Name_Id := N + $; -- GNAT
637 Name_Remote_Call_Interface : constant Name_Id := N + $;
638 Name_Remote_Types : constant Name_Id := N + $;
640 -- Note: Secondary_Stack_Size is not in this list because its name matches
641 -- the name of the corresponding attribute. However, it is included in the
642 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
643 -- Is_Pragma_Name correctly recognize and process Secondary_Stack_Size.
645 Name_Share_Generic : constant Name_Id := N + $; -- GNAT
646 Name_Shared : constant Name_Id := N + $; -- Ada 83
647 Name_Shared_Passive : constant Name_Id := N + $;
648 Name_Simple_Storage_Pool_Type : constant Name_Id := N + $; -- GNAT
650 -- Note: Storage_Size is not in this list because its name matches the name
651 -- of the corresponding attribute. However, it is included in the
652 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
653 -- Is_Pragma_Name correctly recognize and process Name_Storage_Size.
655 -- Note: Storage_Unit is also omitted from the list because of a clash with
656 -- an attribute name, and is treated similarly.
658 Name_Source_Reference : constant Name_Id := N + $; -- GNAT
659 Name_Static_Elaboration_Desired : constant Name_Id := N + $; -- GNAT
660 Name_Stream_Convert : constant Name_Id := N + $; -- GNAT
661 Name_Subtitle : constant Name_Id := N + $; -- GNAT
662 Name_Suppress_All : constant Name_Id := N + $; -- GNAT
663 Name_Suppress_Debug_Info : constant Name_Id := N + $; -- GNAT
664 Name_Suppress_Initialization : constant Name_Id := N + $; -- GNAT
665 Name_System_Name : constant Name_Id := N + $; -- Ada 83
666 Name_Test_Case : constant Name_Id := N + $; -- GNAT
667 Name_Task_Info : constant Name_Id := N + $; -- GNAT
668 Name_Task_Name : constant Name_Id := N + $; -- GNAT
669 Name_Task_Storage : constant Name_Id := N + $; -- GNAT
670 Name_Thread_Local_Storage : constant Name_Id := N + $; -- GNAT
671 Name_Time_Slice : constant Name_Id := N + $; -- GNAT
672 Name_Title : constant Name_Id := N + $; -- GNAT
673 Name_Type_Invariant : constant Name_Id := N + $; -- GNAT
674 Name_Type_Invariant_Class : constant Name_Id := N + $; -- GNAT
675 Name_Unchecked_Union : constant Name_Id := N + $; -- Ada 05
676 Name_Unimplemented_Unit : constant Name_Id := N + $; -- GNAT
677 Name_Universal_Aliasing : constant Name_Id := N + $; -- GNAT
678 Name_Unmodified : constant Name_Id := N + $; -- GNAT
679 Name_Unreferenced : constant Name_Id := N + $; -- GNAT
680 Name_Unreferenced_Objects : constant Name_Id := N + $; -- GNAT
681 Name_Unreserve_All_Interrupts : constant Name_Id := N + $; -- GNAT
682 Name_Unused : constant Name_Id := N + $; -- GNAT
683 Name_Volatile : constant Name_Id := N + $;
684 Name_Volatile_Components : constant Name_Id := N + $;
685 Name_Volatile_Full_Access : constant Name_Id := N + $; -- GNAT
686 Name_Volatile_Function : constant Name_Id := N + $; -- GNAT
687 Name_Weak_External : constant Name_Id := N + $; -- GNAT
688 Last_Pragma_Name : constant Name_Id := N + $;
690 -- Language convention names for pragma Convention/Export/Import/Interface
691 -- Note that Name_C is not included in this list, since it was already
692 -- declared earlier in the context of one-character identifier names (where
693 -- the order is critical to the fast look up process).
695 -- Note: there are no convention names corresponding to the conventions
696 -- Entry and Protected, this is because these conventions cannot be
697 -- specified by a pragma.
699 First_Convention_Name : constant Name_Id := N + $;
700 Name_Ada : constant Name_Id := N + $;
701 Name_Ada_Pass_By_Copy : constant Name_Id := N + $;
702 Name_Ada_Pass_By_Reference : constant Name_Id := N + $;
703 Name_Assembler : constant Name_Id := N + $;
704 Name_COBOL : constant Name_Id := N + $;
705 Name_CPP : constant Name_Id := N + $;
706 Name_Fortran : constant Name_Id := N + $;
707 Name_Intrinsic : constant Name_Id := N + $;
708 Name_Stdcall : constant Name_Id := N + $;
709 Name_Stubbed : constant Name_Id := N + $;
710 Last_Convention_Name : constant Name_Id := N + $;
712 -- The following names are preset as synonyms for Assembler
714 Name_Asm : constant Name_Id := N + $;
715 Name_Assembly : constant Name_Id := N + $;
717 -- The following names are preset as synonyms for C
719 Name_Default : constant Name_Id := N + $;
720 -- Name_External (previously defined as pragma)
722 -- The following names are preset as synonyms for CPP
724 Name_C_Plus_Plus : constant Name_Id := N + $;
726 -- The following names are present as synonyms for Stdcall
728 Name_DLL : constant Name_Id := N + $;
729 Name_Win32 : constant Name_Id := N + $;
731 -- Other special names used in processing attributes and pragmas
733 Name_Allow : constant Name_Id := N + $;
734 Name_Amount : constant Name_Id := N + $;
735 Name_As_Is : constant Name_Id := N + $;
736 Name_Attr_Long_Float : constant Name_Id := N + $;
737 Name_Assertion : constant Name_Id := N + $;
738 Name_Assertions : constant Name_Id := N + $;
739 Name_Attribute_Name : constant Name_Id := N + $;
740 Name_Body_File_Name : constant Name_Id := N + $;
741 Name_Boolean_Entry_Barriers : constant Name_Id := N + $;
742 Name_By_Any : constant Name_Id := N + $;
743 Name_By_Entry : constant Name_Id := N + $;
744 Name_By_Protected_Procedure : constant Name_Id := N + $;
745 Name_Casing : constant Name_Id := N + $;
746 Name_Check_All : constant Name_Id := N + $;
747 Name_Code : constant Name_Id := N + $;
748 Name_Component : constant Name_Id := N + $;
749 Name_Component_Size_4 : constant Name_Id := N + $;
750 Name_Copy : constant Name_Id := N + $;
751 Name_D_Float : constant Name_Id := N + $;
752 Name_Decreases : constant Name_Id := N + $;
753 Name_Disable : constant Name_Id := N + $;
754 Name_Dot_Replacement : constant Name_Id := N + $;
755 Name_Dynamic : constant Name_Id := N + $;
756 Name_Eliminated : constant Name_Id := N + $;
757 Name_Ensures : constant Name_Id := N + $;
758 Name_Entity : constant Name_Id := N + $;
759 Name_Entry_Count : constant Name_Id := N + $;
760 Name_External_Name : constant Name_Id := N + $;
761 Name_First_Optional_Parameter : constant Name_Id := N + $;
762 Name_Force : constant Name_Id := N + $;
763 Name_Form : constant Name_Id := N + $;
764 Name_G_Float : constant Name_Id := N + $;
765 Name_Gcc : constant Name_Id := N + $;
766 Name_General : constant Name_Id := N + $;
767 Name_Gnat : constant Name_Id := N + $;
768 Name_Gnat_Annotate : constant Name_Id := N + $;
769 Name_Gnat_Extended_Ravenscar : constant Name_Id := N + $;
770 Name_Gnat_Ravenscar_EDF : constant Name_Id := N + $;
771 Name_Gnatprove : constant Name_Id := N + $;
772 Name_GPL : constant Name_Id := N + $;
773 Name_High_Order_First : constant Name_Id := N + $;
774 Name_IEEE_Float : constant Name_Id := N + $;
775 Name_Ignore : constant Name_Id := N + $;
776 Name_In_Out : constant Name_Id := N + $;
777 Name_Increases : constant Name_Id := N + $;
778 Name_Info : constant Name_Id := N + $;
779 Name_Internal : constant Name_Id := N + $;
780 Name_Ivdep : constant Name_Id := N + $;
781 Name_Link_Name : constant Name_Id := N + $;
782 Name_Low_Order_First : constant Name_Id := N + $;
783 Name_Lowercase : constant Name_Id := N + $;
784 Name_Max_Entry_Queue_Length : constant Name_Id := N + $;
785 Name_Max_Size : constant Name_Id := N + $;
786 Name_Mechanism : constant Name_Id := N + $;
787 Name_Message : constant Name_Id := N + $;
788 Name_Minimized : constant Name_Id := N + $;
789 Name_Mixedcase : constant Name_Id := N + $;
790 Name_Mode : constant Name_Id := N + $;
791 Name_Modified_GPL : constant Name_Id := N + $;
792 Name_Name : constant Name_Id := N + $;
793 Name_NCA : constant Name_Id := N + $;
794 Name_New_Name : constant Name_Id := N + $;
795 Name_No : constant Name_Id := N + $;
796 Name_No_Access_Parameter_Allocators : constant Name_Id := N + $;
797 Name_No_Coextensions : constant Name_Id := N + $;
798 Name_No_Dependence : constant Name_Id := N + $;
799 Name_No_Dynamic_Attachment : constant Name_Id := N + $;
800 Name_No_Dynamic_Interrupts : constant Name_Id := N + $;
801 Name_No_Elaboration_Code : constant Name_Id := N + $;
802 Name_No_Implementation_Extensions : constant Name_Id := N + $;
803 Name_No_Obsolescent_Features : constant Name_Id := N + $;
804 Name_No_Requeue : constant Name_Id := N + $;
805 Name_No_Requeue_Statements : constant Name_Id := N + $;
806 Name_No_Specification_Of_Aspect : constant Name_Id := N + $;
807 Name_No_Standard_Allocators_After_Elaboration : constant Name_Id := N + $;
808 Name_No_Task_Attributes : constant Name_Id := N + $;
809 Name_No_Task_Attributes_Package : constant Name_Id := N + $;
810 Name_No_Use_Of_Attribute : constant Name_Id := N + $;
811 Name_No_Use_Of_Entity : constant Name_Id := N + $;
812 Name_No_Use_Of_Pragma : constant Name_Id := N + $;
813 Name_No_Unroll : constant Name_Id := N + $;
814 Name_No_Vector : constant Name_Id := N + $;
815 Name_Nominal : constant Name_Id := N + $;
816 Name_Non_Volatile : constant Name_Id := N + $;
817 Name_On : constant Name_Id := N + $;
818 Name_Optional : constant Name_Id := N + $;
819 Name_Policy : constant Name_Id := N + $;
820 Name_Parameter_Types : constant Name_Id := N + $;
821 Name_Proof_In : constant Name_Id := N + $;
822 Name_Reason : constant Name_Id := N + $;
823 Name_Reference : constant Name_Id := N + $;
824 Name_Renamed : constant Name_Id := N + $;
825 Name_Requires : constant Name_Id := N + $;
826 Name_Restricted : constant Name_Id := N + $;
827 Name_Result_Mechanism : constant Name_Id := N + $;
828 Name_Result_Type : constant Name_Id := N + $;
829 Name_Robustness : constant Name_Id := N + $;
830 Name_Runtime : constant Name_Id := N + $;
831 Name_SB : constant Name_Id := N + $;
832 Name_Section : constant Name_Id := N + $;
833 Name_Semaphore : constant Name_Id := N + $;
834 Name_Simple_Barriers : constant Name_Id := N + $;
835 Name_SPARK : constant Name_Id := N + $;
836 Name_SPARK_05 : constant Name_Id := N + $;
837 Name_Spec_File_Name : constant Name_Id := N + $;
838 Name_State : constant Name_Id := N + $;
839 Name_Statement_Assertions : constant Name_Id := N + $;
840 Name_Static : constant Name_Id := N + $;
841 Name_Stack_Size : constant Name_Id := N + $;
842 Name_Strict : constant Name_Id := N + $;
843 Name_Subunit_File_Name : constant Name_Id := N + $;
844 Name_Suppressed : constant Name_Id := N + $;
845 Name_Suppressible : constant Name_Id := N + $;
846 Name_Synchronous : constant Name_Id := N + $;
847 Name_Task_Stack_Size_Default : constant Name_Id := N + $;
848 Name_Task_Type : constant Name_Id := N + $;
849 Name_Time_Slicing_Enabled : constant Name_Id := N + $;
850 Name_Top_Guard : constant Name_Id := N + $;
851 Name_UBA : constant Name_Id := N + $;
852 Name_UBS : constant Name_Id := N + $;
853 Name_UBSB : constant Name_Id := N + $;
854 Name_Unit_Name : constant Name_Id := N + $;
855 Name_Unknown : constant Name_Id := N + $;
856 Name_Unrestricted : constant Name_Id := N + $;
857 Name_Unroll : constant Name_Id := N + $;
858 Name_Uppercase : constant Name_Id := N + $;
859 Name_User : constant Name_Id := N + $;
860 Name_Variant : constant Name_Id := N + $;
861 Name_VAX_Float : constant Name_Id := N + $;
862 Name_Vector : constant Name_Id := N + $;
863 Name_Vtable_Ptr : constant Name_Id := N + $;
864 Name_Warn : constant Name_Id := N + $;
865 Name_Working_Storage : constant Name_Id := N + $;
867 -- OpenAcc-specific clause names for Parallel, Kernels, Data
869 Name_Acc_If : constant Name_Id := N + $;
870 Name_Acc_Private : constant Name_Id := N + $;
871 Name_Attach : constant Name_Id := N + $;
872 Name_Copy_In : constant Name_Id := N + $;
873 Name_Copy_Out : constant Name_Id := N + $;
874 Name_Create : constant Name_Id := N + $;
875 Name_Delete : constant Name_Id := N + $;
876 Name_Detach : constant Name_Id := N + $;
877 Name_Device_Ptr : constant Name_Id := N + $;
878 Name_Device_Type : constant Name_Id := N + $;
879 Name_First_Private : constant Name_Id := N + $;
880 Name_No_Create : constant Name_Id := N + $;
881 Name_Num_Gangs : constant Name_Id := N + $;
882 Name_Num_Workers : constant Name_Id := N + $;
883 Name_Present : constant Name_Id := N + $;
884 Name_Reduction : constant Name_Id := N + $;
885 Name_Vector_Length : constant Name_Id := N + $;
886 Name_Wait : constant Name_Id := N + $;
890 Name_Auto : constant Name_Id := N + $;
891 Name_Collapse : constant Name_Id := N + $;
892 Name_Gang : constant Name_Id := N + $;
893 Name_Seq : constant Name_Id := N + $;
894 Name_Tile : constant Name_Id := N + $;
895 Name_Worker : constant Name_Id := N + $;
897 -- Names of recognized attributes. The entries with the comment "Ada 83"
898 -- are attributes that are defined in Ada 83, but not in Ada 95. These
899 -- attributes are implemented in all Ada modes in GNAT.
901 -- The entries marked GNAT are attributes that are defined by GNAT and
902 -- implemented in all Ada modes. Full descriptions of these implementation
903 -- dependent attributes may be found in the appropriate Sem_Attr section.
905 First_Attribute_Name : constant Name_Id := N + $;
906 Name_Abort_Signal : constant Name_Id := N + $; -- GNAT
907 Name_Access : constant Name_Id := N + $;
908 Name_Address : constant Name_Id := N + $;
909 Name_Address_Size : constant Name_Id := N + $; -- GNAT
910 Name_Aft : constant Name_Id := N + $;
911 Name_Alignment : constant Name_Id := N + $;
912 Name_Asm_Input : constant Name_Id := N + $; -- GNAT
913 Name_Asm_Output : constant Name_Id := N + $; -- GNAT
914 Name_Atomic_Always_Lock_Free : constant Name_Id := N + $; -- GNAT
915 Name_Bit : constant Name_Id := N + $; -- GNAT
916 Name_Bit_Order : constant Name_Id := N + $;
917 Name_Bit_Position : constant Name_Id := N + $; -- GNAT
918 Name_Body_Version : constant Name_Id := N + $;
919 Name_Callable : constant Name_Id := N + $;
920 Name_Caller : constant Name_Id := N + $;
921 Name_Code_Address : constant Name_Id := N + $; -- GNAT
922 Name_Compiler_Version : constant Name_Id := N + $; -- GNAT
923 Name_Component_Size : constant Name_Id := N + $;
924 Name_Compose : constant Name_Id := N + $;
925 Name_Constant_Indexing : constant Name_Id := N + $; -- GNAT
926 Name_Constrained : constant Name_Id := N + $;
927 Name_Count : constant Name_Id := N + $;
928 Name_Default_Bit_Order : constant Name_Id := N + $; -- GNAT
929 Name_Default_Scalar_Storage_Order : constant Name_Id := N + $; -- GNAT
930 Name_Default_Iterator : constant Name_Id := N + $; -- GNAT
931 Name_Definite : constant Name_Id := N + $;
932 Name_Delta : constant Name_Id := N + $;
933 Name_Denorm : constant Name_Id := N + $;
934 Name_Deref : constant Name_Id := N + $; -- GNAT
935 Name_Descriptor_Size : constant Name_Id := N + $;
936 Name_Digits : constant Name_Id := N + $;
937 Name_Elaborated : constant Name_Id := N + $; -- GNAT
938 Name_Emax : constant Name_Id := N + $; -- Ada 83
939 Name_Enabled : constant Name_Id := N + $; -- GNAT
940 Name_Enum_Rep : constant Name_Id := N + $; -- GNAT
941 Name_Enum_Val : constant Name_Id := N + $; -- GNAT
942 Name_Epsilon : constant Name_Id := N + $; -- Ada 83
943 Name_Exponent : constant Name_Id := N + $;
944 Name_External_Tag : constant Name_Id := N + $;
945 Name_Fast_Math : constant Name_Id := N + $; -- GNAT
946 Name_Finalization_Size : constant Name_Id := N + $; -- GNAT
947 Name_First : constant Name_Id := N + $;
948 Name_First_Bit : constant Name_Id := N + $;
949 Name_First_Valid : constant Name_Id := N + $; -- Ada 12
950 Name_Fixed_Value : constant Name_Id := N + $; -- GNAT
951 Name_Fore : constant Name_Id := N + $;
952 Name_Has_Access_Values : constant Name_Id := N + $; -- GNAT
953 Name_Has_Discriminants : constant Name_Id := N + $; -- GNAT
954 Name_Has_Same_Storage : constant Name_Id := N + $; -- Ada 12
955 Name_Has_Tagged_Values : constant Name_Id := N + $; -- GNAT
956 Name_Identity : constant Name_Id := N + $;
957 Name_Img : constant Name_Id := N + $; -- GNAT
958 Name_Implicit_Dereference : constant Name_Id := N + $; -- GNAT
959 Name_Integer_Value : constant Name_Id := N + $; -- GNAT
960 Name_Invalid_Value : constant Name_Id := N + $; -- GNAT
961 Name_Iterator_Element : constant Name_Id := N + $; -- GNAT
962 Name_Iterable : constant Name_Id := N + $; -- GNAT
963 Name_Large : constant Name_Id := N + $; -- Ada 83
964 Name_Last : constant Name_Id := N + $;
965 Name_Last_Bit : constant Name_Id := N + $;
966 Name_Last_Valid : constant Name_Id := N + $; -- Ada 12
967 Name_Leading_Part : constant Name_Id := N + $;
968 Name_Length : constant Name_Id := N + $;
969 Name_Library_Level : constant Name_Id := N + $; -- GNAT
970 Name_Lock_Free : constant Name_Id := N + $; -- GNAT
971 Name_Loop_Entry : constant Name_Id := N + $; -- GNAT
972 Name_Machine_Emax : constant Name_Id := N + $;
973 Name_Machine_Emin : constant Name_Id := N + $;
974 Name_Machine_Mantissa : constant Name_Id := N + $;
975 Name_Machine_Overflows : constant Name_Id := N + $;
976 Name_Machine_Radix : constant Name_Id := N + $;
977 Name_Machine_Rounding : constant Name_Id := N + $; -- Ada 05
978 Name_Machine_Rounds : constant Name_Id := N + $;
979 Name_Machine_Size : constant Name_Id := N + $; -- GNAT
980 Name_Mantissa : constant Name_Id := N + $; -- Ada 83
981 Name_Max_Alignment_For_Allocation : constant Name_Id := N + $; -- Ada 12
982 Name_Max_Size_In_Storage_Elements : constant Name_Id := N + $;
983 Name_Maximum_Alignment : constant Name_Id := N + $; -- GNAT
984 Name_Mechanism_Code : constant Name_Id := N + $; -- GNAT
985 Name_Mod : constant Name_Id := N + $; -- Ada 05
986 Name_Model_Emin : constant Name_Id := N + $;
987 Name_Model_Epsilon : constant Name_Id := N + $;
988 Name_Model_Mantissa : constant Name_Id := N + $;
989 Name_Model_Small : constant Name_Id := N + $;
990 Name_Modulus : constant Name_Id := N + $;
991 Name_Null_Parameter : constant Name_Id := N + $; -- GNAT
992 Name_Object_Size : constant Name_Id := N + $; -- GNAT
993 Name_Old : constant Name_Id := N + $; -- GNAT
994 Name_Overlaps_Storage : constant Name_Id := N + $; -- GNAT
995 Name_Partition_ID : constant Name_Id := N + $;
996 Name_Passed_By_Reference : constant Name_Id := N + $; -- GNAT
997 Name_Pool_Address : constant Name_Id := N + $; -- GNAT
998 Name_Pos : constant Name_Id := N + $;
999 Name_Position : constant Name_Id := N + $;
1000 Name_Priority : constant Name_Id := N + $; -- Ada 05
1001 Name_Range : constant Name_Id := N + $;
1002 Name_Range_Length : constant Name_Id := N + $; -- GNAT
1003 Name_Ref : constant Name_Id := N + $; -- GNAT
1004 Name_Restriction_Set : constant Name_Id := N + $; -- GNAT
1005 Name_Result : constant Name_Id := N + $; -- GNAT
1006 Name_Round : constant Name_Id := N + $;
1007 Name_Safe_Emax : constant Name_Id := N + $; -- Ada 83
1008 Name_Safe_First : constant Name_Id := N + $;
1009 Name_Safe_Large : constant Name_Id := N + $; -- Ada 83
1010 Name_Safe_Last : constant Name_Id := N + $;
1011 Name_Safe_Small : constant Name_Id := N + $; -- Ada 83
1012 Name_Scalar_Storage_Order : constant Name_Id := N + $; -- GNAT
1013 Name_Scale : constant Name_Id := N + $;
1014 Name_Scaling : constant Name_Id := N + $;
1015 Name_Signed_Zeros : constant Name_Id := N + $;
1016 Name_Size : constant Name_Id := N + $;
1017 Name_Small : constant Name_Id := N + $; -- Ada 83
1018 Name_Storage_Size : constant Name_Id := N + $;
1019 Name_Storage_Unit : constant Name_Id := N + $; -- GNAT
1020 Name_Stream_Size : constant Name_Id := N + $; -- Ada 05
1021 Name_System_Allocator_Alignment : constant Name_Id := N + $; -- GNAT
1022 Name_Tag : constant Name_Id := N + $;
1023 Name_Target_Name : constant Name_Id := N + $; -- GNAT
1024 Name_Terminated : constant Name_Id := N + $;
1025 Name_To_Address : constant Name_Id := N + $; -- GNAT
1026 Name_Type_Class : constant Name_Id := N + $; -- GNAT
1027 Name_Type_Key : constant Name_Id := N + $; -- GNAT
1028 Name_Unbiased_Rounding : constant Name_Id := N + $;
1029 Name_Unchecked_Access : constant Name_Id := N + $;
1030 Name_Unconstrained_Array : constant Name_Id := N + $; -- GNAT
1031 Name_Universal_Literal_String : constant Name_Id := N + $; -- GNAT
1032 Name_Unrestricted_Access : constant Name_Id := N + $; -- GNAT
1033 Name_Update : constant Name_Id := N + $; -- GNAT
1034 Name_VADS_Size : constant Name_Id := N + $; -- GNAT
1035 Name_Val : constant Name_Id := N + $;
1036 Name_Valid : constant Name_Id := N + $;
1037 Name_Valid_Scalars : constant Name_Id := N + $; -- GNAT
1038 Name_Value_Size : constant Name_Id := N + $; -- GNAT
1039 Name_Variable_Indexing : constant Name_Id := N + $; -- GNAT
1040 Name_Version : constant Name_Id := N + $;
1041 Name_Wchar_T_Size : constant Name_Id := N + $; -- GNAT
1042 Name_Wide_Wide_Width : constant Name_Id := N + $; -- Ada 05
1043 Name_Wide_Width : constant Name_Id := N + $;
1044 Name_Width : constant Name_Id := N + $;
1045 Name_Word_Size : constant Name_Id := N + $; -- GNAT
1047 -- Attributes that designate attributes returning renamable functions,
1048 -- i.e. functions that return other than a universal value and that
1049 -- have non-universal arguments.
1051 First_Renamable_Function_Attribute : constant Name_Id := N + $;
1052 Name_Adjacent : constant Name_Id := N + $;
1053 Name_Ceiling : constant Name_Id := N + $;
1054 Name_Copy_Sign : constant Name_Id := N + $;
1055 Name_Floor : constant Name_Id := N + $;
1056 Name_Fraction : constant Name_Id := N + $;
1057 Name_From_Any : constant Name_Id := N + $; -- GNAT
1058 Name_Image : constant Name_Id := N + $;
1059 Name_Input : constant Name_Id := N + $;
1060 Name_Machine : constant Name_Id := N + $;
1061 Name_Max : constant Name_Id := N + $;
1062 Name_Min : constant Name_Id := N + $;
1063 Name_Model : constant Name_Id := N + $;
1064 Name_Pred : constant Name_Id := N + $;
1065 Name_Remainder : constant Name_Id := N + $;
1066 Name_Rounding : constant Name_Id := N + $;
1067 Name_Succ : constant Name_Id := N + $;
1068 Name_To_Any : constant Name_Id := N + $; -- GNAT
1069 Name_Truncation : constant Name_Id := N + $;
1070 Name_TypeCode : constant Name_Id := N + $; -- GNAT
1071 Name_Value : constant Name_Id := N + $;
1072 Name_Wide_Image : constant Name_Id := N + $;
1073 Name_Wide_Wide_Image : constant Name_Id := N + $;
1074 Name_Wide_Value : constant Name_Id := N + $;
1075 Name_Wide_Wide_Value : constant Name_Id := N + $;
1076 Last_Renamable_Function_Attribute : constant Name_Id := N + $;
1078 -- Attributes that designate procedures
1080 First_Procedure_Attribute : constant Name_Id := N + $;
1081 Name_Output : constant Name_Id := N + $;
1082 Name_Read : constant Name_Id := N + $;
1083 Name_Write : constant Name_Id := N + $;
1084 Last_Procedure_Attribute : constant Name_Id := N + $;
1086 -- Remaining attributes are ones that return entities
1088 -- Note that Elab_Subp_Body is not considered to be a valid attribute name
1089 -- unless we are operating in CodePeer mode.
1091 First_Entity_Attribute_Name : constant Name_Id := N + $;
1092 Name_Elab_Body : constant Name_Id := N + $; -- GNAT
1093 Name_Elab_Spec : constant Name_Id := N + $; -- GNAT
1094 Name_Elab_Subp_Body : constant Name_Id := N + $; -- GNAT
1095 Name_Simple_Storage_Pool : constant Name_Id := N + $; -- GNAT
1096 Name_Storage_Pool : constant Name_Id := N + $;
1098 -- These attributes are the ones that return types
1100 First_Type_Attribute_Name : constant Name_Id := N + $;
1101 Name_Base : constant Name_Id := N + $;
1102 Name_Class : constant Name_Id := N + $;
1103 Name_Stub_Type : constant Name_Id := N + $; -- GNAT
1104 Last_Type_Attribute_Name : constant Name_Id := N + $;
1105 Last_Entity_Attribute_Name : constant Name_Id := N + $;
1106 Last_Attribute_Name : constant Name_Id := N + $;
1108 -- Names of internal attributes. They are not real attributes but special
1109 -- names used internally by GNAT in order to deal with delayed aspects
1110 -- (Aspect_CPU, Aspect_Dispatching_Domain, Aspect_Interrupt_Priority,
1111 -- Aspect_Secondary_Stack_Size) that don't have corresponding pragmas or
1112 -- user-referenceable attributes.
1114 -- It is convenient to have these internal attributes available for
1115 -- processing the aspects, since the normal approach is to convert an
1116 -- aspect into its corresponding pragma or attribute specification.
1118 -- These attributes do have Attribute_Id values so that case statements
1119 -- on Attribute_Id include these cases, but they are NOT included in the
1120 -- Attribute_Name subtype defined above, which is typically used in the
1121 -- front end for checking syntax of submitted programs (where the use of
1122 -- internal attributes is not permitted).
1124 First_Internal_Attribute_Name : constant Name_Id := N + $;
1125 Name_CPU : constant Name_Id := N + $;
1126 Name_Dispatching_Domain : constant Name_Id := N + $;
1127 Name_Interrupt_Priority : constant Name_Id := N + $;
1128 Name_Secondary_Stack_Size : constant Name_Id := N + $; -- GNAT
1129 Last_Internal_Attribute_Name : constant Name_Id := N + $;
1131 -- Names of recognized locking policy identifiers
1133 First_Locking_Policy_Name : constant Name_Id := N + $;
1134 Name_Ceiling_Locking : constant Name_Id := N + $;
1135 Name_Inheritance_Locking : constant Name_Id := N + $;
1136 Name_Concurrent_Readers_Locking : constant Name_Id := N + $; -- GNAT
1137 Last_Locking_Policy_Name : constant Name_Id := N + $;
1139 -- Names of recognized queuing policy identifiers
1141 -- Note: policies are identified by the first character of the name (e.g. F
1142 -- for FIFO_Queuing). If new policy names are added, the first character
1143 -- must be distinct.
1145 First_Queuing_Policy_Name : constant Name_Id := N + $;
1146 Name_FIFO_Queuing : constant Name_Id := N + $;
1147 Name_Priority_Queuing : constant Name_Id := N + $;
1148 Last_Queuing_Policy_Name : constant Name_Id := N + $;
1150 -- Names of recognized task dispatching policy identifiers
1152 -- Note: policies are identified by the first character of the name (e.g. F
1153 -- for FIFO_Within_Priorities). If new policy names are added, the first
1154 -- character must be distinct.
1156 First_Task_Dispatching_Policy_Name : constant Name_Id := N + $;
1157 Name_EDF_Across_Priorities : constant Name_Id := N + $;
1158 Name_FIFO_Within_Priorities : constant Name_Id := N + $;
1159 Name_Non_Preemptive_FIFO_Within_Priorities : constant Name_Id := N + $;
1160 Name_Round_Robin_Within_Priorities : constant Name_Id := N + $;
1161 Last_Task_Dispatching_Policy_Name : constant Name_Id := N + $;
1163 -- Names of recognized partition elaboration policy identifiers
1165 -- Note: policies are identified by the first character of the name (e.g. S
1166 -- for Sequential). If new policy names are added, the first character must
1169 First_Partition_Elaboration_Policy_Name : constant Name_Id := N + $;
1170 Name_Concurrent : constant Name_Id := N + $;
1171 Name_Sequential : constant Name_Id := N + $;
1172 Last_Partition_Elaboration_Policy_Name : constant Name_Id := N + $;
1174 -- Names of recognized scalar families for pragma Initialize_Scalars
1176 Name_Short_Float : constant Name_Id := N + $; -- GNAT
1177 Name_Float : constant Name_Id := N + $; -- GNAT
1178 Name_Long_Float : constant Name_Id := N + $; -- GNAT
1179 Name_Long_Long_Float : constant Name_Id := N + $; -- GNAT
1180 Name_Signed_8 : constant Name_Id := N + $; -- GNAT
1181 Name_Signed_16 : constant Name_Id := N + $; -- GNAT
1182 Name_Signed_32 : constant Name_Id := N + $; -- GNAT
1183 Name_Signed_64 : constant Name_Id := N + $; -- GNAT
1184 Name_Unsigned_8 : constant Name_Id := N + $; -- GNAT
1185 Name_Unsigned_16 : constant Name_Id := N + $; -- GNAT
1186 Name_Unsigned_32 : constant Name_Id := N + $; -- GNAT
1187 Name_Unsigned_64 : constant Name_Id := N + $; -- GNAT
1189 subtype Scalar_Id is Name_Id range
1190 Name_Short_Float .. Name_Unsigned_64;
1192 subtype Float_Scalar_Id is Name_Id range
1193 Name_Short_Float .. Name_Long_Long_Float;
1195 subtype Integer_Scalar_Id is Name_Id range
1196 Name_Signed_8 .. Name_Unsigned_64;
1198 -- Names of recognized checks for pragma Suppress
1200 -- Note: the name Atomic_Synchronization can only be specified internally
1201 -- as a result of using pragma Enable/Disable_Atomic_Synchronization.
1203 First_Check_Name : constant Name_Id := N + $;
1204 Name_Access_Check : constant Name_Id := N + $;
1205 Name_Accessibility_Check : constant Name_Id := N + $;
1206 Name_Alignment_Check : constant Name_Id := N + $; -- GNAT
1207 Name_Allocation_Check : constant Name_Id := N + $;
1208 Name_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
1209 Name_Discriminant_Check : constant Name_Id := N + $;
1210 Name_Division_Check : constant Name_Id := N + $;
1211 Name_Duplicated_Tag_Check : constant Name_Id := N + $; -- GNAT
1212 Name_Elaboration_Check : constant Name_Id := N + $;
1213 Name_Index_Check : constant Name_Id := N + $;
1214 Name_Length_Check : constant Name_Id := N + $;
1215 Name_Overflow_Check : constant Name_Id := N + $;
1216 Name_Predicate_Check : constant Name_Id := N + $; -- GNAT
1217 Name_Range_Check : constant Name_Id := N + $;
1218 Name_Storage_Check : constant Name_Id := N + $;
1219 Name_Tag_Check : constant Name_Id := N + $;
1220 Name_Validity_Check : constant Name_Id := N + $; -- GNAT
1221 Name_Container_Checks : constant Name_Id := N + $; -- GNAT
1222 Name_Tampering_Check : constant Name_Id := N + $; -- GNAT
1223 Name_All_Checks : constant Name_Id := N + $;
1224 Last_Check_Name : constant Name_Id := N + $;
1226 -- Ada 83 reserved words, excluding those already declared in the attribute
1227 -- list (Access, Delta, Digits, Mod, Range).
1229 Name_Abort : constant Name_Id := N + $;
1230 Name_Abs : constant Name_Id := N + $;
1231 Name_Accept : constant Name_Id := N + $;
1232 Name_And : constant Name_Id := N + $;
1233 Name_All : constant Name_Id := N + $;
1234 Name_Array : constant Name_Id := N + $;
1235 Name_At : constant Name_Id := N + $;
1236 Name_Begin : constant Name_Id := N + $;
1237 Name_Body : constant Name_Id := N + $;
1238 Name_Case : constant Name_Id := N + $;
1239 Name_Constant : constant Name_Id := N + $;
1240 Name_Declare : constant Name_Id := N + $;
1241 Name_Delay : constant Name_Id := N + $;
1242 Name_Do : constant Name_Id := N + $;
1243 Name_Else : constant Name_Id := N + $;
1244 Name_Elsif : constant Name_Id := N + $;
1245 Name_End : constant Name_Id := N + $;
1246 Name_Entry : constant Name_Id := N + $;
1247 Name_Exception : constant Name_Id := N + $;
1248 Name_Exit : constant Name_Id := N + $;
1249 Name_For : constant Name_Id := N + $;
1250 Name_Function : constant Name_Id := N + $;
1251 Name_Generic : constant Name_Id := N + $;
1252 Name_Goto : constant Name_Id := N + $;
1253 Name_If : constant Name_Id := N + $;
1254 Name_In : constant Name_Id := N + $;
1255 Name_Is : constant Name_Id := N + $;
1256 Name_Limited : constant Name_Id := N + $;
1257 Name_Loop : constant Name_Id := N + $;
1258 Name_New : constant Name_Id := N + $;
1259 Name_Not : constant Name_Id := N + $;
1260 Name_Null : constant Name_Id := N + $;
1261 Name_Of : constant Name_Id := N + $;
1262 Name_Or : constant Name_Id := N + $;
1263 Name_Others : constant Name_Id := N + $;
1264 Name_Out : constant Name_Id := N + $;
1265 Name_Package : constant Name_Id := N + $;
1266 Name_Pragma : constant Name_Id := N + $;
1267 Name_Private : constant Name_Id := N + $;
1268 Name_Procedure : constant Name_Id := N + $;
1269 Name_Raise : constant Name_Id := N + $;
1270 Name_Record : constant Name_Id := N + $;
1271 Name_Rem : constant Name_Id := N + $;
1272 Name_Renames : constant Name_Id := N + $;
1273 Name_Return : constant Name_Id := N + $;
1274 Name_Reverse : constant Name_Id := N + $;
1275 Name_Select : constant Name_Id := N + $;
1276 Name_Separate : constant Name_Id := N + $;
1277 Name_Subtype : constant Name_Id := N + $;
1278 Name_Task : constant Name_Id := N + $;
1279 Name_Terminate : constant Name_Id := N + $;
1280 Name_Then : constant Name_Id := N + $;
1281 Name_Type : constant Name_Id := N + $;
1282 Name_Use : constant Name_Id := N + $;
1283 Name_When : constant Name_Id := N + $;
1284 Name_While : constant Name_Id := N + $;
1285 Name_With : constant Name_Id := N + $;
1286 Name_Xor : constant Name_Id := N + $;
1288 -- Names of intrinsic subprograms
1290 -- Note: Asm is missing from this list, since Asm is a legitimate
1291 -- convention name. So is To_Address, which is a GNAT attribute.
1293 First_Intrinsic_Name : constant Name_Id := N + $;
1294 Name_Compilation_ISO_Date : constant Name_Id := N + $;
1295 Name_Compilation_Date : constant Name_Id := N + $;
1296 Name_Compilation_Time : constant Name_Id := N + $;
1297 Name_Divide : constant Name_Id := N + $;
1298 Name_Enclosing_Entity : constant Name_Id := N + $;
1299 Name_Exception_Information : constant Name_Id := N + $;
1300 Name_Exception_Message : constant Name_Id := N + $;
1301 Name_Exception_Name : constant Name_Id := N + $;
1302 Name_File : constant Name_Id := N + $;
1303 Name_Generic_Dispatching_Constructor : constant Name_Id := N + $;
1304 Name_Import_Address : constant Name_Id := N + $;
1305 Name_Import_Largest_Value : constant Name_Id := N + $;
1306 Name_Import_Value : constant Name_Id := N + $;
1307 Name_Is_Negative : constant Name_Id := N + $;
1308 Name_Line : constant Name_Id := N + $;
1309 Name_Rotate_Left : constant Name_Id := N + $;
1310 Name_Rotate_Right : constant Name_Id := N + $;
1311 Name_Shift_Left : constant Name_Id := N + $;
1312 Name_Shift_Right : constant Name_Id := N + $;
1313 Name_Shift_Right_Arithmetic : constant Name_Id := N + $;
1314 Name_Source_Location : constant Name_Id := N + $;
1315 Name_Unchecked_Conversion : constant Name_Id := N + $;
1316 Name_Unchecked_Deallocation : constant Name_Id := N + $;
1317 Name_To_Pointer : constant Name_Id := N + $;
1318 Last_Intrinsic_Name : constant Name_Id := N + $;
1320 -- Names used in processing intrinsic calls
1322 Name_Free : constant Name_Id := N + $;
1324 -- Ada 95 reserved words
1326 First_95_Reserved_Word : constant Name_Id := N + $;
1327 Name_Abstract : constant Name_Id := N + $;
1328 Name_Aliased : constant Name_Id := N + $;
1329 Name_Protected : constant Name_Id := N + $;
1330 Name_Until : constant Name_Id := N + $;
1331 Name_Requeue : constant Name_Id := N + $;
1332 Name_Tagged : constant Name_Id := N + $;
1333 Last_95_Reserved_Word : constant Name_Id := N + $;
1335 subtype Ada_95_Reserved_Words is
1336 Name_Id range First_95_Reserved_Word .. Last_95_Reserved_Word;
1338 -- Miscellaneous names used in semantic checking
1340 Name_Raise_Exception : constant Name_Id := N + $;
1342 -- Additional reserved words and identifiers used in GNAT Project Files
1343 -- Note that Name_External is already previously declared.
1345 -- Names with a -- GB annotation are only used in gprbuild or gprclean
1347 Name_Active : constant Name_Id := N + $;
1348 Name_Aggregate : constant Name_Id := N + $;
1349 Name_Archive_Builder : constant Name_Id := N + $;
1350 Name_Archive_Builder_Append_Option : constant Name_Id := N + $;
1351 Name_Archive_Indexer : constant Name_Id := N + $;
1352 Name_Archive_Suffix : constant Name_Id := N + $;
1353 Name_Artifacts : constant Name_Id := N + $;
1354 Name_Artifacts_In_Exec_Dir : constant Name_Id := N + $; -- GB
1355 Name_Artifacts_In_Object_Dir : constant Name_Id := N + $; -- GB
1356 Name_Binder : constant Name_Id := N + $;
1357 Name_Body_Suffix : constant Name_Id := N + $;
1358 Name_Builder : constant Name_Id := N + $;
1359 Name_Clean : constant Name_Id := N + $;
1360 Name_Compiler : constant Name_Id := N + $;
1361 Name_Compiler_Command : constant Name_Id := N + $; -- GB
1362 Name_Config_Body_File_Name : constant Name_Id := N + $;
1363 Name_Config_Body_File_Name_Index : constant Name_Id := N + $;
1364 Name_Config_Body_File_Name_Pattern : constant Name_Id := N + $;
1365 Name_Config_File_Switches : constant Name_Id := N + $;
1366 Name_Config_File_Unique : constant Name_Id := N + $;
1367 Name_Config_Spec_File_Name : constant Name_Id := N + $;
1368 Name_Config_Spec_File_Name_Index : constant Name_Id := N + $;
1369 Name_Config_Spec_File_Name_Pattern : constant Name_Id := N + $;
1370 Name_Configuration : constant Name_Id := N + $;
1371 Name_Cross_Reference : constant Name_Id := N + $;
1372 Name_Default_Language : constant Name_Id := N + $;
1373 Name_Default_Switches : constant Name_Id := N + $;
1374 Name_Dependency_Driver : constant Name_Id := N + $;
1375 Name_Dependency_Kind : constant Name_Id := N + $;
1376 Name_Dependency_Switches : constant Name_Id := N + $;
1377 Name_Driver : constant Name_Id := N + $;
1378 Name_Excluded_Source_Dirs : constant Name_Id := N + $;
1379 Name_Excluded_Source_Files : constant Name_Id := N + $;
1380 Name_Excluded_Source_List_File : constant Name_Id := N + $;
1381 Name_Exec_Dir : constant Name_Id := N + $;
1382 Name_Exec_Subdir : constant Name_Id := N + $;
1383 Name_Excluded_Patterns : constant Name_Id := N + $;
1384 Name_Executable : constant Name_Id := N + $;
1385 Name_Executable_Suffix : constant Name_Id := N + $;
1386 Name_Extends : constant Name_Id := N + $;
1387 Name_External_As_List : constant Name_Id := N + $;
1388 Name_Externally_Built : constant Name_Id := N + $;
1389 Name_Finder : constant Name_Id := N + $;
1390 Name_Global_Compilation_Switches : constant Name_Id := N + $;
1391 Name_Global_Configuration_Pragmas : constant Name_Id := N + $;
1392 Name_Global_Config_File : constant Name_Id := N + $; -- GB
1393 Name_Gnatls : constant Name_Id := N + $;
1394 Name_Gnatstub : constant Name_Id := N + $;
1395 Name_Gnu : constant Name_Id := N + $;
1396 Name_Ide : constant Name_Id := N + $;
1397 Name_Ignore_Source_Sub_Dirs : constant Name_Id := N + $;
1398 Name_Implementation : constant Name_Id := N + $;
1399 Name_Implementation_Exceptions : constant Name_Id := N + $;
1400 Name_Implementation_Suffix : constant Name_Id := N + $;
1401 Name_Included_Artifact_Patterns : constant Name_Id := N + $;
1402 Name_Included_Patterns : constant Name_Id := N + $;
1403 Name_Include_Switches : constant Name_Id := N + $;
1404 Name_Include_Path : constant Name_Id := N + $;
1405 Name_Include_Path_File : constant Name_Id := N + $;
1406 Name_Inherit_Source_Path : constant Name_Id := N + $;
1407 Name_Install : constant Name_Id := N + $;
1408 Name_Install_Name : constant Name_Id := N + $;
1409 Name_Languages : constant Name_Id := N + $;
1410 Name_Language_Kind : constant Name_Id := N + $;
1411 Name_Leading_Library_Options : constant Name_Id := N + $;
1412 Name_Leading_Required_Switches : constant Name_Id := N + $;
1413 Name_Leading_Switches : constant Name_Id := N + $;
1414 Name_Lib_Subdir : constant Name_Id := N + $;
1415 Name_Link_Lib_Subdir : constant Name_Id := N + $;
1416 Name_Library : constant Name_Id := N + $;
1417 Name_Library_Ali_Dir : constant Name_Id := N + $;
1418 Name_Library_Auto_Init : constant Name_Id := N + $;
1419 Name_Library_Auto_Init_Supported : constant Name_Id := N + $;
1420 Name_Library_Builder : constant Name_Id := N + $;
1421 Name_Library_Dir : constant Name_Id := N + $;
1422 Name_Library_GCC : constant Name_Id := N + $;
1423 Name_Library_Install_Name_Option : constant Name_Id := N + $;
1424 Name_Library_Interface : constant Name_Id := N + $;
1425 Name_Library_Kind : constant Name_Id := N + $;
1426 Name_Library_Name : constant Name_Id := N + $;
1427 Name_Library_Major_Minor_Id_Supported : constant Name_Id := N + $;
1428 Name_Library_Options : constant Name_Id := N + $;
1429 Name_Library_Partial_Linker : constant Name_Id := N + $;
1430 Name_Library_Reference_Symbol_File : constant Name_Id := N + $;
1431 Name_Library_Rpath_Options : constant Name_Id := N + $; -- GB
1432 Name_Library_Standalone : constant Name_Id := N + $;
1433 Name_Library_Encapsulated_Options : constant Name_Id := N + $; -- GB
1434 Name_Library_Encapsulated_Supported : constant Name_Id := N + $; -- GB
1435 Name_Library_Src_Dir : constant Name_Id := N + $;
1436 Name_Library_Support : constant Name_Id := N + $;
1437 Name_Library_Symbol_File : constant Name_Id := N + $;
1438 Name_Library_Symbol_Policy : constant Name_Id := N + $;
1439 Name_Library_Version : constant Name_Id := N + $;
1440 Name_Library_Version_Switches : constant Name_Id := N + $;
1441 Name_Linker : constant Name_Id := N + $;
1442 Name_Linker_Executable_Option : constant Name_Id := N + $;
1443 Name_Linker_Lib_Dir_Option : constant Name_Id := N + $;
1444 Name_Linker_Lib_Name_Option : constant Name_Id := N + $;
1445 Name_Local_Config_File : constant Name_Id := N + $; -- GB
1446 Name_Local_Configuration_Pragmas : constant Name_Id := N + $;
1447 Name_Locally_Removed_Files : constant Name_Id := N + $;
1448 Name_Map_File_Option : constant Name_Id := N + $;
1449 Name_Mapping_File_Switches : constant Name_Id := N + $;
1450 Name_Mapping_Spec_Suffix : constant Name_Id := N + $;
1451 Name_Mapping_Body_Suffix : constant Name_Id := N + $;
1452 Name_Max_Command_Line_Length : constant Name_Id := N + $;
1453 Name_Metrics : constant Name_Id := N + $;
1454 Name_Multi_Unit_Object_Separator : constant Name_Id := N + $;
1455 Name_Multi_Unit_Switches : constant Name_Id := N + $;
1456 Name_Naming : constant Name_Id := N + $;
1457 Name_None : constant Name_Id := N + $;
1458 Name_Object_Artifact_Extensions : constant Name_Id := N + $;
1459 Name_Object_File_Suffix : constant Name_Id := N + $;
1460 Name_Object_File_Switches : constant Name_Id := N + $;
1461 Name_Object_Generated : constant Name_Id := N + $;
1462 Name_Object_List : constant Name_Id := N + $;
1463 Name_Object_Path_Switches : constant Name_Id := N + $;
1464 Name_Objects_Linked : constant Name_Id := N + $;
1465 Name_Objects_Path : constant Name_Id := N + $;
1466 Name_Objects_Path_File : constant Name_Id := N + $;
1467 Name_Object_Dir : constant Name_Id := N + $;
1468 Name_Option_List : constant Name_Id := N + $;
1469 Name_Path_Syntax : constant Name_Id := N + $;
1470 Name_Pic_Option : constant Name_Id := N + $;
1471 Name_Pretty_Printer : constant Name_Id := N + $;
1472 Name_Prefix : constant Name_Id := N + $;
1473 Name_Project : constant Name_Id := N + $;
1474 Name_Project_Dir : constant Name_Id := N + $;
1475 Name_Project_Files : constant Name_Id := N + $;
1476 Name_Project_Path : constant Name_Id := N + $;
1477 Name_Project_Subdir : constant Name_Id := N + $;
1478 Name_Remote : constant Name_Id := N + $;
1479 Name_Required_Artifacts : constant Name_Id := N + $;
1480 Name_Response_File_Format : constant Name_Id := N + $;
1481 Name_Response_File_Switches : constant Name_Id := N + $;
1482 Name_Root_Dir : constant Name_Id := N + $;
1483 Name_Roots : constant Name_Id := N + $; -- GB
1484 Name_Required_Switches : constant Name_Id := N + $;
1485 Name_Run_Path_Option : constant Name_Id := N + $;
1486 Name_Run_Path_Origin : constant Name_Id := N + $;
1487 Name_Separate_Run_Path_Options : constant Name_Id := N + $;
1488 Name_Shared_Library_Minimum_Switches : constant Name_Id := N + $;
1489 Name_Shared_Library_Prefix : constant Name_Id := N + $;
1490 Name_Shared_Library_Suffix : constant Name_Id := N + $;
1491 Name_Separate_Suffix : constant Name_Id := N + $;
1492 Name_Source_Artifact_Extensions : constant Name_Id := N + $;
1493 Name_Source_Dirs : constant Name_Id := N + $;
1494 Name_Source_File_Switches : constant Name_Id := N + $;
1495 Name_Source_Files : constant Name_Id := N + $;
1496 Name_Source_List_File : constant Name_Id := N + $;
1497 Name_Sources_Subdir : constant Name_Id := N + $;
1498 Name_Spec : constant Name_Id := N + $;
1499 Name_Spec_Suffix : constant Name_Id := N + $;
1500 Name_Specification : constant Name_Id := N + $;
1501 Name_Specification_Exceptions : constant Name_Id := N + $;
1502 Name_Specification_Suffix : constant Name_Id := N + $;
1503 Name_Stack : constant Name_Id := N + $;
1504 Name_Switches : constant Name_Id := N + $;
1505 Name_Symbolic_Link_Supported : constant Name_Id := N + $;
1506 Name_Synchronize : constant Name_Id := N + $;
1507 Name_Toolchain_Description : constant Name_Id := N + $;
1508 Name_Toolchain_Version : constant Name_Id := N + $;
1509 Name_Trailing_Required_Switches : constant Name_Id := N + $;
1510 Name_Trailing_Switches : constant Name_Id := N + $;
1511 Name_Runtime_Library_Dir : constant Name_Id := N + $;
1512 Name_Runtime_Source_Dir : constant Name_Id := N + $;
1514 -- Other miscellaneous names used in front end
1516 Name_Unaligned_Valid : constant Name_Id := N + $;
1517 Name_Suspension_Object : constant Name_Id := N + $;
1518 Name_Synchronous_Task_Control : constant Name_Id := N + $;
1520 -- Names used to implement iterators over predefined containers
1522 Name_Cursor : constant Name_Id := N + $;
1523 Name_Element : constant Name_Id := N + $;
1524 Name_Element_Type : constant Name_Id := N + $;
1525 Name_Has_Element : constant Name_Id := N + $;
1526 Name_No_Element : constant Name_Id := N + $;
1527 Name_Forward_Iterator : constant Name_Id := N + $;
1528 Name_Reversible_Iterator : constant Name_Id := N + $;
1529 Name_Previous : constant Name_Id := N + $;
1530 Name_Pseudo_Reference : constant Name_Id := N + $;
1531 Name_Reference_Control_Type : constant Name_Id := N + $;
1532 Name_Get_Element_Access : constant Name_Id := N + $;
1534 -- Ada 2005 reserved words
1536 First_2005_Reserved_Word : constant Name_Id := N + $;
1537 Name_Interface : constant Name_Id := N + $;
1538 Name_Overriding : constant Name_Id := N + $;
1539 Name_Synchronized : constant Name_Id := N + $;
1540 Last_2005_Reserved_Word : constant Name_Id := N + $;
1542 subtype Ada_2005_Reserved_Words is
1543 Name_Id range First_2005_Reserved_Word .. Last_2005_Reserved_Word;
1545 -- Ada 2012 reserved words
1547 First_2012_Reserved_Word : constant Name_Id := N + $;
1548 Name_Some : constant Name_Id := N + $;
1549 Last_2012_Reserved_Word : constant Name_Id := N + $;
1551 subtype Ada_2012_Reserved_Words is
1552 Name_Id range First_2012_Reserved_Word .. Last_2012_Reserved_Word;
1554 -- Mark last defined name for consistency check in Snames body
1556 Last_Predefined_Name : constant Name_Id := N + $;
1558 ---------------------------------------
1559 -- Subtypes Defining Name Categories --
1560 ---------------------------------------
1562 subtype Any_Operator_Name is Name_Id range
1563 First_Operator_Name .. Last_Operator_Name;
1565 subtype Configuration_Pragma_Names is Name_Id range
1566 First_Pragma_Name .. Last_Configuration_Pragma_Name;
1568 ------------------------------
1569 -- Attribute ID Definitions --
1570 ------------------------------
1572 type Attribute_Id is (
1573 Attribute_Abort_Signal,
1576 Attribute_Address_Size,
1578 Attribute_Alignment,
1579 Attribute_Asm_Input,
1580 Attribute_Asm_Output,
1581 Attribute_Atomic_Always_Lock_Free,
1583 Attribute_Bit_Order,
1584 Attribute_Bit_Position,
1585 Attribute_Body_Version,
1588 Attribute_Code_Address,
1589 Attribute_Compiler_Version,
1590 Attribute_Component_Size,
1592 Attribute_Constant_Indexing,
1593 Attribute_Constrained,
1595 Attribute_Default_Bit_Order,
1596 Attribute_Default_Scalar_Storage_Order,
1597 Attribute_Default_Iterator,
1602 Attribute_Descriptor_Size,
1604 Attribute_Elaborated,
1611 Attribute_External_Tag,
1612 Attribute_Fast_Math,
1613 Attribute_Finalization_Size,
1615 Attribute_First_Bit,
1616 Attribute_First_Valid,
1617 Attribute_Fixed_Value,
1619 Attribute_Has_Access_Values,
1620 Attribute_Has_Discriminants,
1621 Attribute_Has_Same_Storage,
1622 Attribute_Has_Tagged_Values,
1625 Attribute_Implicit_Dereference,
1626 Attribute_Integer_Value,
1627 Attribute_Invalid_Value,
1628 Attribute_Iterator_Element,
1633 Attribute_Last_Valid,
1634 Attribute_Leading_Part,
1636 Attribute_Library_Level,
1637 Attribute_Lock_Free,
1638 Attribute_Loop_Entry,
1639 Attribute_Machine_Emax,
1640 Attribute_Machine_Emin,
1641 Attribute_Machine_Mantissa,
1642 Attribute_Machine_Overflows,
1643 Attribute_Machine_Radix,
1644 Attribute_Machine_Rounding,
1645 Attribute_Machine_Rounds,
1646 Attribute_Machine_Size,
1648 Attribute_Max_Alignment_For_Allocation,
1649 Attribute_Max_Size_In_Storage_Elements,
1650 Attribute_Maximum_Alignment,
1651 Attribute_Mechanism_Code,
1653 Attribute_Model_Emin,
1654 Attribute_Model_Epsilon,
1655 Attribute_Model_Mantissa,
1656 Attribute_Model_Small,
1658 Attribute_Null_Parameter,
1659 Attribute_Object_Size,
1661 Attribute_Overlaps_Storage,
1662 Attribute_Partition_ID,
1663 Attribute_Passed_By_Reference,
1664 Attribute_Pool_Address,
1669 Attribute_Range_Length,
1671 Attribute_Restriction_Set,
1674 Attribute_Safe_Emax,
1675 Attribute_Safe_First,
1676 Attribute_Safe_Large,
1677 Attribute_Safe_Last,
1678 Attribute_Safe_Small,
1679 Attribute_Scalar_Storage_Order,
1682 Attribute_Signed_Zeros,
1685 Attribute_Storage_Size,
1686 Attribute_Storage_Unit,
1687 Attribute_Stream_Size,
1688 Attribute_System_Allocator_Alignment,
1690 Attribute_Target_Name,
1691 Attribute_Terminated,
1692 Attribute_To_Address,
1693 Attribute_Type_Class,
1695 Attribute_Unbiased_Rounding,
1696 Attribute_Unchecked_Access,
1697 Attribute_Unconstrained_Array,
1698 Attribute_Universal_Literal_String,
1699 Attribute_Unrestricted_Access,
1701 Attribute_VADS_Size,
1704 Attribute_Valid_Scalars,
1705 Attribute_Value_Size,
1706 Attribute_Variable_Indexing,
1708 Attribute_Wchar_T_Size,
1709 Attribute_Wide_Wide_Width,
1710 Attribute_Wide_Width,
1712 Attribute_Word_Size,
1714 -- Attributes designating renamable functions
1718 Attribute_Copy_Sign,
1729 Attribute_Remainder,
1733 Attribute_Truncation,
1736 Attribute_Wide_Image,
1737 Attribute_Wide_Wide_Image,
1738 Attribute_Wide_Value,
1739 Attribute_Wide_Wide_Value,
1741 -- Attributes designating procedures
1747 -- Entity attributes (includes type attributes)
1749 Attribute_Elab_Body,
1750 Attribute_Elab_Spec,
1751 Attribute_Elab_Subp_Body,
1752 Attribute_Simple_Storage_Pool,
1753 Attribute_Storage_Pool,
1759 Attribute_Stub_Type,
1761 -- The internal attributes are on their own, out of order, because of
1762 -- the special processing required to deal with the fact that their
1763 -- names are not attribute names.
1766 Attribute_Dispatching_Domain,
1767 Attribute_Interrupt_Priority);
1769 subtype Internal_Attribute_Id is Attribute_Id range
1770 Attribute_CPU .. Attribute_Interrupt_Priority;
1772 type Attribute_Class_Array is array (Attribute_Id) of Boolean;
1773 -- Type used to build attribute classification flag arrays
1775 ------------------------------------
1776 -- Convention Name ID Definitions --
1777 ------------------------------------
1779 type Convention_Id is (
1781 -- The native-to-Ada (non-foreign) conventions come first. These include
1782 -- the ones defined in the RM, plus Stubbed.
1785 Convention_Intrinsic,
1787 Convention_Protected,
1790 -- The following conventions are equivalent to Ada for all purposes
1791 -- except controlling the way parameters are passed.
1793 Convention_Ada_Pass_By_Copy,
1794 Convention_Ada_Pass_By_Reference,
1796 -- The remaining conventions are foreign language conventions
1798 Convention_Assembler, -- also Asm, Assembly
1799 Convention_C, -- also Default, External
1803 Convention_Stdcall); -- also DLL, Win32
1805 -- Note: Convention C_Pass_By_Copy is allowed only for record types
1806 -- (where it is treated like C except that the appropriate flag is set
1807 -- in the record type). Recognizing this convention is specially handled
1810 for Convention_Id'Size use 8;
1811 -- Plenty of space for expansion
1813 subtype Foreign_Convention is
1814 Convention_Id range Convention_Assembler .. Convention_Id'Last;
1816 -----------------------------------
1817 -- Locking Policy ID Definitions --
1818 -----------------------------------
1820 type Locking_Policy_Id is (
1821 Locking_Policy_Inheritance_Locking,
1822 Locking_Policy_Ceiling_Locking,
1823 Locking_Policy_Concurrent_Readers_Locking);
1825 ---------------------------
1826 -- Pragma ID Definitions --
1827 ---------------------------
1831 -- Configuration pragmas are grouped at start. Note that there is a list
1832 -- of them in the GNAT UG (doc/gnat_ugn/the_gnat_compilation_model.rst),
1833 -- be sure to update this list if a new configuration pragma is added.
1842 -- Note that there is no Pragma_Ada_20. Pragma_Ada_05/12 are for
1843 -- compatibility reasons only; the full year names are preferred.
1844 Pragma_Allow_Integer_Address,
1846 Pragma_Assertion_Policy,
1847 Pragma_Assume_No_Invalid_Values,
1848 Pragma_C_Pass_By_Copy,
1849 Pragma_Check_Float_Overflow,
1851 Pragma_Check_Policy,
1852 Pragma_Compile_Time_Error,
1853 Pragma_Compile_Time_Warning,
1854 Pragma_Compiler_Unit,
1855 Pragma_Compiler_Unit_Warning,
1856 Pragma_Component_Alignment,
1857 Pragma_Convention_Identifier,
1858 Pragma_Debug_Policy,
1859 Pragma_Detect_Blocking,
1860 Pragma_Default_Storage_Pool,
1861 Pragma_Disable_Atomic_Synchronization,
1862 Pragma_Discard_Names,
1863 Pragma_Elaboration_Checks,
1865 Pragma_Enable_Atomic_Synchronization,
1866 Pragma_Extend_System,
1867 Pragma_Extensions_Allowed,
1868 Pragma_External_Name_Casing,
1869 Pragma_Favor_Top_Level,
1870 Pragma_Ignore_Pragma,
1871 Pragma_Implicit_Packing,
1872 Pragma_Initialize_Scalars,
1873 Pragma_Interrupt_State,
1875 Pragma_Locking_Policy,
1876 Pragma_No_Component_Reordering,
1877 Pragma_No_Heap_Finalization,
1879 Pragma_No_Strict_Aliasing,
1880 Pragma_Normalize_Scalars,
1881 Pragma_Optimize_Alignment,
1882 Pragma_Overflow_Mode,
1883 Pragma_Overriding_Renamings,
1884 Pragma_Partition_Elaboration_Policy,
1885 Pragma_Persistent_BSS,
1887 Pragma_Prefix_Exception_Messages,
1888 Pragma_Priority_Specific_Dispatching,
1890 Pragma_Profile_Warnings,
1891 Pragma_Propagate_Exceptions,
1892 Pragma_Queuing_Policy,
1895 Pragma_Rename_Pragma,
1896 Pragma_Restricted_Run_Time,
1897 Pragma_Restrictions,
1898 Pragma_Restriction_Warnings,
1900 Pragma_Short_Circuit_And_Or,
1901 Pragma_Short_Descriptors,
1902 Pragma_Source_File_Name,
1903 Pragma_Source_File_Name_Project,
1905 Pragma_Style_Checks,
1907 Pragma_Suppress_Exception_Locations,
1908 Pragma_Task_Dispatching_Policy,
1909 Pragma_Unevaluated_Use_Of_Old,
1910 Pragma_Universal_Data,
1912 Pragma_Use_VADS_Size,
1913 Pragma_Validity_Checks,
1914 Pragma_Warning_As_Error,
1916 Pragma_Wide_Character_Encoding,
1918 -- Remaining (non-configuration) pragmas
1921 Pragma_Abstract_State,
1925 Pragma_Acc_Parallel,
1926 Pragma_All_Calls_Remote,
1928 Pragma_Assert_And_Cut,
1930 Pragma_Async_Readers,
1931 Pragma_Async_Writers,
1932 Pragma_Asynchronous,
1934 Pragma_Atomic_Components,
1935 Pragma_Attach_Handler,
1936 Pragma_Attribute_Definition,
1939 Pragma_Common_Object,
1940 Pragma_Complete_Representation,
1941 Pragma_Complex_Representation,
1942 Pragma_Constant_After_Elaboration,
1943 Pragma_Contract_Cases,
1947 Pragma_CPP_Constructor,
1950 Pragma_Deadline_Floor,
1952 Pragma_Default_Initial_Condition,
1954 Pragma_Effective_Reads,
1955 Pragma_Effective_Writes,
1957 Pragma_Elaborate_All,
1958 Pragma_Elaborate_Body,
1960 Pragma_Export_Function,
1961 Pragma_Export_Object,
1962 Pragma_Export_Procedure,
1963 Pragma_Export_Value,
1964 Pragma_Export_Valued_Procedure,
1965 Pragma_Extensions_Visible,
1967 Pragma_Finalize_Storage_Only,
1971 Pragma_Implementation_Defined,
1974 Pragma_Import_Function,
1975 Pragma_Import_Object,
1976 Pragma_Import_Procedure,
1977 Pragma_Import_Valued_Procedure,
1979 Pragma_Independent_Components,
1980 Pragma_Initial_Condition,
1983 Pragma_Inline_Always,
1984 Pragma_Inline_Generic,
1985 Pragma_Inspection_Point,
1986 Pragma_Interface_Name,
1987 Pragma_Interrupt_Handler,
1991 Pragma_Linker_Alias,
1992 Pragma_Linker_Constructor,
1993 Pragma_Linker_Destructor,
1994 Pragma_Linker_Options,
1995 Pragma_Linker_Section,
1997 Pragma_Loop_Invariant,
1998 Pragma_Loop_Optimize,
1999 Pragma_Loop_Variant,
2000 Pragma_Machine_Attribute,
2002 Pragma_Main_Storage,
2003 Pragma_Max_Entry_Queue_Depth,
2004 Pragma_Max_Queue_Length,
2007 Pragma_No_Elaboration_Code_All,
2010 Pragma_No_Tagged_Streams,
2019 Pragma_Postcondition,
2022 Pragma_Precondition,
2024 Pragma_Predicate_Failure,
2025 Pragma_Preelaborable_Initialization,
2026 Pragma_Preelaborate,
2028 Pragma_Provide_Shift_Operators,
2029 Pragma_Psect_Object,
2031 Pragma_Pure_Function,
2032 Pragma_Refined_Depends,
2033 Pragma_Refined_Global,
2034 Pragma_Refined_Post,
2035 Pragma_Refined_State,
2036 Pragma_Relative_Deadline,
2037 Pragma_Remote_Access_Type,
2038 Pragma_Remote_Call_Interface,
2039 Pragma_Remote_Types,
2040 Pragma_Share_Generic,
2042 Pragma_Shared_Passive,
2043 Pragma_Simple_Storage_Pool_Type,
2044 Pragma_Source_Reference,
2045 Pragma_Static_Elaboration_Desired,
2046 Pragma_Stream_Convert,
2048 Pragma_Suppress_All,
2049 Pragma_Suppress_Debug_Info,
2050 Pragma_Suppress_Initialization,
2055 Pragma_Task_Storage,
2056 Pragma_Thread_Local_Storage,
2059 Pragma_Type_Invariant,
2060 Pragma_Type_Invariant_Class,
2061 Pragma_Unchecked_Union,
2062 Pragma_Unimplemented_Unit,
2063 Pragma_Universal_Aliasing,
2065 Pragma_Unreferenced,
2066 Pragma_Unreferenced_Objects,
2067 Pragma_Unreserve_All_Interrupts,
2070 Pragma_Volatile_Components,
2071 Pragma_Volatile_Full_Access,
2072 Pragma_Volatile_Function,
2073 Pragma_Weak_External,
2075 -- The following pragmas are on their own, out of order, because of the
2076 -- special processing required to deal with the fact that their names
2077 -- match existing attribute names.
2080 Pragma_Default_Scalar_Storage_Order,
2081 Pragma_Dispatching_Domain,
2084 Pragma_Interrupt_Priority,
2087 Pragma_Secondary_Stack_Size,
2088 Pragma_Storage_Size,
2089 Pragma_Storage_Unit,
2091 -- The value to represent an unknown or unrecognized pragma
2095 -----------------------------------
2096 -- Queuing Policy ID definitions --
2097 -----------------------------------
2099 type Queuing_Policy_Id is (
2100 Queuing_Policy_FIFO_Queuing,
2101 Queuing_Policy_Priority_Queuing);
2103 --------------------------------------------
2104 -- Task Dispatching Policy ID definitions --
2105 --------------------------------------------
2107 type Task_Dispatching_Policy_Id is (
2108 Task_Dispatching_FIFO_Within_Priorities);
2109 -- Id values used to identify task dispatching policies
2115 procedure Initialize;
2116 -- Called to initialize the preset names in the names table
2118 function Is_Attribute_Name (N : Name_Id) return Boolean;
2119 -- Test to see if the name N is the name of a recognized attribute. Note
2120 -- that Name_Elab_Subp_Body returns False if not operating in CodePeer
2121 -- mode. This is the mechanism for considering this pragma illegal in
2122 -- normal GNAT programs.
2124 function Is_Entity_Attribute_Name (N : Name_Id) return Boolean;
2125 -- Test to see if the name N is the name of a recognized entity attribute,
2126 -- i.e. an attribute reference that returns an entity.
2128 function Is_Internal_Attribute_Name (N : Name_Id) return Boolean;
2129 -- Test to see if the name N is the name of an INT attribute (Name_CPU,
2130 -- Name_Dispatching_Domain, Name_Interrupt_Priority,
2131 -- Name_Secondary_Stack_Size).
2133 function Is_Procedure_Attribute_Name (N : Name_Id) return Boolean;
2134 -- Test to see if the name N is the name of a recognized attribute that
2135 -- designates a procedure (and can therefore appear as a statement).
2137 function Is_Function_Attribute_Name (N : Name_Id) return Boolean;
2138 -- Test to see if the name N is the name of a recognized attribute
2139 -- that designates a renameable function, and can therefore appear in
2140 -- a renaming statement. Note that not all attributes designating
2141 -- functions are renamable, in particular, those returning a universal
2142 -- value cannot be renamed.
2144 function Is_Type_Attribute_Name (N : Name_Id) return Boolean;
2145 -- Test to see if the name N is the name of a recognized type attribute,
2146 -- i.e. an attribute reference that returns a type
2148 function Is_Convention_Name (N : Name_Id) return Boolean;
2149 -- Test to see if the name N is the name of one of the recognized
2150 -- language conventions, as required by pragma Convention, Import,
2151 -- Export, Interface. Returns True if so. Also returns True for a
2152 -- name that has been specified by a Convention_Identifier pragma.
2153 -- If neither case holds, returns False.
2155 function Is_Keyword_Name (N : Name_Id) return Boolean;
2156 -- Test to see if the name N is one of the (reserved) keyword names. This
2157 -- includes all the keywords defined in the Ada standard (taking into
2158 -- effect the Ada version). It also includes additional keywords in
2159 -- contexts where additional keywords have been added. For example, in the
2160 -- context of parsing project files, keywords such as PROJECT are included.
2162 function Is_Locking_Policy_Name (N : Name_Id) return Boolean;
2163 -- Test to see if the name N is the name of a recognized locking policy
2165 function Is_Partition_Elaboration_Policy_Name
2166 (N : Name_Id) return Boolean;
2167 -- Test to see if the name N is the name of a recognized partition
2168 -- elaboration policy.
2170 function Is_Operator_Symbol_Name (N : Name_Id) return Boolean;
2171 -- Test to see if the name N is the name of an operator symbol
2173 function Is_Pragma_Name (N : Name_Id) return Boolean;
2174 -- Test to see if the name N is the name of a recognized pragma. Note
2175 -- that pragmas CPU, Dispatching_Domain, Fast_Math, Interrupt_Priority,
2176 -- Lock_Free, Priority, Storage_Size, and Storage_Unit are recognized
2177 -- as pragmas by this function even though their names are separate from
2178 -- the other pragma names. For this reason, clients should always use
2179 -- this function, rather than do range tests on Name_Id values.
2181 function Is_Configuration_Pragma_Name (N : Name_Id) return Boolean;
2182 -- Test to see if the name N is the name of a recognized configuration
2183 -- pragma. Note that pragma Fast_Math is recognized as a configuration
2184 -- pragma by this function even though its name is separate from other
2185 -- configuration pragma names. For this reason, clients should always
2186 -- use this function, rather than do range tests on Name_Id values.
2188 function Is_Queuing_Policy_Name (N : Name_Id) return Boolean;
2189 -- Test to see if the name N is the name of a recognized queuing policy
2191 function Is_Task_Dispatching_Policy_Name (N : Name_Id) return Boolean;
2192 -- Test to see if the name N is the name of a recognized task
2193 -- dispatching policy.
2195 function Get_Attribute_Id (N : Name_Id) return Attribute_Id;
2196 -- Returns Id of attribute corresponding to given name. It is an error to
2197 -- call this function with a name that is not the name of a attribute. Note
2198 -- that the function also works correctly for internal attribute names even
2199 -- though there are not included in the main list of attribute Names.
2201 function Get_Convention_Id (N : Name_Id) return Convention_Id;
2202 -- Returns Id of language convention corresponding to given name. It is
2203 -- an error to call this function with a name that is not the name of a
2204 -- convention, or one that has been previously recorded using a call to
2205 -- Record_Convention_Identifier.
2207 function Get_Convention_Name (C : Convention_Id) return Name_Id;
2208 -- Returns the name of language convention corresponding to given
2211 function Get_Locking_Policy_Id (N : Name_Id) return Locking_Policy_Id;
2212 -- Returns Id of locking policy corresponding to given name. It is an error
2213 -- to call this function with a name that is not the name of a check.
2215 function Get_Pragma_Id (N : Name_Id) return Pragma_Id;
2216 -- Returns Id of pragma corresponding to given name. Returns Unknown_Pragma
2217 -- if N is not a name of a known (Ada defined or GNAT-specific) pragma.
2218 -- Note that the function also works correctly for names of pragmas that
2219 -- are not included in the main list of pragma Names (e.g. Name_CPU returns
2222 function Get_Queuing_Policy_Id (N : Name_Id) return Queuing_Policy_Id;
2223 -- Returns Id of queuing policy corresponding to given name. It is an error
2224 -- to call this function with a name that is not the name of a check.
2226 function Get_Task_Dispatching_Policy_Id
2227 (N : Name_Id) return Task_Dispatching_Policy_Id;
2228 -- Returns Id of task dispatching policy corresponding to given name. It
2229 -- is an error to call this function with a name that is not the name of
2232 procedure Record_Convention_Identifier
2234 Convention : Convention_Id);
2235 -- A call to this procedure, resulting from an occurrence of a pragma
2236 -- Convention_Identifier, records that from now on an occurrence of Id
2237 -- will be recognized as a name for the specified convention.
2240 pragma Inline (Is_Attribute_Name);
2241 pragma Inline (Is_Entity_Attribute_Name);
2242 pragma Inline (Is_Type_Attribute_Name);
2243 pragma Inline (Is_Locking_Policy_Name);
2244 pragma Inline (Is_Partition_Elaboration_Policy_Name);
2245 pragma Inline (Is_Operator_Symbol_Name);
2246 pragma Inline (Is_Queuing_Policy_Name);
2247 pragma Inline (Is_Pragma_Name);
2248 pragma Inline (Is_Task_Dispatching_Policy_Name);