1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2024, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 ------------------------------------------------------------------------------
26 with Namet; use Namet;
30 -- This package contains definitions of standard names (i.e. entries in
31 -- the Names table) that are used throughout the GNAT compiler. It also
32 -- contains the definitions of some enumeration types whose definitions
33 -- are tied to the order of these preset names.
35 -- NOTE WELL: If you add names of attributes, the enumeration type
36 -- Attribute_Id must be kept in synch (same names in same order, with
37 -- some exceptions). See the body of Get_Attribute_Id for details. The
38 -- same is true of other enumeration types declared in this package.
40 -- ALSO NOTE: In the case of a name that corresponds to both an attribute
41 -- and a pragma, the Name_Id must be defined in the attribute section
42 -- (between First_Attribute_Name and Last_Attribute_Name). Also, please
43 -- add a comment in the list of Name_Ids at the point where the name would
44 -- normally appear alphabetically (for an example, see comment starting
45 -- "Note: CPU ..."). The Pragma_Id with that name must be defined in the
46 -- last section of literals for type Pragma_Id (see set of Pragma_Ids that
47 -- require special processing due to matching an attribute name). Finally,
48 -- the bodies of functions Get_Pragma_Id and Is_Pragma_Name must be updated
49 -- to test for each such pragma that shares a name with an attribute.
55 -- The following are preset entries in the names table, which are entered
56 -- at the start of every compilation for easy access. Note that the order
57 -- of initialization of these names in the body must be coordinated with
58 -- the order of names in this table.
60 -- Note: a name may not appear more than once in the following list. If
61 -- additional pragmas or attributes are introduced which might otherwise
62 -- cause a duplicate, then list it only once in this table, and adjust the
63 -- definition of the functions for testing for pragma names and attribute
64 -- names, and returning their ID values. Of course everything is simpler if
65 -- no such duplications occur.
67 -- First we have the one character names used to optimize the lookup
68 -- process for one character identifiers (to avoid the hashing in this
69 -- case) There are a full 256 of these, but only the entries for lower
70 -- case and upper case letters have identifiers
72 -- The lower case letter entries are used for one character identifiers
73 -- appearing in the source, for example in pragma Interface (C).
75 Name_A : constant Name_Id := First_Name_Id + Character'Pos ('a');
76 Name_B : constant Name_Id := First_Name_Id + Character'Pos ('b');
77 Name_C : constant Name_Id := First_Name_Id + Character'Pos ('c');
78 Name_D : constant Name_Id := First_Name_Id + Character'Pos ('d');
79 Name_E : constant Name_Id := First_Name_Id + Character'Pos ('e');
80 Name_F : constant Name_Id := First_Name_Id + Character'Pos ('f');
81 Name_G : constant Name_Id := First_Name_Id + Character'Pos ('g');
82 Name_H : constant Name_Id := First_Name_Id + Character'Pos ('h');
83 Name_I : constant Name_Id := First_Name_Id + Character'Pos ('i');
84 Name_J : constant Name_Id := First_Name_Id + Character'Pos ('j');
85 Name_K : constant Name_Id := First_Name_Id + Character'Pos ('k');
86 Name_L : constant Name_Id := First_Name_Id + Character'Pos ('l');
87 Name_M : constant Name_Id := First_Name_Id + Character'Pos ('m');
88 Name_N : constant Name_Id := First_Name_Id + Character'Pos ('n');
89 Name_O : constant Name_Id := First_Name_Id + Character'Pos ('o');
90 Name_P : constant Name_Id := First_Name_Id + Character'Pos ('p');
91 Name_Q : constant Name_Id := First_Name_Id + Character'Pos ('q');
92 Name_R : constant Name_Id := First_Name_Id + Character'Pos ('r');
93 Name_S : constant Name_Id := First_Name_Id + Character'Pos ('s');
94 Name_T : constant Name_Id := First_Name_Id + Character'Pos ('t');
95 Name_U : constant Name_Id := First_Name_Id + Character'Pos ('u');
96 Name_V : constant Name_Id := First_Name_Id + Character'Pos ('v');
97 Name_W : constant Name_Id := First_Name_Id + Character'Pos ('w');
98 Name_X : constant Name_Id := First_Name_Id + Character'Pos ('x');
99 Name_Y : constant Name_Id := First_Name_Id + Character'Pos ('y');
100 Name_Z : constant Name_Id := First_Name_Id + Character'Pos ('z');
102 -- The upper case letter entries are used by expander code for local
103 -- variables that do not require unique names (e.g. formal parameter names
104 -- in constructed procedures).
106 Name_uA : constant Name_Id := First_Name_Id + Character'Pos ('A');
107 Name_uB : constant Name_Id := First_Name_Id + Character'Pos ('B');
108 Name_uC : constant Name_Id := First_Name_Id + Character'Pos ('C');
109 Name_uD : constant Name_Id := First_Name_Id + Character'Pos ('D');
110 Name_uE : constant Name_Id := First_Name_Id + Character'Pos ('E');
111 Name_uF : constant Name_Id := First_Name_Id + Character'Pos ('F');
112 Name_uG : constant Name_Id := First_Name_Id + Character'Pos ('G');
113 Name_uH : constant Name_Id := First_Name_Id + Character'Pos ('H');
114 Name_uI : constant Name_Id := First_Name_Id + Character'Pos ('I');
115 Name_uJ : constant Name_Id := First_Name_Id + Character'Pos ('J');
116 Name_uK : constant Name_Id := First_Name_Id + Character'Pos ('K');
117 Name_uL : constant Name_Id := First_Name_Id + Character'Pos ('L');
118 Name_uM : constant Name_Id := First_Name_Id + Character'Pos ('M');
119 Name_uN : constant Name_Id := First_Name_Id + Character'Pos ('N');
120 Name_uO : constant Name_Id := First_Name_Id + Character'Pos ('O');
121 Name_uP : constant Name_Id := First_Name_Id + Character'Pos ('P');
122 Name_uQ : constant Name_Id := First_Name_Id + Character'Pos ('Q');
123 Name_uR : constant Name_Id := First_Name_Id + Character'Pos ('R');
124 Name_uS : constant Name_Id := First_Name_Id + Character'Pos ('S');
125 Name_uT : constant Name_Id := First_Name_Id + Character'Pos ('T');
126 Name_uU : constant Name_Id := First_Name_Id + Character'Pos ('U');
127 Name_uV : constant Name_Id := First_Name_Id + Character'Pos ('V');
128 Name_uW : constant Name_Id := First_Name_Id + Character'Pos ('W');
129 Name_uX : constant Name_Id := First_Name_Id + Character'Pos ('X');
130 Name_uY : constant Name_Id := First_Name_Id + Character'Pos ('Y');
131 Name_uZ : constant Name_Id := First_Name_Id + Character'Pos ('Z');
133 -- Note: the following table is read by the utility program 'xsnamest', and
134 -- its format should not be changed without coordinating with this program.
136 N : constant Name_Id := First_Name_Id + 256;
137 -- Synonym used in standard name definitions
139 -- Names referenced in snames.h
141 Name_uParent : constant Name_Id := N + $;
142 Name_uTag : constant Name_Id := N + $;
143 Name_Off : constant Name_Id := N + $;
144 Name_Space : constant Name_Id := N + $;
145 Name_Time : constant Name_Id := N + $;
147 -- Names of aspects for which there are no matching pragmas or attributes
148 -- so that they need to be included for aspect specification use.
150 Name_Default_Value : constant Name_Id := N + $;
151 Name_Default_Component_Value : constant Name_Id := N + $;
152 Name_Designated_Storage_Model : constant Name_Id := N + $;
153 Name_Dimension : constant Name_Id := N + $;
154 Name_Dimension_System : constant Name_Id := N + $;
155 Name_Disable_Controlled : constant Name_Id := N + $;
156 Name_Dynamic_Predicate : constant Name_Id := N + $;
157 Name_Exclusive_Functions : constant Name_Id := N + $;
158 Name_External_Initialization : constant Name_Id := N + $;
159 Name_Finalizable : constant Name_Id := N + $;
160 Name_Full_Access_Only : constant Name_Id := N + $;
161 Name_Ghost_Predicate : constant Name_Id := N + $;
162 Name_Integer_Literal : constant Name_Id := N + $;
163 Name_Local_Restrictions : constant Name_Id := N + $;
164 Name_No_Controlled_Parts : constant Name_Id := N + $;
165 Name_No_Task_Parts : constant Name_Id := N + $;
166 Name_Real_Literal : constant Name_Id := N + $;
167 Name_Relaxed_Initialization : constant Name_Id := N + $;
168 Name_Stable_Properties : constant Name_Id := N + $;
169 Name_Static_Predicate : constant Name_Id := N + $;
170 Name_Storage_Model_Type : constant Name_Id := N + $;
171 Name_String_Literal : constant Name_Id := N + $;
172 Name_Synchronization : constant Name_Id := N + $;
173 Name_Unimplemented : constant Name_Id := N + $;
174 Name_User_Aspect : constant Name_Id := N + $;
176 -- Some special names used by the expander. Note that the lower case u's
177 -- at the start of these names get translated to extra underscores. These
178 -- names are only referenced internally by expander generated code.
180 Name_uAbort_Signal : constant Name_Id := N + $;
181 Name_uAlignment : constant Name_Id := N + $;
182 Name_uAssign : constant Name_Id := N + $;
183 Name_uATCB : constant Name_Id := N + $;
184 Name_uChain : constant Name_Id := N + $;
185 Name_uController : constant Name_Id := N + $;
186 Name_uCPU : constant Name_Id := N + $;
187 Name_uDispatching_Domain : constant Name_Id := N + $;
188 Name_uFinalizer : constant Name_Id := N + $;
189 Name_uFinalizer_Old : constant Name_Id := N + $;
190 Name_uFinalization_Controller : constant Name_Id := N + $;
191 Name_uInit : constant Name_Id := N + $;
192 Name_uInit_Level : constant Name_Id := N + $;
193 Name_uInvariant : constant Name_Id := N + $;
194 Name_uMaster : constant Name_Id := N + $;
195 Name_uObject : constant Name_Id := N + $;
196 Name_uPost : constant Name_Id := N + $;
197 Name_uPostcond_Enabled : constant Name_Id := N + $;
198 Name_uPre : constant Name_Id := N + $;
199 Name_uPriority : constant Name_Id := N + $;
200 Name_uRelative_Deadline : constant Name_Id := N + $;
201 Name_uResult : constant Name_Id := N + $;
202 Name_uResult_Object_For_Postcond : constant Name_Id := N + $;
203 Name_uReturn_Success_For_Postcond : constant Name_Id := N + $;
204 Name_uSecondary_Stack : constant Name_Id := N + $;
205 Name_uSecondary_Stack_Size : constant Name_Id := N + $;
206 Name_uSize : constant Name_Id := N + $;
207 Name_uStack : constant Name_Id := N + $;
208 Name_uTask : constant Name_Id := N + $;
209 Name_uTask_Id : constant Name_Id := N + $;
210 Name_uTask_Info : constant Name_Id := N + $;
211 Name_uTask_Name : constant Name_Id := N + $;
212 Name_uType_Invariant : constant Name_Id := N + $;
213 Name_uVariants : constant Name_Id := N + $;
214 Name_uWrapped_Statements : constant Name_Id := N + $;
216 -- Names of predefined primitives used in the expansion of dispatching
217 -- requeue and select statements, Abort, 'Callable and 'Terminated.
219 Name_uDisp_Asynchronous_Select : constant Name_Id := N + $;
220 Name_uDisp_Conditional_Select : constant Name_Id := N + $;
221 Name_uDisp_Get_Prim_Op_Kind : constant Name_Id := N + $;
222 Name_uDisp_Get_Task_Id : constant Name_Id := N + $;
223 Name_uDisp_Requeue : constant Name_Id := N + $;
224 Name_uDisp_Timed_Select : constant Name_Id := N + $;
226 -- Names of routines and fields in Ada.Finalization, needed by expander
228 Name_Initialize : constant Name_Id := N + $;
229 Name_Adjust : constant Name_Id := N + $;
230 Name_Finalize : constant Name_Id := N + $;
231 Name_Finalize_Address : constant Name_Id := N + $;
232 Name_Next : constant Name_Id := N + $;
233 Name_Prev : constant Name_Id := N + $;
235 -- Names of allocation routines, also needed by expander
237 Name_Allocate : constant Name_Id := N + $;
238 Name_Deallocate : constant Name_Id := N + $;
239 Name_Dereference : constant Name_Id := N + $;
241 -- Text_IO generic subpackages (see Rtsfind.Check_Text_IO_Special_Unit)
243 First_Text_IO_Package : constant Name_Id := N + $;
244 Name_Decimal_IO : constant Name_Id := N + $;
245 Name_Enumeration_IO : constant Name_Id := N + $;
246 Name_Fixed_IO : constant Name_Id := N + $;
247 Name_Float_IO : constant Name_Id := N + $;
248 Name_Integer_IO : constant Name_Id := N + $;
249 Name_Modular_IO : constant Name_Id := N + $;
250 Last_Text_IO_Package : constant Name_Id := N + $;
252 subtype Text_IO_Package_Name is Name_Id
253 range First_Text_IO_Package .. Last_Text_IO_Package;
255 -- Names used by the analyzer and expander for aspect Dimension and
256 -- Dimension_System to deal with Sqrt and IO routines.
258 Name_Dim_Symbol : constant Name_Id := N + $; -- Ada 12
259 Name_Item : constant Name_Id := N + $; -- Ada 12
260 Name_Put_Dim_Of : constant Name_Id := N + $; -- Ada 12
261 Name_Sqrt : constant Name_Id := N + $; -- Ada 12
262 Name_Symbol : constant Name_Id := N + $; -- Ada 12
263 Name_Unit_Symbol : constant Name_Id := N + $; -- Ada 12
265 -- Some miscellaneous names used for error detection/recovery
267 Name_ASCII : constant Name_Id := N + $;
268 Name_Const : constant Name_Id := N + $;
269 Name_Error : constant Name_Id := N + $;
270 Name_False : constant Name_Id := N + $;
271 Name_Go : constant Name_Id := N + $;
272 Name_Put : constant Name_Id := N + $;
273 Name_Put_Line : constant Name_Id := N + $;
274 Name_To : constant Name_Id := N + $;
276 -- Name used by the integrated preprocessor
278 Name_Defined : constant Name_Id := N + $;
280 -- Names for packages that are treated specially by the compiler
282 Name_Arith_64 : constant Name_Id := N + $;
283 Name_Arith_128 : constant Name_Id := N + $;
284 Name_Exception_Traces : constant Name_Id := N + $;
285 Name_Finalization : constant Name_Id := N + $;
286 Name_Interfaces : constant Name_Id := N + $;
287 Name_Memory : constant Name_Id := N + $;
288 Name_Memory_Compare : constant Name_Id := N + $;
289 Name_Memory_Copy : constant Name_Id := N + $;
290 Name_Memory_Move : constant Name_Id := N + $;
291 Name_Memory_Set : constant Name_Id := N + $;
292 Name_Most_Recent_Exception : constant Name_Id := N + $;
293 Name_Stack_Checking : constant Name_Id := N + $;
294 Name_Standard : constant Name_Id := N + $;
295 Name_System : constant Name_Id := N + $;
296 Name_Text_IO : constant Name_Id := N + $;
297 Name_Wide_Text_IO : constant Name_Id := N + $;
298 Name_Wide_Wide_Text_IO : constant Name_Id := N + $;
300 -- Names for detecting predefined potentially blocking subprograms
302 Name_Abort_Task : constant Name_Id := N + $;
303 Name_Bounded_IO : constant Name_Id := N + $;
304 Name_C_Streams : constant Name_Id := N + $;
305 Name_Complex_IO : constant Name_Id := N + $;
306 Name_Directories : constant Name_Id := N + $;
307 Name_Direct_IO : constant Name_Id := N + $;
308 Name_Dispatching : constant Name_Id := N + $;
309 Name_Editing : constant Name_Id := N + $;
310 Name_EDF : constant Name_Id := N + $;
311 Name_Reset_Standard_Files : constant Name_Id := N + $;
312 Name_Sequential_IO : constant Name_Id := N + $;
313 Name_Strings : constant Name_Id := N + $;
314 Name_Streams : constant Name_Id := N + $;
315 Name_Suspend_Until_True : constant Name_Id := N + $;
316 Name_Suspend_Until_True_And_Set_Deadline : constant Name_Id := N + $;
317 Name_Synchronous_Barriers : constant Name_Id := N + $;
318 Name_Task_Identification : constant Name_Id := N + $;
319 Name_Text_Streams : constant Name_Id := N + $;
320 Name_Unbounded : constant Name_Id := N + $;
321 Name_Unbounded_IO : constant Name_Id := N + $;
322 Name_Wait_For_Release : constant Name_Id := N + $;
323 Name_Wide_Unbounded : constant Name_Id := N + $;
324 Name_Wide_Wide_Unbounded : constant Name_Id := N + $;
325 Name_Yield : constant Name_Id := N + $;
327 -- Names of implementations of the distributed systems annex
329 First_PCS_Name : constant Name_Id := N + $;
330 Name_No_DSA : constant Name_Id := N + $;
331 Name_GARLIC_DSA : constant Name_Id := N + $;
332 Name_PolyORB_DSA : constant Name_Id := N + $;
333 Last_PCS_Name : constant Name_Id := N + $;
335 subtype PCS_Names is Name_Id
336 range First_PCS_Name .. Last_PCS_Name;
338 -- Names of identifiers used in expanding distribution stubs
340 Name_Addr : constant Name_Id := N + $;
341 Name_Async : constant Name_Id := N + $;
342 Name_Get_Active_Partition_ID : constant Name_Id := N + $;
343 Name_Get_RCI_Package_Receiver : constant Name_Id := N + $;
344 Name_Get_RCI_Package_Ref : constant Name_Id := N + $;
345 Name_Origin : constant Name_Id := N + $;
346 Name_Params : constant Name_Id := N + $;
347 Name_Partition : constant Name_Id := N + $;
348 Name_Ras : constant Name_Id := N + $;
349 Name_uCall : constant Name_Id := N + $;
350 Name_RCI_Name : constant Name_Id := N + $;
351 Name_Receiver : constant Name_Id := N + $;
352 Name_Rpc : constant Name_Id := N + $;
353 Name_Subp_Id : constant Name_Id := N + $;
354 Name_Operation : constant Name_Id := N + $;
355 Name_Argument : constant Name_Id := N + $;
356 Name_Arg_Modes : constant Name_Id := N + $;
357 Name_Target : constant Name_Id := N + $;
358 Name_Req : constant Name_Id := N + $;
359 Name_Obj_TypeCode : constant Name_Id := N + $;
360 Name_Stub : constant Name_Id := N + $;
362 -- Operator Symbol entries. The actual names have an upper case O at the
363 -- start in place of the Op_ prefix (e.g. the actual name that corresponds
364 -- to Name_Op_Abs is "Oabs").
366 First_Operator_Name : constant Name_Id := N + $;
367 Name_Op_Abs : constant Name_Id := N + $; -- "abs"
368 Name_Op_And : constant Name_Id := N + $; -- "and"
369 Name_Op_Mod : constant Name_Id := N + $; -- "mod"
370 Name_Op_Not : constant Name_Id := N + $; -- "not"
371 Name_Op_Or : constant Name_Id := N + $; -- "or"
372 Name_Op_Rem : constant Name_Id := N + $; -- "rem"
373 Name_Op_Xor : constant Name_Id := N + $; -- "xor"
374 Name_Op_Eq : constant Name_Id := N + $; -- "="
375 Name_Op_Ne : constant Name_Id := N + $; -- "/="
376 Name_Op_Lt : constant Name_Id := N + $; -- "<"
377 Name_Op_Le : constant Name_Id := N + $; -- "<="
378 Name_Op_Gt : constant Name_Id := N + $; -- ">"
379 Name_Op_Ge : constant Name_Id := N + $; -- ">="
380 Name_Op_Add : constant Name_Id := N + $; -- "+"
381 Name_Op_Subtract : constant Name_Id := N + $; -- "-"
382 Name_Op_Concat : constant Name_Id := N + $; -- "&"
383 Name_Op_Multiply : constant Name_Id := N + $; -- "*"
384 Name_Op_Divide : constant Name_Id := N + $; -- "/"
385 Name_Op_Expon : constant Name_Id := N + $; -- "**"
386 Last_Operator_Name : constant Name_Id := N + $;
388 -- Names for all pragmas recognized by GNAT. The entries with the comment
389 -- "Ada 83" are pragmas that are defined in Ada 83, but not in Ada 95.
390 -- These pragmas are fully implemented in all modes (Ada 83, Ada 95, and
391 -- Ada 2005). In Ada 95 and Ada 2005 modes, they are technically considered
392 -- to be implementation dependent pragmas.
394 -- The entries marked GNAT are pragmas that are defined by GNAT and that
395 -- are implemented in all modes (Ada 83, Ada 95, and Ada 2005). Complete
396 -- descriptions of the syntax of these implementation dependent pragmas may
397 -- be found in the appropriate section in unit Sem_Prag in file
398 -- sem-prag.adb, and they are documented in the GNAT reference manual.
400 -- The entries marked Ada 05 are Ada 2005 pragmas. They are implemented in
401 -- Ada 83 and Ada 95 mode as well, where they are technically considered to
402 -- be implementation dependent pragmas.
404 -- The entries marked Ada 12 are Ada 2012 pragmas. They are implemented in
405 -- Ada 83, Ada 95, and Ada 2005 mode as well, where they are technically
406 -- considered to be implementation dependent pragmas.
408 First_Pragma_Name : constant Name_Id := N + $;
410 -- Configuration pragmas are grouped at start. Note that there is a list
411 -- of them in the GNAT UG (doc/gnat_ugn/the_gnat_compilation_model.rst),
412 -- be sure to update this list if a new configuration pragma is added.
414 Name_Ada_83 : constant Name_Id := N + $; -- GNAT
415 Name_Ada_95 : constant Name_Id := N + $; -- GNAT
416 Name_Ada_05 : constant Name_Id := N + $; -- GNAT
417 Name_Ada_2005 : constant Name_Id := N + $; -- GNAT
418 Name_Ada_12 : constant Name_Id := N + $; -- GNAT
419 Name_Ada_2012 : constant Name_Id := N + $; -- GNAT
420 Name_Ada_2022 : constant Name_Id := N + $; -- GNAT
421 Name_Aggregate_Individually_Assign : constant Name_Id := N + $; -- GNAT
422 Name_Allow_Integer_Address : constant Name_Id := N + $; -- GNAT
423 Name_Annotate : constant Name_Id := N + $; -- GNAT
424 Name_Assertion_Policy : constant Name_Id := N + $; -- Ada 05
425 Name_Assume_No_Invalid_Values : constant Name_Id := N + $; -- GNAT
426 Name_C_Pass_By_Copy : constant Name_Id := N + $; -- GNAT
427 Name_Check_Float_Overflow : constant Name_Id := N + $; -- GNAT
428 Name_Check_Name : constant Name_Id := N + $; -- GNAT
429 Name_Check_Policy : constant Name_Id := N + $; -- GNAT
430 Name_Component_Alignment : constant Name_Id := N + $; -- GNAT
431 Name_Convention_Identifier : constant Name_Id := N + $; -- GNAT
432 Name_Debug_Policy : constant Name_Id := N + $; -- GNAT
434 -- Note: Default_Scalar_Storage_Order is not in this list because its name
435 -- matches the name of the corresponding attribute. However, it is included
436 -- in the definition of the type Pragma_Id, and the functions Get_Pragma_Id
437 -- and Is_Pragma_Name correctly recognize Default_Scalar_Storage_Order.
439 Name_Default_Storage_Pool : constant Name_Id := N + $; -- Ada 12
440 Name_Detect_Blocking : constant Name_Id := N + $; -- Ada 05
441 Name_Disable_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
442 Name_Discard_Names : constant Name_Id := N + $;
443 Name_Elaboration_Checks : constant Name_Id := N + $; -- GNAT
444 Name_Eliminate : constant Name_Id := N + $; -- GNAT
445 Name_Enable_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
446 Name_Extend_System : constant Name_Id := N + $; -- GNAT
447 Name_Extensions_Allowed : constant Name_Id := N + $; -- GNAT
448 Name_External_Name_Casing : constant Name_Id := N + $; -- GNAT
450 -- Note: Fast_Math is not in this list because its name matches the name of
451 -- the corresponding attribute. However, it is included in the definition
452 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
453 -- correctly recognize and process Fast_Math.
455 Name_Favor_Top_Level : constant Name_Id := N + $; -- GNAT
456 Name_GNAT_Annotate : constant Name_Id := N + $; -- GNAT
457 Name_Ignore_Pragma : constant Name_Id := N + $; -- GNAT
458 Name_Implicit_Packing : constant Name_Id := N + $; -- GNAT
459 Name_Initialize_Scalars : constant Name_Id := N + $; -- GNAT
460 Name_Interrupt_State : constant Name_Id := N + $; -- GNAT
461 Name_License : constant Name_Id := N + $; -- GNAT
462 Name_Locking_Policy : constant Name_Id := N + $;
463 Name_No_Component_Reordering : constant Name_Id := N + $; -- GNAT
464 Name_No_Heap_Finalization : constant Name_Id := N + $; -- GNAT
465 Name_No_Run_Time : constant Name_Id := N + $; -- GNAT
466 Name_Interrupts_System_By_Default : constant Name_Id := N + $; -- GNAT
467 Name_No_Strict_Aliasing : constant Name_Id := N + $; -- GNAT
468 Name_Normalize_Scalars : constant Name_Id := N + $;
469 Name_Optimize_Alignment : constant Name_Id := N + $; -- GNAT
470 Name_Overflow_Mode : constant Name_Id := N + $; -- GNAT
471 Name_Overriding_Renamings : constant Name_Id := N + $; -- GNAT
472 Name_Partition_Elaboration_Policy : constant Name_Id := N + $; -- Ada 05
473 Name_Persistent_BSS : constant Name_Id := N + $; -- GNAT
474 Name_Prefix_Exception_Messages : constant Name_Id := N + $; -- GNAT
475 Name_Priority_Specific_Dispatching : constant Name_Id := N + $; -- Ada 05
476 Name_Profile : constant Name_Id := N + $; -- Ada 05
477 Name_Profile_Warnings : constant Name_Id := N + $; -- GNAT
478 Name_Propagate_Exceptions : constant Name_Id := N + $; -- GNAT
479 Name_Queuing_Policy : constant Name_Id := N + $;
480 Name_Rational : constant Name_Id := N + $; -- GNAT
481 Name_Ravenscar : constant Name_Id := N + $; -- GNAT
482 Name_Rename_Pragma : constant Name_Id := N + $; -- GNAT
483 Name_Restricted_Run_Time : constant Name_Id := N + $; -- GNAT
484 Name_Restrictions : constant Name_Id := N + $;
485 Name_Restriction_Warnings : constant Name_Id := N + $; -- GNAT
486 Name_Reviewable : constant Name_Id := N + $;
487 Name_Short_Circuit_And_Or : constant Name_Id := N + $; -- GNAT
488 Name_Short_Descriptors : constant Name_Id := N + $; -- GNAT
489 Name_Source_File_Name : constant Name_Id := N + $; -- GNAT
490 Name_Source_File_Name_Project : constant Name_Id := N + $; -- GNAT
491 Name_SPARK_Mode : constant Name_Id := N + $; -- GNAT
492 Name_Style_Checks : constant Name_Id := N + $; -- GNAT
493 Name_Suppress : constant Name_Id := N + $;
494 Name_Suppress_Exception_Locations : constant Name_Id := N + $; -- GNAT
495 Name_Task_Dispatching_Policy : constant Name_Id := N + $;
496 Name_Unevaluated_Use_Of_Old : constant Name_Id := N + $; -- GNAT
497 Name_Unsuppress : constant Name_Id := N + $; -- Ada 05
498 Name_Use_VADS_Size : constant Name_Id := N + $; -- GNAT
499 Name_User_Aspect_Definition : constant Name_Id := N + $; -- GNAT
500 Name_Validity_Checks : constant Name_Id := N + $; -- GNAT
501 Name_Warning_As_Error : constant Name_Id := N + $; -- GNAT
502 Name_Warnings : constant Name_Id := N + $; -- GNAT
503 Name_Wide_Character_Encoding : constant Name_Id := N + $; -- GNAT
504 Last_Configuration_Pragma_Name : constant Name_Id := N + $;
506 -- Remaining pragma names (non-configuration pragmas)
508 Name_Abort_Defer : constant Name_Id := N + $; -- GNAT
509 Name_Abstract_State : constant Name_Id := N + $; -- GNAT
510 Name_All_Calls_Remote : constant Name_Id := N + $;
511 Name_Always_Terminates : constant Name_Id := N + $; -- GNAT
512 Name_Assert : constant Name_Id := N + $; -- Ada 05
513 Name_Assert_And_Cut : constant Name_Id := N + $; -- GNAT
514 Name_Assume : constant Name_Id := N + $; -- GNAT
515 Name_Async_Readers : constant Name_Id := N + $; -- GNAT
516 Name_Async_Writers : constant Name_Id := N + $; -- GNAT
517 Name_Asynchronous : constant Name_Id := N + $;
518 Name_Atomic : constant Name_Id := N + $;
519 Name_Atomic_Components : constant Name_Id := N + $;
520 Name_Attach_Handler : constant Name_Id := N + $;
521 Name_Attribute_Definition : constant Name_Id := N + $; -- GNAT
522 Name_Check : constant Name_Id := N + $; -- GNAT
523 Name_Comment : constant Name_Id := N + $; -- GNAT
524 Name_Common_Object : constant Name_Id := N + $; -- GNAT
525 Name_Compile_Time_Error : constant Name_Id := N + $; -- GNAT
526 Name_Compile_Time_Warning : constant Name_Id := N + $; -- GNAT
527 Name_Complete_Representation : constant Name_Id := N + $; -- GNAT
528 Name_Complex_Representation : constant Name_Id := N + $; -- GNAT
529 Name_Constant_After_Elaboration : constant Name_Id := N + $; -- GNAT
530 Name_Contract_Cases : constant Name_Id := N + $; -- GNAT
531 Name_Controlled : constant Name_Id := N + $;
532 Name_Convention : constant Name_Id := N + $;
533 Name_CPP_Class : constant Name_Id := N + $; -- GNAT
534 Name_CPP_Constructor : constant Name_Id := N + $; -- GNAT
535 Name_CPP_Virtual : constant Name_Id := N + $; -- GNAT
536 Name_CPP_Vtable : constant Name_Id := N + $; -- GNAT
537 Name_CUDA_Device : constant Name_Id := N + $; -- GNAT
538 Name_CUDA_Execute : constant Name_Id := N + $; -- GNAT
539 Name_CUDA_Global : constant Name_Id := N + $; -- GNAT
541 -- Note: CPU is not in this list because its name matches the name of
542 -- the corresponding attribute. However, it is included in the definition
543 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
544 -- correctly recognize and process CPU. CPU is a standard Ada 2012 pragma.
546 Name_Deadline_Floor : constant Name_Id := N + $; -- GNAT
547 Name_Debug : constant Name_Id := N + $; -- GNAT
548 Name_Default_Initial_Condition : constant Name_Id := N + $; -- GNAT
549 Name_Depends : constant Name_Id := N + $; -- GNAT
551 -- Note: Dispatching_Domain is not in this list because its name matches
552 -- the name of the corresponding attribute. However, it is included in the
553 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
554 -- Is_Pragma_Name correctly recognize and process Dispatching_Domain.
555 -- Dispatching_Domain is a standard Ada 2012 pragma.
557 Name_Effective_Reads : constant Name_Id := N + $; -- GNAT
558 Name_Effective_Writes : constant Name_Id := N + $; -- GNAT
559 Name_Elaborate : constant Name_Id := N + $; -- Ada 83
560 Name_Elaborate_All : constant Name_Id := N + $;
561 Name_Elaborate_Body : constant Name_Id := N + $;
562 Name_Exceptional_Cases : constant Name_Id := N + $; -- GNAT
563 Name_Export : constant Name_Id := N + $;
564 Name_Export_Function : constant Name_Id := N + $; -- GNAT
565 Name_Export_Object : constant Name_Id := N + $; -- GNAT
566 Name_Export_Procedure : constant Name_Id := N + $; -- GNAT
567 Name_Export_Valued_Procedure : constant Name_Id := N + $; -- GNAT
568 Name_Extended_Access : constant Name_Id := N + $; -- GNAT
569 Name_Extensions_Visible : constant Name_Id := N + $; -- GNAT
570 Name_External : constant Name_Id := N + $; -- GNAT
571 Name_Finalize_Storage_Only : constant Name_Id := N + $; -- GNAT
572 Name_First_Controlling_Parameter : constant Name_Id := N + $;
573 Name_Ghost : constant Name_Id := N + $; -- GNAT
574 Name_Global : constant Name_Id := N + $; -- GNAT
575 Name_Ident : constant Name_Id := N + $; -- GNAT
576 Name_Implementation_Defined : constant Name_Id := N + $; -- GNAT
577 Name_Implemented : constant Name_Id := N + $; -- Ada 12
578 Name_Import : constant Name_Id := N + $;
579 Name_Import_Function : constant Name_Id := N + $; -- GNAT
580 Name_Import_Object : constant Name_Id := N + $; -- GNAT
581 Name_Import_Procedure : constant Name_Id := N + $; -- GNAT
582 Name_Import_Valued_Procedure : constant Name_Id := N + $; -- GNAT
583 Name_Independent : constant Name_Id := N + $; -- Ada 12
584 Name_Independent_Components : constant Name_Id := N + $; -- Ada 12
585 Name_Initial_Condition : constant Name_Id := N + $; -- GNAT
586 Name_Initializes : constant Name_Id := N + $; -- GNAT
587 Name_Inline : constant Name_Id := N + $;
588 Name_Inline_Always : constant Name_Id := N + $; -- GNAT
589 Name_Inline_Generic : constant Name_Id := N + $; -- GNAT
590 Name_Inspection_Point : constant Name_Id := N + $;
592 -- Note: Interface is not in this list because its name matches an Ada 05
593 -- keyword. However it is included in the definition of the type Pragma_Id,
594 -- and the functions Get_Pragma_Id and Is_Pragma_Name correctly recognize
595 -- and process Name_Interface.
597 Name_Interface_Name : constant Name_Id := N + $; -- GNAT
598 Name_Interrupt_Handler : constant Name_Id := N + $;
600 -- Note: Interrupt_Priority is not in this list because its name matches
601 -- the name of the corresponding attribute. However, it is included in the
602 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
603 -- Is_Pragma_Name correctly recognize and process Interrupt_Priority.
605 Name_Invariant : constant Name_Id := N + $; -- GNAT
606 Name_Keep_Names : constant Name_Id := N + $; -- GNAT
607 Name_Link_With : constant Name_Id := N + $; -- GNAT
608 Name_Linker_Alias : constant Name_Id := N + $; -- GNAT
609 Name_Linker_Constructor : constant Name_Id := N + $; -- GNAT
610 Name_Linker_Destructor : constant Name_Id := N + $; -- GNAT
611 Name_Linker_Options : constant Name_Id := N + $;
612 Name_Linker_Section : constant Name_Id := N + $; -- GNAT
613 Name_List : constant Name_Id := N + $;
614 Name_Lock_Free : constant Name_Id := N + $; -- GNAT
615 Name_Loop_Invariant : constant Name_Id := N + $; -- GNAT
616 Name_Loop_Optimize : constant Name_Id := N + $; -- GNAT
617 Name_Loop_Variant : constant Name_Id := N + $; -- GNAT
618 Name_Machine_Attribute : constant Name_Id := N + $; -- GNAT
619 Name_Main : constant Name_Id := N + $; -- GNAT
620 Name_Main_Storage : constant Name_Id := N + $; -- GNAT
621 Name_Max_Entry_Queue_Length : constant Name_Id := N + $; -- Ada 12
622 Name_Max_Queue_Length : constant Name_Id := N + $; -- GNAT
623 Name_Memory_Size : constant Name_Id := N + $; -- Ada 83
624 Name_No_Body : constant Name_Id := N + $; -- GNAT
625 Name_No_Caching : constant Name_Id := N + $; -- GNAT
626 Name_No_Elaboration_Code_All : constant Name_Id := N + $; -- GNAT
627 Name_No_Inline : constant Name_Id := N + $; -- GNAT
628 Name_No_Raise : constant Name_Id := N + $; -- GNAT
629 Name_No_Return : constant Name_Id := N + $; -- Ada 05
630 Name_No_Tagged_Streams : constant Name_Id := N + $; -- GNAT
631 Name_Obsolescent : constant Name_Id := N + $; -- GNAT
632 Name_Optimize : constant Name_Id := N + $;
633 Name_Ordered : constant Name_Id := N + $; -- GNAT
634 Name_Pack : constant Name_Id := N + $;
635 Name_Page : constant Name_Id := N + $;
636 Name_Part_Of : constant Name_Id := N + $; -- GNAT
637 Name_Passive : constant Name_Id := N + $; -- GNAT
638 Name_Post : constant Name_Id := N + $; -- GNAT
639 Name_Postcondition : constant Name_Id := N + $; -- GNAT
640 Name_Post_Class : constant Name_Id := N + $; -- GNAT
641 Name_Pre : constant Name_Id := N + $; -- GNAT
642 Name_Precondition : constant Name_Id := N + $; -- GNAT
643 Name_Predicate : constant Name_Id := N + $; -- GNAT
644 Name_Predicate_Failure : constant Name_Id := N + $; -- Ada 12
646 -- Note: Preelaborable_Initialization is not in this list because its name
647 -- matches the name of the corresponding attribute. However, it is included
648 -- in the definition of the type Pragma_Id, and the functions Get_Pragma_Id
649 -- and Is_Pragma_Name correctly recognize and process that pragma name.
650 -- Preelaborable_Initialization is a standard Ada 2005 pragma.
652 Name_Preelaborate : constant Name_Id := N + $;
653 Name_Pre_Class : constant Name_Id := N + $; -- GNAT
655 -- Note: Priority is not in this list because its name matches the name of
656 -- the corresponding attribute. However, it is included in the definition
657 -- of the type Pragma_Id and the functions Get_Pragma_Id and Is_Pragma_Name
658 -- correctly recognize and process Priority. Priority is a standard Ada 95
661 Name_Provide_Shift_Operators : constant Name_Id := N + $; -- GNAT
662 Name_Psect_Object : constant Name_Id := N + $; -- GNAT
663 Name_Pure : constant Name_Id := N + $;
664 Name_Pure_Function : constant Name_Id := N + $; -- GNAT
665 Name_Refined_Depends : constant Name_Id := N + $; -- GNAT
666 Name_Refined_Global : constant Name_Id := N + $; -- GNAT
667 Name_Refined_Post : constant Name_Id := N + $; -- GNAT
668 Name_Refined_State : constant Name_Id := N + $; -- GNAT
669 Name_Relative_Deadline : constant Name_Id := N + $; -- Ada 05
670 Name_Remote_Access_Type : constant Name_Id := N + $; -- GNAT
671 Name_Remote_Call_Interface : constant Name_Id := N + $;
672 Name_Remote_Types : constant Name_Id := N + $;
674 -- Note: Secondary_Stack_Size is not in this list because its name matches
675 -- the name of the corresponding attribute. However, it is included in the
676 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
677 -- Is_Pragma_Name correctly recognize and process Secondary_Stack_Size.
679 Name_Share_Generic : constant Name_Id := N + $; -- GNAT
680 Name_Shared : constant Name_Id := N + $; -- Ada 83
681 Name_Shared_Passive : constant Name_Id := N + $;
682 Name_Side_Effects : constant Name_Id := N + $; -- GNAT
683 Name_Simple_Storage_Pool_Type : constant Name_Id := N + $; -- GNAT
684 Name_Simulate_Internal_Error : constant Name_Id := N + $; -- GNAT
685 Name_Source_Reference : constant Name_Id := N + $; -- GNAT
686 Name_Static_Elaboration_Desired : constant Name_Id := N + $; -- GNAT
688 -- Note: Storage_Size is not in this list because its name matches the name
689 -- of the corresponding attribute. However, it is included in the
690 -- definition of the type Pragma_Id, and the functions Get_Pragma_Id and
691 -- Is_Pragma_Name correctly recognize and process Name_Storage_Size.
693 -- Note: Storage_Unit is also omitted from the list because of a clash with
694 -- an attribute name, and is treated similarly.
696 Name_Stream_Convert : constant Name_Id := N + $; -- GNAT
697 Name_Subprogram_Variant : constant Name_Id := N + $; -- GNAT
698 Name_Subtitle : constant Name_Id := N + $; -- GNAT
699 Name_Suppress_All : constant Name_Id := N + $; -- GNAT
700 Name_Suppress_Debug_Info : constant Name_Id := N + $; -- GNAT
701 Name_Suppress_Initialization : constant Name_Id := N + $; -- GNAT
702 Name_System_Name : constant Name_Id := N + $; -- Ada 83
703 Name_Task_Info : constant Name_Id := N + $; -- GNAT
704 Name_Task_Name : constant Name_Id := N + $; -- GNAT
705 Name_Task_Storage : constant Name_Id := N + $; -- GNAT
706 Name_Test_Case : constant Name_Id := N + $; -- GNAT
707 Name_Thread_Local_Storage : constant Name_Id := N + $; -- GNAT
708 Name_Time_Slice : constant Name_Id := N + $; -- GNAT
709 Name_Title : constant Name_Id := N + $; -- GNAT
710 Name_Type_Invariant : constant Name_Id := N + $; -- GNAT
711 Name_Type_Invariant_Class : constant Name_Id := N + $; -- GNAT
712 Name_Unchecked_Union : constant Name_Id := N + $; -- Ada 05
713 Name_Unimplemented_Unit : constant Name_Id := N + $; -- GNAT
714 Name_Universal_Aliasing : constant Name_Id := N + $; -- GNAT
715 Name_Unmodified : constant Name_Id := N + $; -- GNAT
716 Name_Unreferenced : constant Name_Id := N + $; -- GNAT
717 Name_Unreferenced_Objects : constant Name_Id := N + $; -- GNAT
718 Name_Unreserve_All_Interrupts : constant Name_Id := N + $; -- GNAT
719 Name_Unused : constant Name_Id := N + $; -- GNAT
720 Name_Volatile : constant Name_Id := N + $;
721 Name_Volatile_Components : constant Name_Id := N + $;
722 Name_Volatile_Full_Access : constant Name_Id := N + $; -- GNAT
723 Name_Volatile_Function : constant Name_Id := N + $; -- GNAT
724 Name_Weak_External : constant Name_Id := N + $; -- GNAT
725 Last_Pragma_Name : constant Name_Id := N + $;
727 -- Language convention names for pragma Convention/Export/Import/Interface
728 -- Note that Name_C is not included in this list, since it was already
729 -- declared earlier in the context of one-character identifier names (where
730 -- the order is critical to the fast look up process).
732 -- Note: there are no convention names corresponding to the conventions
733 -- Entry and Protected, this is because these conventions cannot be
734 -- specified by a pragma.
736 First_Convention_Name : constant Name_Id := N + $;
737 Name_Ada : constant Name_Id := N + $;
738 Name_Ada_Pass_By_Copy : constant Name_Id := N + $;
739 Name_Ada_Pass_By_Reference : constant Name_Id := N + $;
740 Name_Assembler : constant Name_Id := N + $;
741 Name_C_Variadic_0 : constant Name_Id := N + $;
742 Name_C_Variadic_1 : constant Name_Id := N + $;
743 Name_C_Variadic_2 : constant Name_Id := N + $;
744 Name_C_Variadic_3 : constant Name_Id := N + $;
745 Name_C_Variadic_4 : constant Name_Id := N + $;
746 Name_C_Variadic_5 : constant Name_Id := N + $;
747 Name_C_Variadic_6 : constant Name_Id := N + $;
748 Name_C_Variadic_7 : constant Name_Id := N + $;
749 Name_C_Variadic_8 : constant Name_Id := N + $;
750 Name_C_Variadic_9 : constant Name_Id := N + $;
751 Name_C_Variadic_10 : constant Name_Id := N + $;
752 Name_C_Variadic_11 : constant Name_Id := N + $;
753 Name_C_Variadic_12 : constant Name_Id := N + $;
754 Name_C_Variadic_13 : constant Name_Id := N + $;
755 Name_C_Variadic_14 : constant Name_Id := N + $;
756 Name_C_Variadic_15 : constant Name_Id := N + $;
757 Name_C_Variadic_16 : constant Name_Id := N + $;
758 Name_COBOL : constant Name_Id := N + $;
759 Name_CPP : constant Name_Id := N + $;
760 Name_Fortran : constant Name_Id := N + $;
761 Name_Intrinsic : constant Name_Id := N + $;
762 Name_Stdcall : constant Name_Id := N + $;
763 Name_Stubbed : constant Name_Id := N + $;
764 Last_Convention_Name : constant Name_Id := N + $;
766 subtype Name_C_Variadic is Name_Id
767 range Name_C_Variadic_0 .. Name_C_Variadic_16;
769 -- The following names are preset as synonyms for Assembler
771 Name_Asm : constant Name_Id := N + $;
772 Name_Assembly : constant Name_Id := N + $;
774 -- The following names are preset as synonyms for C
776 Name_Default : constant Name_Id := N + $;
777 -- Name_External (previously defined as pragma)
779 -- The following names are preset as synonyms for CPP
781 Name_C_Plus_Plus : constant Name_Id := N + $;
783 -- The following names are present as synonyms for Stdcall
785 Name_DLL : constant Name_Id := N + $;
786 Name_Win32 : constant Name_Id := N + $;
788 -- Other special names used in processing attributes, aspects, and pragmas
790 Name_Address_Type : constant Name_Id := N + $;
791 Name_Aggregate : constant Name_Id := N + $;
792 Name_All_Extensions : constant Name_Id := N + $;
793 Name_Allow : constant Name_Id := N + $;
794 Name_Amount : constant Name_Id := N + $;
795 Name_As_Is : constant Name_Id := N + $;
796 Name_Assertion : constant Name_Id := N + $;
797 Name_Assertions : constant Name_Id := N + $;
798 Name_Attribute_Name : constant Name_Id := N + $;
799 Name_Auto : constant Name_Id := N + $;
800 Name_Body_File_Name : constant Name_Id := N + $;
801 Name_Boolean_Entry_Barriers : constant Name_Id := N + $;
802 Name_By_Any : constant Name_Id := N + $;
803 Name_By_Entry : constant Name_Id := N + $;
804 Name_By_Protected_Procedure : constant Name_Id := N + $;
805 Name_Casing : constant Name_Id := N + $;
806 Name_Code : constant Name_Id := N + $;
807 Name_Component : constant Name_Id := N + $;
808 Name_Component_Size_4 : constant Name_Id := N + $;
809 Name_Copy : constant Name_Id := N + $;
810 Name_Copy_From : constant Name_Id := N + $;
811 Name_Copy_To : constant Name_Id := N + $;
812 Name_Decreases : constant Name_Id := N + $;
813 Name_Disable : constant Name_Id := N + $;
814 Name_Dot_Replacement : constant Name_Id := N + $;
815 Name_Dynamic : constant Name_Id := N + $;
816 Name_Eliminated : constant Name_Id := N + $;
817 Name_Ensures : constant Name_Id := N + $;
818 Name_Entity : constant Name_Id := N + $;
819 Name_External_Name : constant Name_Id := N + $;
820 Name_Form : constant Name_Id := N + $;
821 Name_Gcc : constant Name_Id := N + $;
822 Name_General : constant Name_Id := N + $;
823 Name_Gnat : constant Name_Id := N + $;
824 Name_Gnat_Extended_Ravenscar : constant Name_Id := N + $;
825 Name_Gnat_Ravenscar_EDF : constant Name_Id := N + $;
826 Name_Gnatprove : constant Name_Id := N + $;
827 Name_GPL : constant Name_Id := N + $;
828 Name_High_Order_First : constant Name_Id := N + $;
829 Name_Ignore : constant Name_Id := N + $;
830 Name_In_Out : constant Name_Id := N + $;
831 Name_Increases : constant Name_Id := N + $;
832 Name_Info : constant Name_Id := N + $;
833 Name_Internal : constant Name_Id := N + $;
834 Name_Ivdep : constant Name_Id := N + $;
835 Name_Jorvik : constant Name_Id := N + $;
836 Name_Link_Name : constant Name_Id := N + $;
837 Name_Low_Order_First : constant Name_Id := N + $;
838 Name_Lowercase : constant Name_Id := N + $;
839 Name_Max_Entry_Queue_Depth : constant Name_Id := N + $;
840 Name_Max_Size : constant Name_Id := N + $;
841 Name_Mechanism : constant Name_Id := N + $;
842 Name_Message : constant Name_Id := N + $;
843 Name_Minimized : constant Name_Id := N + $;
844 Name_Mixedcase : constant Name_Id := N + $;
845 Name_Mode : constant Name_Id := N + $;
846 Name_Modified_GPL : constant Name_Id := N + $;
847 Name_Name : constant Name_Id := N + $;
848 Name_New_Name : constant Name_Id := N + $;
849 Name_No : constant Name_Id := N + $;
850 Name_No_Dependence : constant Name_Id := N + $;
851 Name_No_Dynamic_Attachment : constant Name_Id := N + $;
852 Name_No_Dynamic_Interrupts : constant Name_Id := N + $;
853 Name_No_Elaboration_Code : constant Name_Id := N + $;
854 Name_No_Implementation_Extensions : constant Name_Id := N + $;
855 Name_No_Obsolescent_Features : constant Name_Id := N + $;
856 Name_No_Requeue : constant Name_Id := N + $;
857 Name_No_Requeue_Statements : constant Name_Id := N + $;
858 Name_No_Specification_Of_Aspect : constant Name_Id := N + $;
859 Name_No_Task_Attributes : constant Name_Id := N + $;
860 Name_No_Task_Attributes_Package : constant Name_Id := N + $;
861 Name_No_Use_Of_Attribute : constant Name_Id := N + $;
862 Name_No_Use_Of_Entity : constant Name_Id := N + $;
863 Name_No_Use_Of_Pragma : constant Name_Id := N + $;
864 Name_No_Unroll : constant Name_Id := N + $;
865 Name_No_Unrecognized_Aspects : constant Name_Id := N + $;
866 Name_No_Vector : constant Name_Id := N + $;
867 Name_Nominal : constant Name_Id := N + $;
868 Name_None : constant Name_Id := N + $;
869 Name_Null_Address : constant Name_Id := N + $;
870 Name_On : constant Name_Id := N + $;
871 Name_Optional : constant Name_Id := N + $;
872 Name_Policy : constant Name_Id := N + $;
873 Name_Parameter_Types : constant Name_Id := N + $;
874 Name_Proof_In : constant Name_Id := N + $;
875 Name_Reason : constant Name_Id := N + $;
876 Name_Reference : constant Name_Id := N + $;
877 Name_Relaxed_Finalization : constant Name_Id := N + $;
878 Name_Renamed : constant Name_Id := N + $;
879 Name_Requires : constant Name_Id := N + $;
880 Name_Restricted : constant Name_Id := N + $;
881 Name_Result_Mechanism : constant Name_Id := N + $;
882 Name_Result_Type : constant Name_Id := N + $;
883 Name_Robustness : constant Name_Id := N + $;
884 Name_Runtime : constant Name_Id := N + $;
885 Name_SB : constant Name_Id := N + $;
886 Name_Section : constant Name_Id := N + $;
887 Name_Semaphore : constant Name_Id := N + $;
888 Name_Simple_Barriers : constant Name_Id := N + $;
889 Name_SPARK : constant Name_Id := N + $;
890 Name_SPARK_05 : constant Name_Id := N + $;
891 Name_Spec_File_Name : constant Name_Id := N + $;
892 Name_State : constant Name_Id := N + $;
893 Name_Statement_Assertions : constant Name_Id := N + $;
894 Name_Static : constant Name_Id := N + $;
895 Name_Stack_Size : constant Name_Id := N + $;
896 Name_Strict : constant Name_Id := N + $;
897 Name_Structural : constant Name_Id := N + $;
898 Name_Subunit_File_Name : constant Name_Id := N + $;
899 Name_Suppressible : constant Name_Id := N + $;
900 Name_Synchronous : constant Name_Id := N + $;
901 Name_Task_Stack_Size_Default : constant Name_Id := N + $;
902 Name_Task_Type : constant Name_Id := N + $;
903 Name_Time_Slicing_Enabled : constant Name_Id := N + $;
904 Name_Top_Guard : constant Name_Id := N + $;
905 Name_Unit_Name : constant Name_Id := N + $;
906 Name_Unrestricted : constant Name_Id := N + $;
907 Name_Unroll : constant Name_Id := N + $;
908 Name_Uppercase : constant Name_Id := N + $;
909 Name_User : constant Name_Id := N + $;
910 Name_Variant : constant Name_Id := N + $;
911 Name_Vector : constant Name_Id := N + $;
912 Name_Warn : constant Name_Id := N + $;
913 Name_Working_Storage : constant Name_Id := N + $;
915 -- Names of recognized attributes. The entries with the comment "Ada 83"
916 -- are attributes that are defined in Ada 83, but not in Ada 95. These
917 -- attributes are implemented in all Ada modes in GNAT.
919 -- The entries marked GNAT are attributes that are defined by GNAT and
920 -- implemented in all Ada modes. Full descriptions of these implementation
921 -- dependent attributes may be found in the appropriate Sem_Attr section.
923 First_Attribute_Name : constant Name_Id := N + $;
924 Name_Abort_Signal : constant Name_Id := N + $; -- GNAT
925 Name_Access : constant Name_Id := N + $;
926 Name_Address : constant Name_Id := N + $;
927 Name_Address_Size : constant Name_Id := N + $; -- GNAT
928 Name_Aft : constant Name_Id := N + $;
929 Name_Alignment : constant Name_Id := N + $;
930 Name_Asm_Input : constant Name_Id := N + $; -- GNAT
931 Name_Asm_Output : constant Name_Id := N + $; -- GNAT
932 Name_Atomic_Always_Lock_Free : constant Name_Id := N + $; -- GNAT
933 Name_Bit : constant Name_Id := N + $; -- GNAT
934 Name_Bit_Order : constant Name_Id := N + $;
935 Name_Bit_Position : constant Name_Id := N + $; -- GNAT
936 Name_Body_Version : constant Name_Id := N + $;
937 Name_Callable : constant Name_Id := N + $;
938 Name_Caller : constant Name_Id := N + $;
939 Name_Code_Address : constant Name_Id := N + $; -- GNAT
940 Name_Compiler_Version : constant Name_Id := N + $; -- GNAT
941 Name_Component_Size : constant Name_Id := N + $;
942 Name_Compose : constant Name_Id := N + $;
943 Name_Constant_Indexing : constant Name_Id := N + $; -- GNAT
944 Name_Constrained : constant Name_Id := N + $;
945 Name_Count : constant Name_Id := N + $;
946 Name_Default_Bit_Order : constant Name_Id := N + $; -- GNAT
947 Name_Default_Scalar_Storage_Order : constant Name_Id := N + $; -- GNAT
948 Name_Default_Iterator : constant Name_Id := N + $; -- GNAT
949 Name_Definite : constant Name_Id := N + $;
950 Name_Delta : constant Name_Id := N + $;
951 Name_Denorm : constant Name_Id := N + $;
952 Name_Deref : constant Name_Id := N + $; -- GNAT
953 Name_Descriptor_Size : constant Name_Id := N + $;
954 Name_Digits : constant Name_Id := N + $;
955 Name_Elaborated : constant Name_Id := N + $; -- GNAT
956 Name_Emax : constant Name_Id := N + $; -- Ada 83
957 Name_Enabled : constant Name_Id := N + $; -- GNAT
958 Name_Enum_Rep : constant Name_Id := N + $; -- Ada 22
959 Name_Enum_Val : constant Name_Id := N + $; -- Ada 22
960 Name_Epsilon : constant Name_Id := N + $; -- Ada 83
961 Name_Exponent : constant Name_Id := N + $;
962 Name_External_Tag : constant Name_Id := N + $;
963 Name_Fast_Math : constant Name_Id := N + $; -- GNAT
964 Name_Finalization_Size : constant Name_Id := N + $; -- GNAT
965 Name_First : constant Name_Id := N + $;
966 Name_First_Bit : constant Name_Id := N + $;
967 Name_First_Valid : constant Name_Id := N + $; -- Ada 12
968 Name_Fixed_Value : constant Name_Id := N + $; -- GNAT
969 Name_Fore : constant Name_Id := N + $;
970 Name_Has_Access_Values : constant Name_Id := N + $; -- GNAT
971 Name_Has_Discriminants : constant Name_Id := N + $; -- GNAT
972 Name_Has_Same_Storage : constant Name_Id := N + $; -- Ada 12
973 Name_Has_Tagged_Values : constant Name_Id := N + $; -- GNAT
974 Name_Identity : constant Name_Id := N + $;
975 Name_Implicit_Dereference : constant Name_Id := N + $; -- GNAT
976 Name_Index : constant Name_Id := N + $; -- Ada 22
977 Name_Initialized : constant Name_Id := N + $; -- GNAT
978 Name_Integer_Value : constant Name_Id := N + $; -- GNAT
979 Name_Invalid_Value : constant Name_Id := N + $; -- GNAT
980 Name_Iterator_Element : constant Name_Id := N + $; -- GNAT
981 Name_Iterable : constant Name_Id := N + $; -- GNAT
982 Name_Large : constant Name_Id := N + $; -- Ada 83
983 Name_Last : constant Name_Id := N + $;
984 Name_Last_Bit : constant Name_Id := N + $;
985 Name_Last_Valid : constant Name_Id := N + $; -- Ada 12
986 Name_Leading_Part : constant Name_Id := N + $;
987 Name_Length : constant Name_Id := N + $;
988 Name_Library_Level : constant Name_Id := N + $; -- GNAT
989 Name_Loop_Entry : constant Name_Id := N + $; -- GNAT
990 Name_Machine_Emax : constant Name_Id := N + $;
991 Name_Machine_Emin : constant Name_Id := N + $;
992 Name_Machine_Mantissa : constant Name_Id := N + $;
993 Name_Machine_Overflows : constant Name_Id := N + $;
994 Name_Machine_Radix : constant Name_Id := N + $;
995 Name_Machine_Rounding : constant Name_Id := N + $; -- Ada 05
996 Name_Machine_Rounds : constant Name_Id := N + $;
997 Name_Machine_Size : constant Name_Id := N + $; -- GNAT
998 Name_Mantissa : constant Name_Id := N + $; -- Ada 83
999 Name_Max_Alignment_For_Allocation : constant Name_Id := N + $; -- Ada 12
1000 Name_Max_Integer_Size : constant Name_Id := N + $; -- GNAT
1001 Name_Max_Size_In_Storage_Elements : constant Name_Id := N + $;
1002 Name_Maximum_Alignment : constant Name_Id := N + $; -- GNAT
1003 Name_Mechanism_Code : constant Name_Id := N + $; -- GNAT
1004 Name_Mod : constant Name_Id := N + $; -- Ada 05
1005 Name_Model_Emin : constant Name_Id := N + $;
1006 Name_Model_Epsilon : constant Name_Id := N + $;
1007 Name_Model_Mantissa : constant Name_Id := N + $;
1008 Name_Model_Small : constant Name_Id := N + $;
1009 Name_Modulus : constant Name_Id := N + $;
1010 Name_Null_Parameter : constant Name_Id := N + $; -- GNAT
1011 Name_Object_Size : constant Name_Id := N + $; -- GNAT
1012 Name_Old : constant Name_Id := N + $; -- Ada 12
1013 Name_Overlaps_Storage : constant Name_Id := N + $; -- GNAT
1014 Name_Partition_ID : constant Name_Id := N + $;
1015 Name_Passed_By_Reference : constant Name_Id := N + $; -- GNAT
1016 Name_Pool_Address : constant Name_Id := N + $; -- GNAT
1017 Name_Pos : constant Name_Id := N + $;
1018 Name_Position : constant Name_Id := N + $;
1019 Name_Preelaborable_Initialization : constant Name_Id := N + $; -- Ada 22
1020 Name_Priority : constant Name_Id := N + $; -- Ada 05
1021 Name_Range : constant Name_Id := N + $;
1022 Name_Range_Length : constant Name_Id := N + $; -- GNAT
1023 Name_Reduce : constant Name_Id := N + $; -- Ada 22
1024 Name_Ref : constant Name_Id := N + $; -- GNAT
1025 Name_Restriction_Set : constant Name_Id := N + $; -- GNAT
1026 Name_Result : constant Name_Id := N + $; -- GNAT
1027 Name_Round : constant Name_Id := N + $;
1028 Name_Safe_Emax : constant Name_Id := N + $; -- Ada 83
1029 Name_Safe_First : constant Name_Id := N + $;
1030 Name_Safe_Large : constant Name_Id := N + $; -- Ada 83
1031 Name_Safe_Last : constant Name_Id := N + $;
1032 Name_Safe_Small : constant Name_Id := N + $; -- Ada 83
1033 Name_Scalar_Storage_Order : constant Name_Id := N + $; -- GNAT
1034 Name_Scale : constant Name_Id := N + $;
1035 Name_Scaling : constant Name_Id := N + $;
1036 Name_Signed_Zeros : constant Name_Id := N + $;
1037 Name_Size : constant Name_Id := N + $;
1038 Name_Small : constant Name_Id := N + $; -- Ada 83
1039 Name_Small_Denominator : constant Name_Id := N + $; -- GNAT
1040 Name_Small_Numerator : constant Name_Id := N + $; -- GNAT
1041 Name_Storage_Size : constant Name_Id := N + $;
1042 Name_Storage_Unit : constant Name_Id := N + $; -- GNAT
1043 Name_Stream_Size : constant Name_Id := N + $; -- Ada 05
1044 Name_Super : constant Name_Id := N + $; -- GNAT
1045 Name_System_Allocator_Alignment : constant Name_Id := N + $; -- GNAT
1046 Name_Tag : constant Name_Id := N + $;
1047 Name_Target_Name : constant Name_Id := N + $; -- GNAT
1048 Name_Terminated : constant Name_Id := N + $;
1049 Name_To_Address : constant Name_Id := N + $; -- GNAT
1050 Name_Type_Class : constant Name_Id := N + $; -- GNAT
1051 Name_Type_Key : constant Name_Id := N + $; -- GNAT
1052 Name_Unbiased_Rounding : constant Name_Id := N + $;
1053 Name_Unchecked_Access : constant Name_Id := N + $;
1054 Name_Unconstrained_Array : constant Name_Id := N + $; -- GNAT
1055 Name_Universal_Literal_String : constant Name_Id := N + $; -- GNAT
1056 Name_Unrestricted_Access : constant Name_Id := N + $; -- GNAT
1057 Name_Update : constant Name_Id := N + $; -- GNAT
1058 Name_VADS_Size : constant Name_Id := N + $; -- GNAT
1059 Name_Val : constant Name_Id := N + $;
1060 Name_Valid : constant Name_Id := N + $;
1061 Name_Valid_Scalars : constant Name_Id := N + $; -- GNAT
1062 Name_Value_Size : constant Name_Id := N + $; -- GNAT
1063 Name_Variable_Indexing : constant Name_Id := N + $; -- GNAT
1064 Name_Version : constant Name_Id := N + $;
1065 Name_Wchar_T_Size : constant Name_Id := N + $; -- GNAT
1066 Name_Wide_Wide_Width : constant Name_Id := N + $; -- Ada 05
1067 Name_Wide_Width : constant Name_Id := N + $;
1068 Name_Width : constant Name_Id := N + $;
1069 Name_Word_Size : constant Name_Id := N + $; -- GNAT
1071 -- Attributes that designate attributes returning renamable functions,
1072 -- i.e. functions that return other than a universal value and that
1073 -- have non-universal arguments.
1075 First_Renamable_Function_Attribute : constant Name_Id := N + $;
1076 Name_Adjacent : constant Name_Id := N + $;
1077 Name_Ceiling : constant Name_Id := N + $;
1078 Name_Copy_Sign : constant Name_Id := N + $;
1079 Name_Floor : constant Name_Id := N + $;
1080 Name_Fraction : constant Name_Id := N + $;
1081 Name_From_Any : constant Name_Id := N + $; -- GNAT
1082 Name_Image : constant Name_Id := N + $;
1083 Name_Img : constant Name_Id := N + $; -- GNAT
1084 Name_Input : constant Name_Id := N + $;
1085 Name_Machine : constant Name_Id := N + $;
1086 Name_Max : constant Name_Id := N + $;
1087 Name_Min : constant Name_Id := N + $;
1088 Name_Model : constant Name_Id := N + $;
1089 Name_Pred : constant Name_Id := N + $;
1090 Name_Remainder : constant Name_Id := N + $;
1091 Name_Rounding : constant Name_Id := N + $;
1092 Name_Succ : constant Name_Id := N + $;
1093 Name_To_Any : constant Name_Id := N + $; -- GNAT
1094 Name_Truncation : constant Name_Id := N + $;
1095 Name_TypeCode : constant Name_Id := N + $; -- GNAT
1096 Name_Valid_Value : constant Name_Id := N + $; -- GNAT
1097 Name_Value : constant Name_Id := N + $;
1098 Name_Wide_Image : constant Name_Id := N + $;
1099 Name_Wide_Wide_Image : constant Name_Id := N + $;
1100 Name_Wide_Value : constant Name_Id := N + $;
1101 Name_Wide_Wide_Value : constant Name_Id := N + $;
1102 Last_Renamable_Function_Attribute : constant Name_Id := N + $;
1104 -- Attributes that designate procedures
1106 First_Procedure_Attribute : constant Name_Id := N + $;
1107 Name_Output : constant Name_Id := N + $;
1108 Name_Put_Image : constant Name_Id := N + $;
1109 Name_Read : constant Name_Id := N + $;
1110 Name_Write : constant Name_Id := N + $;
1111 Last_Procedure_Attribute : constant Name_Id := N + $;
1113 -- Remaining attributes are ones that return entities
1115 -- Note that Elab_Subp_Body is not considered to be a valid attribute name
1116 -- unless we are operating in CodePeer mode.
1118 First_Entity_Attribute_Name : constant Name_Id := N + $;
1119 Name_Elab_Body : constant Name_Id := N + $; -- GNAT
1120 Name_Elab_Spec : constant Name_Id := N + $; -- GNAT
1121 Name_Elab_Subp_Body : constant Name_Id := N + $; -- GNAT
1122 Name_Simple_Storage_Pool : constant Name_Id := N + $; -- GNAT
1123 Name_Storage_Pool : constant Name_Id := N + $;
1125 -- These attributes are the ones that return types
1127 First_Type_Attribute_Name : constant Name_Id := N + $;
1128 Name_Base : constant Name_Id := N + $;
1129 Name_Class : constant Name_Id := N + $;
1130 Name_Stub_Type : constant Name_Id := N + $; -- GNAT
1131 Last_Type_Attribute_Name : constant Name_Id := N + $;
1132 Last_Entity_Attribute_Name : constant Name_Id := N + $;
1133 Last_Attribute_Name : constant Name_Id := N + $;
1135 -- Names of internal attributes. They are not real attributes but special
1136 -- names used internally by GNAT in order to deal with delayed aspects
1137 -- (Aspect_CPU, Aspect_Dispatching_Domain, Aspect_Interrupt_Priority,
1138 -- Aspect_Secondary_Stack_Size) that don't have corresponding pragmas or
1139 -- user-referenceable attributes.
1141 -- It is convenient to have these internal attributes available for
1142 -- processing the aspects, since the normal approach is to convert an
1143 -- aspect into its corresponding pragma or attribute specification.
1145 -- These attributes do have Attribute_Id values so that case statements
1146 -- on Attribute_Id include these cases, but they are NOT included in the
1147 -- Attribute_Name subtype defined above, which is typically used in the
1148 -- front end for checking syntax of submitted programs (where the use of
1149 -- internal attributes is not permitted).
1151 First_Internal_Attribute_Name : constant Name_Id := N + $;
1152 Name_CPU : constant Name_Id := N + $;
1153 Name_Dispatching_Domain : constant Name_Id := N + $;
1154 Name_Interrupt_Priority : constant Name_Id := N + $;
1155 Name_Secondary_Stack_Size : constant Name_Id := N + $; -- GNAT
1156 Last_Internal_Attribute_Name : constant Name_Id := N + $;
1158 -- Names of recognized locking policy identifiers
1160 First_Locking_Policy_Name : constant Name_Id := N + $;
1161 Name_Ceiling_Locking : constant Name_Id := N + $;
1162 Name_Inheritance_Locking : constant Name_Id := N + $;
1163 Name_Concurrent_Readers_Locking : constant Name_Id := N + $; -- GNAT
1164 Last_Locking_Policy_Name : constant Name_Id := N + $;
1166 -- Names of recognized queuing policy identifiers
1168 -- Note: policies are identified by the first character of the name (e.g. F
1169 -- for FIFO_Queuing). If new policy names are added, the first character
1170 -- must be distinct.
1172 First_Queuing_Policy_Name : constant Name_Id := N + $;
1173 Name_FIFO_Queuing : constant Name_Id := N + $;
1174 Name_Priority_Queuing : constant Name_Id := N + $;
1175 Last_Queuing_Policy_Name : constant Name_Id := N + $;
1177 -- Names of recognized task dispatching policy identifiers
1179 -- Note: policies are identified by the first character of the name (e.g. F
1180 -- for FIFO_Within_Priorities). If new policy names are added, the first
1181 -- character must be distinct.
1183 First_Task_Dispatching_Policy_Name : constant Name_Id := N + $;
1184 Name_EDF_Across_Priorities : constant Name_Id := N + $;
1185 Name_FIFO_Within_Priorities : constant Name_Id := N + $;
1186 Name_Non_Preemptive_FIFO_Within_Priorities : constant Name_Id := N + $;
1187 Name_Round_Robin_Within_Priorities : constant Name_Id := N + $;
1188 Last_Task_Dispatching_Policy_Name : constant Name_Id := N + $;
1190 -- Names of recognized partition elaboration policy identifiers
1192 -- Note: policies are identified by the first character of the name (e.g. S
1193 -- for Sequential). If new policy names are added, the first character must
1196 First_Partition_Elaboration_Policy_Name : constant Name_Id := N + $;
1197 Name_Concurrent : constant Name_Id := N + $;
1198 Name_Sequential : constant Name_Id := N + $;
1199 Last_Partition_Elaboration_Policy_Name : constant Name_Id := N + $;
1201 -- Names of recognized scalar families for pragma Initialize_Scalars
1203 Name_Short_Float : constant Name_Id := N + $; -- GNAT
1204 Name_Float : constant Name_Id := N + $; -- GNAT
1205 Name_Long_Float : constant Name_Id := N + $; -- GNAT
1206 Name_Long_Long_Float : constant Name_Id := N + $; -- GNAT
1207 Name_Signed_8 : constant Name_Id := N + $; -- GNAT
1208 Name_Signed_16 : constant Name_Id := N + $; -- GNAT
1209 Name_Signed_32 : constant Name_Id := N + $; -- GNAT
1210 Name_Signed_64 : constant Name_Id := N + $; -- GNAT
1211 Name_Signed_128 : constant Name_Id := N + $; -- GNAT
1212 Name_Unsigned_8 : constant Name_Id := N + $; -- GNAT
1213 Name_Unsigned_16 : constant Name_Id := N + $; -- GNAT
1214 Name_Unsigned_32 : constant Name_Id := N + $; -- GNAT
1215 Name_Unsigned_64 : constant Name_Id := N + $; -- GNAT
1216 Name_Unsigned_128 : constant Name_Id := N + $; -- GNAT
1218 subtype Scalar_Id is Name_Id
1219 range Name_Short_Float .. Name_Unsigned_128;
1221 subtype Float_Scalar_Id is Name_Id
1222 range Name_Short_Float .. Name_Long_Long_Float;
1224 subtype Integer_Scalar_Id is Name_Id
1225 range Name_Signed_8 .. Name_Unsigned_128;
1227 -- Names of recognized checks for pragma Suppress
1229 -- Note: the name Atomic_Synchronization can only be specified internally
1230 -- as a result of using pragma Enable/Disable_Atomic_Synchronization.
1232 First_Check_Name : constant Name_Id := N + $;
1233 Name_Access_Check : constant Name_Id := N + $;
1234 Name_Accessibility_Check : constant Name_Id := N + $;
1235 Name_Alignment_Check : constant Name_Id := N + $; -- GNAT
1236 Name_Allocation_Check : constant Name_Id := N + $;
1237 Name_Atomic_Synchronization : constant Name_Id := N + $; -- GNAT
1238 Name_Characters_Assertion_Check : constant Name_Id := N + $;
1239 Name_Containers_Assertion_Check : constant Name_Id := N + $;
1240 Name_Discriminant_Check : constant Name_Id := N + $;
1241 Name_Division_Check : constant Name_Id := N + $;
1242 Name_Duplicated_Tag_Check : constant Name_Id := N + $; -- GNAT
1243 Name_Elaboration_Check : constant Name_Id := N + $;
1244 Name_Index_Check : constant Name_Id := N + $;
1245 Name_Interfaces_Assertion_Check : constant Name_Id := N + $;
1246 Name_IO_Assertion_Check : constant Name_Id := N + $;
1247 Name_Length_Check : constant Name_Id := N + $;
1248 Name_Numerics_Assertion_Check : constant Name_Id := N + $;
1249 Name_Overflow_Check : constant Name_Id := N + $;
1250 Name_Predicate_Check : constant Name_Id := N + $; -- GNAT
1251 Name_Program_Error_Check : constant Name_Id := N + $;
1252 Name_Range_Check : constant Name_Id := N + $;
1253 Name_Storage_Check : constant Name_Id := N + $;
1254 Name_Strings_Assertion_Check : constant Name_Id := N + $;
1255 Name_System_Assertion_Check : constant Name_Id := N + $;
1256 Name_Tag_Check : constant Name_Id := N + $;
1257 Name_Validity_Check : constant Name_Id := N + $; -- GNAT
1258 Name_Container_Checks : constant Name_Id := N + $; -- GNAT
1259 Name_Tampering_Check : constant Name_Id := N + $; -- GNAT
1260 Name_Tasking_Check : constant Name_Id := N + $;
1261 Name_Raise_Check : constant Name_Id := N + $; -- GNAT
1262 Name_All_Checks : constant Name_Id := N + $;
1263 Last_Check_Name : constant Name_Id := N + $;
1265 -- Ada 83 reserved words, excluding those already declared in the attribute
1266 -- list (Access, Delta, Digits, Mod, Range).
1268 Name_Abort : constant Name_Id := N + $;
1269 Name_Abs : constant Name_Id := N + $;
1270 Name_Accept : constant Name_Id := N + $;
1271 Name_And : constant Name_Id := N + $;
1272 Name_All : constant Name_Id := N + $;
1273 Name_Array : constant Name_Id := N + $;
1274 Name_At : constant Name_Id := N + $;
1275 Name_Begin : constant Name_Id := N + $;
1276 Name_Body : constant Name_Id := N + $;
1277 Name_Case : constant Name_Id := N + $;
1278 Name_Constant : constant Name_Id := N + $;
1279 Name_Declare : constant Name_Id := N + $;
1280 Name_Delay : constant Name_Id := N + $;
1281 Name_Do : constant Name_Id := N + $;
1282 Name_Else : constant Name_Id := N + $;
1283 Name_Elsif : constant Name_Id := N + $;
1284 Name_End : constant Name_Id := N + $;
1285 Name_Entry : constant Name_Id := N + $;
1286 Name_Exception : constant Name_Id := N + $;
1287 Name_Exit : constant Name_Id := N + $;
1288 Name_For : constant Name_Id := N + $;
1289 Name_Function : constant Name_Id := N + $;
1290 Name_Generic : constant Name_Id := N + $;
1291 Name_Goto : constant Name_Id := N + $;
1292 Name_If : constant Name_Id := N + $;
1293 Name_In : constant Name_Id := N + $;
1294 Name_Is : constant Name_Id := N + $;
1295 Name_Limited : constant Name_Id := N + $;
1296 Name_Loop : constant Name_Id := N + $;
1297 Name_New : constant Name_Id := N + $;
1298 Name_Not : constant Name_Id := N + $;
1299 Name_Null : constant Name_Id := N + $;
1300 Name_Of : constant Name_Id := N + $;
1301 Name_Or : constant Name_Id := N + $;
1302 Name_Others : constant Name_Id := N + $;
1303 Name_Out : constant Name_Id := N + $;
1304 Name_Package : constant Name_Id := N + $;
1305 Name_Pragma : constant Name_Id := N + $;
1306 Name_Private : constant Name_Id := N + $;
1307 Name_Procedure : constant Name_Id := N + $;
1308 Name_Raise : constant Name_Id := N + $;
1309 Name_Record : constant Name_Id := N + $;
1310 Name_Rem : constant Name_Id := N + $;
1311 Name_Renames : constant Name_Id := N + $;
1312 Name_Return : constant Name_Id := N + $;
1313 Name_Reverse : constant Name_Id := N + $;
1314 Name_Select : constant Name_Id := N + $;
1315 Name_Separate : constant Name_Id := N + $;
1316 Name_Subtype : constant Name_Id := N + $;
1317 Name_Task : constant Name_Id := N + $;
1318 Name_Terminate : constant Name_Id := N + $;
1319 Name_Then : constant Name_Id := N + $;
1320 Name_Type : constant Name_Id := N + $;
1321 Name_Use : constant Name_Id := N + $;
1322 Name_When : constant Name_Id := N + $;
1323 Name_While : constant Name_Id := N + $;
1324 Name_With : constant Name_Id := N + $;
1325 Name_Xor : constant Name_Id := N + $;
1327 -- Names of intrinsic subprograms
1329 -- Note: Asm is missing from this list, since Asm is a legitimate
1330 -- convention name. So is To_Address, which is a GNAT attribute.
1332 First_Intrinsic_Name : constant Name_Id := N + $;
1333 Name_Compilation_ISO_Date : constant Name_Id := N + $;
1334 Name_Compilation_Date : constant Name_Id := N + $;
1335 Name_Compilation_Time : constant Name_Id := N + $;
1336 Name_Divide : constant Name_Id := N + $;
1337 Name_Enclosing_Entity : constant Name_Id := N + $;
1338 Name_Exception_Information : constant Name_Id := N + $;
1339 Name_Exception_Message : constant Name_Id := N + $;
1340 Name_Exception_Name : constant Name_Id := N + $;
1341 Name_File : constant Name_Id := N + $;
1342 Name_Generic_Dispatching_Constructor : constant Name_Id := N + $;
1343 Name_Import_Address : constant Name_Id := N + $;
1344 Name_Import_Largest_Value : constant Name_Id := N + $;
1345 Name_Import_Value : constant Name_Id := N + $;
1346 Name_Line : constant Name_Id := N + $;
1347 Name_Rotate_Left : constant Name_Id := N + $;
1348 Name_Rotate_Right : constant Name_Id := N + $;
1349 Name_Shift_Left : constant Name_Id := N + $;
1350 Name_Shift_Right : constant Name_Id := N + $;
1351 Name_Shift_Right_Arithmetic : constant Name_Id := N + $;
1352 Name_Source_Location : constant Name_Id := N + $;
1353 Name_To_Integer : constant Name_Id := N + $;
1354 Name_To_Pointer : constant Name_Id := N + $;
1355 Name_Unchecked_Conversion : constant Name_Id := N + $;
1356 Name_Unchecked_Deallocation : constant Name_Id := N + $;
1357 Last_Intrinsic_Name : constant Name_Id := N + $;
1359 -- Names used in processing intrinsic calls
1361 Name_Free : constant Name_Id := N + $;
1363 -- Ada 95 reserved words
1365 First_95_Reserved_Word : constant Name_Id := N + $;
1366 Name_Abstract : constant Name_Id := N + $;
1367 Name_Aliased : constant Name_Id := N + $;
1368 Name_Protected : constant Name_Id := N + $;
1369 Name_Until : constant Name_Id := N + $;
1370 Name_Requeue : constant Name_Id := N + $;
1371 Name_Tagged : constant Name_Id := N + $;
1372 Last_95_Reserved_Word : constant Name_Id := N + $;
1374 subtype Ada_95_Reserved_Words is Name_Id
1375 range First_95_Reserved_Word .. Last_95_Reserved_Word;
1377 -- Additional names used by the Repinfo unit
1379 Name_Discriminant : constant Name_Id := N + $;
1380 Name_Operands : constant Name_Id := N + $;
1381 Name_Present : constant Name_Id := N + $;
1383 -- Other miscellaneous names used in front end
1384 -- Note that the UP_ prefix means use the rest of the name in uppercase,
1385 -- e.g. Name_UP_RESULT maps to "RESULT".
1387 Name_Synchronous_Task_Control : constant Name_Id := N + $;
1389 -- Names used to implement iterators over predefined containers
1391 Name_Cursor : constant Name_Id := N + $;
1392 Name_Element : constant Name_Id := N + $;
1393 Name_Has_Element : constant Name_Id := N + $;
1394 Name_Forward_Iterator : constant Name_Id := N + $;
1395 Name_Reversible_Iterator : constant Name_Id := N + $;
1396 Name_uNext : constant Name_Id := N + $;
1397 Name_Previous : constant Name_Id := N + $;
1398 Name_uPrevious : constant Name_Id := N + $;
1399 Name_Pseudo_Reference : constant Name_Id := N + $;
1400 Name_Reference_Control_Type : constant Name_Id := N + $;
1401 Name_Get_Element_Access : constant Name_Id := N + $;
1403 -- Names for Ada 202x Aggregate aspect. Name_Aggregate is already
1404 -- present for gprbuild.
1406 Name_Empty : constant Name_Id := N + $;
1407 Name_Add_Named : constant Name_Id := N + $;
1408 Name_Add_Unnamed : constant Name_Id := N + $;
1409 Name_New_Indexed : constant Name_Id := N + $;
1410 Name_Assign_Indexed : constant Name_Id := N + $;
1412 -- Ada 2005 reserved words
1414 First_2005_Reserved_Word : constant Name_Id := N + $;
1415 Name_Interface : constant Name_Id := N + $;
1416 Name_Overriding : constant Name_Id := N + $;
1417 Name_Synchronized : constant Name_Id := N + $;
1418 Last_2005_Reserved_Word : constant Name_Id := N + $;
1420 subtype Ada_2005_Reserved_Words is Name_Id
1421 range First_2005_Reserved_Word .. Last_2005_Reserved_Word;
1423 -- Ada 2012 reserved words
1425 First_2012_Reserved_Word : constant Name_Id := N + $;
1426 Name_Some : constant Name_Id := N + $;
1427 Last_2012_Reserved_Word : constant Name_Id := N + $;
1429 subtype Ada_2012_Reserved_Words is Name_Id
1430 range First_2012_Reserved_Word .. Last_2012_Reserved_Word;
1432 -- Mark last defined name for consistency check in Snames body
1434 Last_Predefined_Name : constant Name_Id := N + $;
1436 ---------------------------------------
1437 -- Subtypes Defining Name Categories --
1438 ---------------------------------------
1440 subtype Any_Operator_Name is Name_Id
1441 range First_Operator_Name .. Last_Operator_Name;
1443 subtype Configuration_Pragma_Names is Name_Id
1444 range First_Pragma_Name .. Last_Configuration_Pragma_Name;
1446 ------------------------------
1447 -- Attribute ID Definitions --
1448 ------------------------------
1450 type Attribute_Id is (
1451 Attribute_Abort_Signal,
1454 Attribute_Address_Size,
1456 Attribute_Alignment,
1457 Attribute_Asm_Input,
1458 Attribute_Asm_Output,
1459 Attribute_Atomic_Always_Lock_Free,
1461 Attribute_Bit_Order,
1462 Attribute_Bit_Position,
1463 Attribute_Body_Version,
1466 Attribute_Code_Address,
1467 Attribute_Compiler_Version,
1468 Attribute_Component_Size,
1470 Attribute_Constant_Indexing,
1471 Attribute_Constrained,
1473 Attribute_Default_Bit_Order,
1474 Attribute_Default_Scalar_Storage_Order,
1475 Attribute_Default_Iterator,
1480 Attribute_Descriptor_Size,
1482 Attribute_Elaborated,
1489 Attribute_External_Tag,
1490 Attribute_Fast_Math,
1491 Attribute_Finalization_Size,
1493 Attribute_First_Bit,
1494 Attribute_First_Valid,
1495 Attribute_Fixed_Value,
1497 Attribute_Has_Access_Values,
1498 Attribute_Has_Discriminants,
1499 Attribute_Has_Same_Storage,
1500 Attribute_Has_Tagged_Values,
1502 Attribute_Implicit_Dereference,
1504 Attribute_Initialized,
1505 Attribute_Integer_Value,
1506 Attribute_Invalid_Value,
1507 Attribute_Iterator_Element,
1512 Attribute_Last_Valid,
1513 Attribute_Leading_Part,
1515 Attribute_Library_Level,
1516 Attribute_Loop_Entry,
1517 Attribute_Machine_Emax,
1518 Attribute_Machine_Emin,
1519 Attribute_Machine_Mantissa,
1520 Attribute_Machine_Overflows,
1521 Attribute_Machine_Radix,
1522 Attribute_Machine_Rounding,
1523 Attribute_Machine_Rounds,
1524 Attribute_Machine_Size,
1526 Attribute_Max_Alignment_For_Allocation,
1527 Attribute_Max_Integer_Size,
1528 Attribute_Max_Size_In_Storage_Elements,
1529 Attribute_Maximum_Alignment,
1530 Attribute_Mechanism_Code,
1532 Attribute_Model_Emin,
1533 Attribute_Model_Epsilon,
1534 Attribute_Model_Mantissa,
1535 Attribute_Model_Small,
1537 Attribute_Null_Parameter,
1538 Attribute_Object_Size,
1540 Attribute_Overlaps_Storage,
1541 Attribute_Partition_ID,
1542 Attribute_Passed_By_Reference,
1543 Attribute_Pool_Address,
1546 Attribute_Preelaborable_Initialization,
1549 Attribute_Range_Length,
1552 Attribute_Restriction_Set,
1555 Attribute_Safe_Emax,
1556 Attribute_Safe_First,
1557 Attribute_Safe_Large,
1558 Attribute_Safe_Last,
1559 Attribute_Safe_Small,
1560 Attribute_Scalar_Storage_Order,
1563 Attribute_Signed_Zeros,
1566 Attribute_Small_Denominator,
1567 Attribute_Small_Numerator,
1568 Attribute_Storage_Size,
1569 Attribute_Storage_Unit,
1570 Attribute_Stream_Size,
1572 Attribute_System_Allocator_Alignment,
1574 Attribute_Target_Name,
1575 Attribute_Terminated,
1576 Attribute_To_Address,
1577 Attribute_Type_Class,
1579 Attribute_Unbiased_Rounding,
1580 Attribute_Unchecked_Access,
1581 Attribute_Unconstrained_Array,
1582 Attribute_Universal_Literal_String,
1583 Attribute_Unrestricted_Access,
1585 Attribute_VADS_Size,
1588 Attribute_Valid_Scalars,
1589 Attribute_Value_Size,
1590 Attribute_Variable_Indexing,
1592 Attribute_Wchar_T_Size,
1593 Attribute_Wide_Wide_Width,
1594 Attribute_Wide_Width,
1596 Attribute_Word_Size,
1598 -- Attributes designating renamable functions
1602 Attribute_Copy_Sign,
1614 Attribute_Remainder,
1618 Attribute_Truncation,
1620 Attribute_Valid_Value,
1622 Attribute_Wide_Image,
1623 Attribute_Wide_Wide_Image,
1624 Attribute_Wide_Value,
1625 Attribute_Wide_Wide_Value,
1627 -- Attributes designating procedures
1630 Attribute_Put_Image,
1634 -- Entity attributes (includes type attributes)
1636 Attribute_Elab_Body,
1637 Attribute_Elab_Spec,
1638 Attribute_Elab_Subp_Body,
1639 Attribute_Simple_Storage_Pool,
1640 Attribute_Storage_Pool,
1646 Attribute_Stub_Type,
1648 -- The internal attributes are on their own, out of order, because of
1649 -- the special processing required to deal with the fact that their
1650 -- names are not attribute names.
1653 Attribute_Dispatching_Domain,
1654 Attribute_Interrupt_Priority);
1656 subtype Internal_Attribute_Id is Attribute_Id
1657 range Attribute_CPU .. Attribute_Interrupt_Priority;
1659 type Attribute_Set is array (Attribute_Id) of Boolean;
1660 -- Type used to build attribute classification flag arrays
1662 ------------------------------------
1663 -- Convention Name ID Definitions --
1664 ------------------------------------
1666 type Convention_Id is (
1668 -- The native-to-Ada (non-foreign) conventions come first. These include
1669 -- the ones defined in the RM, plus Stubbed.
1672 Convention_Intrinsic,
1674 Convention_Protected,
1677 -- The following conventions are equivalent to Ada for all purposes
1678 -- except controlling the way parameters are passed.
1680 Convention_Ada_Pass_By_Copy,
1681 Convention_Ada_Pass_By_Reference,
1683 -- The remaining conventions are foreign language conventions
1685 Convention_Assembler, -- also Asm, Assembly
1686 Convention_C, -- also Default, External
1687 Convention_C_Variadic_0,
1688 Convention_C_Variadic_1,
1689 Convention_C_Variadic_2,
1690 Convention_C_Variadic_3,
1691 Convention_C_Variadic_4,
1692 Convention_C_Variadic_5,
1693 Convention_C_Variadic_6,
1694 Convention_C_Variadic_7,
1695 Convention_C_Variadic_8,
1696 Convention_C_Variadic_9,
1697 Convention_C_Variadic_10,
1698 Convention_C_Variadic_11,
1699 Convention_C_Variadic_12,
1700 Convention_C_Variadic_13,
1701 Convention_C_Variadic_14,
1702 Convention_C_Variadic_15,
1703 Convention_C_Variadic_16,
1707 Convention_Stdcall); -- also DLL, Win32
1709 -- Note: Convention C_Pass_By_Copy is allowed only for record types
1710 -- (where it is treated like C except that the appropriate flag is set
1711 -- in the record type). Recognizing this convention is specially handled
1714 for Convention_Id'Size use 8;
1716 subtype Convention_C_Family is Convention_Id
1717 range Convention_C .. Convention_CPP;
1719 subtype Convention_C_Variadic is Convention_Id
1720 range Convention_C_Variadic_0 .. Convention_C_Variadic_16;
1722 subtype Foreign_Convention is Convention_Id
1723 range Convention_Assembler .. Convention_Stdcall;
1725 -----------------------------------
1726 -- Locking Policy ID Definitions --
1727 -----------------------------------
1729 type Locking_Policy_Id is (
1730 Locking_Policy_Inheritance_Locking,
1731 Locking_Policy_Ceiling_Locking,
1732 Locking_Policy_Concurrent_Readers_Locking);
1734 ---------------------------
1735 -- Pragma ID Definitions --
1736 ---------------------------
1740 -- Configuration pragmas are grouped at start. Note that there is a list
1741 -- of them in the GNAT UG (doc/gnat_ugn/the_gnat_compilation_model.rst),
1742 -- be sure to update this list if a new configuration pragma is added.
1751 -- Note that there is no Pragma_Ada_22. Pragma_Ada_05/12 are for
1752 -- compatibility reasons only; the full year names are preferred.
1753 Pragma_Aggregate_Individually_Assign,
1754 Pragma_Allow_Integer_Address,
1756 Pragma_Assertion_Policy,
1757 Pragma_Assume_No_Invalid_Values,
1758 Pragma_C_Pass_By_Copy,
1759 Pragma_Check_Float_Overflow,
1761 Pragma_Check_Policy,
1762 Pragma_Component_Alignment,
1763 Pragma_Convention_Identifier,
1764 Pragma_Debug_Policy,
1765 Pragma_Default_Storage_Pool,
1766 Pragma_Detect_Blocking,
1767 Pragma_Disable_Atomic_Synchronization,
1768 Pragma_Discard_Names,
1769 Pragma_Elaboration_Checks,
1771 Pragma_Enable_Atomic_Synchronization,
1772 Pragma_Extend_System,
1773 Pragma_Extensions_Allowed,
1774 Pragma_External_Name_Casing,
1775 Pragma_Favor_Top_Level,
1776 Pragma_GNAT_Annotate,
1777 Pragma_Ignore_Pragma,
1778 Pragma_Implicit_Packing,
1779 Pragma_Initialize_Scalars,
1780 Pragma_Interrupt_State,
1782 Pragma_Locking_Policy,
1783 Pragma_No_Component_Reordering,
1784 Pragma_No_Heap_Finalization,
1786 Pragma_Interrupts_System_By_Default,
1787 Pragma_No_Strict_Aliasing,
1788 Pragma_Normalize_Scalars,
1789 Pragma_Optimize_Alignment,
1790 Pragma_Overflow_Mode,
1791 Pragma_Overriding_Renamings,
1792 Pragma_Partition_Elaboration_Policy,
1793 Pragma_Persistent_BSS,
1794 Pragma_Prefix_Exception_Messages,
1795 Pragma_Priority_Specific_Dispatching,
1797 Pragma_Profile_Warnings,
1798 Pragma_Propagate_Exceptions,
1799 Pragma_Queuing_Policy,
1802 Pragma_Rename_Pragma,
1803 Pragma_Restricted_Run_Time,
1804 Pragma_Restrictions,
1805 Pragma_Restriction_Warnings,
1807 Pragma_Short_Circuit_And_Or,
1808 Pragma_Short_Descriptors,
1809 Pragma_Source_File_Name,
1810 Pragma_Source_File_Name_Project,
1812 Pragma_Style_Checks,
1814 Pragma_Suppress_Exception_Locations,
1815 Pragma_Task_Dispatching_Policy,
1816 Pragma_Unevaluated_Use_Of_Old,
1818 Pragma_Use_VADS_Size,
1819 Pragma_User_Aspect_Definition,
1820 Pragma_Validity_Checks,
1821 Pragma_Warning_As_Error,
1823 Pragma_Wide_Character_Encoding,
1825 -- Remaining (non-configuration) pragmas
1828 Pragma_Abstract_State,
1829 Pragma_All_Calls_Remote,
1830 Pragma_Always_Terminates,
1832 Pragma_Assert_And_Cut,
1834 Pragma_Async_Readers,
1835 Pragma_Async_Writers,
1836 Pragma_Asynchronous,
1838 Pragma_Atomic_Components,
1839 Pragma_Attach_Handler,
1840 Pragma_Attribute_Definition,
1843 Pragma_Common_Object,
1844 Pragma_Compile_Time_Error,
1845 Pragma_Compile_Time_Warning,
1846 Pragma_Complete_Representation,
1847 Pragma_Complex_Representation,
1848 Pragma_Constant_After_Elaboration,
1849 Pragma_Contract_Cases,
1853 Pragma_CPP_Constructor,
1857 Pragma_CUDA_Execute,
1859 Pragma_Deadline_Floor,
1861 Pragma_Default_Initial_Condition,
1863 Pragma_Effective_Reads,
1864 Pragma_Effective_Writes,
1866 Pragma_Elaborate_All,
1867 Pragma_Elaborate_Body,
1868 Pragma_Exceptional_Cases,
1870 Pragma_Export_Function,
1871 Pragma_Export_Object,
1872 Pragma_Export_Procedure,
1873 Pragma_Export_Valued_Procedure,
1874 Pragma_Extended_Access,
1875 Pragma_Extensions_Visible,
1877 Pragma_Finalize_Storage_Only,
1878 Pragma_First_Controlling_Parameter,
1882 Pragma_Implementation_Defined,
1885 Pragma_Import_Function,
1886 Pragma_Import_Object,
1887 Pragma_Import_Procedure,
1888 Pragma_Import_Valued_Procedure,
1890 Pragma_Independent_Components,
1891 Pragma_Initial_Condition,
1894 Pragma_Inline_Always,
1895 Pragma_Inline_Generic,
1896 Pragma_Inspection_Point,
1897 Pragma_Interface_Name,
1898 Pragma_Interrupt_Handler,
1902 Pragma_Linker_Alias,
1903 Pragma_Linker_Constructor,
1904 Pragma_Linker_Destructor,
1905 Pragma_Linker_Options,
1906 Pragma_Linker_Section,
1909 Pragma_Loop_Invariant,
1910 Pragma_Loop_Optimize,
1911 Pragma_Loop_Variant,
1912 Pragma_Machine_Attribute,
1914 Pragma_Main_Storage,
1915 Pragma_Max_Entry_Queue_Length,
1916 Pragma_Max_Queue_Length,
1920 Pragma_No_Elaboration_Code_All,
1924 Pragma_No_Tagged_Streams,
1933 Pragma_Postcondition,
1936 Pragma_Precondition,
1938 Pragma_Predicate_Failure,
1939 Pragma_Preelaborate,
1941 Pragma_Provide_Shift_Operators,
1942 Pragma_Psect_Object,
1944 Pragma_Pure_Function,
1945 Pragma_Refined_Depends,
1946 Pragma_Refined_Global,
1947 Pragma_Refined_Post,
1948 Pragma_Refined_State,
1949 Pragma_Relative_Deadline,
1950 Pragma_Remote_Access_Type,
1951 Pragma_Remote_Call_Interface,
1952 Pragma_Remote_Types,
1953 Pragma_Share_Generic,
1955 Pragma_Shared_Passive,
1956 Pragma_Side_Effects,
1957 Pragma_Simple_Storage_Pool_Type,
1958 Pragma_Simulate_Internal_Error,
1959 Pragma_Source_Reference,
1960 Pragma_Static_Elaboration_Desired,
1961 Pragma_Stream_Convert,
1962 Pragma_Subprogram_Variant,
1964 Pragma_Suppress_All,
1965 Pragma_Suppress_Debug_Info,
1966 Pragma_Suppress_Initialization,
1970 Pragma_Task_Storage,
1972 Pragma_Thread_Local_Storage,
1975 Pragma_Type_Invariant,
1976 Pragma_Type_Invariant_Class,
1977 Pragma_Unchecked_Union,
1978 Pragma_Unimplemented_Unit,
1979 Pragma_Universal_Aliasing,
1981 Pragma_Unreferenced,
1982 Pragma_Unreferenced_Objects,
1983 Pragma_Unreserve_All_Interrupts,
1986 Pragma_Volatile_Components,
1987 Pragma_Volatile_Full_Access,
1988 Pragma_Volatile_Function,
1989 Pragma_Weak_External,
1991 -- The following pragmas are on their own, out of order, because of the
1992 -- special processing required to deal with the fact that their names
1993 -- match existing attribute names. Note that when a pragma is added in
1994 -- this section, functions Get_Pragma_Id and Is_Pragma_Name must be
1995 -- updated to account for the new pragma.
1998 Pragma_Default_Scalar_Storage_Order,
1999 Pragma_Dispatching_Domain,
2002 Pragma_Interrupt_Priority,
2003 Pragma_Preelaborable_Initialization,
2005 Pragma_Secondary_Stack_Size,
2006 Pragma_Storage_Size,
2007 Pragma_Storage_Unit,
2009 -- The value to represent an unknown or unrecognized pragma
2013 -----------------------------------
2014 -- Queuing Policy ID definitions --
2015 -----------------------------------
2017 type Queuing_Policy_Id is (
2018 Queuing_Policy_FIFO_Queuing,
2019 Queuing_Policy_Priority_Queuing);
2021 --------------------------------------------
2022 -- Task Dispatching Policy ID definitions --
2023 --------------------------------------------
2025 type Task_Dispatching_Policy_Id is (
2026 Task_Dispatching_FIFO_Within_Priorities);
2027 -- Id values used to identify task dispatching policies
2033 procedure Initialize;
2034 -- Called to initialize the preset names in the names table
2036 function Is_Attribute_Name (N : Name_Id) return Boolean;
2037 -- Test to see if the name N is the name of a recognized attribute. Note
2038 -- that Name_Elab_Subp_Body returns False if not operating in CodePeer
2039 -- mode. This is the mechanism for considering this pragma illegal in
2040 -- normal GNAT programs.
2042 function Is_Entity_Attribute_Name (N : Name_Id) return Boolean;
2043 -- Test to see if the name N is the name of a recognized entity attribute,
2044 -- i.e. an attribute reference that returns an entity.
2046 function Is_Internal_Attribute_Name (N : Name_Id) return Boolean;
2047 -- Test to see if the name N is the name of an INT attribute (Name_CPU,
2048 -- Name_Dispatching_Domain, Name_Interrupt_Priority,
2049 -- Name_Secondary_Stack_Size).
2051 function Is_Procedure_Attribute_Name (N : Name_Id) return Boolean;
2052 -- Test to see if the name N is the name of a recognized attribute that
2053 -- designates a procedure (and can therefore appear as a statement).
2055 function Is_Function_Attribute_Name (N : Name_Id) return Boolean;
2056 -- Test to see if the name N is the name of a recognized attribute
2057 -- that designates a renameable function, and can therefore appear in
2058 -- a renaming statement. Note that not all attributes designating
2059 -- functions are renamable, in particular, those returning a universal
2060 -- value cannot be renamed.
2062 function Is_Type_Attribute_Name (N : Name_Id) return Boolean;
2063 -- Test to see if the name N is the name of a recognized type attribute,
2064 -- i.e. an attribute reference that returns a type
2066 function Is_Convention_Name (N : Name_Id) return Boolean;
2067 -- Test to see if the name N is the name of one of the recognized
2068 -- language conventions, as required by pragma Convention, Import,
2069 -- Export, Interface. Returns True if so. Also returns True for a
2070 -- name that has been specified by a Convention_Identifier pragma.
2071 -- If neither case holds, returns False.
2073 function Is_Keyword_Name (N : Name_Id) return Boolean;
2074 -- Test to see if the name N is one of the (reserved) keyword names. This
2075 -- includes all the keywords defined in the Ada standard (taking into
2076 -- effect the Ada version). It also includes additional keywords in
2077 -- contexts where additional keywords have been added. For example, in the
2078 -- context of parsing project files, keywords such as PROJECT are included.
2080 function Is_Locking_Policy_Name (N : Name_Id) return Boolean;
2081 -- Test to see if the name N is the name of a recognized locking policy
2083 function Is_Partition_Elaboration_Policy_Name
2084 (N : Name_Id) return Boolean;
2085 -- Test to see if the name N is the name of a recognized partition
2086 -- elaboration policy.
2088 function Is_Operator_Symbol_Name (N : Name_Id) return Boolean;
2089 -- Test to see if the name N is the name of an operator symbol
2091 function Is_Pragma_Name (N : Name_Id) return Boolean;
2092 -- Test to see if the name N is the name of a recognized pragma. Note
2093 -- that pragmas CPU, Dispatching_Domain, Fast_Math, Interrupt_Priority,
2094 -- Priority, Storage_Size, and Storage_Unit are recognized as pragmas by
2095 -- this function even though their names are separate from the other
2096 -- pragma names. For this reason, clients should always use this function,
2097 -- rather than do range tests on Name_Id values.
2099 function Is_Configuration_Pragma_Name (N : Name_Id) return Boolean;
2100 -- Test to see if the name N is the name of a recognized configuration
2101 -- pragma. Note that pragma Fast_Math is recognized as a configuration
2102 -- pragma by this function even though its name is separate from other
2103 -- configuration pragma names. For this reason, clients should always
2104 -- use this function, rather than do range tests on Name_Id values.
2106 function Is_Queuing_Policy_Name (N : Name_Id) return Boolean;
2107 -- Test to see if the name N is the name of a recognized queuing policy
2109 function Is_Task_Dispatching_Policy_Name (N : Name_Id) return Boolean;
2110 -- Test to see if the name N is the name of a recognized task
2111 -- dispatching policy.
2113 function Get_Attribute_Id (N : Name_Id) return Attribute_Id;
2114 -- Returns Id of attribute corresponding to given name. It is an error to
2115 -- call this function with a name that is not the name of a attribute. Note
2116 -- that the function also works correctly for internal attribute names even
2117 -- though there are not included in the main list of attribute Names.
2119 function Get_Convention_Id (N : Name_Id) return Convention_Id;
2120 -- Returns Id of language convention corresponding to given name. It is
2121 -- an error to call this function with a name that is not the name of a
2122 -- convention, or one that has been previously recorded using a call to
2123 -- Record_Convention_Identifier.
2125 function Get_Convention_Name (C : Convention_Id) return Name_Id;
2126 -- Returns the name of language convention corresponding to given
2129 function Get_Locking_Policy_Id (N : Name_Id) return Locking_Policy_Id;
2130 -- Returns Id of locking policy corresponding to given name. It is an error
2131 -- to call this function with a name that is not the name of a check.
2133 function Get_Pragma_Id (N : Name_Id) return Pragma_Id;
2134 -- Returns Id of pragma corresponding to given name. Returns Unknown_Pragma
2135 -- if N is not a name of a known (Ada defined or GNAT-specific) pragma.
2136 -- Note that the function also works correctly for names of pragmas that
2137 -- are not included in the main list of pragma Names (e.g. Name_CPU returns
2140 function Get_Queuing_Policy_Id (N : Name_Id) return Queuing_Policy_Id;
2141 -- Returns Id of queuing policy corresponding to given name. It is an error
2142 -- to call this function with a name that is not the name of a check.
2144 function Get_Task_Dispatching_Policy_Id
2145 (N : Name_Id) return Task_Dispatching_Policy_Id;
2146 -- Returns Id of task dispatching policy corresponding to given name. It
2147 -- is an error to call this function with a name that is not the name of
2150 procedure Record_Convention_Identifier
2152 Convention : Convention_Id);
2153 -- A call to this procedure, resulting from an occurrence of a pragma
2154 -- Convention_Identifier, records that from now on an occurrence of Id
2155 -- will be recognized as a name for the specified convention.
2158 pragma Inline (Is_Attribute_Name);
2159 pragma Inline (Is_Configuration_Pragma_Name);
2160 pragma Inline (Is_Entity_Attribute_Name);
2161 pragma Inline (Is_Function_Attribute_Name);
2162 pragma Inline (Is_Internal_Attribute_Name);
2163 pragma Inline (Is_Locking_Policy_Name);
2164 pragma Inline (Is_Partition_Elaboration_Policy_Name);
2165 pragma Inline (Is_Operator_Symbol_Name);
2166 pragma Inline (Is_Pragma_Name);
2167 pragma Inline (Is_Procedure_Attribute_Name);
2168 pragma Inline (Is_Queuing_Policy_Name);
2169 pragma Inline (Is_Task_Dispatching_Policy_Name);
2170 pragma Inline (Is_Type_Attribute_Name);