1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2008, 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 2, 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 COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 with Namet; use Namet;
38 -- This package contains definitions of standard names (i.e. entries in the
39 -- Names table) that are used throughout the GNAT compiler). It also contains
40 -- the definitions of some enumeration types whose definitions are tied to
41 -- the order of these preset names.
43 -- WARNING: There is a C file, snames.h which duplicates some of the
44 -- definitions in this file and must be kept properly synchronized.
45 -- If you change this package, you should run xsnames.
51 -- The following are preset entries in the names table, which are entered
52 -- at the start of every compilation for easy access. Note that the order
53 -- of initialization of these names in the body must be coordinated with
54 -- the order of names in this table.
56 -- Note: a name may not appear more than once in the following list. If
57 -- additional pragmas or attributes are introduced which might otherwise
58 -- cause a duplicate, then list it only once in this table, and adjust the
59 -- definition of the functions for testing for pragma names and attribute
60 -- names, and returning their ID values. Of course everything is simpler
61 -- if no such duplications occur!
63 -- First we have the one character names used to optimize the lookup
64 -- process for one character identifiers (to avoid the hashing in this
65 -- case) There are a full 256 of these, but only the entries for lower
66 -- case and upper case letters have identifiers
68 -- The lower case letter entries are used for one character identifiers
69 -- appearing in the source, for example in pragma Interface (C).
71 Name_A : constant Name_Id := First_Name_Id + Character'Pos ('a');
72 Name_B : constant Name_Id := First_Name_Id + Character'Pos ('b');
73 Name_C : constant Name_Id := First_Name_Id + Character'Pos ('c');
74 Name_D : constant Name_Id := First_Name_Id + Character'Pos ('d');
75 Name_E : constant Name_Id := First_Name_Id + Character'Pos ('e');
76 Name_F : constant Name_Id := First_Name_Id + Character'Pos ('f');
77 Name_G : constant Name_Id := First_Name_Id + Character'Pos ('g');
78 Name_H : constant Name_Id := First_Name_Id + Character'Pos ('h');
79 Name_I : constant Name_Id := First_Name_Id + Character'Pos ('i');
80 Name_J : constant Name_Id := First_Name_Id + Character'Pos ('j');
81 Name_K : constant Name_Id := First_Name_Id + Character'Pos ('k');
82 Name_L : constant Name_Id := First_Name_Id + Character'Pos ('l');
83 Name_M : constant Name_Id := First_Name_Id + Character'Pos ('m');
84 Name_N : constant Name_Id := First_Name_Id + Character'Pos ('n');
85 Name_O : constant Name_Id := First_Name_Id + Character'Pos ('o');
86 Name_P : constant Name_Id := First_Name_Id + Character'Pos ('p');
87 Name_Q : constant Name_Id := First_Name_Id + Character'Pos ('q');
88 Name_R : constant Name_Id := First_Name_Id + Character'Pos ('r');
89 Name_S : constant Name_Id := First_Name_Id + Character'Pos ('s');
90 Name_T : constant Name_Id := First_Name_Id + Character'Pos ('t');
91 Name_U : constant Name_Id := First_Name_Id + Character'Pos ('u');
92 Name_V : constant Name_Id := First_Name_Id + Character'Pos ('v');
93 Name_W : constant Name_Id := First_Name_Id + Character'Pos ('w');
94 Name_X : constant Name_Id := First_Name_Id + Character'Pos ('x');
95 Name_Y : constant Name_Id := First_Name_Id + Character'Pos ('y');
96 Name_Z : constant Name_Id := First_Name_Id + Character'Pos ('z');
98 -- The upper case letter entries are used by expander code for local
99 -- variables that do not require unique names (e.g. formal parameter
100 -- names in constructed procedures)
102 Name_uA : constant Name_Id := First_Name_Id + Character'Pos ('A');
103 Name_uB : constant Name_Id := First_Name_Id + Character'Pos ('B');
104 Name_uC : constant Name_Id := First_Name_Id + Character'Pos ('C');
105 Name_uD : constant Name_Id := First_Name_Id + Character'Pos ('D');
106 Name_uE : constant Name_Id := First_Name_Id + Character'Pos ('E');
107 Name_uF : constant Name_Id := First_Name_Id + Character'Pos ('F');
108 Name_uG : constant Name_Id := First_Name_Id + Character'Pos ('G');
109 Name_uH : constant Name_Id := First_Name_Id + Character'Pos ('H');
110 Name_uI : constant Name_Id := First_Name_Id + Character'Pos ('I');
111 Name_uJ : constant Name_Id := First_Name_Id + Character'Pos ('J');
112 Name_uK : constant Name_Id := First_Name_Id + Character'Pos ('K');
113 Name_uL : constant Name_Id := First_Name_Id + Character'Pos ('L');
114 Name_uM : constant Name_Id := First_Name_Id + Character'Pos ('M');
115 Name_uN : constant Name_Id := First_Name_Id + Character'Pos ('N');
116 Name_uO : constant Name_Id := First_Name_Id + Character'Pos ('O');
117 Name_uP : constant Name_Id := First_Name_Id + Character'Pos ('P');
118 Name_uQ : constant Name_Id := First_Name_Id + Character'Pos ('Q');
119 Name_uR : constant Name_Id := First_Name_Id + Character'Pos ('R');
120 Name_uS : constant Name_Id := First_Name_Id + Character'Pos ('S');
121 Name_uT : constant Name_Id := First_Name_Id + Character'Pos ('T');
122 Name_uU : constant Name_Id := First_Name_Id + Character'Pos ('U');
123 Name_uV : constant Name_Id := First_Name_Id + Character'Pos ('V');
124 Name_uW : constant Name_Id := First_Name_Id + Character'Pos ('W');
125 Name_uX : constant Name_Id := First_Name_Id + Character'Pos ('X');
126 Name_uY : constant Name_Id := First_Name_Id + Character'Pos ('Y');
127 Name_uZ : constant Name_Id := First_Name_Id + Character'Pos ('Z');
129 -- Note: the following table is read by the utility program XSNAMES and
130 -- its format should not be changed without coordinating with this program.
132 N : constant Name_Id := First_Name_Id + 256;
133 -- Synonym used in standard name definitions
135 -- Some names that are used by gigi, and whose definitions are reflected
136 -- in the C header file a-snames.h. They are placed at the start so that
137 -- the need to modify a-snames.h is minimized.
139 Name_uParent : constant Name_Id := N + 000;
140 Name_uTag : constant Name_Id := N + 001;
141 Name_Off : constant Name_Id := N + 002;
142 Name_Space : constant Name_Id := N + 003;
143 Name_Time : constant Name_Id := N + 004;
145 -- Some special names used by the expander. Note that the lower case u's
146 -- at the start of these names get translated to extra underscores. These
147 -- names are only referenced internally by expander generated code.
149 Name_uAbort_Signal : constant Name_Id := N + 005;
150 Name_uAlignment : constant Name_Id := N + 006;
151 Name_uAssign : constant Name_Id := N + 007;
152 Name_uATCB : constant Name_Id := N + 008;
153 Name_uChain : constant Name_Id := N + 009;
154 Name_uClean : constant Name_Id := N + 010;
155 Name_uController : constant Name_Id := N + 011;
156 Name_uEntry_Bodies : constant Name_Id := N + 012;
157 Name_uExpunge : constant Name_Id := N + 013;
158 Name_uFinal_List : constant Name_Id := N + 014;
159 Name_uIdepth : constant Name_Id := N + 015;
160 Name_uInit : constant Name_Id := N + 016;
161 Name_uLocal_Final_List : constant Name_Id := N + 017;
162 Name_uMaster : constant Name_Id := N + 018;
163 Name_uObject : constant Name_Id := N + 019;
164 Name_uPostconditions : constant Name_Id := N + 020;
165 Name_uPriority : constant Name_Id := N + 021;
166 Name_uProcess_ATSD : constant Name_Id := N + 022;
167 Name_uRelative_Deadline : constant Name_Id := N + 023;
168 Name_uResult : constant Name_Id := N + 024;
169 Name_uSecondary_Stack : constant Name_Id := N + 025;
170 Name_uService : constant Name_Id := N + 026;
171 Name_uSize : constant Name_Id := N + 027;
172 Name_uStack : constant Name_Id := N + 028;
173 Name_uTags : constant Name_Id := N + 029;
174 Name_uTask : constant Name_Id := N + 030;
175 Name_uTask_Id : constant Name_Id := N + 031;
176 Name_uTask_Info : constant Name_Id := N + 032;
177 Name_uTask_Name : constant Name_Id := N + 033;
178 Name_uTrace_Sp : constant Name_Id := N + 034;
180 -- Names of predefined primitives used in the expansion of dispatching
181 -- requeue and select statements, Abort, 'Callable and 'Terminated.
183 Name_uDisp_Asynchronous_Select : constant Name_Id := N + 035;
184 Name_uDisp_Conditional_Select : constant Name_Id := N + 036;
185 Name_uDisp_Get_Prim_Op_Kind : constant Name_Id := N + 037;
186 Name_uDisp_Get_Task_Id : constant Name_Id := N + 038;
187 Name_uDisp_Requeue : constant Name_Id := N + 039;
188 Name_uDisp_Timed_Select : constant Name_Id := N + 040;
190 -- Names of routines in Ada.Finalization, needed by expander
192 Name_Initialize : constant Name_Id := N + 041;
193 Name_Adjust : constant Name_Id := N + 042;
194 Name_Finalize : constant Name_Id := N + 043;
196 -- Names of fields declared in System.Finalization_Implementation,
197 -- needed by the expander when generating code for finalization.
199 Name_Next : constant Name_Id := N + 044;
200 Name_Prev : constant Name_Id := N + 045;
202 -- Names of allocation routines, also needed by expander
204 Name_Allocate : constant Name_Id := N + 046;
205 Name_Deallocate : constant Name_Id := N + 047;
206 Name_Dereference : constant Name_Id := N + 048;
208 -- Names of Text_IO generic subpackages (see Rtsfind.Text_IO_Kludge)
210 First_Text_IO_Package : constant Name_Id := N + 049;
211 Name_Decimal_IO : constant Name_Id := N + 049;
212 Name_Enumeration_IO : constant Name_Id := N + 050;
213 Name_Fixed_IO : constant Name_Id := N + 051;
214 Name_Float_IO : constant Name_Id := N + 052;
215 Name_Integer_IO : constant Name_Id := N + 053;
216 Name_Modular_IO : constant Name_Id := N + 054;
217 Last_Text_IO_Package : constant Name_Id := N + 054;
219 subtype Text_IO_Package_Name is Name_Id
220 range First_Text_IO_Package .. Last_Text_IO_Package;
222 -- Some miscellaneous names used for error detection/recovery
224 Name_Const : constant Name_Id := N + 055;
225 Name_Error : constant Name_Id := N + 056;
226 Name_Go : constant Name_Id := N + 057;
227 Name_Put : constant Name_Id := N + 058;
228 Name_Put_Line : constant Name_Id := N + 059;
229 Name_To : constant Name_Id := N + 060;
231 -- Names for packages that are treated specially by the compiler
233 Name_Exception_Traces : constant Name_Id := N + 061;
234 Name_Finalization : constant Name_Id := N + 062;
235 Name_Finalization_Root : constant Name_Id := N + 063;
236 Name_Interfaces : constant Name_Id := N + 064;
237 Name_Most_Recent_Exception : constant Name_Id := N + 065;
238 Name_Standard : constant Name_Id := N + 066;
239 Name_System : constant Name_Id := N + 067;
240 Name_Text_IO : constant Name_Id := N + 068;
241 Name_Wide_Text_IO : constant Name_Id := N + 069;
242 Name_Wide_Wide_Text_IO : constant Name_Id := N + 070;
244 -- Names of implementations of the distributed systems annex
246 First_PCS_Name : constant Name_Id := N + 071;
247 Name_No_DSA : constant Name_Id := N + 071;
248 Name_GARLIC_DSA : constant Name_Id := N + 072;
249 Name_PolyORB_DSA : constant Name_Id := N + 073;
250 Last_PCS_Name : constant Name_Id := N + 073;
252 subtype PCS_Names is Name_Id
253 range First_PCS_Name .. Last_PCS_Name;
255 -- Names of identifiers used in expanding distribution stubs
257 Name_Addr : constant Name_Id := N + 074;
258 Name_Async : constant Name_Id := N + 075;
259 Name_Get_Active_Partition_ID : constant Name_Id := N + 076;
260 Name_Get_RCI_Package_Receiver : constant Name_Id := N + 077;
261 Name_Get_RCI_Package_Ref : constant Name_Id := N + 078;
262 Name_Origin : constant Name_Id := N + 079;
263 Name_Params : constant Name_Id := N + 080;
264 Name_Partition : constant Name_Id := N + 081;
265 Name_Partition_Interface : constant Name_Id := N + 082;
266 Name_Ras : constant Name_Id := N + 083;
267 Name_uCall : constant Name_Id := N + 084;
268 Name_RCI_Name : constant Name_Id := N + 085;
269 Name_Receiver : constant Name_Id := N + 086;
270 Name_Rpc : constant Name_Id := N + 087;
271 Name_Subp_Id : constant Name_Id := N + 088;
272 Name_Operation : constant Name_Id := N + 089;
273 Name_Argument : constant Name_Id := N + 090;
274 Name_Arg_Modes : constant Name_Id := N + 091;
275 Name_Handler : constant Name_Id := N + 092;
276 Name_Target : constant Name_Id := N + 093;
277 Name_Req : constant Name_Id := N + 094;
278 Name_Obj_TypeCode : constant Name_Id := N + 095;
279 Name_Stub : constant Name_Id := N + 096;
281 -- Operator Symbol entries. The actual names have an upper case O at
282 -- the start in place of the Op_ prefix (e.g. the actual name that
283 -- corresponds to Name_Op_Abs is "Oabs".
285 First_Operator_Name : constant Name_Id := N + 097;
286 Name_Op_Abs : constant Name_Id := N + 097; -- "abs"
287 Name_Op_And : constant Name_Id := N + 098; -- "and"
288 Name_Op_Mod : constant Name_Id := N + 099; -- "mod"
289 Name_Op_Not : constant Name_Id := N + 100; -- "not"
290 Name_Op_Or : constant Name_Id := N + 101; -- "or"
291 Name_Op_Rem : constant Name_Id := N + 102; -- "rem"
292 Name_Op_Xor : constant Name_Id := N + 103; -- "xor"
293 Name_Op_Eq : constant Name_Id := N + 104; -- "="
294 Name_Op_Ne : constant Name_Id := N + 105; -- "/="
295 Name_Op_Lt : constant Name_Id := N + 106; -- "<"
296 Name_Op_Le : constant Name_Id := N + 107; -- "<="
297 Name_Op_Gt : constant Name_Id := N + 108; -- ">"
298 Name_Op_Ge : constant Name_Id := N + 109; -- ">="
299 Name_Op_Add : constant Name_Id := N + 110; -- "+"
300 Name_Op_Subtract : constant Name_Id := N + 111; -- "-"
301 Name_Op_Concat : constant Name_Id := N + 112; -- "&"
302 Name_Op_Multiply : constant Name_Id := N + 113; -- "*"
303 Name_Op_Divide : constant Name_Id := N + 114; -- "/"
304 Name_Op_Expon : constant Name_Id := N + 115; -- "**"
305 Last_Operator_Name : constant Name_Id := N + 115;
307 -- Names for all pragmas recognized by GNAT. The entries with the comment
308 -- "Ada 83" are pragmas that are defined in Ada 83, but not in Ada 95.
309 -- These pragmas are fully implemented in both Ada 83 and Ada 95 modes
312 -- The entries marked GNAT are pragmas that are defined by GNAT
313 -- and implemented in both Ada 83 and Ada 95 modes. Full descriptions
314 -- of these implementation dependent pragmas may be found in the
315 -- appropriate section in unit Sem_Prag in file sem-prag.adb.
317 -- The entries marked Ada05 are technically implementation dependent
318 -- pragmas, but they correspond to standard proposals for Ada 2005.
320 -- The entries marked VMS are VMS specific pragmas that are recognized
321 -- only in OpenVMS versions of GNAT. They are ignored in other versions
322 -- with an appropriate warning.
324 -- The entries marked AAMP are AAMP specific pragmas that are recognized
325 -- only in GNAT for the AAMP. They are ignored in other versions with
326 -- appropriate warnings.
328 First_Pragma_Name : constant Name_Id := N + 116;
330 -- Configuration pragmas are grouped at start
332 Name_Ada_83 : constant Name_Id := N + 116; -- GNAT
333 Name_Ada_95 : constant Name_Id := N + 117; -- GNAT
334 Name_Ada_05 : constant Name_Id := N + 118; -- GNAT
335 Name_Ada_2005 : constant Name_Id := N + 119; -- GNAT
336 Name_Assertion_Policy : constant Name_Id := N + 120; -- Ada 05
337 Name_Assume_No_Invalid_Values : constant Name_Id := N + 121; -- GNAT
338 Name_C_Pass_By_Copy : constant Name_Id := N + 122; -- GNAT
339 Name_Check_Name : constant Name_Id := N + 123; -- GNAT
340 Name_Check_Policy : constant Name_Id := N + 124; -- GNAT
341 Name_Compile_Time_Error : constant Name_Id := N + 125; -- GNAT
342 Name_Compile_Time_Warning : constant Name_Id := N + 126; -- GNAT
343 Name_Compiler_Unit : constant Name_Id := N + 127; -- GNAT
344 Name_Component_Alignment : constant Name_Id := N + 128; -- GNAT
345 Name_Convention_Identifier : constant Name_Id := N + 129; -- GNAT
346 Name_Debug_Policy : constant Name_Id := N + 130; -- GNAT
347 Name_Detect_Blocking : constant Name_Id := N + 131; -- Ada 05
348 Name_Discard_Names : constant Name_Id := N + 132;
349 Name_Elaboration_Checks : constant Name_Id := N + 133; -- GNAT
350 Name_Eliminate : constant Name_Id := N + 134; -- GNAT
351 Name_Extend_System : constant Name_Id := N + 135; -- GNAT
352 Name_Extensions_Allowed : constant Name_Id := N + 136; -- GNAT
353 Name_External_Name_Casing : constant Name_Id := N + 137; -- GNAT
355 -- Note: Fast_Math is not in this list because its name matches -- GNAT
356 -- the name of the corresponding attribute. However, it is
357 -- included in the definition of the type Pragma_Id, and the
358 -- functions Get_Pragma_Id, Is_[Configuration_]Pragma_Id, and
359 -- correctly recognize and process Fast_Math.
361 Name_Favor_Top_Level : constant Name_Id := N + 138; -- GNAT
362 Name_Float_Representation : constant Name_Id := N + 139; -- GNAT
363 Name_Implicit_Packing : constant Name_Id := N + 140; -- GNAT
364 Name_Initialize_Scalars : constant Name_Id := N + 141; -- GNAT
365 Name_Interrupt_State : constant Name_Id := N + 142; -- GNAT
366 Name_License : constant Name_Id := N + 143; -- GNAT
367 Name_Locking_Policy : constant Name_Id := N + 144;
368 Name_Long_Float : constant Name_Id := N + 145; -- VMS
369 Name_No_Run_Time : constant Name_Id := N + 146; -- GNAT
370 Name_No_Strict_Aliasing : constant Name_Id := N + 147; -- GNAT
371 Name_Normalize_Scalars : constant Name_Id := N + 148;
372 Name_Optimize_Alignment : constant Name_Id := N + 149; -- GNAT
373 Name_Persistent_BSS : constant Name_Id := N + 150; -- GNAT
374 Name_Polling : constant Name_Id := N + 151; -- GNAT
375 Name_Priority_Specific_Dispatching : constant Name_Id := N + 152; -- Ada 05
376 Name_Profile : constant Name_Id := N + 153; -- Ada 05
377 Name_Profile_Warnings : constant Name_Id := N + 154; -- GNAT
378 Name_Propagate_Exceptions : constant Name_Id := N + 155; -- GNAT
379 Name_Queuing_Policy : constant Name_Id := N + 156;
380 Name_Ravenscar : constant Name_Id := N + 157; -- GNAT
381 Name_Restricted_Run_Time : constant Name_Id := N + 158; -- GNAT
382 Name_Restrictions : constant Name_Id := N + 159;
383 Name_Restriction_Warnings : constant Name_Id := N + 160; -- GNAT
384 Name_Reviewable : constant Name_Id := N + 161;
385 Name_Source_File_Name : constant Name_Id := N + 162; -- GNAT
386 Name_Source_File_Name_Project : constant Name_Id := N + 163; -- GNAT
387 Name_Style_Checks : constant Name_Id := N + 164; -- GNAT
388 Name_Suppress : constant Name_Id := N + 165;
389 Name_Suppress_Exception_Locations : constant Name_Id := N + 166; -- GNAT
390 Name_Task_Dispatching_Policy : constant Name_Id := N + 167;
391 Name_Universal_Data : constant Name_Id := N + 168; -- AAMP
392 Name_Unsuppress : constant Name_Id := N + 169; -- Ada 05
393 Name_Use_VADS_Size : constant Name_Id := N + 170; -- GNAT
394 Name_Validity_Checks : constant Name_Id := N + 171; -- GNAT
395 Name_Warnings : constant Name_Id := N + 172; -- GNAT
396 Name_Wide_Character_Encoding : constant Name_Id := N + 173; -- GNAT
397 Last_Configuration_Pragma_Name : constant Name_Id := N + 173;
399 -- Remaining pragma names
401 Name_Abort_Defer : constant Name_Id := N + 174; -- GNAT
402 Name_All_Calls_Remote : constant Name_Id := N + 175;
403 Name_Annotate : constant Name_Id := N + 176; -- GNAT
405 -- Note: AST_Entry is not in this list because its name matches -- VMS
406 -- the name of the corresponding attribute. However, it is
407 -- included in the definition of the type Pragma_Id, and the
408 -- functions Get_Pragma_Id and Is_Pragma_Id correctly recognize
409 -- and process Name_AST_Entry.
411 Name_Assert : constant Name_Id := N + 177; -- Ada 05
412 Name_Asynchronous : constant Name_Id := N + 178;
413 Name_Atomic : constant Name_Id := N + 179;
414 Name_Atomic_Components : constant Name_Id := N + 180;
415 Name_Attach_Handler : constant Name_Id := N + 181;
416 Name_Check : constant Name_Id := N + 182; -- GNAT
417 Name_CIL_Constructor : constant Name_Id := N + 183; -- GNAT
418 Name_Comment : constant Name_Id := N + 184; -- GNAT
419 Name_Common_Object : constant Name_Id := N + 185; -- GNAT
420 Name_Complete_Representation : constant Name_Id := N + 186; -- GNAT
421 Name_Complex_Representation : constant Name_Id := N + 187; -- GNAT
422 Name_Controlled : constant Name_Id := N + 188;
423 Name_Convention : constant Name_Id := N + 189;
424 Name_CPP_Class : constant Name_Id := N + 190; -- GNAT
425 Name_CPP_Constructor : constant Name_Id := N + 191; -- GNAT
426 Name_CPP_Virtual : constant Name_Id := N + 192; -- GNAT
427 Name_CPP_Vtable : constant Name_Id := N + 193; -- GNAT
428 Name_Debug : constant Name_Id := N + 194; -- GNAT
429 Name_Elaborate : constant Name_Id := N + 195; -- Ada 83
430 Name_Elaborate_All : constant Name_Id := N + 196;
431 Name_Elaborate_Body : constant Name_Id := N + 197;
432 Name_Export : constant Name_Id := N + 198;
433 Name_Export_Exception : constant Name_Id := N + 199; -- VMS
434 Name_Export_Function : constant Name_Id := N + 200; -- GNAT
435 Name_Export_Object : constant Name_Id := N + 201; -- GNAT
436 Name_Export_Procedure : constant Name_Id := N + 202; -- GNAT
437 Name_Export_Value : constant Name_Id := N + 203; -- GNAT
438 Name_Export_Valued_Procedure : constant Name_Id := N + 204; -- GNAT
439 Name_External : constant Name_Id := N + 205; -- GNAT
440 Name_Finalize_Storage_Only : constant Name_Id := N + 206; -- GNAT
441 Name_Ident : constant Name_Id := N + 207; -- VMS
442 Name_Implemented_By_Entry : constant Name_Id := N + 208; -- Ada 05
443 Name_Import : constant Name_Id := N + 209;
444 Name_Import_Exception : constant Name_Id := N + 210; -- VMS
445 Name_Import_Function : constant Name_Id := N + 211; -- GNAT
446 Name_Import_Object : constant Name_Id := N + 212; -- GNAT
447 Name_Import_Procedure : constant Name_Id := N + 213; -- GNAT
448 Name_Import_Valued_Procedure : constant Name_Id := N + 214; -- GNAT
449 Name_Inline : constant Name_Id := N + 215;
450 Name_Inline_Always : constant Name_Id := N + 216; -- GNAT
451 Name_Inline_Generic : constant Name_Id := N + 217; -- GNAT
452 Name_Inspection_Point : constant Name_Id := N + 218;
454 -- Note: Interface is not in this list because its name matches -- GNAT
455 -- an Ada 2005 keyword. However it is included in the definition
456 -- of the type Attribute_Id, and the functions Get_Pragma_Id and
457 -- Is_Pragma_Id correctly recognize and process Name_Storage_Size.
459 Name_Interface_Name : constant Name_Id := N + 219; -- GNAT
460 Name_Interrupt_Handler : constant Name_Id := N + 220;
461 Name_Interrupt_Priority : constant Name_Id := N + 221;
462 Name_Java_Constructor : constant Name_Id := N + 222; -- GNAT
463 Name_Java_Interface : constant Name_Id := N + 223; -- GNAT
464 Name_Keep_Names : constant Name_Id := N + 224; -- GNAT
465 Name_Link_With : constant Name_Id := N + 225; -- GNAT
466 Name_Linker_Alias : constant Name_Id := N + 226; -- GNAT
467 Name_Linker_Constructor : constant Name_Id := N + 227; -- GNAT
468 Name_Linker_Destructor : constant Name_Id := N + 228; -- GNAT
469 Name_Linker_Options : constant Name_Id := N + 229;
470 Name_Linker_Section : constant Name_Id := N + 230; -- GNAT
471 Name_List : constant Name_Id := N + 231;
472 Name_Machine_Attribute : constant Name_Id := N + 232; -- GNAT
473 Name_Main : constant Name_Id := N + 233; -- GNAT
474 Name_Main_Storage : constant Name_Id := N + 234; -- GNAT
475 Name_Memory_Size : constant Name_Id := N + 235; -- Ada 83
476 Name_No_Body : constant Name_Id := N + 236; -- GNAT
477 Name_No_Return : constant Name_Id := N + 237; -- GNAT
478 Name_Obsolescent : constant Name_Id := N + 238; -- GNAT
479 Name_Optimize : constant Name_Id := N + 239;
480 Name_Pack : constant Name_Id := N + 240;
481 Name_Page : constant Name_Id := N + 241;
482 Name_Passive : constant Name_Id := N + 242; -- GNAT
483 Name_Postcondition : constant Name_Id := N + 243; -- GNAT
484 Name_Precondition : constant Name_Id := N + 244; -- GNAT
485 Name_Preelaborable_Initialization : constant Name_Id := N + 245; -- Ada 05
486 Name_Preelaborate : constant Name_Id := N + 246;
487 Name_Preelaborate_05 : constant Name_Id := N + 247; -- GNAT
489 -- Note: Priority is not in this list because its name matches
490 -- the name of the corresponding attribute. However, it is
491 -- included in the definition of the type Pragma_Id, and the
492 -- functions Get_Pragma_Id and Is_Pragma_Id correctly recognize
493 -- and process Priority. Priority is a standard Ada 95 pragma.
495 Name_Psect_Object : constant Name_Id := N + 248; -- VMS
496 Name_Pure : constant Name_Id := N + 249;
497 Name_Pure_05 : constant Name_Id := N + 250; -- GNAT
498 Name_Pure_Function : constant Name_Id := N + 251; -- GNAT
499 Name_Relative_Deadline : constant Name_Id := N + 252; -- Ada 05
500 Name_Remote_Call_Interface : constant Name_Id := N + 253;
501 Name_Remote_Types : constant Name_Id := N + 254;
502 Name_Share_Generic : constant Name_Id := N + 255; -- GNAT
503 Name_Shared : constant Name_Id := N + 256; -- Ada 83
504 Name_Shared_Passive : constant Name_Id := N + 257;
506 -- Note: Storage_Size is not in this list because its name
507 -- matches the name of the corresponding attribute. However,
508 -- it is included in the definition of the type Attribute_Id,
509 -- and the functions Get_Pragma_Id and Is_Pragma_Id correctly
510 -- recognize and process Name_Storage_Size.
512 -- Note: Storage_Unit is also omitted from the list because
513 -- of a clash with an attribute name, and is treated similarly.
515 Name_Source_Reference : constant Name_Id := N + 258; -- GNAT
516 Name_Static_Elaboration_Desired : constant Name_Id := N + 259; -- GNAT
517 Name_Stream_Convert : constant Name_Id := N + 260; -- GNAT
518 Name_Subtitle : constant Name_Id := N + 261; -- GNAT
519 Name_Suppress_All : constant Name_Id := N + 262; -- GNAT
520 Name_Suppress_Debug_Info : constant Name_Id := N + 263; -- GNAT
521 Name_Suppress_Initialization : constant Name_Id := N + 264; -- GNAT
522 Name_System_Name : constant Name_Id := N + 265; -- Ada 83
523 Name_Task_Info : constant Name_Id := N + 266; -- GNAT
524 Name_Task_Name : constant Name_Id := N + 267; -- GNAT
525 Name_Task_Storage : constant Name_Id := N + 268; -- VMS
526 Name_Thread_Local_Storage : constant Name_Id := N + 269; -- GNAT
527 Name_Time_Slice : constant Name_Id := N + 270; -- GNAT
528 Name_Title : constant Name_Id := N + 271; -- GNAT
529 Name_Unchecked_Union : constant Name_Id := N + 272; -- Ada 05
530 Name_Unimplemented_Unit : constant Name_Id := N + 273; -- GNAT
531 Name_Universal_Aliasing : constant Name_Id := N + 274; -- GNAT
532 Name_Unmodified : constant Name_Id := N + 275; -- GNAT
533 Name_Unreferenced : constant Name_Id := N + 276; -- GNAT
534 Name_Unreferenced_Objects : constant Name_Id := N + 277; -- GNAT
535 Name_Unreserve_All_Interrupts : constant Name_Id := N + 278; -- GNAT
536 Name_Volatile : constant Name_Id := N + 279;
537 Name_Volatile_Components : constant Name_Id := N + 280;
538 Name_Weak_External : constant Name_Id := N + 281; -- GNAT
539 Last_Pragma_Name : constant Name_Id := N + 281;
541 -- Language convention names for pragma Convention/Export/Import/Interface
542 -- Note that Name_C is not included in this list, since it was already
543 -- declared earlier in the context of one-character identifier names
544 -- (where the order is critical to the fast look up process).
546 -- Note: there are no convention names corresponding to the conventions
547 -- Entry and Protected, this is because these conventions cannot be
548 -- specified by a pragma.
550 First_Convention_Name : constant Name_Id := N + 282;
551 Name_Ada : constant Name_Id := N + 282;
552 Name_Assembler : constant Name_Id := N + 283;
553 Name_CIL : constant Name_Id := N + 284;
554 Name_COBOL : constant Name_Id := N + 285;
555 Name_CPP : constant Name_Id := N + 286;
556 Name_Fortran : constant Name_Id := N + 287;
557 Name_Intrinsic : constant Name_Id := N + 288;
558 Name_Java : constant Name_Id := N + 289;
559 Name_Stdcall : constant Name_Id := N + 290;
560 Name_Stubbed : constant Name_Id := N + 291;
561 Last_Convention_Name : constant Name_Id := N + 291;
563 -- The following names are preset as synonyms for Assembler
565 Name_Asm : constant Name_Id := N + 292;
566 Name_Assembly : constant Name_Id := N + 293;
568 -- The following names are preset as synonyms for C
570 Name_Default : constant Name_Id := N + 294;
571 -- Name_External (previously defined as pragma)
573 -- The following names are preset as synonyms for CPP
575 Name_C_Plus_Plus : constant Name_Id := N + 295;
577 -- The following names are present as synonyms for Stdcall
579 Name_DLL : constant Name_Id := N + 296;
580 Name_Win32 : constant Name_Id := N + 297;
582 -- Other special names used in processing pragmas
584 Name_As_Is : constant Name_Id := N + 298;
585 Name_Assertion : constant Name_Id := N + 299;
586 Name_Attribute_Name : constant Name_Id := N + 300;
587 Name_Body_File_Name : constant Name_Id := N + 301;
588 Name_Boolean_Entry_Barriers : constant Name_Id := N + 302;
589 Name_Casing : constant Name_Id := N + 303;
590 Name_Code : constant Name_Id := N + 304;
591 Name_Component : constant Name_Id := N + 305;
592 Name_Component_Size_4 : constant Name_Id := N + 306;
593 Name_Copy : constant Name_Id := N + 307;
594 Name_D_Float : constant Name_Id := N + 308;
595 Name_Descriptor : constant Name_Id := N + 309;
596 Name_Dot_Replacement : constant Name_Id := N + 310;
597 Name_Dynamic : constant Name_Id := N + 311;
598 Name_Entity : constant Name_Id := N + 312;
599 Name_Entry_Count : constant Name_Id := N + 313;
600 Name_External_Name : constant Name_Id := N + 314;
601 Name_First_Optional_Parameter : constant Name_Id := N + 315;
602 Name_Form : constant Name_Id := N + 316;
603 Name_G_Float : constant Name_Id := N + 317;
604 Name_Gcc : constant Name_Id := N + 318;
605 Name_Gnat : constant Name_Id := N + 319;
606 Name_GPL : constant Name_Id := N + 320;
607 Name_IEEE_Float : constant Name_Id := N + 321;
608 Name_Ignore : constant Name_Id := N + 322;
609 Name_Info : constant Name_Id := N + 323;
610 Name_Internal : constant Name_Id := N + 324;
611 Name_Link_Name : constant Name_Id := N + 325;
612 Name_Lowercase : constant Name_Id := N + 326;
613 Name_Max_Entry_Queue_Depth : constant Name_Id := N + 327;
614 Name_Max_Entry_Queue_Length : constant Name_Id := N + 328;
615 Name_Max_Size : constant Name_Id := N + 329;
616 Name_Mechanism : constant Name_Id := N + 330;
617 Name_Message : constant Name_Id := N + 331;
618 Name_Mixedcase : constant Name_Id := N + 332;
619 Name_Modified_GPL : constant Name_Id := N + 333;
620 Name_Name : constant Name_Id := N + 334;
621 Name_NCA : constant Name_Id := N + 335;
622 Name_No : constant Name_Id := N + 336;
623 Name_No_Dependence : constant Name_Id := N + 337;
624 Name_No_Dynamic_Attachment : constant Name_Id := N + 338;
625 Name_No_Dynamic_Interrupts : constant Name_Id := N + 339;
626 Name_No_Requeue : constant Name_Id := N + 340;
627 Name_No_Requeue_Statements : constant Name_Id := N + 341;
628 Name_No_Task_Attributes : constant Name_Id := N + 342;
629 Name_No_Task_Attributes_Package : constant Name_Id := N + 343;
630 Name_On : constant Name_Id := N + 344;
631 Name_Parameter_Types : constant Name_Id := N + 345;
632 Name_Reference : constant Name_Id := N + 346;
633 Name_Restricted : constant Name_Id := N + 347;
634 Name_Result_Mechanism : constant Name_Id := N + 348;
635 Name_Result_Type : constant Name_Id := N + 349;
636 Name_Runtime : constant Name_Id := N + 350;
637 Name_SB : constant Name_Id := N + 351;
638 Name_Secondary_Stack_Size : constant Name_Id := N + 352;
639 Name_Section : constant Name_Id := N + 353;
640 Name_Semaphore : constant Name_Id := N + 354;
641 Name_Short_Descriptor : constant Name_Id := N + 355;
642 Name_Simple_Barriers : constant Name_Id := N + 356;
643 Name_Spec_File_Name : constant Name_Id := N + 357;
644 Name_State : constant Name_Id := N + 358;
645 Name_Static : constant Name_Id := N + 359;
646 Name_Stack_Size : constant Name_Id := N + 360;
647 Name_Subunit_File_Name : constant Name_Id := N + 361;
648 Name_Task_Stack_Size_Default : constant Name_Id := N + 362;
649 Name_Task_Type : constant Name_Id := N + 363;
650 Name_Time_Slicing_Enabled : constant Name_Id := N + 364;
651 Name_Top_Guard : constant Name_Id := N + 365;
652 Name_UBA : constant Name_Id := N + 366;
653 Name_UBS : constant Name_Id := N + 367;
654 Name_UBSB : constant Name_Id := N + 368;
655 Name_Unit_Name : constant Name_Id := N + 369;
656 Name_Unknown : constant Name_Id := N + 370;
657 Name_Unrestricted : constant Name_Id := N + 371;
658 Name_Uppercase : constant Name_Id := N + 372;
659 Name_User : constant Name_Id := N + 373;
660 Name_VAX_Float : constant Name_Id := N + 374;
661 Name_VMS : constant Name_Id := N + 375;
662 Name_Vtable_Ptr : constant Name_Id := N + 376;
663 Name_Working_Storage : constant Name_Id := N + 377;
665 -- Names of recognized attributes. The entries with the comment "Ada 83"
666 -- are attributes that are defined in Ada 83, but not in Ada 95. These
667 -- attributes are implemented in both Ada 83 and Ada 95 modes in GNAT.
669 -- The entries marked GNAT are attributes that are defined by GNAT
670 -- and implemented in both Ada 83 and Ada 95 modes. Full descriptions
671 -- of these implementation dependent attributes may be found in the
672 -- appropriate section in package Sem_Attr in file sem-attr.ads.
674 -- The entries marked VMS are recognized only in OpenVMS implementations
675 -- of GNAT, and are treated as illegal in all other contexts.
677 First_Attribute_Name : constant Name_Id := N + 378;
678 Name_Abort_Signal : constant Name_Id := N + 378; -- GNAT
679 Name_Access : constant Name_Id := N + 379;
680 Name_Address : constant Name_Id := N + 380;
681 Name_Address_Size : constant Name_Id := N + 381; -- GNAT
682 Name_Aft : constant Name_Id := N + 382;
683 Name_Alignment : constant Name_Id := N + 383;
684 Name_Asm_Input : constant Name_Id := N + 384; -- GNAT
685 Name_Asm_Output : constant Name_Id := N + 385; -- GNAT
686 Name_AST_Entry : constant Name_Id := N + 386; -- VMS
687 Name_Bit : constant Name_Id := N + 387; -- GNAT
688 Name_Bit_Order : constant Name_Id := N + 388;
689 Name_Bit_Position : constant Name_Id := N + 389; -- GNAT
690 Name_Body_Version : constant Name_Id := N + 390;
691 Name_Callable : constant Name_Id := N + 391;
692 Name_Caller : constant Name_Id := N + 392;
693 Name_Code_Address : constant Name_Id := N + 393; -- GNAT
694 Name_Component_Size : constant Name_Id := N + 394;
695 Name_Compose : constant Name_Id := N + 395;
696 Name_Constrained : constant Name_Id := N + 396;
697 Name_Count : constant Name_Id := N + 397;
698 Name_Default_Bit_Order : constant Name_Id := N + 398; -- GNAT
699 Name_Definite : constant Name_Id := N + 399;
700 Name_Delta : constant Name_Id := N + 400;
701 Name_Denorm : constant Name_Id := N + 401;
702 Name_Digits : constant Name_Id := N + 402;
703 Name_Elaborated : constant Name_Id := N + 403; -- GNAT
704 Name_Emax : constant Name_Id := N + 404; -- Ada 83
705 Name_Enabled : constant Name_Id := N + 405; -- GNAT
706 Name_Enum_Rep : constant Name_Id := N + 406; -- GNAT
707 Name_Enum_Val : constant Name_Id := N + 407; -- GNAT
708 Name_Epsilon : constant Name_Id := N + 408; -- Ada 83
709 Name_Exponent : constant Name_Id := N + 409;
710 Name_External_Tag : constant Name_Id := N + 410;
711 Name_Fast_Math : constant Name_Id := N + 411; -- GNAT
712 Name_First : constant Name_Id := N + 412;
713 Name_First_Bit : constant Name_Id := N + 413;
714 Name_Fixed_Value : constant Name_Id := N + 414; -- GNAT
715 Name_Fore : constant Name_Id := N + 415;
716 Name_Has_Access_Values : constant Name_Id := N + 416; -- GNAT
717 Name_Has_Discriminants : constant Name_Id := N + 417; -- GNAT
718 Name_Has_Tagged_Values : constant Name_Id := N + 418; -- GNAT
719 Name_Identity : constant Name_Id := N + 419;
720 Name_Img : constant Name_Id := N + 420; -- GNAT
721 Name_Integer_Value : constant Name_Id := N + 421; -- GNAT
722 Name_Invalid_Value : constant Name_Id := N + 422; -- GNAT
723 Name_Large : constant Name_Id := N + 423; -- Ada 83
724 Name_Last : constant Name_Id := N + 424;
725 Name_Last_Bit : constant Name_Id := N + 425;
726 Name_Leading_Part : constant Name_Id := N + 426;
727 Name_Length : constant Name_Id := N + 427;
728 Name_Machine_Emax : constant Name_Id := N + 428;
729 Name_Machine_Emin : constant Name_Id := N + 429;
730 Name_Machine_Mantissa : constant Name_Id := N + 430;
731 Name_Machine_Overflows : constant Name_Id := N + 431;
732 Name_Machine_Radix : constant Name_Id := N + 432;
733 Name_Machine_Rounding : constant Name_Id := N + 433; -- Ada 05
734 Name_Machine_Rounds : constant Name_Id := N + 434;
735 Name_Machine_Size : constant Name_Id := N + 435; -- GNAT
736 Name_Mantissa : constant Name_Id := N + 436; -- Ada 83
737 Name_Max_Size_In_Storage_Elements : constant Name_Id := N + 437;
738 Name_Maximum_Alignment : constant Name_Id := N + 438; -- GNAT
739 Name_Mechanism_Code : constant Name_Id := N + 439; -- GNAT
740 Name_Mod : constant Name_Id := N + 440; -- Ada 05
741 Name_Model_Emin : constant Name_Id := N + 441;
742 Name_Model_Epsilon : constant Name_Id := N + 442;
743 Name_Model_Mantissa : constant Name_Id := N + 443;
744 Name_Model_Small : constant Name_Id := N + 444;
745 Name_Modulus : constant Name_Id := N + 445;
746 Name_Null_Parameter : constant Name_Id := N + 446; -- GNAT
747 Name_Object_Size : constant Name_Id := N + 447; -- GNAT
748 Name_Old : constant Name_Id := N + 448; -- GNAT
749 Name_Partition_ID : constant Name_Id := N + 449;
750 Name_Passed_By_Reference : constant Name_Id := N + 450; -- GNAT
751 Name_Pool_Address : constant Name_Id := N + 451;
752 Name_Pos : constant Name_Id := N + 452;
753 Name_Position : constant Name_Id := N + 453;
754 Name_Priority : constant Name_Id := N + 454; -- Ada 05
755 Name_Range : constant Name_Id := N + 455;
756 Name_Range_Length : constant Name_Id := N + 456; -- GNAT
757 Name_Result : constant Name_Id := N + 457; -- GNAT
758 Name_Round : constant Name_Id := N + 458;
759 Name_Safe_Emax : constant Name_Id := N + 459; -- Ada 83
760 Name_Safe_First : constant Name_Id := N + 460;
761 Name_Safe_Large : constant Name_Id := N + 461; -- Ada 83
762 Name_Safe_Last : constant Name_Id := N + 462;
763 Name_Safe_Small : constant Name_Id := N + 463; -- Ada 83
764 Name_Scale : constant Name_Id := N + 464;
765 Name_Scaling : constant Name_Id := N + 465;
766 Name_Signed_Zeros : constant Name_Id := N + 466;
767 Name_Size : constant Name_Id := N + 467;
768 Name_Small : constant Name_Id := N + 468;
769 Name_Storage_Size : constant Name_Id := N + 469;
770 Name_Storage_Unit : constant Name_Id := N + 470; -- GNAT
771 Name_Stream_Size : constant Name_Id := N + 471; -- Ada 05
772 Name_Tag : constant Name_Id := N + 472;
773 Name_Target_Name : constant Name_Id := N + 473; -- GNAT
774 Name_Terminated : constant Name_Id := N + 474;
775 Name_To_Address : constant Name_Id := N + 475; -- GNAT
776 Name_Type_Class : constant Name_Id := N + 476; -- GNAT
777 Name_UET_Address : constant Name_Id := N + 477; -- GNAT
778 Name_Unbiased_Rounding : constant Name_Id := N + 478;
779 Name_Unchecked_Access : constant Name_Id := N + 479;
780 Name_Unconstrained_Array : constant Name_Id := N + 480;
781 Name_Universal_Literal_String : constant Name_Id := N + 481; -- GNAT
782 Name_Unrestricted_Access : constant Name_Id := N + 482; -- GNAT
783 Name_VADS_Size : constant Name_Id := N + 483; -- GNAT
784 Name_Val : constant Name_Id := N + 484;
785 Name_Valid : constant Name_Id := N + 485;
786 Name_Value_Size : constant Name_Id := N + 486; -- GNAT
787 Name_Version : constant Name_Id := N + 487;
788 Name_Wchar_T_Size : constant Name_Id := N + 488; -- GNAT
789 Name_Wide_Wide_Width : constant Name_Id := N + 489; -- Ada 05
790 Name_Wide_Width : constant Name_Id := N + 490;
791 Name_Width : constant Name_Id := N + 491;
792 Name_Word_Size : constant Name_Id := N + 492; -- GNAT
794 -- Attributes that designate attributes returning renamable functions,
795 -- i.e. functions that return other than a universal value and that
796 -- have non-universal arguments.
798 First_Renamable_Function_Attribute : constant Name_Id := N + 493;
799 Name_Adjacent : constant Name_Id := N + 493;
800 Name_Ceiling : constant Name_Id := N + 494;
801 Name_Copy_Sign : constant Name_Id := N + 495;
802 Name_Floor : constant Name_Id := N + 496;
803 Name_Fraction : constant Name_Id := N + 497;
804 Name_From_Any : constant Name_Id := N + 498; -- GNAT
805 Name_Image : constant Name_Id := N + 499;
806 Name_Input : constant Name_Id := N + 500;
807 Name_Machine : constant Name_Id := N + 501;
808 Name_Max : constant Name_Id := N + 502;
809 Name_Min : constant Name_Id := N + 503;
810 Name_Model : constant Name_Id := N + 504;
811 Name_Pred : constant Name_Id := N + 505;
812 Name_Remainder : constant Name_Id := N + 506;
813 Name_Rounding : constant Name_Id := N + 507;
814 Name_Succ : constant Name_Id := N + 508;
815 Name_To_Any : constant Name_Id := N + 509; -- GNAT
816 Name_Truncation : constant Name_Id := N + 510;
817 Name_TypeCode : constant Name_Id := N + 511; -- GNAT
818 Name_Value : constant Name_Id := N + 512;
819 Name_Wide_Image : constant Name_Id := N + 513;
820 Name_Wide_Wide_Image : constant Name_Id := N + 514;
821 Name_Wide_Value : constant Name_Id := N + 515;
822 Name_Wide_Wide_Value : constant Name_Id := N + 516;
823 Last_Renamable_Function_Attribute : constant Name_Id := N + 516;
825 -- Attributes that designate procedures
827 First_Procedure_Attribute : constant Name_Id := N + 517;
828 Name_Output : constant Name_Id := N + 517;
829 Name_Read : constant Name_Id := N + 518;
830 Name_Write : constant Name_Id := N + 519;
831 Last_Procedure_Attribute : constant Name_Id := N + 519;
833 -- Remaining attributes are ones that return entities
835 First_Entity_Attribute_Name : constant Name_Id := N + 520;
836 Name_Elab_Body : constant Name_Id := N + 520; -- GNAT
837 Name_Elab_Spec : constant Name_Id := N + 521; -- GNAT
838 Name_Storage_Pool : constant Name_Id := N + 522;
840 -- These attributes are the ones that return types
842 First_Type_Attribute_Name : constant Name_Id := N + 523;
843 Name_Base : constant Name_Id := N + 523;
844 Name_Class : constant Name_Id := N + 524;
845 Name_Stub_Type : constant Name_Id := N + 525;
846 Last_Type_Attribute_Name : constant Name_Id := N + 525;
847 Last_Entity_Attribute_Name : constant Name_Id := N + 525;
848 Last_Attribute_Name : constant Name_Id := N + 525;
850 -- Names of recognized locking policy identifiers
852 -- Note: policies are identified by the first character of the
853 -- name (e.g. C for Ceiling_Locking). If new policy names are added,
854 -- the first character must be distinct.
856 First_Locking_Policy_Name : constant Name_Id := N + 526;
857 Name_Ceiling_Locking : constant Name_Id := N + 526;
858 Name_Inheritance_Locking : constant Name_Id := N + 527;
859 Last_Locking_Policy_Name : constant Name_Id := N + 527;
861 -- Names of recognized queuing policy identifiers
863 -- Note: policies are identified by the first character of the
864 -- name (e.g. F for FIFO_Queuing). If new policy names are added,
865 -- the first character must be distinct.
867 First_Queuing_Policy_Name : constant Name_Id := N + 528;
868 Name_FIFO_Queuing : constant Name_Id := N + 528;
869 Name_Priority_Queuing : constant Name_Id := N + 529;
870 Last_Queuing_Policy_Name : constant Name_Id := N + 529;
872 -- Names of recognized task dispatching policy identifiers
874 -- Note: policies are identified by the first character of the
875 -- name (e.g. F for FIFO_Within_Priorities). If new policy names
876 -- are added, the first character must be distinct.
878 First_Task_Dispatching_Policy_Name : constant Name_Id := N + 530;
879 Name_EDF_Across_Priorities : constant Name_Id := N + 530;
880 Name_FIFO_Within_Priorities : constant Name_Id := N + 531;
881 Name_Non_Preemptive_Within_Priorities : constant Name_Id := N + 532;
882 Name_Round_Robin_Within_Priorities : constant Name_Id := N + 533;
883 Last_Task_Dispatching_Policy_Name : constant Name_Id := N + 533;
885 -- Names of recognized checks for pragma Suppress
887 First_Check_Name : constant Name_Id := N + 534;
888 Name_Access_Check : constant Name_Id := N + 534;
889 Name_Accessibility_Check : constant Name_Id := N + 535;
890 Name_Alignment_Check : constant Name_Id := N + 536; -- GNAT
891 Name_Discriminant_Check : constant Name_Id := N + 537;
892 Name_Division_Check : constant Name_Id := N + 538;
893 Name_Elaboration_Check : constant Name_Id := N + 539;
894 Name_Index_Check : constant Name_Id := N + 540;
895 Name_Length_Check : constant Name_Id := N + 541;
896 Name_Overflow_Check : constant Name_Id := N + 542;
897 Name_Range_Check : constant Name_Id := N + 543;
898 Name_Storage_Check : constant Name_Id := N + 544;
899 Name_Tag_Check : constant Name_Id := N + 545;
900 Name_Validity_Check : constant Name_Id := N + 546; -- GNAT
901 Name_All_Checks : constant Name_Id := N + 547;
902 Last_Check_Name : constant Name_Id := N + 547;
904 -- Names corresponding to reserved keywords, excluding those already
905 -- declared in the attribute list (Access, Delta, Digits, Mod, Range).
907 Name_Abort : constant Name_Id := N + 548;
908 Name_Abs : constant Name_Id := N + 549;
909 Name_Accept : constant Name_Id := N + 550;
910 Name_And : constant Name_Id := N + 551;
911 Name_All : constant Name_Id := N + 552;
912 Name_Array : constant Name_Id := N + 553;
913 Name_At : constant Name_Id := N + 554;
914 Name_Begin : constant Name_Id := N + 555;
915 Name_Body : constant Name_Id := N + 556;
916 Name_Case : constant Name_Id := N + 557;
917 Name_Constant : constant Name_Id := N + 558;
918 Name_Declare : constant Name_Id := N + 559;
919 Name_Delay : constant Name_Id := N + 560;
920 Name_Do : constant Name_Id := N + 561;
921 Name_Else : constant Name_Id := N + 562;
922 Name_Elsif : constant Name_Id := N + 563;
923 Name_End : constant Name_Id := N + 564;
924 Name_Entry : constant Name_Id := N + 565;
925 Name_Exception : constant Name_Id := N + 566;
926 Name_Exit : constant Name_Id := N + 567;
927 Name_For : constant Name_Id := N + 568;
928 Name_Function : constant Name_Id := N + 569;
929 Name_Generic : constant Name_Id := N + 570;
930 Name_Goto : constant Name_Id := N + 571;
931 Name_If : constant Name_Id := N + 572;
932 Name_In : constant Name_Id := N + 573;
933 Name_Is : constant Name_Id := N + 574;
934 Name_Limited : constant Name_Id := N + 575;
935 Name_Loop : constant Name_Id := N + 576;
936 Name_New : constant Name_Id := N + 577;
937 Name_Not : constant Name_Id := N + 578;
938 Name_Null : constant Name_Id := N + 579;
939 Name_Of : constant Name_Id := N + 580;
940 Name_Or : constant Name_Id := N + 581;
941 Name_Others : constant Name_Id := N + 582;
942 Name_Out : constant Name_Id := N + 583;
943 Name_Package : constant Name_Id := N + 584;
944 Name_Pragma : constant Name_Id := N + 585;
945 Name_Private : constant Name_Id := N + 586;
946 Name_Procedure : constant Name_Id := N + 587;
947 Name_Raise : constant Name_Id := N + 588;
948 Name_Record : constant Name_Id := N + 589;
949 Name_Rem : constant Name_Id := N + 590;
950 Name_Renames : constant Name_Id := N + 591;
951 Name_Return : constant Name_Id := N + 592;
952 Name_Reverse : constant Name_Id := N + 593;
953 Name_Select : constant Name_Id := N + 594;
954 Name_Separate : constant Name_Id := N + 595;
955 Name_Subtype : constant Name_Id := N + 596;
956 Name_Task : constant Name_Id := N + 597;
957 Name_Terminate : constant Name_Id := N + 598;
958 Name_Then : constant Name_Id := N + 599;
959 Name_Type : constant Name_Id := N + 600;
960 Name_Use : constant Name_Id := N + 601;
961 Name_When : constant Name_Id := N + 602;
962 Name_While : constant Name_Id := N + 603;
963 Name_With : constant Name_Id := N + 604;
964 Name_Xor : constant Name_Id := N + 605;
966 -- Names of intrinsic subprograms
968 -- Note: Asm is missing from this list, since Asm is a legitimate
969 -- convention name. So is To_Address, which is a GNAT attribute.
971 First_Intrinsic_Name : constant Name_Id := N + 606;
972 Name_Divide : constant Name_Id := N + 606;
973 Name_Enclosing_Entity : constant Name_Id := N + 607;
974 Name_Exception_Information : constant Name_Id := N + 608;
975 Name_Exception_Message : constant Name_Id := N + 609;
976 Name_Exception_Name : constant Name_Id := N + 610;
977 Name_File : constant Name_Id := N + 611;
978 Name_Generic_Dispatching_Constructor : constant Name_Id := N + 612;
979 Name_Import_Address : constant Name_Id := N + 613;
980 Name_Import_Largest_Value : constant Name_Id := N + 614;
981 Name_Import_Value : constant Name_Id := N + 615;
982 Name_Is_Negative : constant Name_Id := N + 616;
983 Name_Line : constant Name_Id := N + 617;
984 Name_Rotate_Left : constant Name_Id := N + 618;
985 Name_Rotate_Right : constant Name_Id := N + 619;
986 Name_Shift_Left : constant Name_Id := N + 620;
987 Name_Shift_Right : constant Name_Id := N + 621;
988 Name_Shift_Right_Arithmetic : constant Name_Id := N + 622;
989 Name_Source_Location : constant Name_Id := N + 623;
990 Name_Unchecked_Conversion : constant Name_Id := N + 624;
991 Name_Unchecked_Deallocation : constant Name_Id := N + 625;
992 Name_To_Pointer : constant Name_Id := N + 626;
993 Last_Intrinsic_Name : constant Name_Id := N + 626;
995 -- Names used in processing intrinsic calls
997 Name_Free : constant Name_Id := N + 627;
999 -- Reserved words used only in Ada 95
1001 First_95_Reserved_Word : constant Name_Id := N + 628;
1002 Name_Abstract : constant Name_Id := N + 628;
1003 Name_Aliased : constant Name_Id := N + 629;
1004 Name_Protected : constant Name_Id := N + 630;
1005 Name_Until : constant Name_Id := N + 631;
1006 Name_Requeue : constant Name_Id := N + 632;
1007 Name_Tagged : constant Name_Id := N + 633;
1008 Last_95_Reserved_Word : constant Name_Id := N + 633;
1010 subtype Ada_95_Reserved_Words is
1011 Name_Id range First_95_Reserved_Word .. Last_95_Reserved_Word;
1013 -- Miscellaneous names used in semantic checking
1015 Name_Raise_Exception : constant Name_Id := N + 634;
1017 -- Additional reserved words and identifiers used in GNAT Project Files
1018 -- Note that Name_External is already previously declared
1020 Name_Ada_Roots : constant Name_Id := N + 635;
1021 Name_Aggregate : constant Name_Id := N + 636;
1022 Name_Archive_Builder : constant Name_Id := N + 637;
1023 Name_Archive_Builder_Append_Option : constant Name_Id := N + 638;
1024 Name_Archive_Indexer : constant Name_Id := N + 639;
1025 Name_Archive_Suffix : constant Name_Id := N + 640;
1026 Name_Binder : constant Name_Id := N + 641;
1027 Name_Binder_Prefix : constant Name_Id := N + 642;
1028 Name_Body_Suffix : constant Name_Id := N + 643;
1029 Name_Builder : constant Name_Id := N + 644;
1030 Name_Builder_Switches : constant Name_Id := N + 645;
1031 Name_Compiler : constant Name_Id := N + 646;
1032 Name_Compiler_Kind : constant Name_Id := N + 647;
1033 Name_Config_Body_File_Name : constant Name_Id := N + 648;
1034 Name_Config_Body_File_Name_Pattern : constant Name_Id := N + 649;
1035 Name_Config_File_Switches : constant Name_Id := N + 650;
1036 Name_Config_File_Unique : constant Name_Id := N + 651;
1037 Name_Config_Spec_File_Name : constant Name_Id := N + 652;
1038 Name_Config_Spec_File_Name_Pattern : constant Name_Id := N + 653;
1039 Name_Configuration : constant Name_Id := N + 654;
1040 Name_Cross_Reference : constant Name_Id := N + 655;
1041 Name_Default_Language : constant Name_Id := N + 656;
1042 Name_Default_Switches : constant Name_Id := N + 657;
1043 Name_Dependency_Driver : constant Name_Id := N + 658;
1044 Name_Dependency_File_Kind : constant Name_Id := N + 659;
1045 Name_Dependency_Switches : constant Name_Id := N + 660;
1046 Name_Driver : constant Name_Id := N + 661;
1047 Name_Excluded_Source_Dirs : constant Name_Id := N + 662;
1048 Name_Excluded_Source_Files : constant Name_Id := N + 663;
1049 Name_Excluded_Source_List_File : constant Name_Id := N + 664;
1050 Name_Exec_Dir : constant Name_Id := N + 665;
1051 Name_Executable : constant Name_Id := N + 666;
1052 Name_Executable_Suffix : constant Name_Id := N + 667;
1053 Name_Extends : constant Name_Id := N + 668;
1054 Name_Externally_Built : constant Name_Id := N + 669;
1055 Name_Finder : constant Name_Id := N + 670;
1056 Name_Global_Compilation_Switches : constant Name_Id := N + 671;
1057 Name_Global_Configuration_Pragmas : constant Name_Id := N + 672;
1058 Name_Global_Config_File : constant Name_Id := N + 673;
1059 Name_Gnatls : constant Name_Id := N + 674;
1060 Name_Gnatstub : constant Name_Id := N + 675;
1061 Name_Implementation : constant Name_Id := N + 676;
1062 Name_Implementation_Exceptions : constant Name_Id := N + 677;
1063 Name_Implementation_Suffix : constant Name_Id := N + 678;
1064 Name_Include_Switches : constant Name_Id := N + 679;
1065 Name_Include_Path : constant Name_Id := N + 680;
1066 Name_Include_Path_File : constant Name_Id := N + 681;
1067 Name_Inherit_Source_Path : constant Name_Id := N + 682;
1068 Name_Language_Kind : constant Name_Id := N + 683;
1069 Name_Language_Processing : constant Name_Id := N + 684;
1070 Name_Languages : constant Name_Id := N + 685;
1071 Name_Library : constant Name_Id := N + 686;
1072 Name_Library_Ali_Dir : constant Name_Id := N + 687;
1073 Name_Library_Auto_Init : constant Name_Id := N + 688;
1074 Name_Library_Auto_Init_Supported : constant Name_Id := N + 689;
1075 Name_Library_Builder : constant Name_Id := N + 690;
1076 Name_Library_Dir : constant Name_Id := N + 691;
1077 Name_Library_GCC : constant Name_Id := N + 692;
1078 Name_Library_Interface : constant Name_Id := N + 693;
1079 Name_Library_Kind : constant Name_Id := N + 694;
1080 Name_Library_Name : constant Name_Id := N + 695;
1081 Name_Library_Major_Minor_Id_Supported : constant Name_Id := N + 696;
1082 Name_Library_Options : constant Name_Id := N + 697;
1083 Name_Library_Partial_Linker : constant Name_Id := N + 698;
1084 Name_Library_Reference_Symbol_File : constant Name_Id := N + 699;
1085 Name_Library_Src_Dir : constant Name_Id := N + 700;
1086 Name_Library_Support : constant Name_Id := N + 701;
1087 Name_Library_Symbol_File : constant Name_Id := N + 702;
1088 Name_Library_Symbol_Policy : constant Name_Id := N + 703;
1089 Name_Library_Version : constant Name_Id := N + 704;
1090 Name_Library_Version_Switches : constant Name_Id := N + 705;
1091 Name_Linker : constant Name_Id := N + 706;
1092 Name_Linker_Executable_Option : constant Name_Id := N + 707;
1093 Name_Linker_Lib_Dir_Option : constant Name_Id := N + 708;
1094 Name_Linker_Lib_Name_Option : constant Name_Id := N + 709;
1095 Name_Local_Config_File : constant Name_Id := N + 710;
1096 Name_Local_Configuration_Pragmas : constant Name_Id := N + 711;
1097 Name_Locally_Removed_Files : constant Name_Id := N + 712;
1098 Name_Map_File_Option : constant Name_Id := N + 713;
1099 Name_Mapping_File_Switches : constant Name_Id := N + 714;
1100 Name_Mapping_Spec_Suffix : constant Name_Id := N + 715;
1101 Name_Mapping_Body_Suffix : constant Name_Id := N + 716;
1102 Name_Metrics : constant Name_Id := N + 717;
1103 Name_Naming : constant Name_Id := N + 718;
1104 Name_Object_Generated : constant Name_Id := N + 719;
1105 Name_Objects_Linked : constant Name_Id := N + 720;
1106 Name_Objects_Path : constant Name_Id := N + 721;
1107 Name_Objects_Path_File : constant Name_Id := N + 722;
1108 Name_Object_Dir : constant Name_Id := N + 723;
1109 Name_Path_Syntax : constant Name_Id := N + 724;
1110 Name_Pic_Option : constant Name_Id := N + 725;
1111 Name_Pretty_Printer : constant Name_Id := N + 726;
1112 Name_Prefix : constant Name_Id := N + 727;
1113 Name_Project : constant Name_Id := N + 728;
1114 Name_Roots : constant Name_Id := N + 729;
1115 Name_Required_Switches : constant Name_Id := N + 730;
1116 Name_Run_Path_Option : constant Name_Id := N + 731;
1117 Name_Runtime_Project : constant Name_Id := N + 732;
1118 Name_Shared_Library_Minimum_Switches : constant Name_Id := N + 733;
1119 Name_Shared_Library_Prefix : constant Name_Id := N + 734;
1120 Name_Shared_Library_Suffix : constant Name_Id := N + 735;
1121 Name_Separate_Suffix : constant Name_Id := N + 736;
1122 Name_Source_Dirs : constant Name_Id := N + 737;
1123 Name_Source_Files : constant Name_Id := N + 738;
1124 Name_Source_List_File : constant Name_Id := N + 739;
1125 Name_Spec : constant Name_Id := N + 740;
1126 Name_Spec_Suffix : constant Name_Id := N + 741;
1127 Name_Specification : constant Name_Id := N + 742;
1128 Name_Specification_Exceptions : constant Name_Id := N + 743;
1129 Name_Specification_Suffix : constant Name_Id := N + 744;
1130 Name_Stack : constant Name_Id := N + 745;
1131 Name_Switches : constant Name_Id := N + 746;
1132 Name_Symbolic_Link_Supported : constant Name_Id := N + 747;
1133 Name_Sync : constant Name_Id := N + 748;
1134 Name_Synchronize : constant Name_Id := N + 749;
1135 Name_Toolchain_Description : constant Name_Id := N + 750;
1136 Name_Toolchain_Version : constant Name_Id := N + 751;
1137 Name_Runtime_Library_Dir : constant Name_Id := N + 752;
1139 -- Other miscellaneous names used in front end
1141 Name_Unaligned_Valid : constant Name_Id := N + 753;
1143 -- Ada 2005 reserved words
1145 First_2005_Reserved_Word : constant Name_Id := N + 754;
1146 Name_Interface : constant Name_Id := N + 754;
1147 Name_Overriding : constant Name_Id := N + 755;
1148 Name_Synchronized : constant Name_Id := N + 756;
1149 Last_2005_Reserved_Word : constant Name_Id := N + 756;
1151 subtype Ada_2005_Reserved_Words is
1152 Name_Id range First_2005_Reserved_Word .. Last_2005_Reserved_Word;
1154 -- Mark last defined name for consistency check in Snames body
1156 Last_Predefined_Name : constant Name_Id := N + 756;
1158 ---------------------------------------
1159 -- Subtypes Defining Name Categories --
1160 ---------------------------------------
1162 subtype Any_Operator_Name is Name_Id range
1163 First_Operator_Name .. Last_Operator_Name;
1165 subtype Configuration_Pragma_Names is Name_Id range
1166 First_Pragma_Name .. Last_Configuration_Pragma_Name;
1168 ------------------------------
1169 -- Attribute ID Definitions --
1170 ------------------------------
1172 type Attribute_Id is (
1173 Attribute_Abort_Signal,
1176 Attribute_Address_Size,
1178 Attribute_Alignment,
1179 Attribute_Asm_Input,
1180 Attribute_Asm_Output,
1181 Attribute_AST_Entry,
1183 Attribute_Bit_Order,
1184 Attribute_Bit_Position,
1185 Attribute_Body_Version,
1188 Attribute_Code_Address,
1189 Attribute_Component_Size,
1191 Attribute_Constrained,
1193 Attribute_Default_Bit_Order,
1198 Attribute_Elaborated,
1205 Attribute_External_Tag,
1206 Attribute_Fast_Math,
1208 Attribute_First_Bit,
1209 Attribute_Fixed_Value,
1211 Attribute_Has_Access_Values,
1212 Attribute_Has_Discriminants,
1213 Attribute_Has_Tagged_Values,
1216 Attribute_Integer_Value,
1217 Attribute_Invalid_Value,
1221 Attribute_Leading_Part,
1223 Attribute_Machine_Emax,
1224 Attribute_Machine_Emin,
1225 Attribute_Machine_Mantissa,
1226 Attribute_Machine_Overflows,
1227 Attribute_Machine_Radix,
1228 Attribute_Machine_Rounding,
1229 Attribute_Machine_Rounds,
1230 Attribute_Machine_Size,
1232 Attribute_Max_Size_In_Storage_Elements,
1233 Attribute_Maximum_Alignment,
1234 Attribute_Mechanism_Code,
1236 Attribute_Model_Emin,
1237 Attribute_Model_Epsilon,
1238 Attribute_Model_Mantissa,
1239 Attribute_Model_Small,
1241 Attribute_Null_Parameter,
1242 Attribute_Object_Size,
1244 Attribute_Partition_ID,
1245 Attribute_Passed_By_Reference,
1246 Attribute_Pool_Address,
1251 Attribute_Range_Length,
1254 Attribute_Safe_Emax,
1255 Attribute_Safe_First,
1256 Attribute_Safe_Large,
1257 Attribute_Safe_Last,
1258 Attribute_Safe_Small,
1261 Attribute_Signed_Zeros,
1264 Attribute_Storage_Size,
1265 Attribute_Storage_Unit,
1266 Attribute_Stream_Size,
1268 Attribute_Target_Name,
1269 Attribute_Terminated,
1270 Attribute_To_Address,
1271 Attribute_Type_Class,
1272 Attribute_UET_Address,
1273 Attribute_Unbiased_Rounding,
1274 Attribute_Unchecked_Access,
1275 Attribute_Unconstrained_Array,
1276 Attribute_Universal_Literal_String,
1277 Attribute_Unrestricted_Access,
1278 Attribute_VADS_Size,
1281 Attribute_Value_Size,
1283 Attribute_Wchar_T_Size,
1284 Attribute_Wide_Wide_Width,
1285 Attribute_Wide_Width,
1287 Attribute_Word_Size,
1289 -- Attributes designating renamable functions
1293 Attribute_Copy_Sign,
1304 Attribute_Remainder,
1308 Attribute_Truncation,
1311 Attribute_Wide_Image,
1312 Attribute_Wide_Wide_Image,
1313 Attribute_Wide_Value,
1314 Attribute_Wide_Wide_Value,
1316 -- Attributes designating procedures
1322 -- Entity attributes (includes type attributes)
1324 Attribute_Elab_Body,
1325 Attribute_Elab_Spec,
1326 Attribute_Storage_Pool,
1332 Attribute_Stub_Type);
1334 type Attribute_Class_Array is array (Attribute_Id) of Boolean;
1335 -- Type used to build attribute classification flag arrays
1337 ------------------------------------
1338 -- Convention Name ID Definitions --
1339 ------------------------------------
1341 type Convention_Id is (
1343 -- The native-to-Ada (non-foreign) conventions come first. These include
1344 -- the ones defined in the RM, plus Stubbed.
1347 Convention_Intrinsic,
1349 Convention_Protected,
1352 -- The remaining conventions are foreign language conventions
1354 Convention_Assembler, -- also Asm, Assembly
1355 Convention_C, -- also Default, External
1361 Convention_Stdcall); -- also DLL, Win32
1363 -- Note: Convention C_Pass_By_Copy is allowed only for record
1364 -- types (where it is treated like C except that the appropriate
1365 -- flag is set in the record type). Recognizing this convention
1366 -- is specially handled in Sem_Prag.
1368 for Convention_Id'Size use 8;
1369 -- Plenty of space for expansion
1371 subtype Foreign_Convention is
1372 Convention_Id range Convention_Assembler .. Convention_Id'Last;
1374 -----------------------------------
1375 -- Locking Policy ID Definitions --
1376 -----------------------------------
1378 type Locking_Policy_Id is (
1379 Locking_Policy_Inheritance_Locking,
1380 Locking_Policy_Ceiling_Locking);
1382 ---------------------------
1383 -- Pragma ID Definitions --
1384 ---------------------------
1388 -- Configuration pragmas
1390 -- Note: This list is in the GNAT users guide, so be sure that if any
1391 -- additions or deletions are made to the following list, they are
1392 -- properly reflected in the users guide.
1398 Pragma_Assertion_Policy,
1399 Pragma_Assume_No_Invalid_Values,
1400 Pragma_C_Pass_By_Copy,
1402 Pragma_Check_Policy,
1403 Pragma_Compile_Time_Error,
1404 Pragma_Compile_Time_Warning,
1405 Pragma_Compiler_Unit,
1406 Pragma_Component_Alignment,
1407 Pragma_Convention_Identifier,
1408 Pragma_Debug_Policy,
1409 Pragma_Detect_Blocking,
1410 Pragma_Discard_Names,
1411 Pragma_Elaboration_Checks,
1413 Pragma_Extend_System,
1414 Pragma_Extensions_Allowed,
1415 Pragma_External_Name_Casing,
1416 Pragma_Favor_Top_Level,
1417 Pragma_Float_Representation,
1418 Pragma_Implicit_Packing,
1419 Pragma_Initialize_Scalars,
1420 Pragma_Interrupt_State,
1422 Pragma_Locking_Policy,
1425 Pragma_No_Strict_Aliasing,
1426 Pragma_Normalize_Scalars,
1427 Pragma_Optimize_Alignment,
1428 Pragma_Persistent_BSS,
1430 Pragma_Priority_Specific_Dispatching,
1432 Pragma_Profile_Warnings,
1433 Pragma_Propagate_Exceptions,
1434 Pragma_Queuing_Policy,
1436 Pragma_Restricted_Run_Time,
1437 Pragma_Restrictions,
1438 Pragma_Restriction_Warnings,
1440 Pragma_Source_File_Name,
1441 Pragma_Source_File_Name_Project,
1442 Pragma_Style_Checks,
1444 Pragma_Suppress_Exception_Locations,
1445 Pragma_Task_Dispatching_Policy,
1446 Pragma_Universal_Data,
1448 Pragma_Use_VADS_Size,
1449 Pragma_Validity_Checks,
1451 Pragma_Wide_Character_Encoding,
1453 -- Remaining (non-configuration) pragmas
1456 Pragma_All_Calls_Remote,
1459 Pragma_Asynchronous,
1461 Pragma_Atomic_Components,
1462 Pragma_Attach_Handler,
1464 Pragma_CIL_Constructor,
1466 Pragma_Common_Object,
1467 Pragma_Complete_Representation,
1468 Pragma_Complex_Representation,
1472 Pragma_CPP_Constructor,
1477 Pragma_Elaborate_All,
1478 Pragma_Elaborate_Body,
1480 Pragma_Export_Exception,
1481 Pragma_Export_Function,
1482 Pragma_Export_Object,
1483 Pragma_Export_Procedure,
1484 Pragma_Export_Value,
1485 Pragma_Export_Valued_Procedure,
1487 Pragma_Finalize_Storage_Only,
1489 Pragma_Implemented_By_Entry,
1491 Pragma_Import_Exception,
1492 Pragma_Import_Function,
1493 Pragma_Import_Object,
1494 Pragma_Import_Procedure,
1495 Pragma_Import_Valued_Procedure,
1497 Pragma_Inline_Always,
1498 Pragma_Inline_Generic,
1499 Pragma_Inspection_Point,
1500 Pragma_Interface_Name,
1501 Pragma_Interrupt_Handler,
1502 Pragma_Interrupt_Priority,
1503 Pragma_Java_Constructor,
1504 Pragma_Java_Interface,
1507 Pragma_Linker_Alias,
1508 Pragma_Linker_Constructor,
1509 Pragma_Linker_Destructor,
1510 Pragma_Linker_Options,
1511 Pragma_Linker_Section,
1513 Pragma_Machine_Attribute,
1515 Pragma_Main_Storage,
1524 Pragma_Postcondition,
1525 Pragma_Precondition,
1526 Pragma_Preelaborable_Initialization,
1527 Pragma_Preelaborate,
1528 Pragma_Preelaborate_05,
1529 Pragma_Psect_Object,
1532 Pragma_Pure_Function,
1533 Pragma_Relative_Deadline,
1534 Pragma_Remote_Call_Interface,
1535 Pragma_Remote_Types,
1536 Pragma_Share_Generic,
1538 Pragma_Shared_Passive,
1539 Pragma_Source_Reference,
1540 Pragma_Static_Elaboration_Desired,
1541 Pragma_Stream_Convert,
1543 Pragma_Suppress_All,
1544 Pragma_Suppress_Debug_Info,
1545 Pragma_Suppress_Initialization,
1549 Pragma_Task_Storage,
1550 Pragma_Thread_Local_Storage,
1553 Pragma_Unchecked_Union,
1554 Pragma_Unimplemented_Unit,
1555 Pragma_Universal_Aliasing,
1557 Pragma_Unreferenced,
1558 Pragma_Unreferenced_Objects,
1559 Pragma_Unreserve_All_Interrupts,
1561 Pragma_Volatile_Components,
1562 Pragma_Weak_External,
1564 -- The following pragmas are on their own, out of order, because of the
1565 -- special processing required to deal with the fact that their names
1566 -- match existing attribute names.
1572 Pragma_Storage_Size,
1573 Pragma_Storage_Unit,
1575 -- The value to represent an unknown or unrecognized pragma
1579 -----------------------------------
1580 -- Queuing Policy ID definitions --
1581 -----------------------------------
1583 type Queuing_Policy_Id is (
1584 Queuing_Policy_FIFO_Queuing,
1585 Queuing_Policy_Priority_Queuing);
1587 --------------------------------------------
1588 -- Task Dispatching Policy ID definitions --
1589 --------------------------------------------
1591 type Task_Dispatching_Policy_Id is (
1592 Task_Dispatching_FIFO_Within_Priorities);
1593 -- Id values used to identify task dispatching policies
1599 procedure Initialize;
1600 -- Called to initialize the preset names in the names table
1602 function Is_Attribute_Name (N : Name_Id) return Boolean;
1603 -- Test to see if the name N is the name of a recognized attribute
1605 function Is_Entity_Attribute_Name (N : Name_Id) return Boolean;
1606 -- Test to see if the name N is the name of a recognized entity attribute,
1607 -- i.e. an attribute reference that returns an entity.
1609 function Is_Procedure_Attribute_Name (N : Name_Id) return Boolean;
1610 -- Test to see if the name N is the name of a recognized attribute that
1611 -- designates a procedure (and can therefore appear as a statement).
1613 function Is_Function_Attribute_Name (N : Name_Id) return Boolean;
1614 -- Test to see if the name N is the name of a recognized attribute
1615 -- that designates a renameable function, and can therefore appear in
1616 -- a renaming statement. Note that not all attributes designating
1617 -- functions are renamable, in particular, those returning a universal
1618 -- value cannot be renamed.
1620 function Is_Type_Attribute_Name (N : Name_Id) return Boolean;
1621 -- Test to see if the name N is the name of a recognized type attribute,
1622 -- i.e. an attribute reference that returns a type
1624 function Is_Convention_Name (N : Name_Id) return Boolean;
1625 -- Test to see if the name N is the name of one of the recognized
1626 -- language conventions, as required by pragma Convention, Import,
1627 -- Export, Interface. Returns True if so. Also returns True for a
1628 -- name that has been specified by a Convention_Identifier pragma.
1629 -- If neither case holds, returns False.
1631 function Is_Keyword_Name (N : Name_Id) return Boolean;
1632 -- Test to see if the name N is one of the (reserved) keyword names. This
1633 -- includes all the keywords defined in the Ada standard (taking into
1634 -- effect the Ada version). It also includes additional keywords in
1635 -- contexts where additional keywords have been added. For example, in the
1636 -- context of parsing project files, keywords such as PROJECT are included.
1638 function Is_Locking_Policy_Name (N : Name_Id) return Boolean;
1639 -- Test to see if the name N is the name of a recognized locking policy
1641 function Is_Operator_Symbol_Name (N : Name_Id) return Boolean;
1642 -- Test to see if the name N is the name of an operator symbol
1644 function Is_Pragma_Name (N : Name_Id) return Boolean;
1645 -- Test to see if the name N is the name of a recognized pragma. Note that
1646 -- pragmas AST_Entry, Fast_Math, Priority, Storage_Size, and Storage_Unit
1647 -- are recognized as pragmas by this function even though their names are
1648 -- separate from the other pragma names. For this reason, clients should
1649 -- always use this function, rather than do range tests on Name_Id values.
1651 function Is_Configuration_Pragma_Name (N : Name_Id) return Boolean;
1652 -- Test to see if the name N is the name of a recognized configuration
1653 -- pragma. Note that pragma Fast_Math is recognized as a configuration
1654 -- pragma by this function even though its name is separate from other
1655 -- configuration pragma names. For this reason, clients should always
1656 -- use this function, rather than do range tests on Name_Id values.
1658 function Is_Queuing_Policy_Name (N : Name_Id) return Boolean;
1659 -- Test to see if the name N is the name of a recognized queuing policy
1661 function Is_Task_Dispatching_Policy_Name (N : Name_Id) return Boolean;
1662 -- Test to see if the name N is the name of a recognized task
1663 -- dispatching policy.
1665 function Get_Attribute_Id (N : Name_Id) return Attribute_Id;
1666 -- Returns Id of attribute corresponding to given name. It is an error to
1667 -- call this function with a name that is not the name of a attribute.
1669 function Get_Convention_Id (N : Name_Id) return Convention_Id;
1670 -- Returns Id of language convention corresponding to given name. It is an
1671 -- to call this function with a name that is not the name of a convention,
1672 -- or one previously given in a call to Record_Convention_Identifier.
1674 function Get_Convention_Name (C : Convention_Id) return Name_Id;
1675 -- Returns the name of language convention corresponding to given
1678 function Get_Locking_Policy_Id (N : Name_Id) return Locking_Policy_Id;
1679 -- Returns Id of locking policy corresponding to given name. It is an error
1680 -- to call this function with a name that is not the name of a check.
1682 function Get_Pragma_Id (N : Name_Id) return Pragma_Id;
1683 -- Returns Id of pragma corresponding to given name. Returns Unknown_Pragma
1684 -- if N is not a name of a known (Ada defined or GNAT-specific) pragma.
1685 -- Note that the function also works correctly for names of pragmas that
1686 -- are not included in the main list of pragma Names (AST_Entry, Priority,
1687 -- Storage_Size, and Storage_Unit (e.g. Name_Storage_Size returns
1688 -- Pragma_Storage_Size).
1690 function Get_Queuing_Policy_Id (N : Name_Id) return Queuing_Policy_Id;
1691 -- Returns Id of queuing policy corresponding to given name. It is an error
1692 -- to call this function with a name that is not the name of a check.
1694 function Get_Task_Dispatching_Policy_Id
1695 (N : Name_Id) return Task_Dispatching_Policy_Id;
1696 -- Returns Id of task dispatching policy corresponding to given name. It
1697 -- is an error to call this function with a name that is not the name of
1700 procedure Record_Convention_Identifier
1702 Convention : Convention_Id);
1703 -- A call to this procedure, resulting from an occurrence of a pragma
1704 -- Convention_Identifier, records that from now on an occurrence of Id
1705 -- will be recognized as a name for the specified convention.
1708 pragma Inline (Is_Attribute_Name);
1709 pragma Inline (Is_Entity_Attribute_Name);
1710 pragma Inline (Is_Type_Attribute_Name);
1711 pragma Inline (Is_Locking_Policy_Name);
1712 pragma Inline (Is_Operator_Symbol_Name);
1713 pragma Inline (Is_Queuing_Policy_Name);
1714 pragma Inline (Is_Pragma_Name);
1715 pragma Inline (Is_Task_Dispatching_Policy_Name);