OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [ada/] [snames.ads-tmpl] - Blame information for rev 311

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.