OSDN Git Service

./:
[pf3gnuchains/gcc-fork.git] / gcc / ada / einfo.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                E I N F O                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2007, 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 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 with Namet;  use Namet;
35 with Snames; use Snames;
36 with Types;  use Types;
37 with Uintp;  use Uintp;
38 with Urealp; use Urealp;
39
40 package Einfo is
41
42 --  This package defines the annotations to the abstract syntax tree that
43 --  are needed to support semantic processing of an Ada compilation.
44
45 --  Note that after editing this spec and the corresponding body it is
46 --  required to run ceinfo to check the consistentcy of spec and body.
47 --  See ceinfo.adb for more information about the checks made.
48
49 --  These annotations are for the most part attributes of declared entities,
50 --  and they correspond to conventional symbol table information. Other
51 --  attributes include sets of meanings for overloaded names, possible
52 --  types for overloaded expressions, flags to indicate deferred constants,
53 --  incomplete types, etc. These attributes are stored in available fields
54 --  in tree nodes (i.e. fields not used by the parser, as defined by the
55 --  Sinfo package specification), and accessed by means of a set of
56 --  subprograms which define an abstract interface.
57
58 --  There are two kinds of semantic information
59
60 --    First, the tree nodes with the following Nkind values:
61
62 --      N_Defining_Identifier
63 --      N_Defining_Character_Literal
64 --      N_Defining_Operator_Symbol
65
66 --    are called Entities, and constitute the information that would often
67 --    be stored separately in a symbol table. These nodes are all extended
68 --    to provide extra space, and contain fields which depend on the entity
69 --    kind, as defined by the contents of the Ekind field. The use of the
70 --    Ekind field, and the associated fields in the entity, are defined
71 --    in this package, as are the access functions to these fields.
72
73 --    Second, in some cases semantic information is stored directly in other
74 --    kinds of nodes, e.g. the Etype field, used to indicate the type of an
75 --    expression. The access functions to these fields are defined in the
76 --    Sinfo package, but their full documentation is to be found in
77 --    the Einfo package specification.
78
79 --  Declaration processing places information in the nodes of their defining
80 --  identifiers. Name resolution places in all other occurrences of an
81 --  identifier a pointer to the corresponding defining occurrence.
82
83 --------------------------------
84 -- The XEINFO Utility Program --
85 --------------------------------
86
87 --  XEINFO is a utility program which automatically produces a C header file,
88 --  einfo.h from the spec and body of package Einfo. It reads the input
89 --  files einfo.ads and einfo.adb and produces the output file einfo.h.
90 --  XEINFO is run automatically by the build scripts when you do a full
91 --  bootstrap.
92
93 --  In order for this utility program to operate correctly, the form of the
94 --  einfo.ads and einfo.adb files must meet certain requirements and be laid
95 --  out in a specific manner.
96
97 --  The general form of einfo.ads is as follows:
98
99 --     type declaration for type Entity_Kind
100 --     subtype declarations declaring subranges of Entity_Kind
101 --     subtype declarations declaring synonyms for some standard types
102 --     function specs for attributes
103 --     procedure specs
104 --     pragma Inline declarations
105
106 --  This order must be observed. There are no restrictions on the procedures,
107 --  since the C header file only includes functions (Gigi is not allowed to
108 --  modify the generated tree). However, functions are required to have headers
109 --  that fit on a single line.
110
111 --  XEINFO reads and processes the function specs and the pragma Inlines. For
112 --  functions that are declared as inlined, XEINFO reads the corresponding body
113 --  from einfo.adb, and processes it into C code. This results in some strict
114 --  restrictions on which functions can be inlined:
115
116 --     The function spec must be on a single line
117
118 --     There can only be a single statement, contained on a single line,
119 --     not counting any pragma Assert statements.
120
121 --     This single statement must either be a function call with simple,
122 --     single token arguments, or it must be a membership test of the form
123 --     a in b, where a and b are single tokens.
124
125 --  For functions that are not inlined, there is no restriction on the body,
126 --  and XEINFO generates a direct reference in the C header file which allows
127 --  the C code in Gigi to directly call the corresponding Ada body.
128
129 ----------------------------------
130 -- Handling of Type'Size Values --
131 ----------------------------------
132
133 --  The Ada 95 RM contains some rather peculiar (to us!) rules on the value
134 --  of type'Size (see RM 13.3(55)). We have found that attempting to use
135 --  these RM Size values generally, and in particular for determining the
136 --  default size of objects, creates chaos, and major incompatibilies in
137 --  existing code.
138
139 --  We proceed as follows, for discrete and fixed-point subtypes, we have
140 --  two separate sizes for each subtype:
141
142 --    The Object_Size, which is used for determining the default size of
143 --    objects and components. This size value can be referred to using the
144 --    Object_Size attribute. The phrase "is used" here means that it is
145 --    the basis of the determination of the size. The backend is free to
146 --    pad this up if necessary for efficiency, e.g. an 8-bit stand-alone
147 --    character might be stored in 32 bits on a machine with no efficient
148 --    byte access instructions such as the Alpha.
149
150 --    The default rules for the value of Object_Size for fixed-point and
151 --    discrete types are as follows:
152
153 --       The Object_Size for base subtypes reflect the natural hardware
154 --       size in bits (see Ttypes and Cstand for integer types). For
155 --       enumeration and fixed-point base subtypes have 8. 16. 32 or 64
156 --       bits for this size, depending on the range of values to be stored.
157
158 --       The Object_Size of a subtype is the same as the Object_Size of
159 --       the subtype from which it is obtained.
160
161 --       The Object_Size of a derived base type is copied from the parent
162 --       base type, and the Object_Size of a derived first subtype is copied
163 --       from the parent first subtype.
164
165 --    The Value_Size which is the number of bits required to store a value
166 --    of the type. This size can be referred to using the Value_Size
167 --    attribute. This value is used to determine how tightly to pack
168 --    records or arrays with components of this type, and also affects
169 --    the semantics of unchecked conversion (unchecked conversions where
170 --    the Value_Size values differ generate a warning, and are potentially
171 --    target dependent).
172
173 --    The default rule for the value of Value_Size are as follows:
174
175 --       The Value_Size for a base subtype is the minimum number of bits
176 --       required to store all values of the type (including the sign bit
177 --       only if negative values are possible).
178
179 --       If a subtype statically matches the first subtype, then it has
180 --       by default the same Value_Size as the first subtype. This is a
181 --       consequence of RM 13.1(14) ("if two subtypes statically match,
182 --       then their subtype-specific aspects are the same".)
183
184 --       All other subtypes have a Value_Size corresponding to the minimum
185 --       number of bits required to store all values of the subtype. For
186 --       dynamic bounds, it is assumed that the value can range down or up
187 --       to the corresponding bound of the ancestor
188
189 --    The RM defined attribute Size corresponds to the Value_Size attribute
190
191 --    The Size attribute may be defined for a first-named subtype. This sets
192 --    the Value_Size of the first-named subtype to the given value, and the
193 --    Object_Size of this first-named subtype to the given value padded up
194 --    to an appropriate boundary. It is a consequence of the default rules
195 --    above that this Object_Size will apply to all further subtypes. On the
196 --    otyher hand, Value_Size is affected only for the first subtype, any
197 --    dynamic subtypes obtained from it directly, and any statically matching
198 --    subtypes. The Value_Size of any other static subtypes is not affected.
199
200 --    Value_Size and Object_Size may be explicitly set for any subtype using
201 --    an attribute definition clause. Note that the use of these attributes
202 --    can cause the RM 13.1(14) rule to be violated. If two access types
203 --    reference aliased objects whose subtypes have differing Object_Size
204 --    values as a result of explicit attribute definition clauses, then it
205 --    is erroneous to convert from one access subtype to the other.
206
207 --    At the implementation level, Esize stores the Object_Size and the
208 --    RM_Size field stores the Value_Size (and hence the value of the
209 --    Size attribute, which, as noted above, is equivalent to Value_Size).
210
211 --  To get a feel for the difference, consider the following examples (note
212 --  that in each case the base is short_short_integer with a size of 8):
213
214 --                                            Object_Size     Value_Size
215
216 --     type x1 is range 0..5;                      8               3
217
218 --     type x2 is range 0..5;
219 --     for x2'size use 12;                        12              12
220
221 --     subtype x3 is x2 range 0 .. 3;             12               2
222
223 --     subtype x4 is x2'base range 0 .. 10;        8               4
224
225 --     subtype x5 is x2 range 0 .. dynamic;       12              (7)
226
227 --     subtype x6 is x2'base range 0 .. dynamic;   8              (7)
228
229 --  Note: the entries marked (7) are not actually specified by the Ada 95 RM,
230 --  but it seems in the spirit of the RM rules to allocate the minimum number
231 --  of bits known to be large enough to hold the given range of values.
232
233 --  So far, so good, but GNAT has to obey the RM rules, so the question is
234 --  under what conditions must the RM Size be used. The following is a list
235 --  of the occasions on which the RM Size must be used:
236
237 --    Component size for packed arrays or records
238 --    Value of the attribute Size for a type
239 --    Warning about sizes not matching for unchecked conversion
240
241 --  The RM_Size field keeps track of the RM Size as needed in these
242 --  three situations.
243
244 --  For types other than discrete and fixed-point types, the Object_Size
245 --  and Value_Size are the same (and equivalent to the RM attribute Size).
246 --  Only Size may be specified for such types.
247
248 -----------------------
249 -- Entity Attributes --
250 -----------------------
251
252 --  This section contains a complete list of the attributes that are defined
253 --  on entities. Some attributes apply to all entities, others only to certain
254 --  kinds of entities. In the latter case the attribute should only be set or
255 --  accessed if the Ekind field indicates an appropriate entity.
256
257 --  There are two kinds of attributes that apply to entities, stored and
258 --  synthesized. Stored attributes correspond to a field or flag in the entity
259 --  itself. Such attributes are identified in the table below by giving the
260 --  field or flag in the attribute that is used to hold the attribute value.
261 --  Synthesized attributes are not stored directly, but are rather computed as
262 --  needed from other attributes, or from information in the tree. These are
263 --  marked "synthesized" in the table below. The stored attributes have both
264 --  access functions and set procedures to set the corresponding values, while
265 --  synthesized attributes have only access functions.
266
267 --  Note: in the case of Node, Uint, or Elist fields, there are cases where
268 --  the same physical field is used for different purposes in different
269 --  entities, so these access functions should only be referenced for the
270 --  class of entities in which they are defined as being present. Flags are
271 --  not overlapped in this way, but nevertheless as a matter of style and
272 --  abstraction (which may or may not be checked by assertions in the body),
273 --  this restriction should be observed for flag fields as well.
274
275 --  Note: certain of the attributes on types apply only to base types, and
276 --  are so noted by the notation [base type only]. These are cases where the
277 --  attribute of any subtype is the same as the attribute of the base type.
278 --  The attribute can be referenced on a subtype (and automatically retrieves
279 --  the value from the base type). However, it is an error to try to set the
280 --  attribute on other than the base type, and if assertions are enabled,
281 --  an attempt to set the attribute on a subtype will raise an assert error.
282
283 --  Other attributes are noted as applying the implementation base type only.
284 --  These are representation attributes which must always apply to a full
285 --  non-private type, and where the attributes are always on the full type.
286 --  The attribute can be referenced on a subtype (and automatically retries
287 --  the value from the implementation base type). However, it is an error
288 --  to try to set the attribute on other than the implementation base type,
289 --  and if assertions are enabled, an attempt to set the attribute on a
290 --  subtype will raise an assert error.
291
292 --    Abstract_Interfaces (Elist25)
293 --       Present in record types and subtypes. List of abstract interfaces
294 --       implemented by a tagged type that are not already implemented by the
295 --       ancestors (Ada 2005: AI-251).
296
297 --    Abstract_Interface_Alias (Node25)
298 --       Present in subprograms that cover a primitive operation of an abstract
299 --       interface type. Can be set only if the Is_Hidden flag is also set,
300 --       since such entities are always hidden. Points to its associated
301 --       interface subprogram. It is used to register the subprogram in
302 --       secondary dispatch table of the interface (Ada 2005: AI-251).
303
304 --    Accept_Address (Elist21)
305 --       Present in entries. If an accept has a statement sequence, then an
306 --       address variable is created, which is used to hold the address of the
307 --       parameters, as passed by the runtime. Accept_Address holds an element
308 --       list which represents a stack of entities for these address variables.
309 --       The current entry is the top of the stack, which is the last element
310 --       on the list. A stack is required to handle the case of nested select
311 --       statements referencing the same entry.
312
313 --    Actual_Subtype (Node17)
314 --       Present in variables, constants, and formal parameters. This is the
315 --       subtype imposed by the value of the object, as opposed to its nominal
316 --       subtype, which is imposed by the declaration. The actual subtype
317 --       differs from the nominal one when the latter is indefinite (as in the
318 --       case of an unconstrained formal parameter, or a variable declared
319 --       with an unconstrained type and an initial value). The nominal subtype
320 --       is the Etype entry for the entity. The Actual_Subtype field is set
321 --       only if the actual subtype differs from the nominal subtype. If the
322 --       actual and nominal subtypes are the same, then the Actual_Subtype
323 --       field is Empty, and Etype indicates both types.
324 --
325 --       For objects, the Actual_Subtype is set only if this is a discriminated
326 --       type. For arrays, the bounds of the expression are obtained and the
327 --       Etype of the object is directly the constrained subtype. This is
328 --       rather irregular, and the semantic checks that depend on the nominal
329 --       subtype being unconstrained use flag Is_Constr_Subt_For_U_Nominal(qv).
330
331 --    Access_Disp_Table (Elist16) [implementation base type only]
332 --       Present in record type entities. For a tagged type, points to the
333 --       dispatch tables associated with the tagged type; the last entity of
334 --       this list is an access type declaration used to expand dispatching
335 --       calls through the primary dispatch table. For a non-tagged record,
336 --       contains Empty.
337
338 --    Address_Clause (synthesized)
339 --       Applies to entries, objects and subprograms. Set if an address clause
340 --       is present which references the object or subprogram and points to
341 --       the N_Attribute_Definition_Clause node. Empty if no Address clause.
342 --       The expression in the address clause is always a constant that is
343 --       defined before the entity to which the address clause applies.
344 --       Note: Gigi references this field in E_Task_Type entities???
345
346 --    Address_Taken (Flag104)
347 --       Present in all entities. Set if the Address or Unrestricted_Access
348 --       attribute is applied directly to the entity, i.e. the entity is the
349 --       entity of the prefix of the attribute reference. Used by Gigi to
350 --       make sure that the address can be meaningfully taken.
351
352 --    Alias (Node18)
353 --       Present in overloaded entities (literals, subprograms, entries) and
354 --       subprograms that cover a primitive operation of an abstract interface
355 --       (that is, subprograms with the Abstract_Interface_Alias attribute).
356 --       In case of overloaded entities it points to the parent subprogram of
357 --       a derived subprogram. In case of abstract interface subprograms it
358 --       points to the subprogram that covers the abstract interface primitive.
359 --       Also used for a subprogram renaming, where it points to the renamed
360 --       subprogram. Always empty for entries.
361
362 --    Alignment (Uint14)
363 --       Present in entities for types and also in constants, variables
364 --       (including exceptions where it refers to the static data allocated for
365 --       an exception), loop parameters, and formal parameters. This indicates
366 --       the desired alignment for a type, or the actual alignment for an
367 --       object. A value of zero (Uint_0) indicates that the alignment has not
368 --       been set yet. The alignment can be set by an explicit alignment
369 --       clause, or set by the front-end in package Layout, or set by the
370 --       back-end as part of the back end back-annotation process. The
371 --       alignment field is also present in E_Exception entities, but there it
372 --       is used only by the back-end for back annotation.
373
374 --    Alignment_Clause (synthesized)
375 --       Applies to all entities for types and objects. If an alignment
376 --       attribute definition clause is present for the entity, then this
377 --       function returns the N_Attribute_Definition clause that specifies the
378 --       alignment. If no alignment clause applies to the type, then the call
379 --       to this function returns Empty. Note that the call can return a
380 --       non-Empty value even if Has_Alignment_Clause is not set (happens with
381 --       subtype and derived type declarations). Note also that a record
382 --       definition clause with an (obsolescent) mod clause is converted
383 --       into an attribute definition clause for this purpose.
384
385 --    Ancestor_Subtype (synthesized)
386 --       Applies to all type and subtype entities. If the argument is a
387 --       subtype then it returns the subtype or type from which the subtype
388 --       was obtained, otherwise it returns Empty.
389
390 --    Available_View (synthesized)
391 --       Applies to types that have the With_Type flag set. Returns the
392 --       non-limited view of the type, if available, otherwise the type
393 --       itself. For class-wide types, there is no direct link in the tree,
394 --       so we have to retrieve the class-wide type of the non-limited view
395 --       of the Etype.
396
397 --    Associated_Formal_Package (Node12)
398 --       Present in packages that are the actuals of formal_packages. Points
399 --       to the entity in the declaration for the formal package.
400
401 --    Associated_Node_For_Itype (Node8)
402 --       Present in all type and subtype entities. Set non-Empty only for
403 --       Itypes. Set to point to the associated node for the Itype, i.e.
404 --       the node whose elaboration generated the Itype. This is used for
405 --       copying trees, to determine whether or not to copy an Itype, and
406 --       also for accessibility checks on anonymous access types. This
407 --       node is typically an object declaration, component declaration,
408 --       type or subtype declaration. For an access discriminant in a type
409 --       declaration, the associated_node_for_itype is the discriminant
410 --       specification. For an access parameter it is the enclosing subprogram
411 --       declaration.
412
413 --    Associated_Storage_Pool (Node22) [root type only]
414 --       Present in simple and general access type entities. References the
415 --       storage pool to be used for the corresponding collection. A value of
416 --       Empty means that the default pool is to be used. This is present
417 --       only in the root type, since derived types must have the same pool
418 --       as the parent type.
419
420 --    Associated_Final_Chain (Node23)
421 --       Present in simple and general access type entities. References the
422 --       List_Controller object that holds the finalization chain on which
423 --       are attached dynamically allocated objects referenced by the access
424 --       type. Empty when the access type cannot reference a controlled object.
425
426 --    Barrier_Function (Node12)
427 --       Present in protected entries and entry families. This is the
428 --       subprogram declaration for the body of the function that returns
429 --       the value of the entry barrier.
430
431 --    Base_Type (synthesized)
432 --       Applies to all type entities. Returns the base type of a type or
433 --       subtype. The base type of a type is the type itself. The base type
434 --       of a subtype is the type that it constrains (which is always a type
435 --       entity, not some other subtype). Note that in the case of a subtype
436 --       of a private type, it is possible for the base type attribute to
437 --       return a private type, even if the subtype to which it applies is
438 --       non-private. See also Implementation_Base_Type. Note: it is allowed
439 --       to apply Base_Type to other than a type, in which case it simply
440 --       returns the entity unchanged.
441
442 --    Block_Node (Node11)
443 --       Present in block entities. Points to the identifier in the
444 --       Block_Statement itself. Used when retrieving the block construct
445 --       for finalization purposes, The block entity has an implicit label
446 --       declaration in the enclosing declarative part, and has otherwise
447 --       no direct connection in the tree with the block statement. The
448 --       link is to the identifier (which is an occurence of the entity)
449 --       and not to the block_statement itself, because the statement may
450 --       be rewritten, e.g. in the process of removing dead code.
451
452 --    Body_Entity (Node19)
453 --       Present in package and generic package entities, points to the
454 --       corresponding package body entity if one is present.
455
456 --    Body_Needed_For_SAL (Flag40)
457 --       Present in package and subprogram entities that are compilation
458 --       units. Indicates that the source for the body must be included
459 --       when the unit is part of a standalone library.
460
461 --    C_Pass_By_Copy (Flag125) [implementation base type only]
462 --       Present in record types. Set if a pragma Convention for the record
463 --       type specifies convention C_Pass_By_Copy. This convention name is
464 --       treated as identical in all respects to convention C, except that
465 --       if it is specified for a record type, then the C_Pass_By_Copy flag
466 --       is set, and if a foreign convention subprogram has a formal of the
467 --       corresponding type, then the parameter passing mechanism will be
468 --       set to By_Copy (unless specifically overridden by an Import or
469 --       Export pragma).
470
471 --    Can_Never_Be_Null (Flag38)
472 --       This flag is present in all entities, but can only be set in an object
473 --       which can never have a null value. This is set True for constant
474 --       access values initialized to a non-null value. This is also True for
475 --       all access parameters in Ada 83 and Ada 95 modes, and for access
476 --       parameters that explicily exlude null in Ada 2005.
477 --
478 --       This is used to avoid unnecessary resetting of the Is_Known_Non_Null
479 --       flag for such entities. In Ada 2005 mode, this is also used when
480 --       determining subtype conformance of subprogram profiles to ensure
481 --       that two formals have the same null-exclusion status.
482 --
483 --       ??? This is also set on some access types, eg the Etype of the
484 --       anonymous access type of a controlling formal.
485
486 --    Chars (Name1)
487 --       Present in all entities. This field contains an entry into the names
488 --       table that has the character string of the identifier, character
489 --       literal or operator symbol. See Namet for further details. Note that
490 --       throughout the processing of the front end, this name is the simple
491 --       unqualified name. However, just before gigi is called, a call is made
492 --       to Qualify_All_Entity_Names. This causes entity names to be qualified
493 --       using the encoding described in exp_dbug.ads, and from that point on
494 --       (including post gigi steps such as cross-reference generation), the
495 --       entities will contain the encoded qualified names.
496
497 --    Checks_May_Be_Suppressed (Flag31)
498 --       Present in all entities. Set if a pragma Suppress or Unsuppress
499 --       mentions the entity specifically in the second argument. If this
500 --       flag is set the the Global_Entity_Suppress and Local_Entity_Suppress
501 --       tables must be consulted to determine if the is actually an active
502 --       Suppress or Unsuppress pragma that applies to the entity.
503
504 --    Class_Wide_Type (Node9)
505 --       Present in all type entities. For a tagged type or subtype, returns
506 --       the corresponding implicitly declared class-wide type. Set to Empty
507 --       for non-tagged types.
508
509 --    Cloned_Subtype (Node16)
510 --       Present in E_Record_Subtype and E_Class_Wide_Subtype entities.
511 --       Each such entity can either have a Discriminant_Constraint, in
512 --       which case it represents a distinct type from the base type (and
513 --       will have a list of components and discrimants in the list headed by
514 --       First_Entity) or else no such constraint, in which case it will be a
515 --       copy of the base type.
516 --
517 --       o  Each element of the list in First_Entity is copied from the base
518 --          type; in that case, this field is Empty.
519 --
520 --       o  The list in First_Entity is shared with the base type; in that
521 --          case, this field points to that entity.
522 --
523 --       A record or classwide subtype may also be a copy of some other
524 --       subtype and share the entities in the First_Entity with that subtype.
525 --       In that case, this field points to that subtype.
526 --
527 --       For E_Class_Wide_Subtype, the presence of Equivalent_Type overrides
528 --       this field. Note that this field ONLY appears in subtype entries, not
529 --       in type entries, it is not present, and it is an error to reference
530 --       Cloned_Subtype in an E_Record_Type or E_Class_Wide_Type entity.
531
532 --    Comes_From_Source
533 --       This flag appears on all nodes, including entities, and indicates
534 --       that the node was created by the scanner or parser from the original
535 --       source. Thus for entities, it indicates that the entity is defined
536 --       in the original source program.
537
538 --    Component_Alignment (special field) [base type only]
539 --       Present in array and record entities. Contains a value of type
540 --       Component_Alignment_Kind indicating the alignment of components.
541 --       Set to Calign_Default normally, but can be overridden by use of
542 --       the Component_Alignment pragma. Note: this field is currently
543 --       stored in a non-standard way, see body for details.
544
545 --    Component_Bit_Offset (Uint11)
546 --       Present in record components (E_Component, E_Discriminant) if a
547 --       component clause applies to the component. First bit position of
548 --       given component, computed from the first bit and position values
549 --       given in the component clause. A value of No_Uint means that the
550 --       value is not yet known. The value can be set by the appearence of
551 --       an explicit component clause in a record representation clause,
552 --       or it can be set by the front-end in package Layout, or it can be
553 --       set by the backend. By the time backend processing is completed,
554 --       this field is always set. A negative value is used to represent
555 --       a value which is not known at compile time, and must be computed
556 --       at run-time (this happens if fields of a record have variable
557 --       lengths). See package Layout for details of these values.
558 --
559 --       Note: this field is obsolescent, to be eventually replaced entirely
560 --       by Normalized_First_Bit and Normalized_Position, but for the moment,
561 --       gigi is still using (and back annotating) this field, and gigi does
562 --       not know about the new fields. For the front end layout case, the
563 --       Component_Bit_Offset field is only set if it is static, and otherwise
564 --       the new Normalized_First_Bit and Normalized_Position fields are used.
565
566 --    Component_Clause (Node13)
567 --       Present in record components and discriminants. If a record
568 --       representation clause is present for the corresponding record
569 --       type a that specifies a position for the component, then the
570 --       Component_Clause field of the E_Component entity points to the
571 --       N_Component_Clause node. Set to Empty if no record representation
572 --       clause was present, or if there was no specification for this
573 --       component.
574
575 --    Component_Size (Uint22) [implementation base type only]
576 --       Present in array types. It contains the component size value for
577 --       the array. A value of No_Uint means that the value is not yet set.
578 --       The value can be set by the use of a component size clause, or
579 --       by the front end in package Layout, or by the backend. A negative
580 --       value is used to represent a value which is not known at compile
581 --       time, and must be computed at run-time (this happens if the type
582 --       of the component has a variable length size). See package Layout
583 --       for details of these values.
584
585 --    Component_Type (Node20) [implementation base type only]
586 --       Present in array types and string types. References component type.
587
588 --    Constant_Value (synthesized)
589 --       Applies to variables, constants, named integers, and named reals.
590 --       Obtains the initialization expression for the entity. Will return
591 --       Empty for for a deferred constant whose full view is not available
592 --       or in some other cases of internal entities, which cannot be treated
593 --       as constants from the point of view of constant folding. Empty is
594 --       also returned for variables with no initialization expression.
595
596 --    Corresponding_Concurrent_Type (Node18)
597 --       Present in record types that are constructed by the expander to
598 --       represent task and protected types (Is_Concurrent_Record_Type flag
599 --       set True). Points to the entity for the corresponding task type or
600 --       protected type.
601
602 --    Corresponding_Discriminant (Node19)
603 --       Present in discriminants of a derived type, when the discriminant is
604 --       used to constrain a discriminant of the parent type. Points to the
605 --       corresponding discriminant in the parent type. Otherwise it is Empty.
606
607 --    Corresponding_Equality (Node13)
608 --       Present in function entities for implicit inequality operators.
609 --       Denotes the explicit or derived equality operation that creates
610 --       the implicit inequality. Note that this field is not present in
611 --       other function entities, only in implicit inequality routines,
612 --       where Comes_From_Source is always False.
613
614 --    Corresponding_Record_Type (Node18)
615 --       Present in protected and task types and subtypes. References the
616 --       entity for the corresponding record type constructed by the expander
617 --       (see Exp_Ch9). This type is used to represent values of the task type.
618
619 --    Corresponding_Remote_Type (Node22)
620 --       Present in record types that describe the fat pointer structure for
621 --       Remote_Access_To_Subrogram types. References the original access type.
622
623 --    CR_Discriminant (Node23)
624 --       Present in discriminants of concurrent types. Denotes the homologous
625 --       discriminant of the corresponding record type. The CR_Discriminant is
626 --       created at the same time as the discriminal, and used to replace
627 --       occurrences of the discriminant within the type declaration.
628
629 --    Current_Use_Clause (Node25)
630 --       Present in packages. Indicates the use clause currently in scope
631 --       that makes the package use_visible. Used to detect redundant use
632 --       clauses for the same package.
633
634 --    Current_Value (Node9)
635 --       Present in all object entities. Set in E_Variable, E_Constant, formal
636 --       parameters and E_Loop_Parameter entities if we have trackable current
637 --       values. Set non-Empty if the (constant) current value of the variable
638 --       is known, This value is valid only for references from the same
639 --       sequential scope as the entity. The sequential scope of an entity
640 --       includes the immediate scope and any contained scopes that are package
641 --       specs, package bodies, blocks (at any nesting level) or statement
642 --       sequences in IF or loop statements.
643 --
644 --       Another related use of this field is to record information about the
645 --       value obtained from an IF or WHILE statement condition. If the IF or
646 --       ELSIF or WHILE condition has the form "NOT {,NOT] OBJ RELOP VAL ",
647 --       or OBJ [AND [THEN]] expr, where OBJ refers to an entity with a
648 --       Current_Value field, RELOP is one of the six relational operators, and
649 --       VAL is a compile-time known value then the Current_Value field of OBJ
650 --       points to the N_If_Statement, N_Elsif_Part, or N_Iteration_Scheme node
651 --       of the relevant construct, and the Condition field of this can be
652 --       consulted to give information about the value of OBJ. For more details
653 --       on this usage, see the procedure Exp_Util.Get_Current_Value_Condition.
654
655 --    Debug_Info_Off (Flag166)
656 --       Present in all entities. Set if a pragma Suppress_Debug_Info applies
657 --       to the entity, or if internal processing in the compiler determines
658 --       that suppression of debug information is desirable. Note that this
659 --       flag is only for use by the front end as part of the processing for
660 --       determining if Needs_Debug_Info should be set. The back end should
661 --       always test Needs_Debug_Info, it should never test Debug_Info_Off.
662
663 --    Debug_Renaming_Link (Node13)
664 --       Used to link the enumeration literal of a debug renaming declaration
665 --       to the renamed entity. See Exp_Dbug.Debug_Renaming_Declaration for
666 --       details of the use of this field.
667
668 --    Declaration_Node (synthesized)
669 --       Applies to all entities. Returns the tree node for the declaration
670 --       that declared the entity. Normally this is just the Parent of the
671 --       entity. One exception arises with child units, where the parent of
672 --       the entity is a selected component or a defining program unit name.
673 --       Another exception is that if the entity is an incomplete type that
674 --       has been completed, then we obtain the declaration node denoted by
675 --       the full type, i.e. the full type declaration node.
676
677 --    Default_Expr_Function (Node21)
678 --       Present in parameters. It holds the entity of the parameterless
679 --       function that is built to evaluate the default expression if it is
680 --       more complex than a simple identifier or literal. For the latter
681 --       simple cases or if there is no default value, this field is Empty.
682
683 --    Default_Expressions_Processed (Flag108)
684 --       A flag in subprograms (functions, operators, procedures) and in
685 --       entries and entry families used to indicate that default expressions
686 --       have been processed and to avoid multiple calls to process the
687 --       default expressions (see Freeze.Process_Default_Expressions), which
688 --       would not only waste time, but also generate false error messages.
689
690 --    Default_Value (Node20)
691 --       Present in formal parameters. Points to the node representing the
692 --       expression for the default value for the parameter. Empty if the
693 --       parameter has no default value (which is always the case for OUT
694 --       and IN OUT parameters in the absence of errors).
695
696 --    Delay_Cleanups (Flag114)
697 --       Present in entities that have finalization lists (subprograms
698 --       blocks, and tasks). Set if there are pending generic body
699 --       instantiations for the corresponding entity. If this flag is
700 --       set, then generation of cleanup actions for the corresponding
701 --       entity must be delayed, since the insertion of the generic body
702 --       may affect cleanup generation (see Inline for further details).
703
704 --    Delay_Subprogram_Descriptors (Flag50)
705 --       Present in entities for which exception subprogram descriptors
706 --       are generated (subprograms, package declarations and package
707 --       bodies). Present if there are pending generic body instantiations
708 --       for the corresponding entity. If this flag is set, then generation
709 --       of the subprogram descriptor for the corresponding enities must
710 --       be delayed, since the insertion of the generic body may add entries
711 --       to the list of handlers.
712 --
713 --       Note: for subprograms, Delay_Subprogram_Descriptors is set if and
714 --       only if Delay_Cleanups is set. But Delay_Cleanups can be set for a
715 --       a block (in which case Delay_Subprogram_Descriptors is set for the
716 --       containing subprogram). In addition Delay_Subprogram_Descriptors is
717 --       set for a library level package declaration or body which contains
718 --       delayed instantiations (in this case the descriptor refers to the
719 --       enclosing elaboration procedure).
720
721 --    Delta_Value (Ureal18)
722 --       Present in fixed and decimal types. Points to a universal real
723 --       that holds value of delta for the type, as given in the declaration
724 --       or as inherited by a subtype or derived type.
725
726 --    Dependent_Instances (Elist8)
727 --       Present in packages that are instances. Holds list of instances
728 --       of inner generics. Used to place freeze nodes for those instances
729 --       after that of the current one, i.e. after the corresponding generic
730 --       bodies.
731
732 --    Depends_On_Private (Flag14)
733 --       Present in all type entities. Set if the type is private or if it
734 --       depends on a private type.
735
736 --    Designated_Type (synthesized)
737 --       Applies to access types. Returns the designated type. Differs
738 --       from Directly_Designated_Type in that if the access type refers
739 --       to an incomplete type, and the full type is available, then this
740 --       full type is returned instead of the incomplete type.
741
742 --    Digits_Value (Uint17)
743 --       Present in floating point types and subtypes and decimal types and
744 --       subtypes. Contains the Digits value specified in the declaration.
745
746 --    Directly_Designated_Type (Node20)
747 --       Present in access types. This field points to the type that is
748 --       directly designated by the access type. In the case of an access
749 --       type to an incomplete type, this field references the incomplete
750 --       type. Note that in the semantic processing, what is useful in
751 --       nearly all cases is the full type designated by the access type.
752 --       The function Designated_Type obtains this full type in the case of
753 --       access to an incomplete type.
754
755 --    Discard_Names (Flag88)
756 --       Present in types and exception entities. Set if pragma Discard_Names
757 --       applies to the entity. It is also set for declarative regions and
758 --       package specs for which a Discard_Names pragma with zero arguments
759 --       has been encountered. The purpose of setting this flag is to be able
760 --       to set the Discard_Names attribute on enumeration types declared
761 --       after the pragma within the same declarative region. This flag is
762 --       set to False if a Keep_Names pragma appears for an enumeration type.
763
764 --    Discriminal (Node17)
765 --       Present in discriminants (Discriminant formal: GNAT's first
766 --       coinage). The entity used as a formal parameter that corresponds
767 --       to a discriminant. See section "Handling of Discriminants" for
768 --       full details of the use of discriminals.
769
770 --    Discriminal_Link (Node10)
771 --       Present in discriminals (which have an Ekind of E_In_Parameter,
772 --       or E_Constant), points back to corresponding discriminant.
773
774 --    Discriminant_Checking_Func (Node20)
775 --       Present in components. Points to the defining identifier of the
776 --       function built by the expander returns a Boolean indicating whether
777 --       the given record component exists for the current discriminant
778 --       values.
779
780 --    Discriminant_Constraint (Elist21)
781 --       Present in entities whose Has_Discriminants flag is set (concurrent
782 --       types, subtypes, record types and subtypes, private types and
783 --       subtypes, limited private types and subtypes and incomplete types).
784 --       It is an error to reference the Discriminant_Constraint field if
785 --       Has_Discriminants is False.
786 --
787 --       If the Is_Constrained flag is set, Discriminant_Constraint points
788 --       to an element list containing the discriminant constraints in the
789 --       same order in which the discriminants are declared.
790 --
791 --       If the Is_Constrained flag is not set but the discriminants of the
792 --       unconstrained type have default initial values then this field
793 --       points to an element list giving these default initial values in
794 --       the same order in which the discriminants are declared. Note that
795 --       in this case the entity cannot be a tagged record type, because
796 --       discriminants in this case cannot have defaults.
797 --
798 --       If the entity is a tagged record implicit type, then this field is
799 --       inherited from the first subtype (so that the itype is subtype
800 --       conformant with its first subtype, which is needed when the first
801 --       subtype overrides primitive operations inherited by the implicit
802 --       base type).
803 --
804 --       In all other cases Discriminant_Constraint contains the empty
805 --       Elist (ie it is initialized with a call to New_Elmt_List).
806
807 --    Discriminant_Default_Value (Node20)
808 --       Present in discriminants. Points to the node representing the
809 --       expression for the default value of the discriminant. Set to
810 --       Empty if the discriminant has no default value.
811
812 --    Discriminant_Number (Uint15)
813 --       Present in discriminants. Gives the ranking of a discriminant in
814 --       the list of discriminants of the type, i.e. a sequential integer
815 --       index starting at 1 and ranging up to Number_Discriminants.
816
817 --    DTC_Entity (Node16)
818 --       Present in function and procedure entities. Set to Empty unless
819 --       the subprogram is dispatching in which case it references the
820 --       Dispatch Table pointer Component. That is to say the component _tag
821 --       for regular Ada tagged types, for CPP_Class types and their
822 --       descendants this field points to the component entity in the record
823 --       that is the Vtable pointer for the Vtable containing the entry that
824 --       references the subprogram.
825
826 --    DT_Entry_Count (Uint15)
827 --       Present in E_Component entities. Only used for component marked
828 --       Is_Tag. Store the number of entries in the Vtable (or Dispatch Table)
829
830 --    DT_Offset_To_Top_Func (Node25)
831 --       Present in E_Component entities. Only used for component marked
832 --       Is_Tag. If present it stores the Offset_To_Top function used to
833 --       provide this value in tagged types whose ancestor has discriminants.
834
835 --    DT_Position (Uint15)
836 --       Present in function and procedure entities which are dispatching
837 --       (should not be referenced without first checking that flag
838 --       Is_Dispatching_Operation is True). Contains the offset into
839 --       the Vtable for the entry that references the subprogram.
840
841 --    Ekind (Ekind)
842 --       Present in all entities. Contains a value of the enumeration type
843 --       Entity_Kind declared in a subsequent section in this spec.
844
845 --    Elaborate_Body_Desirable (Flag210)
846 --       Present in package entities. Set if the elaboration circuitry detects
847 --       a case where there is a package body that modifies one or more visible
848 --       entities in the package spec and there is no explicit Elaborate_Body
849 --       pragma for the package. This information is passed on to the binder,
850 --       which attempts, but does not promise, to elaborate the body as close
851 --       to the spec as possible.
852
853 --    Elaboration_Entity (Node13)
854 --       Present in generic and non-generic package and subprogram
855 --       entities. This is a boolean entity associated with the unit that
856 --       is initiallly set to False, and is set True when the unit is
857 --       elaborated. This is used for two purposes. First, it is used to
858 --       implement required access before elaboration checks (the flag
859 --       must be true to call a subprogram at elaboration time). Second,
860 --       it is used to guard against repeated execution of the generated
861 --       elaboration code.
862 --
863 --       Note that we always allocate this flag, and set this field, but
864 --       we do not always actually use it. It is only used if it is needed
865 --       for access-before-elaboration use (see Elaboration_Entity_Required
866 --       flag) or if either the spec or the body has elaboration code. If
867 --       neither of these two conditions holds, then the entity is still
868 --       allocated (since we don't know early enough whether or not there
869 --       is elaboration code), but is simply not used for any purpose.
870
871 --    Elaboration_Entity_Required (Flag174)
872 --       Present in generics and non-generic package and subprogram
873 --       entities. Set only if Elaboration_Entity is non-Empty to indicate
874 --       that the boolean is required to be set even if there is no other
875 --       elaboration code. This occurs when the Elaboration_Entity flag
876 --       is used for required access-before-elaboration checking. If the
877 --       flag is only for preventing multiple execution of the elaboration
878 --       code, then if there is no other elaboration code, obviously there
879 --       is no need to set the flag.
880
881 --    Enclosing_Dynamic_Scope (synthesized)
882 --       Applies to all entities. Returns the closest dynamic scope in which
883 --       the entity is declared or Standard_Standard for library-level entities
884
885 --    Enclosing_Scope (Node18)
886 --       Present in labels. Denotes the innermost enclosing construct that
887 --       contains the label. Identical to the scope of the label, except for
888 --       labels declared in the body of an accept statement, in which case the
889 --       entry_name is the Enclosing_Scope. Used to validate goto's within
890 --       accept statements.
891
892 --    Entry_Accepted (Flag152)
893 --       Present in E_Entry and E_Entry_Family entities. Set if there is
894 --       at least one accept for this entry in the task body. Used to
895 --       generate warnings for missing accepts.
896
897 --    Entry_Bodies_Array (Node15)
898 --       Present in protected types for which Has_Entries is true.
899 --       This is the defining identifier for the array of entry body
900 --       action procedures and barrier functions used by the runtime to
901 --       execute the user code associated with each entry.
902
903 --    Entry_Cancel_Parameter (Node23)
904 --       Present in blocks. This only applies to a block statement for
905 --       which the Is_Asynchronous_Call_Block flag is set. It
906 --       contains the defining identifier of an object that must be
907 --       passed to the Cancel_Task_Entry_Call or Cancel_Protected_Entry_Call
908 --       call in the cleanup handler added to the block by
909 --       Exp_Ch7.Expand_Cleanup_Actions. This parameter is a Boolean
910 --       object for task entry calls and a Communications_Block object
911 --       in the case of protected entry calls. In both cases the objects
912 --       are declared in outer scopes to this block.
913
914 --    Entry_Component (Node11)
915 --       Present in formal parameters (in, in out and out parameters). Used
916 --       only for formals of entries. References the corresponding component
917 --       of the entry parameter record for the entry.
918
919 --    Entry_Formal (Node16)
920 --       Present in components of the record built to correspond to entry
921 --       parameters. This field points from the component to the formal. It
922 --       is the back pointer corresponding to Entry_Component.
923
924 --    Entry_Index_Constant (Node18)
925 --       Present in an entry index parameter. This is an identifier that
926 --       eventually becomes the name of a constant representing the index
927 --       of the entry family member whose entry body is being executed. Used
928 --       to expand references to the entry index specification identifier.
929
930 --    Entry_Index_Type (synthesized)
931 --       Applies to an entry family. Denotes Etype of the subtype indication
932 --       in the entry declaration. Used to resolve the index expression in an
933 --       accept statement for a member of the family, and in the prefix of
934 --       'COUNT when it applies to a family member.
935
936 --    Entry_Parameters_Type (Node15)
937 --       Present in entries. Points to the access-to-record type that is
938 --       constructed by the expander to hold a reference to the parameter
939 --       values. This reference is manipulated (as an address) by the
940 --       tasking runtime. The designated record represents a packaging
941 --       up of the entry parameters (see Exp_Ch9.Expand_N_Entry_Declaration
942 --       for further details). Entry_Parameters_Type is Empty if the entry
943 --       has no parameters.
944
945 --    Enumeration_Pos (Uint11)
946 --       Present in enumeration literals. Contains the position number
947 --       corresponding to the value of the enumeration literal.
948
949 --    Enumeration_Rep (Uint12)
950 --       Present in enumeration literals. Contains the representation that
951 --       corresponds to the value of the enumeration literal. Note that
952 --       this is normally the same as Enumeration_Pos except in the presence
953 --       of representation clauses, where Pos will still represent the
954 --       position of the literal within the type and Rep will have be the
955 --       value given in the representation clause.
956
957 --    Enumeration_Rep_Expr (Node22)
958 --       Present in enumeration literals. Points to the expression in an
959 --       associated enumeration rep clause that provides the representation
960 --       value for this literal. Empty if no enumeration rep clause for this
961 --       literal (or if rep clause does not have an entry for this literal,
962 --       an error situation). This is also used to catch duplicate entries
963 --       for the same literal.
964
965 --    Enum_Pos_To_Rep (Node23)
966 --       Present in enumeration types (but not enumeration subtypes). Set to
967 --       Empty unless the enumeration type has a non-standard representation
968 --       (i.e. at least one literal has a representation value different from
969 --       its pos value). In this case, Enum_Pos_To_Rep is the entity for an
970 --       array constructed when the type is frozen that maps Pos values to
971 --       corresponding Rep values. The index type of this array is Natural,
972 --       and the component type is a suitable integer type that holds the
973 --       full range of representation values.
974
975 --    Equivalent_Type (Node18)
976 --       Present in class wide types and subtypes, access to protected
977 --       subprogram types, and in exception_types. For a classwide type, it
978 --       is always Empty. For a class wide subtype, it points to an entity
979 --       created by the expander which gives Gigi an easily understandable
980 --       equivalent of the class subtype with a known size (given by an
981 --       initial value). See Exp_Util.Expand_Class_Wide_Subtype for further
982 --       details. For E_exception_type, this points to the record containing
983 --       the data necessary to represent exceptions (for further details, see
984 --       System.Standard_Library. For access_to_protected subprograms, it
985 --       denotes a record that holds pointers to the operation and to the
986 --       protected object. For remote Access_To_Subprogram types, it denotes
987 --       the record that is the fat pointer representation of an RAST.
988
989 --    Esize (Uint12)
990 --       Present in all types and subtypes, and also for components, constants,
991 --       and variables, including exceptions where it refers to the static data
992 --       allocated for an exception. Contains the Object_Size of the type or of
993 --       the object. A value of zero indicates that the value is not yet known.
994 --
995 --       For the case of components where a component clause is present, the
996 --       value is the value from the component clause, which must be non-
997 --       negative (but may be zero, which is acceptable for the case of
998 --       a type with only one possible value). It is also possible for Esize
999 --       of a component to be set without a component clause present, which
1000 --       means that the component size is specified, but not the position.
1001 --       See also RM_Size and the section on "Handling of Type'Size Values".
1002 --       During gigi processing, the value is back annotated for all zero
1003 --       values, so that after the call to gigi, the value is properly set.
1004
1005 --    Etype (Node5)
1006 --       Present in all entities. Represents the type of the entity, which
1007 --       is itself another entity. For a type entity, points to the parent
1008 --       type for a derived type, or if the type is not derived, points to
1009 --       itself. For a subtype entity, Etype points to the base type. For
1010 --       a class wide type, points to the parent type. For a subprogram or
1011 --       subprogram type, Etype has the return type of a function or is set
1012 --       to Standard_Void_Type to represent a procedure.
1013
1014 --    Exception_Code (Uint22)
1015 --       Present in exception entitites. Set to zero unless either an
1016 --       Import_Exception or Export_Exception pragma applies to the
1017 --       pragma and specifies a Code value. See description of these
1018 --       pragmas for details. Note that this field is relevant only if
1019 --       Is_VMS_Exception is set.
1020
1021 --    Extra_Formal (Node15)
1022 --       Present in formal parameters in the non-generic case. Certain
1023 --       parameters require extra implicit information to be passed
1024 --       (e.g. the flag indicating if an unconstrained variant record
1025 --       argument is constrained, and the accessibility level for
1026 --       access parameters. See description of Extra_Constrained,
1027 --       Extra_Accessibility fields for further details. Extra formal
1028 --       parameters are constructed to represent these values, and
1029 --       chained to the end of the list of formals using the
1030 --       Extra_Formal field (i.e. the Extra_Formal field of the last
1031 --       "real" formal points to the first extra formal, and the
1032 --       Extra_Formal field of each extra formal points to the next
1033 --       one, with Empty indicating the end of the list of extra
1034 --       formals.
1035
1036 --    Extra_Formals (Node28)
1037 --       Applies to subprograms and subprogram types, and also in entries
1038 --       and entry families. Returns first extra formal of the subprogram
1039 --       or entry. Returns Empty if there are no extra formals.
1040
1041 --    Extra_Accessibility (Node13)
1042 --       Present in formal parameters in the non-generic case if
1043 --       expansion is active. Normally Empty, but if a parameter is
1044 --       one for which a dynamic accessibility check is required, then
1045 --       an extra formal of type Natural is created (see description
1046 --       of field Extra_Formal), and the Extra_Accessibility field of
1047 --       the formal parameter points to the entity for this extra
1048 --       formal. Also present in variables when compiling receiving
1049 --       stubs. In this case, a non Empty value means that this
1050 --       variable's accessibility depth has been transmitted by the
1051 --       caller and must be retrieved through the entity designed by
1052 --       this field instead of being computed.
1053
1054 --    Extra_Constrained (Node23)
1055 --       Present in formal parameters in the non-generic case if
1056 --       expansion is active. Normally Empty, but if a parameter is
1057 --       one for which a dynamic indication of its constrained status
1058 --       is required, then an extra formal of type Boolean is created
1059 --       (see description of field Extra_Formal), and the
1060 --       Extra_Constrained field of the formal parameter points to the
1061 --       entity for this extra formal. Also present in variables when
1062 --       compiling receiving stubs. In this case, a non empty value
1063 --       means that this variable's constrained status has been
1064 --       transmitted by the caller and must be retrieved through the
1065 --       entity designed by this field instead of being computed.
1066
1067 --    Finalization_Chain_Entity (Node19)
1068 --       Present in scopes that can have finalizable entities (blocks,
1069 --       functions, procedures, tasks, entries, return statements). When this
1070 --       field is empty it means that there are no finalization actions to
1071 --       perform on exit of the scope. When this field contains 'Error', it
1072 --       means that no finalization actions should happen at this level and
1073 --       the finalization chain of a parent scope shall be used (??? this is
1074 --       an improper use of 'Error' and should be changed). Otherwise it
1075 --       contains an entity of type Finalizable_Ptr that is the head of the
1076 --       list of objects to finalize on exit. See "Finalization Management"
1077 --       section in exp_ch7.adb for more details.
1078
1079 --    Finalize_Storage_Only (Flag158) [base type only]
1080 --       Present in all types. Set on direct controlled types to which a
1081 --       valid Finalize_Storage_Only pragma applies. This flag is also set on
1082 --       composite types when they have at least one controlled component and
1083 --       all their controlled components are Finalize_Storage_Only. It is also
1084 --       inherited by type derivation except for direct controlled types where
1085 --       the Finalize_Storage_Only pragma is required at each level of
1086 --       derivation.
1087
1088 --    First_Component (synthesized)
1089 --       Applies to record types. Returns the first component by following the
1090 --       chain of declared entities for the record until a component is found
1091 --       (one with an Ekind of E_Component). The discriminants are skipped. If
1092 --       the record is null, then Empty is returned.
1093
1094 --    First_Component_Or_Discriminant (synthesized)
1095 --      Similar to First_Component, but discriminants are not skipped, so will
1096 --      find the first discriminant if discriminants are present.
1097
1098 --    First_Discriminant (synthesized)
1099 --       Applies to types with discriminants. The discriminants are the first
1100 --       entities declared in the type, so normally this is equivalent to
1101 --       First_Entity. The exception arises for tagged types, where the tag
1102 --       itself is prepended to the front of the entity chain, so the
1103 --       First_Discriminant function steps past the tag if it is present.
1104
1105 --    First_Entity (Node17)
1106 --       Present in all entities which act as scopes to which a list of
1107 --       associated entities is attached (blocks, class subtypes and types,
1108 --       entries, functions, loops, packages, procedures, protected objects,
1109 --       record types and subtypes, private types, task types and subtypes).
1110 --       Points to a list of associated entities using the Next_Entity field
1111 --       as a chain pointer with Empty marking the end of the list.
1112
1113 --    First_Formal (synthesized)
1114 --       Applies to subprograms and subprogram types, and also in entries
1115 --       and entry families. Returns first formal of the subprogram or entry.
1116 --       The formals are the first entities declared in a subprogram or in
1117 --       a subprogram type (the designated type of an Access_To_Subprogram
1118 --       definition) or in an entry.
1119
1120 --    First_Formal_With_Extras (synthesized)
1121 --       Applies to subprograms and subprogram types, and also in entries
1122 --       and entry families. Returns first formal of the subprogram or entry.
1123 --       Returns Empty if there are no formals. The list returned includes
1124 --       all the extra formals (see description of Extra_Formals field).
1125
1126 --    First_Index (Node17)
1127 --       Present in array types and subtypes and in string types and subtypes.
1128 --       By introducing implicit subtypes for the index constraints, we have
1129 --       the same structure for constrained and unconstrained arrays, subtype
1130 --       marks and discrete ranges are both represented by a subtype. This
1131 --       function returns the tree node corresponding to an occurrence of the
1132 --       first index (NOT the entity for the type). Subsequent indexes are
1133 --       obtained using Next_Index. Note that this field is present for the
1134 --       case of string literal subtypes, but is always Empty.
1135
1136 --    First_Literal (Node17)
1137 --       Present in all enumeration types, including character and boolean
1138 --       types. This field points to the first enumeration literal entity
1139 --       for the type (i.e. it is set to First (Literals (N)) where N is
1140 --       the enumeration type definition node. A special case occurs with
1141 --       standard character and wide character types, where this field is
1142 --       Empty, since there are no enumeration literal lists in these cases.
1143 --       Note that this field is set in enumeration subtypes, but it still
1144 --       points to the first literal of the base type in this case.
1145
1146 --    First_Optional_Parameter (Node14)
1147 --       Present in (non-generic) function and procedure entities. Set to a
1148 --       non-null value only if a pragma Import_Function, Import_Procedure
1149 --       or Import_Valued_Procedure specifies a First_Optional_Parameter
1150 --       argument, in which case this field points to the parameter entity
1151 --       corresponding to the specified parameter.
1152
1153 --    First_Private_Entity (Node16)
1154 --       Present in all entities containing private parts (packages,
1155 --       protected types and subtypes, task types and subtypes). The
1156 --       entities on the entity chain are in order of declaration, so the
1157 --       entries for private entities are at the end of the chain. This
1158 --       field points to the first entity for the private part. It is
1159 --       Empty if there are no entities declared in the private part or
1160 --       if there is no private part.
1161
1162 --    First_Rep_Item (Node6)
1163 --       Present in all entities. If non-empty, points to a linked list of
1164 --       representation pragmas nodes and representation clause nodes that
1165 --       apply to the entity, linked using Next_Rep_Item, with Empty marking
1166 --       the end of the list. In the case of derived types and subtypes, the
1167 --       new entity inherits the chain at the point of declaration. This
1168 --       means that it is possible to have multiple instances of the same
1169 --       kind of rep item on the chain, in which case it is the first one
1170 --       that applies to the entity.
1171 --
1172 --       For most representation items, the representation information is
1173 --       reflected in other fields and flags in the entity. For example if
1174 --       a record representation clause is present, the component entities
1175 --       reflect the specified information. However, there are some items
1176 --       that are only reflected in the chain. These include:
1177 --
1178 --          Alignment attribute definition clause
1179 --          Machine_Attribute pragma
1180 --          Link_Alias pragma
1181 --          Link-Section pragma
1182 --          Weak_External pragma
1183 --
1184 --       If any of these items are present, then the flag Has_Gigi_Rep_Item
1185 --       is set, indicating that Gigi should search the chain.
1186 --
1187 --       Other representation items are included in the chain so that error
1188 --       messages can easily locate the relevant nodes for posting errors.
1189 --       Note in particular that size clauses are present only for this
1190 --       purpose, and should only be accessed if Has_Size_Clause is set.
1191
1192 --    First_Stored_Discriminant (synthesized)
1193 --       Applies to types with discriminants. Gives the first discriminant
1194 --       stored in the object. In many cases, these are the same as the
1195 --       normal visible discriminants for the type, but in the case of
1196 --       renamed discriminants, this is not always the case.
1197 --
1198 --       For tagged types, and untagged types which are root types or
1199 --       derived types but which do not rename discriminants in their
1200 --       root type, the stored discriminants are the same as the actual
1201 --       discriminants of the type, and hence this function is the same
1202 --       as First_Discriminant.
1203 --
1204 --       For derived non-tagged types that rename discriminants in the root
1205 --       type this is the first of the discriminants that occur in the
1206 --       root type. To be precise, in this case stored discriminants are
1207 --       entities attached to the entity chain of the derived type which
1208 --       are a copy of the discriminants of the root type. Furthermore their
1209 --       Is_Completely_Hidden flag is set since although they are actually
1210 --       stored in the object, they are not in the set of discriminants that
1211 --       is visble in the type.
1212 --
1213 --       For derived untagged types, stored discriminants are the real
1214 --       discriminants from Gigi's standpoint, i.e. those that will be
1215 --       stored in actual objects of the type.
1216
1217 --    First_Subtype (synthesized)
1218 --       Applies to all types and subtypes. For types, yields the first
1219 --       subtype of the type. For subtypes, yields the first subtype of
1220 --       the base type of the subtype.
1221
1222 --    First_Tag_Component (synthesized)
1223 --       Applies to tagged record types, returns the entity for the first
1224 --       _Tag field in this record.
1225
1226 --    Freeze_Node (Node7)
1227 --       Present in all entities. If there is an associated freeze node for
1228 --       the entity, this field references this freeze node. If no freeze
1229 --       node is associated with the entity, then this field is Empty. See
1230 --       package Freeze for further details.
1231
1232 --    From_With_Type (Flag159)
1233 --       Present in package and type entities. Indicates that the entity
1234 --       appears in a With_Type clause in the context of some other unit,
1235 --       either as the prefix (which must be a package), or as a type name.
1236 --       The package can only be used to retrieve such a type, and the type
1237 --       can be used only in component declarations and access definitions.
1238 --       The With_Type clause is used to construct mutually recursive
1239 --       types, i.e. record types (Java classes) that hold pointers to each
1240 --       other. If such a type is an access type, it has no explicit freeze
1241 --       node, so that the back-end does not attempt to elaborate it.
1242 --       Currently this flag is also used to implement Ada 2005 (AI-50217).
1243 --       It will be renamed to From_Limited_With after removal of the current
1244 --       GNAT with_type clause???
1245
1246 --    Full_View (Node11)
1247 --       Present in all type and subtype entities and in deferred constants.
1248 --       References the entity for the corresponding full type declaration.
1249 --       For all types other than private and incomplete types, this field
1250 --       always contains Empty. See also Underlying_Type.
1251
1252 --    Function_Returns_With_DSP (Flag169)
1253 --       Present in all subprogram entities, and type entities for access
1254 --       to subprogram values. Set True if the function (or referenced
1255 --       function in the case of an access value) returns with using the
1256 --       DSP (depressed stack pointer) approach. This can only be set
1257 --       True if Targparm.Functions_Return_By_DSP_On_Target is True and
1258 --       the function returns a value of a type whose size is not known
1259 --       at compile time.
1260 --
1261 --       Note: this flag is obsolete, it is always False ???
1262
1263 --    Generic_Homonym (Node11)
1264 --       Present in generic packages. The generic homonym is the entity of
1265 --       a renaming declaration inserted in every generic unit. It is used
1266 --       to resolve the name of a local entity that is given by a qualified
1267 --       name, when the generic entity itself is hidden by a local name.
1268
1269 --    Generic_Renamings (Elist23)
1270 --       Present in package and subprogram instances. Holds mapping that
1271 --       associates generic parameters with the corresponding instances, in
1272 --       those cases where the instance is an entity.
1273
1274 --    Handler_Records (List10)
1275 --       Present in subprogram and package entities. Points to a list of
1276 --       identifiers referencing the handler record entities for the
1277 --       corresponding unit.
1278
1279 --    Has_Aliased_Components (Flag135) [implementation base type only]
1280 --       Present in array type entities. Indicates that the component type
1281 --       of the array is aliased.
1282
1283 --    Has_Alignment_Clause (Flag46)
1284 --       Present in all type entities and objects. Indicates if an alignment
1285 --       clause has been given for the entity. If set, then Alignment_Clause
1286 --       returns the N_Attribute_Definition node for the alignment attribute
1287 --       definition clause. Note that it is possible for this flag to be False
1288 --       even when Alignment_Clause returns non_Empty (this happens in the case
1289 --       of derived type declarations).
1290
1291 --    Has_All_Calls_Remote (Flag79)
1292 --       Present in all library unit entities. Set true if the library unit
1293 --       has an All_Calls_Remote pragma. Note that such entities must also
1294 --       be RCI entities, so the flag Is_Remote_Call_Interface will always
1295 --       be set if this flag is set.
1296
1297 --    Has_Anon_Block_Suffix (Flag201)
1298 --       Present in all entities. Set if the entity is nested within one or
1299 --       more anonymous blocks and the Chars field contains a name with an
1300 --       anonymous block suffix (see Exp_Dbug for furthert details).
1301
1302 --    Has_Atomic_Components (Flag86) [implementation base type only]
1303 --       Present in all types and objects. Set only for an array type or
1304 --       an array object if a valid pragma Atomic_Components applies to the
1305 --       type or object. Note that in the case of an object, this flag is
1306 --       only set on the object if there was an explicit pragma for the
1307 --       object. In other words, the proper test for whether an object has
1308 --       atomic components is to see if either the object or its base type
1309 --       has this flag set. Note that in the case of a type, the pragma will
1310 --       be chained to the rep item chain of the first subtype in the usual
1311 --       manner.
1312
1313 --    Has_Attach_Handler (synthesized)
1314 --       Applies to record types that are constructed by the expander to
1315 --       represent protected types. Returns True if there is at least one
1316 --       Attach_Handler pragma in the corresponding specification.
1317
1318 --    Has_Biased_Representation (Flag139)
1319 --       Present in discrete types (where it applies to the type'size value),
1320 --       and to objects (both stand-alone and components), where it applies to
1321 --       the size of the object from a size or record component clause. In
1322 --       all cases it indicates that the size in question is smaller than
1323 --       would normally be required, but that the size requirement can be
1324 --       satisfied by using a biased representation, in which stored values
1325 --       have the low bound (Expr_Value (Type_Low_Bound (T)) subtracted to
1326 --       reduce the required size. For example, a type with a range of 1..2
1327 --       takes one bit, using 0 to represent 1 and 1 to represent 2.
1328 --
1329 --       Note that in the object and component cases, the flag is only set
1330 --       if the type is unbiased, but the object specifies a smaller size
1331 --       than the size of the type, forcing biased representation for the
1332 --       object, but the subtype is still an unbiased type.
1333
1334 --    Has_Completion (Flag26)
1335 --       Present in all entities that require a completion (functions,
1336 --       procedures, private types, limited private types, incomplete types,
1337 --       constants and packages that require a body). The flag is set if the
1338 --       completion has been encountered and analyzed.
1339
1340 --    Has_Completion_In_Body (Flag71)
1341 --       Present in all entities for types and subtypes. Set only in "Taft
1342 --       amendment types" (incomplete types whose full declaration appears in
1343 --       the package body).
1344
1345 --    Has_Complex_Representation (Flag140) [implementation base type only]
1346 --       Present in all type entities. Set only for a record base type to
1347 --       which a valid pragma Complex_Representation applies.
1348
1349 --    Has_Component_Size_Clause (Flag68) [implementation base type only]
1350 --       Present in all type entities. Set if a component size clause is
1351 --       present for the given type. Note that this flag can be False even
1352 --       if Component_Size is non-zero (happens in the case of derived types).
1353
1354 --    Has_Constrained_Partial_View (Flag187)
1355 --       Present in private type and their completions, when the private
1356 --       type has no discriminants and the full view has discriminants with
1357 --       defaults. In Ada 2005 heap-allocated objects of such types are not
1358 --       constrained, and can change their discriminants with full assignment.
1359
1360 --    Has_Contiguous_Rep (Flag181)
1361 --       Present in enumeration types. True if the type as a representation
1362 --       clause whose entries are successive integers.
1363
1364 --    Has_Controlling_Result (Flag98)
1365 --       Present in E_Function entities. True if the function is a primitive
1366 --       function of a tagged type which can dispatch on result.
1367
1368 --    Has_Controlled_Component (Flag43) [base type only]
1369 --       Present in all entities. Set only for composite type entities which
1370 --       contain a component that either is a controlled type, or itself
1371 --       contains controlled component (i.e. either Has_Controlled_Component
1372 --       or Is_Controlled is set for at least one component).
1373
1374 --    Has_Convention_Pragma (Flag119)
1375 --       Present in an entity for which a Convention, Import, or Export
1376 --       pragma has been given. Used to prevent more than one such pragma
1377 --       appearing for a given entity (RM B.1(45)).
1378
1379 --    Has_Delayed_Freeze (Flag18)
1380 --       Present in all entities. Set to indicate that an explicit freeze
1381 --       node must be generated for the entity at its freezing point. See
1382 --       separate section ("Delayed Freezing and Elaboration") for details.
1383
1384 --    Has_Discriminants (Flag5)
1385 --       Present in all types and subtypes. For types that are allowed to have
1386 --       discriminants (record types and subtypes, task types and subtypes,
1387 --       protected types and subtypes, private types, limited private types,
1388 --       and incomplete types), indicates if the corresponding type or subtype
1389 --       has a known discriminant part. Always false for all other types.
1390
1391 --    Has_Entries (synthesized)
1392 --       Applies to concurrent types. True if any entries are declared
1393 --       within the task or protected definition for the type.
1394
1395 --    Has_Enumeration_Rep_Clause (Flag66)
1396 --       Present in enumeration types. Set if an enumeration representation
1397 --       clause has been given for this enumeration type. Used to prevent more
1398 --       than one enumeration representation clause for a given type. Note
1399 --       that this does not imply a representation with holes, since the rep
1400 --       clause may merely confirm the default 0..N representation.
1401
1402 --    Has_External_Tag_Rep_Clause (Flag110)
1403 --       Present in tagged types. Set if an external_tag rep. clause has been
1404 --       given for this type. Use to avoid the generation of the default
1405 --       external_tag.
1406
1407 --    Has_Exit (Flag47)
1408 --       Present in loop entities. Set if the loop contains an exit statement.
1409
1410 --    Has_Foreign_Convention (synthesized)
1411 --       Applies to all entities. Determines if the Convention for the
1412 --       entity is a foreign convention (i.e. is other than Convention_Ada,
1413 --       Convention_Intrinsic, Convention_Entry or Convention_Protected).
1414
1415 --    Has_Forward_Instantiation (Flag175)
1416 --       Present in package entities. Set true for packages that contain
1417 --       instantiations of local generic entities, before the corresponding
1418 --       generic body has been seen. If a package has a forward instantiation,
1419 --       we cannot inline subprograms appearing in the same package because
1420 --       the placement requirements of the instance will conflict with the
1421 --       linear elaboration of front-end inlining.
1422
1423 --    Has_Fully_Qualified_Name (Flag173)
1424 --       Present in all entities. Set True if the name in the Chars field
1425 --       has been replaced by the fully qualified name, as used for debug
1426 --       output. See Exp_Dbug for a full description of the use of this
1427 --       flag and also the related flag Has_Qualified_Name.
1428
1429 --    Has_Gigi_Rep_Item (Flag82)
1430 --       This flag is set if the rep item chain (referenced by First_Rep_Item
1431 --       and linked through the Next_Rep_Item chain) contains a representation
1432 --       item that needs to be specially processed by Gigi, i.e. one of the
1433 --       following items:
1434 --
1435 --          Machine_Attribute pragma
1436 --          Linker_Alias pragma
1437 --          Linker_Section pragma
1438 --          Linker_Constructor pragma
1439 --          Linker_Destructor pragma
1440 --          Weak_External pragma
1441 --
1442 --       If this flag is set, then Gigi should scan the rep item chain to
1443 --       process any of these items that appear. At least one such item will
1444 --       be present.
1445
1446 --    Has_Homonym (Flag56)
1447 --       Present in all entities. Set if an entity has a homonym in the same
1448 --       scope. Used by Gigi to generate unique names for such entities.
1449
1450 --    Has_Interrupt_Handler (synthesized)
1451 --       Applies to all protected type entities. Set if the protected type
1452 --       definition contains at least one procedure to which a pragma
1453 --       Interrupt_Handler applies.
1454
1455 --    Has_Machine_Radix_Clause (Flag83)
1456 --       Present in decimal types and subtypes, set if a Machine_Radix
1457 --       representation clause is present. This flag is used to detect
1458 --       the error of multiple machine radix clauses for a single type.
1459
1460 --    Has_Master_Entity (Flag21)
1461 --       Present in entities that can appear in the scope stack (see spec
1462 --       of Sem). It is set if a task master entity (_master) has been
1463 --       declared and initialized in the corresponding scope.
1464
1465 --    Has_Missing_Return (Flag142)
1466 --       Present in functions and generic functions. Set if there is one or
1467 --       more missing return statements in the function. This is used to
1468 --       control wrapping of the body in Exp_Ch6 to ensure that the program
1469 --       error exeption is correctly raised in this case at runtime.
1470
1471 --    Has_Up_Level_Access (Flag215)
1472 --      Present in E_Variable and E_Constant entities. Set if the entity is
1473 --      declared in a local procedure p and is accessed in a procedure nested
1474 --      inside p. Only set when VM_Target /= No_VM currently.
1475
1476 --    Has_Nested_Block_With_Handler (Flag101)
1477 --       Present in scope entities. Set if there is a nested block within the
1478 --       scope that has an exception handler and the two scopes are in the
1479 --       same procedure. This is used by the backend for controlling certain
1480 --       optimizations to ensure that they are consistent with exceptions.
1481 --       See documentation in Gigi for further details.
1482
1483 --    Has_Non_Standard_Rep (Flag75) [implementation base type only]
1484 --       Present in all type entities. Set when some representation clause
1485 --       or pragma causes the representation of the item to be significantly
1486 --       modified. In this category are changes of small or radix for a
1487 --       fixed-point type, change of component size for an array, and record
1488 --       or enumeration representation clauses, as well as packed pragmas.
1489 --       All other representation clauses (e.g. Size and Alignment clauses)
1490 --       are not considered to be significant since they do not affect
1491 --       stored bit patterns.
1492
1493 --    Has_Object_Size_Clause (Flag172)
1494 --       Present in entities for types and subtypes. Set if an Object_Size
1495 --       clause has been processed for the type Used to prevent multiple
1496 --       Object_Size clauses for a given entity.
1497
1498 --    Has_Per_Object_Constraint (Flag154)
1499 --       Present in E_Component entities, true if the subtype of the
1500 --       component has a per object constraint. Per object constraints result
1501 --       from the following situations:
1502 --
1503 --       1. N_Attribute_Reference - when the prefix is the enclosing type and
1504 --          the attribute is Access.
1505 --       2. N_Discriminant_Association - when the expression uses the
1506 --          discriminant of the enclosing type.
1507 --       3. N_Index_Or_Discriminant_Constraint - when at least one of the
1508 --          individual constraints is a per object constraint.
1509 --       4. N_Range - when the lower or upper bound uses the discriminant of
1510 --          the enclosing type.
1511 --       5. N_Range_Constraint - when the range expression uses the
1512 --          discriminant of the enclosing type.
1513
1514 --    Has_Persistent_BSS (Flag188)
1515 --       Present in all entities. Set True for entities to which a valid
1516 --       pragma Persistent_BSS applies. Note that although the pragma is
1517 --       only meaningful for objects, we set it for all entities in a unit
1518 --       to which the pragma applies, as well as the unit entity itself, for
1519 --       convenience in propagating the flag to contained entities.
1520
1521 --    Has_Pragma_Controlled (Flag27) [implementation base type only]
1522 --       Present in access type entities. It is set if a pragma Controlled
1523 --       applies to the access type.
1524
1525 --    Has_Pragma_Elaborate_Body (Flag150)
1526 --       Present in all entities. Set in compilation unit entities if a
1527 --       pragma Elaborate_Body applies to the compilation unit.
1528
1529 --    Has_Pragma_Inline (Flag157)
1530 --       Present in all entities. Set for functions and procedures for which
1531 --       a pragma Inline or Inline_Always applies to the subprogram. Note
1532 --       that this flag can be set even if Is_Inlined is not set. This
1533 --       happens for pragma Inline (if Inline_Active is False). In other
1534 --       words, the flag Has_Pragma_Inline represents the formal semantic
1535 --       status, and is used for checking semantic correctness.
1536 --       The flag Is_Inlined indicates whether inlining is actually active
1537 --       for the entity.
1538
1539 --    Has_Pragma_Pack (Flag121) [implementation base type only]
1540 --       Present in all entities. If set, indicates that a valid pragma Pack
1541 --       was was given for the type. Note that this flag is not inherited by
1542 --       derived type. See also the Is_Packed flag.
1543
1544 --    Has_Pragma_Pure (Flag203)
1545 --       Present in all entities. If set, indicates that a valid pragma Pure
1546 --       was given for the entity. In some cases, we need to test whether
1547 --       Is_Pure was explicitly set using this pragma.
1548
1549 --    Has_Pragma_Pure_Function (Flag179)
1550 --       Present in all entities. If set, indicates that a valid pragma
1551 --       Pure_Function was given for the entity. In some cases, we need to
1552 --       know that Is_Pure was explicitly set using this pragma.
1553
1554 --    Has_Pragma_Unreferenced (Flag180)
1555 --       Present in all entities. Set if a valid pragma Unreferenced applies
1556 --       to the pragma, indicating that no warning should be given if the
1557 --       entity has no references, but a warning should be given if it is
1558 --       in fact referenced. For private types, this flag is set in both the
1559 --       private entity and full entity if the pragma applies to either.
1560
1561 --    Has_Pragma_Unreferenced_Objects (Flag212)
1562 --       Present in type and subtype entities. Set if a valid pragma
1563 --       Unreferenced_Objects applies to the type, indicating that no warning
1564 --       should be given for objects of such a type for being unreferenced
1565 --       (but unlike the case with pragma Unreferenced, it is ok to reference
1566 --       such an object and no warning is generated.
1567
1568 --    Known_To_Have_Preelab_Init (Flag207)
1569 --       Present in all type and subtype entities. If set, then the type is
1570 --       known to have preelaborable initialization. In the case of a partial
1571 --       view of a private type, it is only possible for this to be set if a
1572 --       pragma Preelaborable_Initialization is given for the type. For other
1573 --       types, it is never set if the type does not have preelaborable
1574 --       initialization, it may or may not be set if the type does have
1575 --       preelaborable initialization.
1576
1577 --    Has_Primitive_Operations (Flag120) [base type only]
1578 --       Present in all type entities. Set if at least one primitive operation
1579 --       is defined for the type.
1580
1581 --    Has_Private_Ancestor (synthesized)
1582 --       Applies to all type and subtype entities. Returns True if at least
1583 --       one ancestor is private, and otherwise False if there are no private
1584 --       ancestors.
1585
1586 --    Has_Private_Declaration (Flag155)
1587 --       Present in all entities. Returns True if it is the defining entity
1588 --       of a private type declaration or its corresponding full declaration.
1589 --       This flag is thus preserved when the full and the partial views are
1590 --       exchanged, to indicate if a full type declaration is a completion.
1591 --       Used for semantic checks in E.4 (18), and elsewhere.
1592
1593 --    Has_Qualified_Name (Flag161)
1594 --       Present in all entities. Set True if the name in the Chars field
1595 --       has been replaced by its qualified name, as used for debug output.
1596 --       See Exp_Dbug for a full description of qualification requirements.
1597 --       For some entities, the name is the fully qualified name, but there
1598 --       are exceptions. In particular, for local variables in procedures,
1599 --       we do not include the procedure itself or higher scopes. See also
1600 --       the flag Has_Fully_Qualified_Name, which is set if the name does
1601 --       indeed include the fully qualified name.
1602
1603 --    Has_RACW (Flag214)
1604 --      Present in package spec entities. Set if the spec contains the
1605 --      declaration of a remote access-to-classwide type.
1606
1607 --    Has_Record_Rep_Clause (Flag65) [implementation base type only]
1608 --       Present in record types. Set if a record representation clause has
1609 --       been given for this record type. Used to prevent more than one such
1610 --       clause for a given record type. Note that this is initially cleared
1611 --       for a derived type, even though the representation is inherited. See
1612 --       also the flag Has_Specified_Layout.
1613
1614 --    Has_Recursive_Call (Flag143)
1615 --       Present in procedures. Set if a direct parameterless recursive call
1616 --       is detected while analyzing the body. Used to activate some error
1617 --       checks for infinite recursion.
1618
1619 --    Has_Size_Clause (Flag29)
1620 --       Present in entities for types and objects. Set if a size clause is
1621 --       present for the entity. Used to prevent multiple Size clauses for a
1622 --       given entity. Note that it is always initially cleared for a derived
1623 --       type, even though the Size for such a type is inherited from a Size
1624 --       clause given for the parent type.
1625
1626 --    Has_Small_Clause (Flag67)
1627 --       Present in ordinary fixed point types (but not subtypes). Indicates
1628 --       that a small clause has been given for the entity. Used to prevent
1629 --       multiple Small clauses for a given entity. Note that it is always
1630 --       initially cleared for a derived type, even though the Small for such
1631 --       a type is inherited from a Small clause given for the parent type.
1632
1633 --    Has_Specified_Layout (Flag100) [implementation base type only]
1634 --       Present in all type entities. Set for a record type or subtype if
1635 --       the record layout has been specified by a record representation
1636 --       clause. Note that this differs from the flag Has_Record_Rep_Clause
1637 --       in that it is inherited by a derived type. Has_Record_Rep_Clause is
1638 --       used to indicate that the type is mentioned explicitly in a record
1639 --       representation clause, and thus is not inherited by a derived type.
1640 --       This flag is always False for non-record types.
1641
1642 --    Has_Specified_Stream_Input (Flag190)
1643 --    Has_Specified_Stream_Output (Flag191)
1644 --    Has_Specified_Stream_Read (Flag192)
1645 --    Has_Specified_Stream_Write (Flag193)
1646 --       Present in all type and subtype entities. Set for a given view if the
1647 --       corresponding stream-oriented attribute has been defined by an
1648 --       attribute definition clause. When such a clause occurs, a TSS is set
1649 --       on the underlying full view; the flags are used to track visibility of
1650 --       the attribute definition clause for partial or incomplete views.
1651 --
1652 --    Has_Static_Discriminants (Flag211)
1653 --       Present in record subtypes constrained by discriminant values. Set if
1654 --       all the discriminant values have static values, meaning that in the
1655 --       case of a variant record, the component list can be trimmed down to
1656 --       include only the components corresponding to these discriminants.
1657 --
1658 --    Has_Storage_Size_Clause (Flag23) [implementation base type only]
1659 --       Present in task types and access types. It is set if a Storage_Size
1660 --       clause is present for the type. Used to prevent multiple clauses for
1661 --       one type. Note that this flag is initially cleared for a derived type
1662 --       even though the Storage_Size for such a type is inherited from a
1663 --       Storage_Size clause given for the parent type. Note that in the case
1664 --       of access types, this flag is present only in the root type, since a
1665 --       storage size clause cannot be given to a derived type.
1666
1667 --    Has_Stream_Size_Clause (Flag184)
1668 --       This flag is present in all entities. It is set for types which have a
1669 --       Stream_Size clause attribute. Used to prevent multiple Stream_Size
1670 --       clauses for a given entity, and also whether it is necessary to check
1671 --       for a stream size clause.
1672
1673 --    Has_Subprogram_Descriptor (Flag93)
1674 --       This flag is set on entities for which zero-cost exception subprogram
1675 --       descriptors can be generated (subprograms and library level package
1676 --       declarations and bodies). It indicates that a subprogram descriptor
1677 --       has been generated, and is used to suppress generation of multiple
1678 --       descriptors (e.g. when instantiating generic bodies).
1679
1680 --    Has_Task (Flag30) [base type only]
1681 --       Present in all type entities. Set on task types themselves, and also
1682 --       (recursively) on any composite type which has a component for which
1683 --       Has_Task is set. The meaning is that an allocator or declaration of
1684 --       such an object must create the required tasks. Note: the flag is not
1685 --       set on access types, even if they designate an object that Has_Task.
1686
1687 --    Has_Unchecked_Union (Flag123) [base type only]
1688 --       Present in all type entities. Set on unchecked unions themselves
1689 --       and (recursively) on any composite type which has a component for
1690 --       which Has_Unchecked_Union is set. The meaning is that a comparison
1691 --       operation for the type is not permitted. Note that the flag is not
1692 --       set on access types, even if they designate an object that has
1693 --       the flag Has_Unchecked_Union set.
1694
1695 --    Has_Unknown_Discriminants (Flag72)
1696 --       Present in all type entities. Types can have unknown discriminants
1697 --       either from their declaration or through type derivation. The use
1698 --       of this flag exactly meets the spec in RM 3.7(26). Note that all
1699 --       class-wide types are considered to have unknown discriminants.
1700 --       Note that both Has_Discriminants and Has_Unknown_Discriminants may
1701 --       be true for a type. Class-wide types and their subtypes have
1702 --       unknown discriminants and can have declared ones as well. Private
1703 --       types declared with unknown discriminants may have a full view that
1704 --       has explicit discriminants, and both flag will be set on the partial
1705 --       view, to insure that discriminants are properly inherited in certain
1706 --       contexts.
1707
1708 --    Has_Volatile_Components (Flag87) [implementation base type only]
1709 --       Present in all types and objects. Set only for an array type or
1710 --       array object if a valid pragma Volatile_Components or a valid
1711 --       pragma Atomic_Components applies to the type or object. Note that
1712 --       in the case of an object, this flag is only set on the object if
1713 --       there was an explicit pragma for the object. In other words, the
1714 --       proper test for whether an object has volatile components is to
1715 --       see if either the object or its base type has this flag set. Note
1716 --       that in the case of a type the pragma will be chained to the rep
1717 --       item chain of the first subtype in the usual manner.
1718
1719 --    Has_Xref_Entry (Flag182)
1720 --       This flag is set if an entity has an entry in the Xref information
1721 --       generated in ali files. This is true for all source entities in the
1722 --       extended main source file. It is also true of entities in other
1723 --       packages that are referenced directly or indirectly from the main
1724 --       source file (indirect reference occurs when the main source file
1725 --       references an entity with a type reference. See package Lib.Xref
1726 --       for further details).
1727
1728 --    Hiding_Loop_Variable (Node8)
1729 --       Present in variables. Set only if a variable of a discrete type is
1730 --       hidden by a loop variable in the same local scope, in which case
1731 --       the Hiding_Loop_Variable field of the hidden variable points to
1732 --       the E_Loop_Parameter entity doing the hiding. Used in processing
1733 --       warning messages if the hidden variable turns out to be unused
1734 --       or is referenced without being set.
1735
1736 --    Homonym (Node4)
1737 --       Present in all entities. Link for list of entities that have the
1738 --       same source name and that are declared in the same or enclosing
1739 --       scopes. Homonyms in the same scope are overloaded. Used for name
1740 --       resolution and for the generation of debugging information.
1741
1742 --    Implementation_Base_Type (synthesized)
1743 --       Applies to all types. Similar to Base_Type, but never returns a
1744 --       private type when applied to a non-private type. Instead in this case,
1745 --       it always returns the Underlying_Type of the base type, so that we
1746 --       still have a concrete type. Note: it is allowed to apply
1747 --       Implementation_Base_Type to other than a type, in which case it simply
1748 --       returns the entity unchanged.
1749
1750 --    In_Package_Body (Flag48)
1751 --       Set on the entity that denotes the package (the defining occurrence
1752 --       of the package declaration) while analyzing and expanding the package
1753 --       body. Reset on completion of analysis/expansion.
1754
1755 --    In_Private_Part (Flag45)
1756 --       Present in all entities. Can be set only in package entities and
1757 --       objects. For package entities, this flag is set to indicate that the
1758 --       private part of the package is being analyzed. The flag is reset at
1759 --       the end of the package declaration. For objects it indicates that the
1760 --       declaration of the object occurs in the private part of a package.
1761
1762 --    Inner_Instances (Elist23)
1763 --       Present in generic units. Contains element list of units that are
1764 --       instantiated within the given generic. Used to diagnose circular
1765 --       instantiations.
1766
1767 --    Interface_Name (Node21)
1768 --       Present in exceptions, functions, procedures, variables, constants,
1769 --       and packages. Set to Empty unless an export, import, or interface
1770 --       name pragma has explicitly specified an external name, in which
1771 --       case it references an N_String_Literal node for the specified
1772 --       external name. In the case of exceptions, the field is set by
1773 --       Import_Exception/Export_Exception (which can be used in OpenVMS
1774 --       versions only). Note that if this field is Empty, and Is_Imported
1775 --       or Is_Exported is set, then the default interface name is the name
1776 --       of the entity, cased in a manner that is appropriate to the system
1777 --       in use. Note that Interface_Name is ignored if an address clause
1778 --       is present (since it is meaningless in this case).
1779 --
1780 --       An additional special case usage of this field is in JGNAT for
1781 --       E_Component and E_Discriminant. JGNAT allows these entities to
1782 --       be imported by specifying pragma Import within a component's
1783 --       containing record definition. This supports interfacing to
1784 --       object fields defined within Java classes, and such pragmas
1785 --       are generated by the jvm2ada binding generator tool whenever
1786 --       it processes classes with public object fields. A pragma Import
1787 --       for a component can define the External_Name of the imported
1788 --       Java field (which is generally needed, because Java names are
1789 --       case sensitive).
1790 --
1791 --    In_Use (Flag8)
1792 --       Present in packages and types. Set when analyzing a use clause for
1793 --       the corresponding entity. Reset at end of corresponding declarative
1794 --       part. The flag on a type is also used to determine the visibility of
1795 --       the primitive operators of the type.
1796
1797 --    Is_Abstract_Subprogram (Flag19)
1798 --       Present in all subprograms and entries. Set for abstract subprograms.
1799 --       Always False for enumeration literals and entries. See also
1800 --       Requires_Overriding.
1801
1802 --    Is_Abstract_Type (Flag146)
1803 --       Present in all types. Set for abstract types.
1804
1805 --    Is_Local_Anonymous_Access (Flag194)
1806 --       Present in access types. Set for an anonymous access type to indicate
1807 --       that the type is created for a record component with an access
1808 --       definition, an array component, or a stand-alone object. Such
1809 --       anonymous types have an accessibility level equal to that of the
1810 --       declaration in which they appear, unlike the anonymous access types
1811 --       that are created for access parameters and access discriminants.
1812
1813 --    Is_Access_Constant (Flag69)
1814 --       Present in access types and subtypes. Indicates that the keyword
1815 --       constant was present in the access type definition.
1816
1817 --    Is_Access_Protected_Subprogram_Type (synthesized)
1818 --       Applies to all types, true for named and anonymous access to
1819 --       protected subprograms.
1820
1821 --    Is_Access_Type (synthesized)
1822 --       Applies to all entities, true for access types and subtypes
1823
1824 --    Is_Ada_2005_Only (Flag185)
1825 --       Applies to all entities, true if a valid pragma Ada_05 applies to the
1826 --       entity which specifically names the entity, indicating that the entity
1827 --       is Ada 2005 only. Note that this flag is not set if the entity is part
1828 --       of a unit compiled with the normal no-argument form of pragma Ada_05.
1829
1830 --    Is_Aliased (Flag15)
1831 --       Present in objects whose declarations carry the keyword aliased,
1832 --       and on record components that have the keyword.
1833
1834 --    Is_Always_Inlined (synthesized)
1835 --       Present in subprograms. True if there is a pragma Inline_Always for
1836 --       the subprogram.
1837
1838 --    Is_AST_Entry (Flag132)
1839 --       Present in entry entities. Set if a valid pragma AST_Entry applies
1840 --       to the entry. This flag can only be set in OpenVMS versions of GNAT.
1841 --       Note: we also allow the flag to appear in entry families, but given
1842 --       the current implementation of the pragma AST_Entry, this flag will
1843 --       always be False in entry families.
1844
1845 --    Is_Atomic (Flag85)
1846 --       Present in all type entities, and also in constants, components and
1847 --       variables. Set if a pragma Atomic or Shared applies to the entity.
1848 --       In the case of private and incomplete types, this flag is set in
1849 --       both the partial view and the full view.
1850
1851 --    Is_Array_Type (synthesized)
1852 --       Applies to all entities, true for array types and subtypes
1853
1854 --    Is_Asynchronous (Flag81)
1855 --       Present in all type entities and in procedure entities. Set
1856 --       if a pragma Asynchronous applies to the entity.
1857
1858 --    Is_Bit_Packed_Array (Flag122) [implementation base type only]
1859 --       Present in all entities. This flag is set for a packed array
1860 --       type that is bit packed (i.e. the component size is known by the
1861 --       front end and is in the range 1-7, 9-15, 17-31, or 33-63). Is_Packed
1862 --       is always set if Is_Bit_Packed_Array is set, but it is possible for
1863 --       Is_Packed to be set without Is_Bit_Packed_Array for the case of an
1864 --       array having one or more index types that are enumeration types
1865 --       with non-standard enumeration representations.
1866
1867 --    Is_Boolean_Type (synthesized)
1868 --       Applies to all entities, true for boolean types and subtypes,
1869 --       i.e. Standard.Boolean and all types ultimately derived from it.
1870
1871 --    Is_By_Copy_Type (synthesized)
1872 --       Applies to all type entities. Returns true if the entity is
1873 --       a by copy type (RM 6.2(3)).
1874
1875 --    Is_By_Reference_Type (synthesized)
1876 --       Applies to all type entities. True if the type is required to
1877 --       be passed by reference, as defined in (RM 6.2(4-9)).
1878
1879 --    Is_Called (Flag102)
1880 --       Present in subprograms. Returns true if the subprogram is called
1881 --       in the unit being compiled or in a unit in the context. Used for
1882 --       inlining.
1883
1884 --    Is_Character_Type (Flag63)
1885 --       Present in all entities, true for character types and subtypes,
1886 --       i.e. enumeration types that have at least one character literal.
1887
1888 --    Is_Child_Unit (Flag73)
1889 --       Present in all entities. Set only for defining entities of program
1890 --       units that are child units (but False for subunits).
1891
1892 --    Is_Class_Wide_Type (synthesized)
1893 --       Applies to all entities, true for class wide types and subtypes
1894
1895 --    Is_Class_Wide_Equivalent_Type (Flag35)
1896 --       Present in record types and subtypes. Set to True, if the type acts
1897 --       as a class-wide equivalent type, i.e. the Equivalent_Type field of
1898 --       some class-wide subtype entity references this record type.
1899
1900 --    Is_Compilation_Unit (Flag149)
1901 --       Present in all entities. Set if the entity is a package or subprogram
1902 --       entity for a compilation unit other than a subunit (since we treat
1903 --       subunits as part of the same compilation operation as the ultimate
1904 --       parent, we do not consider them to be separate units for this flag).
1905
1906 --    Is_Completely_Hidden (Flag103)
1907 --       A flag set on an E_Discriminant entity. This flag can be set only
1908 --       for girder discriminants of untagged types. When set, the entity
1909 --       is a girder discriminant of a derived untagged type which is not
1910 --       directly visible in the derived type because the derived type or
1911 --       one of its ancestors have renamed the discriminants in the root
1912 --       type. Note that there are girder discriminants which are not
1913 --       Completely_Hidden (e.g. the discriminants of a root type).
1914
1915 --    Is_Composite_Type (synthesized)
1916 --       Applies to all entities, true for all composite types and
1917 --       subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1918 --       not both) is true of any type.
1919
1920 --    Is_Concurrent_Record_Type (Flag20)
1921 --       Present in record types and subtypes. Set if the type was created
1922 --       by the expander to represent a task or protected type. For every
1923 --       concurrent type, such as record type is constructed, and task and
1924 --       protected objects are instances of this record type at runtime
1925 --       (Gigi will replace declarations of the concurrent type using the
1926 --       declarations of the corresponding record type). See package Exp_Ch9
1927 --       for further details.
1928
1929 --    Is_Concurrent_Type (synthesized)
1930 --       Applies to all entities, true for task types and subtypes and
1931 --       for protected types and subtypes.
1932
1933 --    Is_Constrained (Flag12)
1934 --       Present in types or subtypes which may have index, discriminant
1935 --       or range constraint (i.e. array types and subtypes, record types
1936 --       and subtypes, string types and subtypes, and all numeric types).
1937 --       Set if the type or subtype is constrained.
1938
1939 --    Is_Constr_Subt_For_U_Nominal (Flag80)
1940 --       Present in all types and subtypes. Set true only for the constructed
1941 --       subtype of an object whose nominal subtype is unconstrained. Note
1942 --       that the constructed subtype itself will be constrained.
1943
1944 --    Is_Constr_Subt_For_UN_Aliased (Flag141)
1945 --       This flag can only be set if Is_Constr_Subt_For_U_Nominal is set. It
1946 --       indicates that in addition the object concerned is aliased. This flag
1947 --       is used by Gigi to determine whether a template must be constructed.
1948
1949 --    Is_Constructor (Flag76)
1950 --       Present in function and procedure entities. Set if a pragma
1951 --       CPP_Constructor applies to the subprogram.
1952
1953 --    Is_Controlled (Flag42) [base type only]
1954 --       Present in all type entities. Indicates that the type is controlled,
1955 --       i.e. is either a descendant of Ada.Finalization.Controlled or of
1956 --       Ada.Finalization.Limited_Controlled.
1957
1958 --    Is_Controlling_Formal (Flag97)
1959 --       Present in all Formal_Kind entity. Marks the controlling parameters
1960 --       of dispatching operations.
1961
1962 --    Is_CPP_Class (Flag74)
1963 --       Present in all type entities, set only for tagged types to which a
1964 --       valid pragma Import (CPP, ...) or pragma CPP_Class has been applied.
1965
1966 --    Is_Decimal_Fixed_Point_Type (synthesized)
1967 --       Applies to all type entities, true for decimal fixed point
1968 --       types and subtypes.
1969
1970 --    Is_Derived_Type (synthesized)
1971 --       Applies to all entities. Determine if given entity is a derived type.
1972 --       Always false if argument is not a type.
1973
1974 --    Is_Discrete_Type (synthesized)
1975 --       Applies to all entities, true for all discrete types and subtypes
1976
1977 --    Is_Discrete__Or_Fixed_Point_Type (synthesized)
1978 --       Applies to all entities, true for all discrete types and subtypes
1979 --       and all fixed-point types and subtypes.
1980
1981 --    Is_Discrim_SO_Function (Flag176)
1982 --       Present in all entities, set only in E_Function entities that Layout
1983 --       creates to compute discriminant-dependent dynamic size/offset values.
1984
1985 --    Is_Dispatching_Operation (Flag6)
1986 --       Present in all entities. Set true for procedures, functions,
1987 --       generic procedures and generic functions if the corresponding
1988 --       operation is dispatching.
1989
1990 --    Is_Dynamic_Scope (synthesized)
1991 --       Applies to all Entities. Returns True if the entity is a dynamic
1992 --       scope (i.e. a block, subprogram, task_type, entry
1993 --       or extended return statement).
1994
1995 --    Is_Elementary_Type (synthesized)
1996 --       Applies to all entities, true for all elementary types and
1997 --       subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1998 --       not both) is true of any type.
1999
2000 --    Is_Eliminated (Flag124)
2001 --       Present in type entities, subprogram entities, and object entities.
2002 --       Indicates that the corresponding entity has been eliminated by use
2003 --       of pragma Eliminate. Also used to mark subprogram entities whose
2004 --       declaration and body are within unreachable code that is removed.
2005
2006 --    Is_Enumeration_Type (synthesized)
2007 --       Present in all entities, true for enumeration types and subtypes
2008
2009 --    Is_Entry (synthesized)
2010 --       Applies to all entities, True only for entry and entry family
2011 --       entities and False for all other entity kinds.
2012
2013 --    Is_Entry_Formal (Flag52)
2014 --       Present in all entities. Set only for entry formals (which can
2015 --       only be in, in-out or out parameters). This flag is used to speed
2016 --       up the test for the need to replace references in Exp_Ch2.
2017
2018 --    Is_Exported (Flag99)
2019 --       Present in all entities. Set if the entity is exported. For now we
2020 --       only allow the export of constants, exceptions, functions, procedures
2021 --       and variables, but that may well change later on. Exceptions can only
2022 --       be exported in the OpenVMS and Java VM implementations of GNAT.
2023
2024 --    Is_First_Subtype (Flag70)
2025 --       Present in all entities. True for first subtypes (RM 3.2.1(6)),
2026 --       i.e. the entity in the type declaration that introduced the type.
2027 --       This may be the base type itself (e.g. for record declarations and
2028 --       enumeration type declarations), or it may be the first subtype of
2029 --       an anonymous base type (e.g. for integer type declarations or
2030 --       constrained array declarations).
2031
2032 --    Is_Fixed_Point_Type (synthesized)
2033 --       Applies to all entities, true for decimal and ordinary fixed
2034 --       point types and subtypes
2035
2036 --    Is_Floating_Point_Type (synthesized)
2037 --       Applies to all entities, true for float types and subtypes
2038
2039 --    Is_Formal (synthesized)
2040 --       Applies to all entities, true for IN, IN OUT and OUT parameters
2041
2042 --    Is_Formal_Object (synthesized)
2043 --       Applies to all entities, true for generic IN and IN OUT parameters
2044
2045 --    Is_Formal_Subprogram (Flag111)
2046 --       Defined on all entities, true for generic formal subprograms.
2047
2048 --    Is_For_Access_Subtype (Flag118)
2049 --       Present in E_Private_Subtype and E_Record_Subtype entities.
2050 --       Means the sole purpose of the type is to be designated by an
2051 --       Access_Subtype and hence should not be expanded into components
2052 --       because the type may not have been found or frozen yet.
2053
2054 --    Is_Frozen (Flag4)
2055 --       Present in all type entities. Set if the type has been frozen.
2056
2057 --    Is_Generic_Actual_Type (Flag94)
2058 --       Present in the subtype declaration that renames the generic formal
2059 --       as a subtype of the actual. Guarantees that the subtype is not static
2060 --       within the instance.
2061
2062 --    Is_Generic_Instance (Flag130)
2063 --       Present in all entities. Set to indicate that the entity is an
2064 --       instance of a generic unit, or a formal package (which is an instance
2065 --       of the template).
2066
2067 --    Is_Generic_Subprogram (synthesized)
2068 --       Applies to all entities. Yields True for a generic subprogram
2069 --       (generic function, generic subprogram), False for all other entities.
2070
2071 --    Is_Generic_Type (Flag13)
2072 --       Present in all types and subtypes. Set for types which are generic
2073 --       formal types. Such types have an Ekind that corresponds to their
2074 --       classification, so the Ekind cannot be used to identify generic types.
2075
2076 --    Is_Generic_Unit (synthesized)
2077 --       Applies to all entities. Yields True for a generic unit (generic
2078 --       package, generic function, generic procedure), and False for all
2079 --       other entities.
2080
2081 --    Is_Hidden (Flag57)
2082 --       Present in all entities. Set true for all entities declared in the
2083 --       private part or body of a package. Also marks generic formals of a
2084 --       formal package declared without a box. For library level entities,
2085 --       this flag is set if the entity is not publicly visible.
2086
2087 --    Is_Hidden_Open_Scope (Flag171)
2088 --       Present in all entities. Set true for a scope that contains the
2089 --       instantiation of a child unit, and whose entities are not visible
2090 --       during analysis of the instance.
2091
2092 --    Is_Immediately_Visible (Flag7)
2093 --       Present in all entities. Set if entity is immediately visible, i.e.
2094 --       is defined in some currently open scope (RM 8.3(4)).
2095
2096 --    Is_Imported (Flag24)
2097 --       Present in all entities. Set if the entity is imported. For now we
2098 --       only allow the import of exceptions, functions, procedures, packages.
2099 --       and variables. Exceptions can only be imported in the OpenVMS and
2100 --       Java VM implementations of GNAT. Packages and types can only be
2101 --       imported in the Java VM implementation.
2102
2103 --    Is_Incomplete_Or_Private_Type (synthesized)
2104 --       Applies to all entities, true for private and incomplete types
2105
2106 --    Is_Incomplete_Type (synthesized)
2107 --       Applies to all entities, true for incomplete types and subtypes
2108
2109 --    Is_Indefinite_Subtype (synthesized)
2110 --       Applies to all entities for types and subtypes. Determines if given
2111 --       entity is an unconstrained array type or subtype, a discriminated
2112 --       record type or subtype with no initial discriminant values or a
2113 --       class wide type or subtype.
2114
2115 --    Is_Inlined (Flag11)
2116 --       Present in all entities. Set for functions and procedures which are
2117 --       to be inlined. For subprograms created during expansion, this flag
2118 --       may be set directly by the expander to request inlining. Also set
2119 --       for packages that contain inlined subprograms, whose bodies must be
2120 --       be compiled. Is_Inlined is also set on generic subprograms and is
2121 --       inherited by their instances. It is also set on the body entities
2122 --       of inlined subprograms. See also Has_Pragma_Inline.
2123
2124 --    Is_Instantiated (Flag126)
2125 --       Present in generic packages and generic subprograms. Set if the unit
2126 --       is instantiated from somewhere in the extended main source unit. This
2127 --       flag is used to control warnings about the unit being uninstantiated.
2128 --       Also set in a package that is used as an actual for a generic package
2129 --       formal in an instantiation. Also set on a parent instance, in the
2130 --       instantiation of a child, which is implicitly declared in the parent.
2131
2132 --    Is_Integer_Type (synthesized)
2133 --       Applies to all entities, true for integer types and subtypes
2134
2135 --    Is_Interface (Flag186)
2136 --       Present in record types and subtypes to indicate that the current
2137 --       entity corresponds with an abstract interface. Because abstract
2138 --       interfaces are conceptually a special kind of abstract tagged types
2139 --       we represent them by means of tagged record types and subtypes
2140 --       marked with this attribute. This allows us to reuse most of the
2141 --       compiler support for abstract tagged types to implement interfaces
2142 --       (Ada 2005: AI-251).
2143
2144 --    Is_Internal (Flag17)
2145 --       Present in all entities. Set to indicate an entity created during
2146 --       semantic processing (e.g. an implicit type, or a temporary). The
2147 --       only current use of this flag is to indicate that temporaries
2148 --       generated for the result of an inlined function call need not be
2149 --       initialized, even when scalars are initialized or normalized.
2150
2151 --    Is_Interrupt_Handler (Flag89)
2152 --       Present in procedures. Set if a pragma Interrupt_Handler applies
2153 --       to the procedure. The procedure must be parameterless, and on all
2154 --       targets except AAMP it must be a protected procedure.
2155
2156 --    Is_Intrinsic_Subprogram (Flag64)
2157 --       Present in functions and procedures. It is set if a valid pragma
2158 --       Interface or Import is present for this subprogram specifying pragma
2159 --       Intrinsic. Valid means that the name and profile of the subprogram
2160 --       match the requirements of one of the recognized intrinsic subprograms
2161 --       (see package Sem_Intr for details). Note: the value of Convention for
2162 --       such an entity will be set to Convention_Intrinsic, but it is the
2163 --       setting of Is_Intrinsic_Subprogram, NOT simply having convention set
2164 --       to intrinsic, which causes intrinsic code to be generated.
2165
2166 --    Is_Itype (Flag91)
2167 --       Present in all entities, set for Itypes. If it is set, then the
2168 --       declaration for the type does not appear explicitly in the tree.
2169 --       Instead gigi will elaborate the type when it is first used.
2170 --       Has_Delayed_Freeze can be set for Itypes, and the meaning is that
2171 --       the first use (the one which causes the type to be defined) will
2172 --       be the freeze node. Note that an important restriction on Itypes
2173 --       is that the first use of such a type (the one that causes it to be
2174 --       defined) must be in the same scope as the type.
2175
2176 --    Is_Known_Non_Null (Flag37)
2177 --       Present in all entities. Relevant (and can be set True) only for
2178 --       objects of an access type. It is set if the object is currently
2179 --       known to have a non-null value (meaning that no access checks
2180 --       are needed). The indication can for example come from assignment
2181 --       of an access parameter or an allocator whose value is known non-null.
2182 --
2183 --       Note: this flag is set according to the sequential flow of the
2184 --       program, watching the current value of the variable. However,
2185 --       this processing can miss cases of changing the value of an aliased
2186 --       or constant object, so even if this flag is set, it should not
2187 --       be believed if the variable is aliased or volatile. It would
2188 --       be a little neater to avoid the flag being set in the first
2189 --       place in such cases, but that's trickier, and there is only
2190 --       one place that tests the value anyway.
2191 --
2192 --       The flag is dynamically set and reset as semantic analysis and
2193 --       expansion proceeds. Its value is meaningless once the tree is
2194 --       fully constructed, since it simply indicates the last state.
2195 --       Thus this flag has no meaning to the back end.
2196
2197 --    Is_Known_Null (Flag204)
2198 --       Present in all entities. Relevant (and can be set True) only for
2199 --       objects of an access type. It is set if the object is currently known
2200 --       to have a null value (meaning that a dereference will surely raise
2201 --       constraint error exception). The indication can come from an
2202 --       assignment or object declaration.
2203 --
2204 --       The comments above about sequential flow and aliased and volatile for
2205 --       the Is_Known_Non_Null flag apply equally to the Is_Known_Null flag.
2206
2207 --    Is_Known_Valid (Flag170)
2208 --       Present in all entities. Relevant for types (and subtype) and
2209 --       for objects (and enumeration literals) of a discrete type.
2210 --
2211 --       The purpose of this flag is to implement the requirement stated
2212 --       in (RM 13.9.1(9-11)) which require that the use of possibly invalid
2213 --       values may not cause programs to become erroneous. See the function
2214 --       Exp_Util.Expr_Known_Valid for further details. Note that the setting
2215 --       is conservative, in the sense that if the flag is set, it must be
2216 --       right. If the flag is not set, nothing is known about the validity.
2217 --
2218 --       For enumeration literals, the flag is always set, since clearly
2219 --       an enumeration literal represents a valid value. Range checks
2220 --       where necessary will ensure that this valid value is appropriate.
2221 --
2222 --       For objects, the flag indicates the state of knowledge about the
2223 --       current value of the object. This may be modified during expansion,
2224 --       and thus the final value is not relevant to gigi.
2225 --
2226 --       For types and subtypes, the flag is set if all possible bit patterns
2227 --       of length Object_Size (i.e. Esize of the type) represent valid values
2228 --       of the type. In general for such tytpes, all values are valid, the
2229 --       only exception being the case where an object of the type has an
2230 --       explicit size that is greater than Object_Size.
2231 --
2232 --       For non-discrete objects, the setting of the Is_Known_Valid flag is
2233 --       not defined, and is not relevant, since the considerations of the
2234 --       requirement in (RM 13.9.1(9-11)) do not apply.
2235 --
2236 --       The flag is dynamically set and reset as semantic analysis and
2237 --       expansion proceeds. Its value is meaningless once the tree is
2238 --       fully constructed, since it simply indicates the last state.
2239 --       Thus this flag has no meaning to the back end.
2240
2241 --    Is_Limited_Composite (Flag106)
2242 --       Present in all entities. True for composite types that have a
2243 --       limited component. Used to enforce the rule that operations on
2244 --       the composite type that depend on the full view of the component
2245 --       do not become visible until the immediate scope of the composite
2246 --       type itself (RM 7.3.1 (5)).
2247
2248 --    Is_Limited_Interface (Flag197)
2249 --       Present in record types and subtypes. True for interface types, if
2250 --       interface is declared limited, task, protected, or synchronized, or
2251 --       is derived from a limited interface.
2252
2253 --    Is_Limited_Record (Flag25)
2254 --       Present in all entities. Set to true for record (sub)types if the
2255 --       record is declared to be limited. Note that this flag is not set
2256 --       simply because some components of the record are limited.
2257
2258 --    Is_Limited_Type (synthesized)
2259 --       Applies to all entities. True if entity is a limited type (limited
2260 --       private type, limited interface type, task type, protected type,
2261 --       composite containing a limited component, or a subtype of any of
2262 --       these types).
2263
2264 --    Is_Machine_Code_Subprogram (Flag137)
2265 --       Present in subprogram entities. Set to indicate that the subprogram
2266 --       is a machine code subprogram (i.e. its body includes at least one
2267 --       code statement). Also indicates that all necessary semantic checks
2268 --       as required by RM 13.8(3) have been performed.
2269
2270 --    Is_Modular_Integer_Type (synthesized)
2271 --       Applies to all entities. True if entity is a modular integer type
2272
2273 --    Is_Non_Static_Subtype (Flag109)
2274 --       This flag is present in all type and subtype entities. It is set in
2275 --       some (but not all) cases in which a subtype is known to be non-static.
2276 --       Before this flag was added, the computation of whether a subtype was
2277 --       static was entirely synthesized, by looking at the bounds, and the
2278 --       immediate subtype parent. However, this method does not work for some
2279 --       Itypes that have no parent set (and the only way to find the immediate
2280 --       subtype parent is to go through the tree). For now, this flay is set
2281 --       conservatively, i.e. if it is set then for sure the subtype is non-
2282 --       static, but if it is not set, then the type may or may not be static.
2283 --       Thus the test for a static subtype is that this flag is clear AND
2284 --       that the bounds are static AND that the parent subtype (if available
2285 --       to be tested) is static. Eventually we should make sure this flag
2286 --       is always set right, at which point, these comments can be removed,
2287 --       and the tests for static subtypes greatly simplified.
2288
2289 --    Is_Null_Init_Proc (Flag178)
2290 --       Present in procedure entities. Set for generated init proc procedures
2291 --       (used to initialize composite types), if the code for the procedure
2292 --       is null (i.e. is a return and nothing else). Such null initialization
2293 --       procedures are generated in case some client is compiled using the
2294 --       Initialize_Scalars pragma, generating a call to this null procedure,
2295 --       but there is no need to call such procedures within a compilation
2296 --       unit, and this flag is used to suppress such calls.
2297
2298 --    Is_Numeric_Type (synthesized)
2299 --       Applies to all entities, true for all numeric types and subtypes
2300 --       (integer, fixed, float).
2301
2302 --    Is_Object (synthesized)
2303 --       Applies to all entities, true for entities representing objects,
2304 --       including generic formal parameters.
2305
2306 --    Is_Obsolescent (Flag153)
2307 --       Present in all entities. Set for any entity for which a valid pragma
2308 --       Obsolescent applies.
2309
2310 --    Is_Optional_Parameter (Flag134)
2311 --       Present in parameter entities. Set if the parameter is specified as
2312 --       optional by use of a First_Optional_Parameter argument to one of the
2313 --       extended Import pragmas. Can only be set for OpenVMS versions of GNAT.
2314
2315 --    Is_Ordinary_Fixed_Point_Type (synthesized)
2316 --       Applies to all entities, true for ordinary fixed point types
2317 --       and subtypes
2318
2319 --    Is_Overriding_Operation (Flag39)
2320 --       Present in subprograms. Set if the subprogram is a primitive
2321 --       operation of a derived type, that overrides an inherited operation.
2322
2323 --    Is_Package_Or_Generic_Package (synthesized)
2324 --       Applies to all entities. True for packages and generic packages.
2325 --       False for all other entities.
2326
2327 --    Is_Package_Body_Entity (Flag160)
2328 --       Present in all entities. Set for entities defined at the top level
2329 --       of a package body. Used to control externally generated names.
2330
2331 --    Is_Packed (Flag51) [implementation base type only]
2332 --       Present in all type entities. This flag is set only for record and
2333 --       array types which have a packed representation. There are three
2334 --       cases which cause packing:
2335 --
2336 --         1. Explicit use of pragma Pack for an array of package components
2337 --         2. Explicit use of pragma Pack to pack a record
2338 --         4. Setting Component_Size of an array to a bit-packable value
2339 --         3. Indexing an array with a non-standard enumeration type.
2340 --
2341 --       For records, Is_Packed is always set if Has_Pack_Pragma is set,
2342 --       and can also be set on its own in a derived type which inherited
2343 --       its packed status.
2344 --
2345 --       For arrays, Is_Packed is set if an array is bit packed (i.e. the
2346 --       component size is known at compile time and is 1-7, 9-15 or 17-31),
2347 --       or if the array has one or more index types that are enumeration
2348 --       types with non-standard representations (in GNAT, we store such
2349 --       arrays compactly, using the Pos of the enumeration type value).
2350 --
2351 --       As for the case of records, Is_Packed can be set on its own for a
2352 --       derived type, with the same dual before/after freeze meaning.
2353 --       Is_Packed can also be set as the result of an explicit component
2354 --       size clause that specifies an appropriate component size.
2355 --
2356 --       In the bit packed array case, Is_Bit_Packed_Array will be set in
2357 --       the bit packed case once the array type is frozen.
2358 --
2359 --       Before an array type is frozen, Is_Packed will always be set if
2360 --       Has_Pack_Pragma is set. Before the freeze point, it is not possible
2361 --       to know the component size, since the component type is not frozen
2362 --       until the array type is frozen. Thus Is_Packed for an array type
2363 --       before it is frozen means that packed is required. Then if it turns
2364 --       out that the component size is not suitable for bit packing, the
2365 --       Is_Packed flag gets turned off.
2366
2367 --    Is_Packed_Array_Type (Flag138)
2368 --       Present in all entities. This flag is set on the entity for the type
2369 --       used to implement a packed array (either a modular type, or a subtype
2370 --       of Packed_Bytes{1,2,4} as appropriate). The flag is set if and only
2371 --       if the type appears in the Packed_Array_Type field of some other type
2372 --       entity. It is used by Gigi to activate the special processing for such
2373 --       types (unchecked conversions that would not otherwise be allowed are
2374 --       allowed for such types). If the Is_Packed_Array_Type flag is set in
2375 --       an entity, then the Original_Array_Type field of this entity points
2376 --       to the original array type for which this is the packed array type.
2377
2378 --    Is_Potentially_Use_Visible (Flag9)
2379 --       Present in all entities. Set if entity is potentially use visible,
2380 --       i.e. it is defined in a package that appears in a currently active
2381 --       use clause (RM 8.4(8)). Note that potentially use visible entities
2382 --       are not necessarily use visible (RM 8.4(9-11)).
2383
2384 --    Is_Preelaborated (Flag59)
2385 --       Present in all entities, set in E_Package and E_Generic_Package
2386 --       entities to which a pragma Preelaborate is applied, and also in
2387 --       all entities within such packages. Note that the fact that this
2388 --       flag is set does not necesarily mean that no elaboration code is
2389 --       generated for the package.
2390
2391 --    Is_Primitive_Wrapper (Flag195)
2392 --       Present in E_Procedures. Primitive wrappers are Expander-generated
2393 --       procedures that wrap entries of protected or task types implementing
2394 --       a limited interface.
2395
2396 --    Is_Private_Composite (Flag107)
2397 --       Present in composite types that have a private component. Used to
2398 --       enforce the rule that operations on the composite type that depend
2399 --       on the full view of the component, do not become visible until the
2400 --       immediate scope of the composite type itself (7.3.1 (5)). Both this
2401 --       flag and Is_Limited_Composite are needed.
2402
2403 --    Is_Private_Descendant (Flag53)
2404 --       Present in entities that can represent library units (packages,
2405 --       functions, procedures). Set if the library unit is itself a private
2406 --       child unit, or if it is the descendent of a private child unit.
2407
2408 --    Is_Private_Type (synthesized)
2409 --       Applies to all entities, true for private types and subtypes,
2410 --       as well as for record with private types as subtypes
2411
2412 --    Is_Protected_Interface (Flag198)
2413 --       Present in types that are interfaces. True if interface is declared
2414 --       protected, or is derived from protected interfaces.
2415
2416 --    Is_Protected_Type (synthesized)
2417 --       Applies to all entities, true for protected types and subtypes
2418
2419 --    Is_Public (Flag10)
2420 --       Present in all entities. Set to indicate that an entity defined in
2421 --       one compilation unit can be referenced from other compilation units.
2422 --       If this reference causes a reference in the generated variable, for
2423 --       example in the case of a variable name, then Gigi will generate an
2424 --       appropriate external name for use by the linker.
2425
2426 --    Is_Protected_Private (synthesized)
2427 --       Applies to a record component. Returns true if this component
2428 --       is used to represent a private declaration of a protected type.
2429
2430 --    Is_Protected_Record_Type (synthesized)
2431 --       Applies to all entities, true if Is_Concurrent_Record_Type
2432 --       Corresponding_Concurrent_Type is a protected type.
2433
2434 --    Is_Pure (Flag44)
2435 --       Present in all entities. Set in all entities of a unit to which a
2436 --       pragma Pure is applied, and also set for the entity of the unit
2437 --       itself. In addition, this flag may be set for any other functions
2438 --       or procedures that are known to be side effect free, so in the case
2439 --       of subprograms, the Is_Pure flag may be used by the optimizer to
2440 --       imply that it can assume freedom from side effects (other than those
2441 --       resulting from assignment to out parameters, or to objects designated
2442 --       by access parameters).
2443
2444 --    Is_Pure_Unit_Access_Type (Flag189)
2445 --       Present in access type and subtype entities. Set if the type or
2446 --       subtype appears in a pure unit. Used to give an error message at
2447 --       freeze time if the access type has a storage pool.
2448
2449 --    Is_Real_Type (synthesized)
2450 --       Applies to all entities, true for real types and subtypes
2451
2452 --    Is_Record_Type (synthesized)
2453 --       Applies to all entities, true for record types and subtypes,
2454 --       includes class-wide types and subtypes (which are also records)
2455
2456 --    Is_Remote_Call_Interface (Flag62)
2457 --       Present in all entities, set in E_Package and E_Generic_Package
2458 --       entities to which a pragma Remote_Call_Interace is applied, and
2459 --       also in all entities within such packages.
2460
2461 --    Is_Remote_Types (Flag61)
2462 --       Present in all entities, set in E_Package and E_Generic_Package
2463 --       entities to which a pragma Remote_Types is applied, and also in
2464 --       all entities within such packages.
2465
2466 --    Is_Renaming_Of_Object (Flag112)
2467 --       Present in all entities, set only for a variable or constant for
2468 --       which the Renamed_Object field is non-empty and for which the
2469 --       renaming is handled by the front end, by macro substitution of
2470 --       a copy of the (evaluated) name tree whereever the variable is used.
2471
2472 --    Is_Inherently_Limited_Type (synthesized)
2473 --       Applies to all type entities. True if the type is "inherently"
2474 --       limited (i.e. cannot become nonlimited). From the Ada 2005
2475 --       RM-7.5(8.1/2), "a type with a part that is of a task, protected, or
2476 --       explicitly limited record type". These are the types that are defined
2477 --       as return-by-reference types in Ada 95 (see RM95-6.5(11-16)). In Ada
2478 --       2005, these are the types that require build-in-place for function
2479 --       calls. Note that build-in-place is allowed for other types, too.
2480
2481 --    Is_Return_Object (Flag209)
2482 --       Applies to all object entities. True if the object is the return
2483 --       object of an extended_return_statement; False otherwise.
2484
2485 --    Is_Scalar_Type (synthesized)
2486 --       Applies to all entities, true for scalar types and subtypes
2487
2488 --    Is_Shared_Passive (Flag60)
2489 --       Present in all entities, set in E_Package and E_Generic_Package
2490 --       entities to which a pragma Shared_Passive is applied, and also in
2491 --       all entities within such packages.
2492
2493 --    Is_Statically_Allocated (Flag28)
2494 --       Present in all entities. This can only be set True for exception,
2495 --       variable, constant, and type/subtype entities. If the flag is set,
2496 --       then the variable or constant must be allocated statically rather
2497 --       than on the local stack frame. For exceptions, the meaning is that
2498 --       the exception data should be allocated statically (and indeed this
2499 --       flag is always set for exceptions, since exceptions do not have
2500 --       local scope). For a type, the meaning is that the type must be
2501 --       elaborated at the global level rather than locally. No type marked
2502 --       with this flag may depend on a local variable, or on any other type
2503 --       which does not also have this flag set to True. For a variable or
2504 --       or constant, if the flag is set, then the type of the object must
2505 --       either be declared at the library level, or it must also have the
2506 --       flag set (since to allocate the oject statically, its type must
2507 --       also be elaborated globally).
2508
2509 --    Is_Subprogram (synthesized)
2510 --       Applies to all entities, true for bodies of functions, procedures
2511 --       and operators.
2512
2513 --    Is_String_Type (synthesized)
2514 --       Applies to all type entities. Determines if the given type is a
2515 --       string type, i.e. it is directly a string type or string subtype,
2516 --       or a string slice type, or an array type with one dimension and a
2517 --       component type that is a character type.
2518
2519 --    Is_Synchronized_Interface (Flag199)
2520 --       Present in types that are interfaces. True if interface is declared
2521 --       synchronized, task, or protected, or is derived from a synchronized
2522 --       interface.
2523
2524 --    Is_Tag (Flag78)
2525 --       Present in E_Component. For regular tagged type this flag is set on
2526 --       the tag component (whose name is Name_uTag) and for CPP_Class tagged
2527 --       types, this flag marks the pointer to the main vtable (i.e. the one
2528 --       to be extended by derivation)
2529
2530 --    Is_Tagged_Type (Flag55)
2531 --       Present in all entities, true for an entity for a tagged type.
2532
2533 --    Is_Task_Interface (Flag200)
2534 --       Present in types that are interfaces. True is interface is declared
2535 --        as such, or if it is derived from task interfaces.
2536
2537 --    Is_Task_Record_Type (synthesized)
2538 --       Applies to all entities, true if Is_Concurrent_Record_Type
2539 --       Corresponding_Concurrent_Type is a task type.
2540
2541 --    Is_Task_Type (synthesized)
2542 --       Applies to all entities, true for task types and subtypes
2543
2544 --    Is_True_Constant (Flag163)
2545 --       This flag is set in constants and variables which have an initial
2546 --       value specified but which are never assigned, partially or in the
2547 --       whole. For variables, it means that the variable was initialized
2548 --       but never modified, and hence can be treated as a constant by the
2549 --       code generator. For a constant, it means that the constant was not
2550 --       modified by generated code (e.g. to set a discriminant in an init
2551 --       proc). Assignments by user or generated code will reset this flag.
2552 --
2553 --       Note: there is one situation in which the back end does not permit
2554 --       this flag to be set, even if no assignments are generated. This is
2555 --       the case of an object of a record or array type which is initialized
2556 --       with an aggregate, and is itself used as the expression initializing
2557 --       an atomic object, or the right hand side of an assignment to an atomic
2558 --       object. In this case the object must not have Is_True_Constant set,
2559 --       even though no assignments are generated (the reason for this is that
2560 --       the back end must not optimize the object away, because that would
2561 --       violate the restriction on aggregates in these positions).
2562
2563 --    Is_Type (synthesized)
2564 --       Applies to all entities, true for a type entity
2565
2566 --    Is_Unchecked_Union (Flag117) [implementation base type only]
2567 --       Present in all entities. Set only in record types to which the
2568 --       pragma Unchecked_Union has been validly applied.
2569
2570 --    Is_Unsigned_Type (Flag144)
2571 --       Present in all types, but can be set only for discrete and fixed-point
2572 --       type and subtype entities. This flag is only valid if the entity is
2573 --       frozen. If set it indicates that the representation is known to be
2574 --       unsigned (i.e. that no negative values appear in the range). This is
2575 --       normally just a reflection of the lower bound of the subtype or base
2576 --       type, but there is one case in which the setting is non-obvious,
2577 --       namely the case of an unsigned subtype of a signed type from which
2578 --       a further subtype is obtained using variable bounds. This further
2579 --       subtype is still unsigned, but this cannot be determined by looking
2580 --       at its bounds or the bounds of the corresponding base type.
2581
2582 --    Is_Valued_Procedure (Flag127)
2583 --       Present in procedure entities. Set if an Import_Valued_Procedure
2584 --       or Export_Valued_Procedure pragma applies to the procedure entity.
2585
2586 --    Is_Visible_Child_Unit (Flag116)
2587 --       Present in compilation units that are child units. Once compiled,
2588 --       child units remain chained to the entities in the parent unit, and
2589 --       a separate flag must be used to indicate whether the names are
2590 --       visible by selected notation, or not.
2591
2592 --    Is_Visible_Formal (Flag206)
2593 --       Present in all entities. Set for instances of the formals of a formal
2594 --       package. Indicates that the entity must be made visible in the body
2595 --       of the instance, to reproduce the visibility of the generic. This
2596 --       simplifies visibility settings in instance bodies.
2597 --       ??? confusion in abovecomments between being present and being set
2598
2599 --    Is_VMS_Exception (Flag133)
2600 --       Present in all entities. Set only for exception entities where the
2601 --       exception was specified in an Import_Exception or Export_Exception
2602 --       pragma with the VMS option for Form. See description of these pragmas
2603 --       for details. This flag can only be set in OpenVMS versions of GNAT.
2604
2605 --    Is_Volatile (Flag16)
2606 --       Present in all type entities, and also in constants, components and
2607 --       variables. Set if a pragma Volatile applies to the entity. Also set
2608 --       if pragma Shared or pragma Atomic applies to entity. In the case of
2609 --       private or incomplete types, this flag is set in both the private
2610 --       and full view. The flag is not set reliably on private subtypes,
2611 --       and is always retrieved from the base type (but this is not a base-
2612 --       type-only attribute because it applies to other entities). Note that
2613 --       the back end should use Treat_As_Volatile, rather than Is_Volatile
2614 --       to indicate code generation requirements for volatile variables.
2615 --       Similarly, any front end test which is concerned with suppressing
2616 --       optimizations on volatile objects should test Treat_As_Volatile
2617 --       rather than testing this flag.
2618
2619 --    Is_Wrapper_Package (synthesized)
2620 --       Present in package entities. Indicates that the package has been
2621 --       created as a wrapper for a subprogram instantiation.
2622
2623 --    Itype_Printed (Flag202)
2624 --       Set in Itypes if the Itype has been printed by Sprint. This is used to
2625 --       avoid printing an Itype more than once.
2626
2627 --    Kill_Elaboration_Checks (Flag32)
2628 --       Present in all entities. Set by the expander to kill elaboration
2629 --       checks which are known not to be needed. Equivalent in effect to
2630 --       the use of pragma Supress (Elaboration_Checks) for that entity
2631 --       except that the effect is permanent and cannot be undone by a
2632 --       subsequent pragma Unsuppress.
2633
2634 --    Kill_Range_Checks (Flag33)
2635 --       Present in all entities. Equivalent in effect to the use of pragma
2636 --       Supress (Range_Checks) for that entity except that the result is
2637 --       permanent and cannot be undone by a subsequent pragma Unsuppress.
2638 --       This is currently only used in one odd situation in Sem_Ch3 for
2639 --       record types, and it would be good to get rid of it???
2640
2641 --    Kill_Tag_Checks (Flag34)
2642 --       Present in all entities. Set by the expander to kill elaboration
2643 --       checks which are known not to be needed. Equivalent in effect to
2644 --       the use of pragma Supress (Tag_Checks) for that entity except
2645 --       that the result is permanent and cannot be undone by a subsequent
2646 --       pragma Unsuppress.
2647
2648 --    Last_Assignment (Node20)
2649 --       Present in entities for variables. Set for a local variable to point
2650 --       to the left side of an assignment statement assigning a value to the
2651 --       variable. Cleared if the value of the variable is referenced. Used to
2652 --       warn about dubious assignment statements whose value is not used.
2653
2654 --    Last_Entity (Node20)
2655 --       Present in all entities which act as scopes to which a list of
2656 --       associated entities is attached (blocks, class subtypes and types,
2657 --       entries, functions, loops, packages, procedures, protected objects,
2658 --       record types and subtypes, private types, task types and subtypes).
2659 --       Points to a the last entry in the list of associated entities chained
2660 --       through the Next_Entity field. Empty if no entities are chained.
2661
2662 --    Limited_View (Node23)
2663 --       Present in non-generic package entities that are not instances. Bona
2664 --       fide package with the limited-view list through the first_entity and
2665 --       first_private attributes. The elements of this list are the shadow
2666 --       entities created for the types and local packages that are declared
2667 --       in a package appearing in a limited_with clause (Ada 2005: AI-50217)
2668
2669 --    Lit_Indexes (Node15)
2670 --       Present in enumeration types and subtypes. Non-empty only for the
2671 --       case of an enumeration root type, where it contains the entity for
2672 --       the generated indexes entity. See unit Exp_Imgv for full details of
2673 --       the nature and use of this entity for implkementing the Image and
2674 --       Value attributes for the enumeration type in question.
2675 --
2676 --    Lit_Strings (Node16)
2677 --       Present in enumeration types and subtypes. Non-empty only for the
2678 --       case of an enumeration root type, where it contains the entity for
2679 --       the literals string entity. See unit Exp_Imgv for full details of
2680 --       the nature and use of this entity for implementing the Image and
2681 --       Value attributes for the enumeration type in question.
2682
2683 --    Low_Bound_Known (Flag205)
2684 --       Present in all entities. Currently this can only be set True for
2685 --       formal parameter entries of a standard unconstrained one-dimensional
2686 --       array or string type, where the lower bound of the index type is zero
2687 --       or one. Indicates that the low bound is known to be equal to the lower
2688 --       bound of the index type (e.g. 1 for String, since the index type is
2689 --       Positive). This flag can only be set by a pragma Assert which
2690 --       specifies this. If this flag is set, warnings about assuming the index
2691 --       low bound to be zero or one are suppressed.
2692
2693 --    Machine_Radix_10 (Flag84)
2694 --       Present in decimal types and subtypes, set if the Machine_Radix
2695 --       is 10, as the result of the specification of a machine radix
2696 --       representation clause. Note that it is possible for this flag
2697 --       to be set without having Has_Machine_Radix_Clause True. This
2698 --       happens when a type is derived from a type with a clause present.
2699
2700 --    Master_Id (Node17)
2701 --       Present in access types and subtypes. Empty unless Has_Task is
2702 --       set for the designated type, in which case it points to the entity
2703 --       for the Master_Id for the access type master. Also set for access-to-
2704 --       limited-class-wide types whose root may be extended with task
2705 --       components, and for access-to-limited-interfaces because they can be
2706 --       used to reference tasks implementing such interface.
2707
2708 --    Materialize_Entity (Flag168)
2709 --       Present in all entities. Set only for constant or renamed entities
2710 --       which should be materialized for debugging purposes. In the case of
2711 --       a constant, a memory location should be allocated containing the
2712 --       value. In the case of a renaming, a memory location containing the
2713 --       renamed address should be allocated.
2714
2715 --    Mechanism (Uint8) (returned as Mechanism_Type)
2716 --       Present in functions and non-generic formal parameters. Indicates
2717 --       the mechanism to be used for the function return or for the formal
2718 --       parameter. See separate section on passing mechanisms. This field
2719 --       is also set (to the default value of zero) in a subprogram body
2720 --       entity but not used in this context.
2721
2722 --    Modulus (Uint17) [base type only]
2723 --       Present in modular types. Contains the modulus. For the binary
2724 --       case, this will be a power of 2, but if Non_Binary_Modulus is
2725 --       set, then it will not be a power of 2.
2726
2727 --    Must_Be_On_Byte_Boundary (Flag183)
2728 --       Present in entities for types and subtypes. Set if objects of
2729 --       the type must always be allocated on a byte boundary (more
2730 --       accurately a storage unit boundary). The front end checks that
2731 --       component clauses respect this rule, and the back end ensures
2732 --       that record packing does not violate this rule. Currently the
2733 --       flag is set only for packed arrays longer than 64 bits where
2734 --       the component size is not a power of 2.
2735
2736 --    Must_Have_Preelab_Init (Flag208)
2737 --       Present in entities for types and subtypes. Set in the full type of a
2738 --       private type or subtype if a pragma Has_Preelaborable_Initialization
2739 --       is present for the private type. Used to check that the full type has
2740 --       preelaborable initialization at freeze time (this has to be deferred
2741 --       to the freeze point because of the rule about overriding Initialize).
2742
2743 --    Needs_Debug_Info (Flag147)
2744 --       Present in all entities. Set if the entity requires debugging
2745 --       information to be generated. This is true of all entities that
2746 --       have Comes_From_Source set, and also transitively for entities
2747 --       associated with such components (e.g. their types). It is true
2748 --       for all entities in Debug_Generated_Code mode (-gnatD switch).
2749 --       This is the flag that the back end should check to determine
2750 --       whether or not to generate debugging information for an entity.
2751
2752 --    Needs_No_Actuals (Flag22)
2753 --       Present in callable entities (subprograms, entries, access to
2754 --       subprograms)  which can be called without actuals because all of
2755 --       their formals (if any) have default values. This flag simplifies the
2756 --       resolution of the syntactic ambiguity involving a call to these
2757 --       entities when the return type is an array type, and a call can be
2758 --       interpreted as an indexing of the result of the call. It is also
2759 --       used to resolve various cases of entry calls.
2760
2761 --    Never_Set_In_Source (Flag115)
2762 --       Present in all entities, but relevant only for variables and
2763 --       parameters. This flag is set if the object is never assigned
2764 --       a value in user source code, either by assignment or by the
2765 --       use of an initial value, or by some other means.
2766
2767 --       This flag is only for the purposes of issuing warnings, it must not
2768 --       be used by the code generator to indicate that the variable is in
2769 --       fact a constant, since some assignments in generated code do not
2770 --       count (for example, the call to an init proc to assign some but
2771 --       not all of the fields in a partially initialized record). The code
2772 --       generator should instead use the flag Is_True_Constant.
2773 --
2774 --       For the purposes of this warning, the default assignment of
2775 --       access variables to null is not considered the assignment of
2776 --       of a value (so the warning can be given for code that relies
2777 --       on this initial null value, when no other value is ever set).
2778 --
2779 --       In variables and out parameters, if this flag is set after full
2780 --       processing of the corresponding declarative unit, it indicates that
2781 --       the variable or parameter was never set, and a warning message can
2782 --       be issued.
2783 --
2784 --       Note: this flag is initially set, and then cleared on encountering
2785 --       any construct that might conceivably legitimately set the value.
2786 --       Thus during the analysis of a declarative region and its associated
2787 --       statement sequence, the meaning of the flag is "not set yet", and
2788 --       once this analysis is complete the flag means "never assigned".
2789
2790 --       Note: for variables appearing in package declarations, this flag
2791 --       is never set. That is because there is no way to tell if some
2792 --       client modifies the variable (or in the case of variables in the
2793 --       private part, if some child unit modifies the variables).
2794
2795 --       Note: in the case of renamed objects, the flag must be set in the
2796 --       ultimate renamed object. Clients noting a possible modification
2797 --       should use the Note_Possible_Modification procedure in Sem_Util
2798 --       rather than Set_Never_Set_In_Source precisely to deal properly with
2799 --       the renaming possibility.
2800
2801 --    Next_Component (synthesized)
2802 --       Applies to record components. Returns the next component by following
2803 --       the chain of declared entities until one is found which corresponds to
2804 --       a component (Ekind is E_Component). Any internal types generated from
2805 --       the subtype indications of the record components are skipped. Returns
2806 --       Empty if no more components.
2807
2808 --    Next_Component_Or_Discriminant (synthesized)
2809 --      Similar to Next_Component, but includes components and discriminants
2810 --      so the input can have either E_Component or E_Discriminant, and the
2811 --      same is true for the result. Returns Empty if no more components or
2812 --      discriminants in the record.
2813
2814 --    Next_Discriminant (synthesized)
2815 --       Applies to discriminants returned by First/Next_Discriminant.
2816 --       Returns the next language-defined (ie: perhaps non-girder)
2817 --       discriminant by following the chain of declared entities as long as
2818 --       the kind of the entity corresponds to a discriminant. Note that the
2819 --       discriminants might be the only components of the record.
2820 --       Returns Empty if there are no more.
2821
2822 --    Next_Entity (Node2)
2823 --       Present in all entities. The entities of a scope are chained, with
2824 --       the head of the list being in the First_Entity field of the scope
2825 --       entity. All entities use the Next_Entity field as a forward pointer
2826 --       for this list, with Empty indicating the end of the list. Since this
2827 --       field is in the base part of the entity, the access routines for this
2828 --       field are in Sinfo.
2829
2830 --    Next_Formal (synthesized)
2831 --       Applies to the entity for a formal parameter. Returns the next
2832 --       formal parameter of the subprogram or subprogram type. Returns
2833 --       Empty if there are no more formals.
2834
2835 --    Next_Formal_With_Extras (synthesized)
2836 --       Applies to the entity for a formal parameter. Returns the next
2837 --       formal parameter of the subprogram or subprogram type. Returns
2838 --       Empty if there are no more formals. The list returned includes
2839 --       all the extra formals (see description of Extra_Formal field)
2840
2841 --    Next_Girder_Discriminant (synthesized)
2842 --       Applies to discriminants. Set only for a discriminant returned by
2843 --       a call to First/Next_Girder_Discriminant. Returns next girder
2844 --       discriminant, if there are more (see complete description in
2845 --       First_Girder_Discriminant), or Empty if there are no more.
2846
2847 --    Next_Index (synthesized)
2848 --       Applies to array types and subtypes and to string types and
2849 --       subtypes. Yields the next index. The first index is obtained by
2850 --       using the First_Index attribute, and then subsequent indexes are
2851 --       obtained by applying Next_Index to the previous index. Empty is
2852 --       returned to indicate that there are no more indexes. Note that
2853 --       unlike most attributes in this package, Next_Index applies to
2854 --       nodes for the indexes, not to entities.
2855
2856 --    Next_Inlined_Subprogram (Node12)
2857 --       Present in subprograms. Used to chain inlined subprograms used in
2858 --       the current compilation, in the order in which they must be compiled
2859 --       by Gigi to insure that all inlinings are performed.
2860
2861 --    Next_Literal (synthesized)
2862 --       Applies to enumeration literals, returns the next literal, or
2863 --       Empty if applied to the last literal. This is actually a synonym
2864 --       for Next, but its use is preferred in this context.
2865
2866 --    Next_Tag_Component (synthesized)
2867 --       Applies to components of tagged record types. Given a _Tag field
2868 --       of a record, returns the next _Tag field in this record.
2869
2870 --    Non_Binary_Modulus (Flag58) [base type only]
2871 --       Present in modular integer types. Set if the modulus for the type
2872 --       is other than a power of 2.
2873
2874 --    Non_Limited_View (Node17)
2875 --       Present in incomplete types that are the shadow entities created
2876 --       when analyzing a limited_with_clause (Ada 2005: AI-50217). Points to
2877 --       the defining entity in the original declaration.
2878
2879 --    Nonzero_Is_True (Flag162) [base type only]
2880 --       Present in enumeration types. True if any non-zero value is to be
2881 --       interpreted as true. Currently this is set true for derived Boolean
2882 --       types which have a convention of C, C++ or Fortran.
2883
2884 --    No_Pool_Assigned (Flag131) [root type only]
2885 --       Present in access types. Set if a storage size clause applies to
2886 --       the variable with a compile time known value of zero. This flag is
2887 --       used to generate warnings if any attempt is made to allocate or free
2888 --       an instance of such an access type. This is set only in the root
2889 --       type, since derived types must have the same pool.
2890
2891 --    No_Return (Flag113)
2892 --       Present in all entities. Always false except in the case of procedures
2893 --       and generic procedures for which a pragma No_Return is given.
2894
2895 --    Normalized_First_Bit (Uint8)
2896 --       Present in components and discriminants. Indicates the normalized
2897 --       value of First_Bit for the component, i.e. the offset within the
2898 --       lowest addressed storage unit containing part or all of the field.
2899 --       Set to No_Uint if no first bit position is assigned yet.
2900
2901 --    Normalized_Position (Uint14)
2902 --       Present in components and discriminants. Indicates the normalized
2903 --       value of Position for the component, i.e. the offset in storage
2904 --       units from the start of the record to the lowest addressed storage
2905 --       unit containing part or all of the field.
2906
2907 --    Normalized_Position_Max (Uint10)
2908 --       Present in components and discriminants. For almost all cases, this
2909 --       is the same as Normalized_Position. The one exception is for the case
2910 --       of a discriminated record containing one or more arrays whose length
2911 --       depends on discriminants. In this case, the Normalized_Position_Max
2912 --       field represents the maximum possible value of Normalized_Position
2913 --       assuming min/max values for discriminant subscripts in all fields.
2914 --       This is used by Layout in front end layout mode to properly computed
2915 --       the maximum size such records (needed for allocation purposes when
2916 --       there are default discriminants, and also for the 'Size value).
2917
2918 --    No_Strict_Aliasing (Flag136) [base type only]
2919 --       Present in access types. Set to direct the back end to avoid any
2920 --       optimizations based on an assumption about the aliasing status of
2921 --       objects designated by the access type. For the case of the gcc
2922 --       back end, the effect is as though all references to objects of
2923 --       the type were compiled with -fno-strict-aliasing. This flag is
2924 --       set if an unchecked conversion with the access type as a target
2925 --       type occurs in the same source unit as the declaration of the
2926 --       access type, or if an explicit pragma No_Strict_Aliasing applies.
2927
2928 --    Number_Dimensions (synthesized)
2929 --       Applies to array types and subtypes. Returns the number of dimensions
2930 --       of the array type or subtype as a value of type Pos.
2931
2932 --    Number_Discriminants (synthesized)
2933 --       Applies to all types with discriminants. Yields the number of
2934 --       discriminants as a value of type Pos.
2935
2936 --    Number_Entries (synthesized)
2937 --       Applies to concurrent types. Returns the number of entries that are
2938 --       declared within the task or protected definition for the type.
2939
2940 --    Number_Formals (synthesized)
2941 --       Applies to subprograms and subprogram types. Yields the number of
2942 --       formals as a value of type Pos.
2943
2944 --    Obsolescent_Warning (Node24)
2945 --       Present in all entities. Set non-empty only if a pragma Obsolescent
2946 --       applying to the entity had a string argument, in which case it records
2947 --       the contents of the corresponding string literal node. This field is
2948 --       only accessed if the flag Is_Obsolescent is set.
2949
2950 --    Original_Array_Type (Node21)
2951 --       Present in modular types and array types and subtypes. Set only
2952 --       if the Is_Packed_Array_Type flag is set, indicating that the type
2953 --       is the implementation type for a packed array, and in this case it
2954 --       points to the original array type for which this is the packed
2955 --       array implementation type.
2956
2957 --    Object_Ref (Node17)
2958 --       Present in protected bodies. This is an implicit prival for the
2959 --       Protection object associated with a protected object. See Prival
2960 --       for further details on the use of privals.
2961
2962 --    Original_Record_Component (Node22)
2963 --       Present in components, including discriminants. The usage depends
2964 --       on whether the record is a base type and whether it is tagged.
2965 --
2966 --       In base tagged types:
2967 --         When the component is inherited in a record extension, it points
2968 --         to the original component (the entity of the ancestor component
2969 --         which is not itself inherited) otherwise it points to itself.
2970 --         Gigi uses this attribute to implement the automatic dereference in
2971 --         the extension and to apply the transformation:
2972 --
2973 --            Rec_Ext.Comp -> Rec_Ext.Parent. ... .Parent.Comp
2974 --
2975 --       In base non-tagged types:
2976 --         Always points to itself except for non-girder discriminants, where
2977 --         it points to the girder discriminant it renames.
2978 --
2979 --       In subtypes (tagged and untagged):
2980 --         Points to the component in the base type.
2981
2982 --    Overridden_Operation (Node26)
2983 --       Present in subprograms. For overriding operations, points to the
2984 --       user-defined parent subprogram that is being overridden.
2985
2986 --    Package_Instantiation (Node26)
2987 --       Present in packages and generic packages. When present, this field
2988 --       references an N_Package_Instantiation node associated with an
2989 --       instantiated package. In the case where the referenced node has
2990 --       been rewritten to an N_Package_Specification, the instantiation
2991 --       node is available from the Original_Node field of the package spec
2992 --       node. This is currently not guaranteed to be set in all cases, but
2993 --       when set, the field is used in Get_Package_Instantiation_Node as
2994 --       one of the means of obtaining the instantiation node. Eventually
2995 --       it should be set in all cases, including package entities associated
2996 --       with formal packages. ???
2997
2998 --    Packed_Array_Type (Node23)
2999 --       Present in array types and subtypes, including the string literal
3000 --       subtype case, if the corresponding type is packed (either bit packed
3001 --       or packed to eliminate holes in non-contiguous enumeration type
3002 --       index types). References the type used to represent the packed array,
3003 --       which is either a modular type for short static arrays, or an
3004 --       array of System.Unsigned. Note that in some situations (internal
3005 --       types, and references to fields of variant records), it is not
3006 --       always possible to construct this type in advance of its use. If
3007 --       Packed_Array_Type is empty, then the necessary type is declared
3008 --       on the fly for each reference to the array.
3009
3010 --    Parameter_Mode (synthesized)
3011 --       Applies to formal parameter entities. This is a synonym for Ekind,
3012 --       used when obtaining the formal kind of a formal parameter (the result
3013 --       is one of E_[In/Out/In_Out]_Paramter)
3014
3015 --    Parent_Subtype (Node19)
3016 --       Present in E_Record_Type. Points to the subtype to use for a
3017 --       field that references the parent record.
3018
3019 --    Primitive_Operations (Elist15)
3020 --       Present in tagged record types and subtypes and in tagged private
3021 --       types. Points to an element list of entities for primitive operations
3022 --       for the tagged type. Not present (and not set) in untagged types (it
3023 --       is an error to reference the primitive operations field of a type
3024 --       that is not tagged).
3025
3026 --    Private_Dependents (Elist18)
3027 --       Present in private (sub)types. Records the subtypes of the
3028 --       private type, derivations from it, and records and arrays
3029 --       with components dependent on the type.
3030 --
3031 --       The subtypes are traversed when installing and deinstalling
3032 --       (the full view of) a private type in order to ensure correct
3033 --       view of the subtypes.
3034 --
3035 --       Used in similar fashion for incomplete types: holds list of subtypes
3036 --       of these incomplete types that have discriminant constraints. The
3037 --       full views of these subtypes are constructed when the full view of
3038 --       the incomplete type is processed.
3039
3040 --       In addition, if the incomplete type is the designated type in an
3041 --       access definition for an access parameter, the operation may be
3042 --       a dispatching primitive operation, which is only known when the full
3043 --       declaration of the type is seen. Subprograms that have such an
3044 --       access parameter are also placed in the list of private_dependents.
3045
3046 --    Prival (Node17)
3047 --       Present in components. Used for representing private declarations
3048 --       of protected objects (private formal: by analogy to Discriminal_Link).
3049 --       Empty unless the synthesized Is_Protected_Private attribute is
3050 --       true. The entity used as a formal parameter that corresponds to
3051 --       the to the private declaration in protected operations. See
3052 --       "Private data in protected objects" for details.
3053
3054 --    Privals_Chain (Elist23)
3055 --       Present in protected operations (subprograms and entries). Links
3056 --       all occurrences of the Privals in the body of the operation, in
3057 --       order to patch their types at the end of their expansion. See
3058 --       "Private data in protected objects" for details.
3059
3060 --    Private_View (Node22)
3061 --       For each private type, three entities are allocated, the private view,
3062 --       the full view, and the shadow entity. The shadow entity contains a
3063 --       copy of the private view and is used for restoring the proper private
3064 --       view after a region in which the full view is visible (and is copied
3065 --       into the entity normally used for the private view during this period
3066 --       of visibility). The Private_View field is self-referential when the
3067 --       private view lives in its normal entity, but in the copy that is made
3068 --       in the shadow entity, it points to the proper location in which to
3069 --       restore the private view saved in the shadow.
3070
3071 --    Protected_Formal (Node22)
3072 --       Present in formal parameters (in, in out and out parameters). Used
3073 --       only for formals of protected operations. References corresponding
3074 --       formal parameter in the unprotected version of the operation that
3075 --       is created during expansion.
3076
3077 --    Protected_Body_Subprogram (Node11)
3078 --       Present in protected operations. References the entity for the
3079 --       subprogram which implements the body of the operation.
3080
3081 --    Protected_Operation (Node23)
3082 --       Present in components. Used for representing private declarations
3083 --       of protected objects. Empty unless the synthesized attribute
3084 --       Is_Protected_Private is True. This is the entity corresponding
3085 --       to the body of the protected operation currently being analyzed,
3086 --       and which will eventually use the current Prival associated with
3087 --       this component to refer to the renaming of a private object
3088 --       component. As soon as the expander generates this renaming, this
3089 --       attribute is changed to refer to the next protected subprogram.
3090 --       See "Private data in protected objects" for details.
3091
3092 --    Reachable (Flag49)
3093 --       Present in labels. The flag is set over the range of statements in
3094 --       which a goto to that label is legal.
3095
3096 --    Referenced (Flag156)
3097 --       Present in all entities, set if the entity is referenced, except
3098 --       for the case of an appearence of a simple variable that is not a
3099 --       renaming, as the left side of an assignment in which case the flag
3100 --       Referenced_As_LHS is set instead.
3101
3102 --    Referenced_As_LHS (Flag36): This flag is set instead of
3103 --       Referenced if a simple variable that is not a renaming appears as
3104 --       the left side of an assignment. The reason we distinguish this kind
3105 --       of reference is that we have a separate warning for variables that
3106 --       are only assigned and never read.
3107
3108 --    Referenced_Object (Node10)
3109 --       Present in all type entities. Set non-Empty only for type entities
3110 --       constructed for unconstrained objects, or objects that depend on
3111 --       discriminants. Points to the expression from which the actual
3112 --       subtype of the object can be evaluated.
3113
3114 --    Register_Exception_Call (Node20)
3115 --       Present in exception entities. When an exception is declared,
3116 --       a call is expanded to Register_Exception. This field points to
3117 --       the expanded N_Procedure_Call_Statement node for this call. It
3118 --       is used for Import/Export_Exception processing to modify the
3119 --       register call to make appropriate entries in the special tables
3120 --       used for handling these pragmas at runtime.
3121
3122 --    Related_Array_Object (Node19)
3123 --       Present in array types and subtypes. Used only for the base type
3124 --       and subtype created for an anonymous array object. Set to point
3125 --       to the entity of the corresponding array object. Currently used
3126 --       only for type-related error messages.
3127
3128 --    Related_Instance (Node15)
3129 --       Present in the wrapper packages created for subprogram instances.
3130 --       The internal subprogram that implements the instance is inside the
3131 --       wrapper package, but for debugging purposes its external symbol
3132 --       must correspond to the name and scope of the related instance.
3133
3134 --    Related_Interface (Node26)
3135 --       Present in components associated with secondary dispatch tables
3136 --       (dispatch table pointers and offset components). Set to point to the
3137 --       entity of the corresponding interface type.
3138
3139 --    Renamed_Entity (Node18)
3140 --       Present in exceptions, packages, subprograms and generic units. Set
3141 --       for entities that are defined by a renaming declaration. Denotes the
3142 --       renamed entity, or transititively the ultimate renamed entity if
3143 --       there is a chain of renaming declarations. Empty if no renaming.
3144
3145 --    Renamed_Object (Node18)
3146 --       Present in all objects (constants, variables, components, formal
3147 --       parameters, generic formal parameters, and loop parameters). Set
3148 --       non-Empty if the object was declared by a renaming declaration, in
3149 --       which case it references the tree node for the name of the renamed
3150 --       object. This is only possible for the variable and constant cases.
3151 --       For formal parameters, this field is used in the course of inline
3152 --       expansion, to map the formals of a subprogram into the corresponding
3153 --       actuals. For formals of a task entry, it denotes the local renaming
3154 --       that replaces the actual within the accept statement.
3155 --       The field is Empty otherwise.
3156
3157 --    Renaming_Map (Uint9)
3158 --       Present in generic subprograms, generic packages, and their
3159 --       instances. Also present in the instances of the corresponding
3160 --       bodies. Denotes the renaming map (generic entities => instance
3161 --       entities) used to construct the instance by givin an index into
3162 --       the tables used to represent these maps. See Sem_Ch12 for further
3163 --       details. The maps for package instances are also used when the
3164 --       instance is the actual corresponding to a formal package.
3165
3166 --    Requires_Overriding (Flag213)
3167 --       Present in all subprograms and entries. Set for subprograms that
3168 --       require overriding as defined by RM-2005-3.9.3(6/2). Note that this
3169 --       is True only for implicitly declare subprograms; it is not set on the
3170 --       parent type's subprogram. See also Is_Abstract_Subprogram.
3171
3172 --    Return_Present (Flag54)
3173 --       Present in function and generic function entities. Set if the
3174 --       function contains a return statement (used for error checking).
3175 --       This flag can also be set in procedure and generic procedure
3176 --       entities (for convenience in setting it), but is only tested
3177 --       for the function case.
3178
3179 --    Return_Applies_To (Node8)
3180 --       Present in E_Return_Statement. Points to the entity representing
3181 --       the construct to which the return statement applies, as defined in
3182 --       RM-6.5(4/2). Note that a (simple) return statement within an
3183 --       extended_return_statement applies to the extended_return_statement,
3184 --       even though it causes the whole function to return.
3185
3186 --    Returns_By_Ref (Flag90)
3187 --       Present in function entities, to indicate that the function
3188 --       returns the result by reference, either because its return type is a
3189 --       by-reference-type or because it uses explicitly the secondary stack.
3190
3191 --    Reverse_Bit_Order (Flag164) [base type only]
3192 --       Present in all record type entities. Set if a valid pragma an
3193 --       attribute represention clause for Bit_Order has reversed the order of
3194 --       bits from the default value. When this flag is set, a component clause
3195 --       must specify a set of bits entirely contained in a single storage unit
3196 --       (Ada 95) or a single machine scalar (see Ada 2005 AI-133), or must
3197 --       occupy in integral number of storage units.
3198
3199 --    RM_Size (Uint13)
3200 --       Present in all type and subtype entities. Contains the value of
3201 --       type'Size as defined in the RM. See also the Esize field and
3202 --       and the description on "Handling of Type'Size Values". A value
3203 --       of zero in this field for a non-discrete type means that
3204 --       the front end has not yet determined the size value. For the
3205 --       case of a discrete type, this field is always set by the front
3206 --       end and zero is a legitimate value for a type with one value.
3207
3208 --    Root_Type (synthesized)
3209 --       Applies to all type entities. For class-wide types, return the root
3210 --       type of the class covered by the CW type, otherwise returns the
3211 --       ultimate derivation ancestor of the given type. This function
3212 --       preserves the view, i.e. the Root_Type of a partial view is the
3213 --       partial view of the ulimate ancestor, the Root_Type of a full view
3214 --       is the full view of the ultimate ancestor. Note that this function
3215 --       does not correspond exactly to the use of root type in the RM, since
3216 --       in the RM root type applies to a class of types, not to a type.
3217
3218 --    Scalar_Range (Node20)
3219 --       Present in all scalar types (including modular types, where the
3220 --       bounds are 0 .. modulus - 1). References a node in the tree that
3221 --       contains the bounds for the range. Note that this information
3222 --       could be obtained by rummaging around the tree, but it is more
3223 --       convenient to have it immediately at hand in the entity. The
3224 --       contents of Scalar_Range can either be an N_Subtype_Indication
3225 --       node (with a constraint), or a Range node, but not a simple
3226 --       subtype reference (a subtype is converted into a range).
3227
3228 --    Scale_Value (Uint15)
3229 --       Present in decimal fixed-point types and subtypes. Contains the scale
3230 --       for the type (i.e. the value of type'Scale = the number of decimal
3231 --       digits after the decimal point).
3232
3233 --    Scope (Node3)
3234 --       Present in all entities. Points to the entity for the scope (block,
3235 --       loop, subprogram, package etc.) in which the entity is declared.
3236 --       Since this field is in the base part of the entity node, the access
3237 --       routines for this field are in Sinfo. Note that for a child package,
3238 --       the Scope will be the parent package, and for a non-child package,
3239 --       the Scope will be Standard.
3240
3241 --    Scope_Depth (synth)
3242 --       Applies to program units, blocks, concurrent types and entries,
3243 --       and also to record types, i.e. to any entity that can appear on
3244 --       the scope stack. Yields the scope depth value, which for those
3245 --       entities other than records is simply the scope depth value,
3246 --       for record entities, it is the Scope_Depth of the record scope.
3247
3248 --    Scope_Depth_Value (Uint22)
3249 --       Present in program units, blocks, concurrent types and entries.
3250 --       Indicates the number of scopes that statically enclose the
3251 --       declaration of the unit or type. Library units have a depth of zero.
3252 --       Note that record types can act as scopes but do NOT have this field
3253 --       set (see Scope_Depth above)
3254
3255 --    Scope_Depth_Set (synthesized)
3256 --       Applies to a special predicate function that returns a Boolean value
3257 --       indicating whether or not the Scope_Depth field has been set. It
3258 --       is needed, since returns an invalid value in this case!
3259
3260 --    Sec_Stack_Needed_For_Return (Flag167)
3261 --       Present in scope entities (blocks, functions, procedures, tasks,
3262 --       entries). Set to True when secondary stack is used to hold
3263 --       the returned value of a function and thus should not be
3264 --       released on scope exit.
3265
3266 --    Shadow_Entities (List14)
3267 --       Present in package and generic package entities. Points to a list
3268 --       of entities that correspond to private types. For each private type
3269 --       a shadow entity is created that holds a copy of the private view.
3270 --       In regions of the program where the full views of these private
3271 --       entities are visible, the full view is copied into the entity that
3272 --       is normally used to hold the private view, but the shadow entity
3273 --       copy is unchanged. The shadow entities are then used to restore the
3274 --       original private views at the end of the region. This list is a
3275 --       standard format list (i.e. First (Shadow_Entities) is the first
3276 --       entry and subsequent entries are obtained using Next.
3277
3278 --    Shared_Var_Assign_Proc (Node22)
3279 --       Present in variables. Set non-Empty only if Is_Shared_Passive is
3280 --       set, in which case this is the entity for the shared memory assign
3281 --       routine. See Exp_Smem for full details.
3282
3283 --    Shared_Var_Read_Proc (Node15)
3284 --       Present in variables. Set non-Empty only if Is_Shared_Passive is
3285 --       set, in which case this is the entity for the shared memory read
3286 --       routine. See Exp_Smem for full details.
3287
3288 --    Size_Check_Code (Node19)
3289 --       Present in constants and variables. Normally Empty. Set if code is
3290 --       generated to check the size of the object. This field is used to
3291 --       suppress this code if a subsequent address clause is encountered.
3292
3293 --    Size_Clause (synthesized)
3294 --       Applies to all entities. If a size clause is present in the rep
3295 --       item chain for an entity then the attribute definition clause node
3296 --       for the size clause is returned. Otherwise Size_Clause returns Empty
3297 --       if no item is present. Usually this is only meaningful if the flag
3298 --       Has_Size_Clause is set. This is because when the representation item
3299 --       chain is copied for a derived type, it can inherit a size clause that
3300 --       is not applicable to the entity.
3301
3302 --    Size_Depends_On_Discriminant (Flag177)
3303 --       Present in all entities for types and subtypes. Indicates that the
3304 --       size of the type depends on the value of one or more discriminants.
3305 --       Currently, this flag is only set in front end layout mode for arrays
3306 --       which have one or more bounds depending on a discriminant value.
3307
3308 --    Size_Known_At_Compile_Time (Flag92)
3309 --       Present in all entities for types and subtypes. Indicates that the
3310 --       size of objects of the type is known at compile time. This flag is
3311 --       used to optimize some generated code sequences, and also to enable
3312 --       some error checks (e.g. disallowing component clauses on variable
3313 --       length objects. It is set conservatively (i.e. if it is True, the
3314 --       size is certainly known at compile time, if it is False, then the
3315 --       size may or may not be known at compile time, but the code will
3316 --       assume that it is not known).
3317
3318 --    Small_Value (Ureal21)
3319 --       Present in fixed point types. Points to the universal real for the
3320 --       Small of the type, either as given in a representation clause, or
3321 --       as computed (as a power of two) by the compiler.
3322
3323 --    Spec_Entity (Node19)
3324 --       Present in package body entities. Points to corresponding package
3325 --       spec entity. Also present in subprogram body parameters in the
3326 --       case where there is a separate spec, where this field references
3327 --       the corresponding parameter entities in the spec.
3328
3329 --    Storage_Size_Variable (Node15) [implementation base type only]
3330 --       Present in access types and task type entities. This flag is set
3331 --       if a valid and effective pragma Storage_Size applies to the base
3332 --       type. Points to the entity for a variable that is created to
3333 --       hold the value given in a Storage_Size pragma for an access
3334 --       collection or a task type. Note that in the access type case,
3335 --       this field is present only in the root type (since derived types
3336 --       share the same storage pool).
3337
3338 --    Static_Elaboration_Desired (Flag77)
3339 --       Present in library-level packages. Set by the pragma of the same
3340 --       name, to indicate that static initialization must be attempted for
3341 --       all types declared in the package, and that a warning must be emitted
3342 --       for those types to which static initialization is not available.
3343
3344 --    Static_Initialization (Node26)
3345 --       Present in initialization procedures for types whose objects can be
3346 --       initialized statically. The value of this attribute is a positional
3347 --       aggregate whose components are compile-time static values. Used
3348 --       when available in object declarations to eliminate the call to the
3349 --       initialization procedure, and to minimize elaboration code.
3350
3351 --    Stored_Constraint (Elist23)
3352 --       Present in entities that can have discriminants (concurrent types
3353 --       subtypes, record types and subtypes, private types and subtypes,
3354 --       limited private types and subtypes and incomplete types). Points
3355 --       to an element list containing the expressions for each of the
3356 --       stored discriminants for the record (sub)type.
3357
3358 --    Strict_Alignment (Flag145) [implementation base type only]
3359 --       Present in all type entities. Indicates that some containing part
3360 --       is either aliased or tagged. This prohibits packing the object
3361 --       tighter than its natural size and alignment.
3362
3363 --    String_Literal_Length (Uint16)
3364 --       Present in string literal subtypes (which are created to correspond
3365 --       to string literals in the program). Contains the length of the string
3366 --       literal.
3367
3368 --    String_Literal_Low_Bound (Node15)
3369 --       Present in string literal subtypes (which are created to correspond
3370 --       to string literals in the program). Contains an expression whose
3371 --       value represents the low bound of the literal. This is a copy of
3372 --       the low bound of the applicable index constraint if there is one,
3373 --       or a copy of the low bound of the index base type if not.
3374
3375 --    Suppress_Elaboration_Warnings (Flag148)
3376 --       Present in all entities, relevant only for subprogram entities and
3377 --       for variables. If this flag is set then Sem_Elab will not generate
3378 --       elaboration warnings for the subprogram or variable. Suppression of
3379 --       such warnings is automatic for subprograms for which elaboration
3380 --       checks are suppressed (without the need to set this flag), but the
3381 --       flag is also set for various internal entities (such as init procs)
3382 --       which are known not to generate any possible access before
3383 --       elaboration, and it is set on variables when a warning is given to
3384 --       avoid multiple elaboration warnings for the same variable.
3385
3386 --    Suppress_Init_Proc (Flag105) [base type only]
3387 --       Present in all type entities. Set to suppress the generation of
3388 --       initialization procedures where they are known to be not needed.
3389 --       For example, the enumeration image table entity uses this flag.
3390
3391 --    Suppress_Style_Checks (Flag165)
3392 --       Present in all entities. Suppresses any style checks specifically
3393 --       associated with the given entity if set.
3394
3395 --    Suppress_Value_Tracking_On_Call (Flag217)
3396 --       Present in all entities. Set in a scope entity if value tracking is to
3397 --       be suppressed on any call within the scope. Used when an access to a
3398 --       local subprogram is computed, to deal with the possibility that this
3399 --       value may be passed around, and if used, may clobber a local variable.
3400
3401 --    Task_Body_Procedure (Node25)
3402 --       Present in task types and subtypes. Points to the entity for
3403 --       the task body procedure (as further described in Exp_Ch9, task
3404 --       bodies are expanded into procedures). A convenient function to
3405 --       retrieve this field is Sem_Util.Get_Task_Body_Procedure.
3406 --       The last sentence is odd ??? Why not have Task_Body_Procedure
3407 --       go to the Underlying_Type of the Root_Type???
3408
3409 --    Treat_As_Volatile (Flag41)
3410 --       Present in all type entities, and also in constants, components and
3411 --       variables. Set if this entity is to be treated as volatile for code
3412 --       generation purposes. Always set if Is_Volatile is set, but can also
3413 --       be set as a result of situations (such as address overlays) where
3414 --       the front end wishes to force volatile handling to inhibit aliasing
3415 --       optimization which might be legally ok, but is undesirable. Note
3416 --       that the back end always tests this flag rather than Is_Volatile.
3417 --       The front end tests Is_Volatile if it is concerned with legality
3418 --       checks associated with declared volatile variables, but if the test
3419 --       is for the purposes of suppressing optimizations, then the front
3420 --       end should test Treat_As_Volatile rather than Is_Volatile.
3421
3422 --    Type_High_Bound (synthesized)
3423 --       Applies to scalar types. Returns the tree node (Node_Id) that contains
3424 --       the high bound of a scalar type. The returned value is literal for a
3425 --       base type, but may be an expression in the case of scalar type with
3426 --       dynamic bounds. Note that in the case of a fixed point type, the high
3427 --       bound is in units of small, and is an integer.
3428
3429 --    Type_Low_Bound (synthesized)
3430 --       Applies to scalar types. Returns the tree node (Node_Id) that contains
3431 --       the low bound of a scalar type. The returned value is literal for a
3432 --       base type, but may be an expression in the case of scalar type with
3433 --       dynamic bounds. Note that in the case of a fixed point type, the low
3434 --       bound is in units of small, and is an integer.
3435
3436 --    Underlying_Full_View (Node19)
3437 --       Present in private subtypes that are the completion of other private
3438 --       types, or in private types that are derived from private subtypes. If
3439 --       the full view of a private type T is derived from another private type
3440 --       with discriminants Td, the full view of T is also private, and there
3441 --       is no way to attach to it a further full view that would convey the
3442 --       structure of T to the back end. The Underlying_Full_ View is an
3443 --       attribute of the full view that is a subtype of Td with the same
3444 --       constraint as the declaration for T. The declaration for this subtype
3445 --       is built at the point of the declaration of T, either as completion,
3446 --       or as a subtype declaration where the base type is private and has a
3447 --       private completion. If Td is already constrained, then its full view
3448 --       can serve directly as the full view of T.
3449
3450 --    Underlying_Type (synthesized)
3451 --       Applies to all entities. This is the identity function except in the
3452 --       case where it is applied to an incomplete or private type, in which
3453 --       case it is the underlying type of the type declared by the completion,
3454 --       or Empty if the completion has not yet been encountered and analyzed.
3455 --
3456 --       Note: the reason this attribute applies to all entities, and not just
3457 --       types, is to legitimize code where Underlying_Type is applied to an
3458 --       entity which may or may not be a type, with the intent that if it is a
3459 --       type, its underlying type is taken.
3460
3461 --    Universal_Aliasing (Flag216) [base type only]
3462 --       Present in all type entities. Set to direct the back-end to avoid
3463 --       any optimizations based on type-based alias analysis for this type.
3464 --       Indicates that objects of this type can alias objects of any other
3465 --       types, which guarantees that any objects can be referenced through
3466 --       access types designating this type safely, whatever the actual type
3467 --       of these objects. In other words, the effect is as though access
3468 --       types designating this type were subject to No_Strict_Aliasing.
3469
3470 --    Unset_Reference (Node16)
3471 --       Present in variables and out parameters. This is normally Empty. It
3472 --       is set to point to an identifier that represents a reference to the
3473 --       entity before any value has been set. Only the first such reference
3474 --       is identified. This field is used to generate a warning message if
3475 --       necessary (see Sem_Warn.Check_Unset_Reference).
3476
3477 --    Uses_Sec_Stack (Flag95)
3478 --       Present in scope entities (blocks,functions, procedures, tasks,
3479 --       entries). Set to True when secondary stack is used in this scope and
3480 --       must be released on exit unless Sec_Stack_Needed_For_Return is set.
3481
3482 --    Vax_Float (Flag151) [base type only]
3483 --       Present in all type entities. Set only on the base type of float
3484 --       types with Vax format. The particular format is determined by the
3485 --       Digits_Value value which is 6,9,15 for F_Float, D_Float, G_Float.
3486
3487 --    Warnings_Off (Flag96)
3488 --       Present in all entities. Set if a pragma Warnings (Off, entity-name)
3489 --       is used to suppress warnings for a given entity. It is also used by
3490 --       the compiler in some situations to kill spurious warnings.
3491
3492 --    Was_Hidden (Flag196)
3493 --       Present in all entities. Used to save the value of the Is_Hidden
3494 --       attribute when the limited-view is installed (Ada 2005: AI-217).
3495
3496 --    Wrapped_Entity (Node27)
3497 --       Present in an E_Procedure classified as an Is_Primitive_Wrapper. Set
3498 --       to the entity that is being wrapped.
3499
3500    ------------------
3501    -- Access Kinds --
3502    ------------------
3503
3504    --  The following five entity kinds are introduced by the corresponding
3505    --  type definitions:
3506
3507    --    E_Access_Type,
3508    --    E_General_Access_Type,
3509    --    E_Anonymous_Access_Subprogram_Type,
3510    --    E_Anonymous_Access_Protected_Subprogram_Type
3511    --    E_Anonymous_Access_Type.
3512
3513    --  In addition, we define the kind E_Allocator_Type to label
3514    --  allocators. This is because special resolution rules apply to this
3515    --  construct. Eventually the constructs are labeled with the access
3516    --  type imposed by the context. Gigi should never see the type
3517    --  E_Allocator.
3518
3519    --  Similarly, the type E_Access_Attribute_Type is used as the initial
3520    --  kind associated with an access attribute. After resolution a specific
3521    --  access type will be established as determined by the context.
3522
3523    --  Finally, the type Any_Access is used to label -null- during type
3524    --  resolution. Any_Access is also replaced by the context type after
3525    --  resolution.
3526
3527    --------------------------------
3528    -- Classification of Entities --
3529    --------------------------------
3530
3531    --  The classification of program entities which follows is a refinement of
3532    --  the list given in RM 3.1(1). E.g., separate entities denote subtypes of
3533    --  different type classes. Ada 95 entities include class wide types,
3534    --  protected types, subprogram types, generalized access types,  generic
3535    --  formal derived types and generic formal packages.
3536
3537    --  The order chosen for these kinds allows us to classify related entities
3538    --  so that they are contiguous. As a result, they do not appear in the
3539    --  exact same order as their order of first appearance in the LRM (For
3540    --  example, private types are listed before packages). The contiguity
3541    --  allows us to define useful subtypes (see below) such as type entities,
3542    --  overloaded entities, etc.
3543
3544    --  Each entity (explicitly or implicitly declared) has a kind, which is
3545    --  a value of the following type:
3546
3547    type Entity_Kind is (
3548
3549       E_Void,
3550       --  The initial Ekind value for a newly created entity. Also used as
3551       --  the Ekind for Standard_Void_Type, a type entity in Standard used
3552       --  as a dummy type for the return type of a procedure (the reason we
3553       --  create this type is to share the circuits for performing overload
3554       --  resolution on calls).
3555
3556       -------------
3557       -- Objects --
3558       -------------
3559
3560       E_Variable,
3561       --  Variables created by an object declaration with no constant keyword
3562
3563       E_Component,
3564       --  Components of a record declaration, private declarations of
3565       --  protected objects.
3566
3567       E_Constant,
3568       --  Constants created by an object declaration with a constant keyword
3569
3570       E_Discriminant,
3571       --  A discriminant, created by the use of a discriminant in a type
3572       --  declaration.
3573
3574       E_Loop_Parameter,
3575       --  A loop parameter created by a for loop
3576
3577       ------------------------
3578       -- Parameter Entities --
3579       ------------------------
3580
3581       --  Parameters are also objects
3582
3583       E_In_Parameter,
3584       --  An in parameter of a subprogram or entry
3585
3586       E_Out_Parameter,
3587       --  An out parameter of a subprogram or entry
3588
3589       E_In_Out_Parameter,
3590       --  An in-out parameter of a subprogram or entry
3591
3592       --------------------------------
3593       -- Generic Parameter Entities --
3594       --------------------------------
3595
3596       --  Generic parameters are also objects
3597
3598       E_Generic_In_Out_Parameter,
3599       --  A generic in out parameter, created by the use of a generic in out
3600       --  parameter in a generic declaration.
3601
3602       E_Generic_In_Parameter,
3603       --  A generic in parameter, created by the use of a generic in
3604       --  parameter in a generic declaration.
3605
3606       -------------------
3607       -- Named Numbers --
3608       -------------------
3609
3610       E_Named_Integer,
3611       --  Named numbers created by a number declaration with an integer value
3612
3613       E_Named_Real,
3614       --  Named numbers created by a number declaration with a real value
3615
3616       -----------------------
3617       -- Enumeration Types --
3618       -----------------------
3619
3620       E_Enumeration_Type,
3621       --  Enumeration types, created by an enumeration type declaration
3622
3623       E_Enumeration_Subtype,
3624       --  Enumeration subtypes, created by an explicit or implicit subtype
3625       --  declaration applied to an enumeration type or subtype.
3626
3627       -------------------
3628       -- Numeric Types --
3629       -------------------
3630
3631       E_Signed_Integer_Type,
3632       --  Signed integer type, used for the anonymous base type of the
3633       --  integer subtype created by an integer type declaration.
3634
3635       E_Signed_Integer_Subtype,
3636       --  Signed integer subtype, created by either an integer subtype or
3637       --  integer type declaration (in the latter case an integer type is
3638       --  created for the base type, and this is the first named subtype).
3639
3640       E_Modular_Integer_Type,
3641       --  Modular integer type, used for the anonymous base type of the
3642       --  integer subtype created by a modular integer type declaration.
3643
3644       E_Modular_Integer_Subtype,
3645       --  Modular integer subtype, created by either an modular subtype
3646       --  or modular type declaration (in the latter case a modular type
3647       --  is created for the base type, and this is the first named subtype).
3648
3649       E_Ordinary_Fixed_Point_Type,
3650       --  Ordinary fixed type, used for the anonymous base type of the
3651       --  fixed subtype created by an ordinary fixed point type declaration.
3652
3653       E_Ordinary_Fixed_Point_Subtype,
3654       --  Ordinary fixed point subtype, created by either an ordinary fixed
3655       --  point subtype or ordinary fixed point type declaration (in the
3656       --  latter case a fixed point type is created for the base type, and
3657       --  this is the first named subtype).
3658
3659       E_Decimal_Fixed_Point_Type,
3660       --  Decimal fixed type, used for the anonymous base type of the decimal
3661       --  fixed subtype created by an ordinary fixed point type declaration.
3662
3663       E_Decimal_Fixed_Point_Subtype,
3664       --  Decimal fixed point subtype, created by either a decimal fixed point
3665       --  subtype or decimal fixed point type declaration (in the latter case
3666       --  a fixed point type is created for the base type, and this is the
3667       --  first named subtype).
3668
3669       E_Floating_Point_Type,
3670       --  Floating point type, used for the anonymous base type of the
3671       --  floating point subtype created by a floating point type declaration.
3672
3673       E_Floating_Point_Subtype,
3674       --  Floating point subtype, created by either a floating point subtype
3675       --  or floating point type declaration (in the latter case a floating
3676       --  point type is created for the base type, and this is the first
3677       --  named subtype).
3678
3679       ------------------
3680       -- Access Types --
3681       ------------------
3682
3683       E_Access_Type,
3684       --  An access type created by an access type declaration with no all
3685       --  keyword present. Note that the predefined type Any_Access, which
3686       --  has E_Access_Type Ekind, is used to label NULL in the upwards pass
3687       --  of type analysis, to be replaced by the true access type in the
3688       --  downwards resolution pass.
3689
3690       E_Access_Subtype,
3691       --  An access subtype created by a subtype declaration for any access
3692       --  type (whether or not it is a general access type).
3693
3694       E_Access_Attribute_Type,
3695       --  An access type created for an access attribute (such as 'Access,
3696       --  'Unrestricted_Access and Unchecked_Access)
3697
3698       E_Allocator_Type,
3699       --  A special internal type used to label allocators and attribute
3700       --  references using 'Access. This is needed because special resolution
3701       --  rules apply to these constructs. On the resolution pass, this type
3702       --  is always replaced by the actual access type, so Gigi should never
3703       --  see types with this Ekind.
3704
3705       E_General_Access_Type,
3706       --  An access type created by an access type declaration with the all
3707       --  keyword present.
3708
3709       E_Access_Subprogram_Type,
3710       --  An access to subprogram type, created by an access to subprogram
3711       --  declaration.
3712
3713       E_Anonymous_Access_Subprogram_Type,
3714       --  An anonymous access to subprogram type, created by an access to
3715       --  subprogram declaration.
3716
3717       E_Access_Protected_Subprogram_Type,
3718       --  An access to a protected subprogram, created by the corresponding
3719       --  declaration. Values of such a type denote both a protected object
3720       --  and a protected operation within, and have different compile-time
3721       --  and run-time properties than other access to subprograms.
3722
3723       E_Anonymous_Access_Protected_Subprogram_Type,
3724       --  An anonymous access to protected subprogram type, created by an
3725       --  access to subprogram declaration.
3726
3727       E_Anonymous_Access_Type,
3728       --  An anonymous access type created by an access parameter or access
3729       --  discriminant.
3730
3731       ---------------------
3732       -- Composite Types --
3733       ---------------------
3734
3735       E_Array_Type,
3736       --  An array type created by an array type declaration. Includes all
3737       --  cases of arrays, except for string types.
3738
3739       E_Array_Subtype,
3740       --  An array subtype, created by an explicit array subtype declaration,
3741       --  or the use of an anonymous array subtype.
3742
3743       E_String_Type,
3744       --  A string type, i.e. an array type whose component type is a character
3745       --  type, and for which string literals can thus be written.
3746
3747       E_String_Subtype,
3748       --  A string subtype, created by an explicit subtype declaration for a
3749       --  string type, or the use of an anonymous subtype of a string type,
3750
3751       E_String_Literal_Subtype,
3752       --  A special string subtype, used only to describe the type of a string
3753       --  literal (will always be one dimensional, with literal bounds).
3754
3755       E_Class_Wide_Type,
3756       --  A class wide type, created by any tagged type declaration (i.e. if
3757       --  a tagged type is declared, the corresponding class type is always
3758       --  created, using this Ekind value).
3759
3760       E_Class_Wide_Subtype,
3761       --  A subtype of a class wide type, created by a subtype declaration
3762       --  used to declare a subtype of a class type.
3763
3764       E_Record_Type,
3765       --  A record type, created by a record type declaration
3766
3767       E_Record_Subtype,
3768       --  A record subtype, created by a record subtype declaration
3769
3770       E_Record_Type_With_Private,
3771       --  Used for types defined by a private extension declaration, and
3772       --  for tagged private types. Includes the fields for both private
3773       --  types and for record types (with the sole exception of
3774       --  Corresponding_Concurrent_Type which is obviously not needed).
3775       --  This entity is considered to be both a record type and
3776       --  a private type.
3777
3778       E_Record_Subtype_With_Private,
3779       --  A subtype of a type defined by a private extension declaration
3780
3781       E_Private_Type,
3782       --  A private type, created by a private type declaration
3783       --  that has neither the keyword limited nor the keyword tagged.
3784
3785       E_Private_Subtype,
3786       --  A subtype of a private type, created by a subtype declaration used
3787       --  to declare a subtype of a private type.
3788
3789       E_Limited_Private_Type,
3790       --  A limited private type, created by a private type declaration that
3791       --  has the keyword limited, but not the keyword tagged.
3792
3793       E_Limited_Private_Subtype,
3794       --  A subtype of a limited private type, created by a subtype declaration
3795       --  used to declare a subtype of a limited private type.
3796
3797       E_Incomplete_Type,
3798       --  An incomplete type, created by an incomplete type declaration
3799
3800       E_Incomplete_Subtype,
3801       --  An incomplete subtype, created by a subtype declaration where the
3802       --  subtype mark denotes an incomplete type.
3803
3804       E_Task_Type,
3805       --  A task type, created by a task type declaration. An entity with this
3806       --  Ekind is also created to describe the anonymous type of a task that
3807       --  is created by a single task declaration.
3808
3809       E_Task_Subtype,
3810       --  A subtype of a task type, created by a subtype declaration used to
3811       --  declare a subtype of a task type.
3812
3813       E_Protected_Type,
3814       --  A protected type, created by a protected type declaration. An entity
3815       --  with this Ekind is also created to describe the anonymous type of
3816       --  a protected object created by a single protected declaration.
3817
3818       E_Protected_Subtype,
3819       --  A subtype of a protected type, created by a subtype declaration used
3820       --  to declare a subtype of a protected type.
3821
3822       -----------------
3823       -- Other Types --
3824       -----------------
3825
3826       E_Exception_Type,
3827       --  The type of an exception created by an exception declaration
3828
3829       E_Subprogram_Type,
3830       --  This is the designated type of an Access_To_Subprogram. Has type
3831       --  and signature like a subprogram entity, so can appear in calls,
3832       --  which are resolved like regular calls, except that such an entity
3833       --  is not overloadable.
3834
3835       ---------------------------
3836       -- Overloadable Entities --
3837       ---------------------------
3838
3839       E_Enumeration_Literal,
3840       --  An enumeration literal, created by the use of the literal in an
3841       --  enumeration type definition.
3842
3843       E_Function,
3844       --  A function, created by a function declaration or a function body
3845       --  that acts as its own declaration.
3846
3847       E_Operator,
3848       --  A predefined operator, appearing in Standard, or an implicitly
3849       --  defined concatenation operator created whenever an array is
3850       --  declared. We do not make normal derived operators explicit in
3851       --  the tree, but the concatenation operators are made explicit.
3852
3853       E_Procedure,
3854       --  A procedure, created by a procedure declaration or a procedure
3855       --  body that acts as its own declaration.
3856
3857       E_Entry,
3858       --  An entry, created by an entry declaration in a task or protected
3859       --  object.
3860
3861       --------------------
3862       -- Other Entities --
3863       --------------------
3864
3865       E_Entry_Family,
3866       --  An entry family, created by an entry family declaration in a
3867       --  task or protected type definition.
3868
3869       E_Block,
3870       --  A block identifier, created by an explicit or implicit label on
3871       --  a block or declare statement.
3872
3873       E_Entry_Index_Parameter,
3874       --  An entry index parameter created by an entry index specification
3875       --  for the body of a protected entry family.
3876
3877       E_Exception,
3878       --  An exception created by an exception declaration. The exception
3879       --  itself uses E_Exception for the Ekind, the implicit type that is
3880       --  created to represent its type uses the Ekind E_Exception_Type.
3881
3882       E_Generic_Function,
3883       --  A generic function. This is the entity for a generic function
3884       --  created by a generic subprogram declaration.
3885
3886       E_Generic_Procedure,
3887       --  A generic function. This is the entity for a generic procedure
3888       --  created by a generic subprogram declaration.
3889
3890       E_Generic_Package,
3891       --  A generic package, this is the entity for a generic package created
3892       --  by a generic package declaration.
3893
3894       E_Label,
3895       --  The defining entity for a label. Note that this is created by the
3896       --  implicit label declaration, not the occurrence of the label itself,
3897       --  which is simply a direct name referring to the label.
3898
3899       E_Loop,
3900       --  A loop identifier, created by an explicit or implicit label on a
3901       --  loop statement.
3902
3903       E_Return_Statement,
3904       --  A dummy entity created for each return statement. Used to hold
3905       --  information about the return statement (what it applies to) and in
3906       --  rules checking. For example, a simple_return_statement that applies
3907       --  to an extended_return_statement cannot have an expression; this
3908       --  requires putting the E_Return_Statement entity for the
3909       --  extended_return_statement on the scope stack.
3910
3911       E_Package,
3912       --  A package, created by a package declaration
3913
3914       E_Package_Body,
3915       --  A package body. This entity serves only limited functions, since
3916       --  most semantic analysis uses the package entity (E_Package). However
3917       --  there are some attributes that are significant for the body entity.
3918       --  For example, collection of exception handlers.
3919
3920       E_Protected_Object,
3921       --  A protected object, created by an object declaration that declares
3922       --  an object of a protected type.
3923
3924       E_Protected_Body,
3925       --  A protected body. This entity serves almost no function, since all
3926       --  semantic analysis uses the protected entity (E_Protected_Type)
3927
3928       E_Task_Body,
3929       --  A task body. This entity serves almost no function, since all
3930       --  semantic analysis uses the protected entity (E_Task_Type).
3931
3932       E_Subprogram_Body
3933       --  A subprogram body. Used when a subprogram has a separate declaration
3934       --  to represent the entity for the body. This entity serves almost no
3935       --  function, since all semantic analysis uses the subprogram entity
3936       --  for the declaration (E_Function or E_Procedure).
3937    );
3938
3939    for Entity_Kind'Size use 8;
3940    --  The data structures in Atree assume this!
3941
3942    --------------------------
3943    -- Subtype Declarations --
3944    --------------------------
3945
3946    --  The above entities are arranged so that they can be conveniently grouped
3947    --  into subtype ranges. Note that for each of the xxx_Kind ranges defined
3948    --  below, there is a corresponding Is_xxx (or for types, Is_xxx_Type)
3949    --  predicate which is to be used in preference to direct range tests using
3950    --  the subtype name. However, the subtype names are available for direct
3951    --  use, e.g. as choices in case statements.
3952
3953    subtype Access_Kind                 is Entity_Kind range
3954        E_Access_Type ..
3955    --  E_Access_Subtype
3956    --  E_Access_Attribute_Type
3957    --  E_Allocator_Type
3958    --  E_General_Access_Type
3959    --  E_Access_Subprogram_Type
3960    --  E_Anonymous_Access_Subprogram_Type
3961    --  E_Access_Protected_Subprogram_Type
3962    --  E_Anonymous_Access_Protected_Subprogram_Type
3963        E_Anonymous_Access_Type;
3964
3965    subtype Access_Protected_Kind       is Entity_Kind range
3966       E_Access_Protected_Subprogram_Type ..
3967       E_Anonymous_Access_Protected_Subprogram_Type;
3968
3969    subtype Array_Kind                  is Entity_Kind range
3970        E_Array_Type ..
3971    --  E_Array_Subtype
3972    --  E_String_Type
3973    --  E_String_Subtype
3974        E_String_Literal_Subtype;
3975
3976    subtype Class_Wide_Kind             is Entity_Kind range
3977        E_Class_Wide_Type ..
3978        E_Class_Wide_Subtype;
3979
3980    subtype Composite_Kind              is Entity_Kind range
3981        E_Array_Type ..
3982    --  E_Array_Subtype
3983    --  E_String_Type
3984    --  E_String_Subtype
3985    --  E_String_Literal_Subtype
3986    --  E_Class_Wide_Type
3987    --  E_Class_Wide_Subtype
3988    --  E_Record_Type
3989    --  E_Record_Subtype
3990    --  E_Record_Type_With_Private
3991    --  E_Record_Subtype_With_Private
3992    --  E_Private_Type
3993    --  E_Private_Subtype
3994    --  E_Limited_Private_Type
3995    --  E_Limited_Private_Subtype
3996    --  E_Incomplete_Type
3997    --  E_Incomplete_Subtype
3998    --  E_Task_Type
3999    --  E_Task_Subtype,
4000    --  E_Protected_Type,
4001        E_Protected_Subtype;
4002
4003    subtype Concurrent_Kind             is Entity_Kind range
4004        E_Task_Type ..
4005    --  E_Task_Subtype,
4006    --  E_Protected_Type,
4007        E_Protected_Subtype;
4008
4009    subtype Concurrent_Body_Kind        is Entity_Kind range
4010        E_Protected_Body ..
4011        E_Task_Body;
4012
4013    subtype Decimal_Fixed_Point_Kind    is Entity_Kind range
4014        E_Decimal_Fixed_Point_Type ..
4015        E_Decimal_Fixed_Point_Subtype;
4016
4017    subtype Digits_Kind                 is Entity_Kind range
4018        E_Decimal_Fixed_Point_Type ..
4019    --  E_Decimal_Fixed_Point_Subtype
4020    --  E_Floating_Point_Type
4021        E_Floating_Point_Subtype;
4022
4023    subtype Discrete_Kind               is Entity_Kind range
4024        E_Enumeration_Type ..
4025    --  E_Enumeration_Subtype
4026    --  E_Signed_Integer_Type
4027    --  E_Signed_Integer_Subtype
4028    --  E_Modular_Integer_Type
4029        E_Modular_Integer_Subtype;
4030
4031    subtype Discrete_Or_Fixed_Point_Kind is Entity_Kind range
4032        E_Enumeration_Type ..
4033    --  E_Enumeration_Subtype
4034    --  E_Signed_Integer_Type
4035    --  E_Signed_Integer_Subtype
4036    --  E_Modular_Integer_Type
4037    --  E_Modular_Integer_Subtype
4038    --  E_Ordinary_Fixed_Point_Type
4039    --  E_Ordinary_Fixed_Point_Subtype
4040    --  E_Decimal_Fixed_Point_Type
4041        E_Decimal_Fixed_Point_Subtype;
4042
4043    subtype Elementary_Kind             is Entity_Kind range
4044        E_Enumeration_Type ..
4045    --  E_Enumeration_Subtype
4046    --  E_Signed_Integer_Type
4047    --  E_Signed_Integer_Subtype
4048    --  E_Modular_Integer_Type
4049    --  E_Modular_Integer_Subtype
4050    --  E_Ordinary_Fixed_Point_Type
4051    --  E_Ordinary_Fixed_Point_Subtype
4052    --  E_Decimal_Fixed_Point_Type
4053    --  E_Decimal_Fixed_Point_Subtype
4054    --  E_Floating_Point_Type
4055    --  E_Floating_Point_Subtype
4056    --  E_Access_Type
4057    --  E_Access_Subtype
4058    --  E_Access_Attribute_Type
4059    --  E_Allocator_Type
4060    --  E_General_Access_Type
4061    --  E_Access_Subprogram_Type
4062    --  E_Access_Protected_Subprogram_Type
4063    --  E_Anonymous_Access_Subprogram_Type
4064    --  E_Anonymous_Access_Protected_Subprogram_Type
4065        E_Anonymous_Access_Type;
4066
4067    subtype Enumeration_Kind            is Entity_Kind range
4068        E_Enumeration_Type ..
4069        E_Enumeration_Subtype;
4070
4071    subtype Entry_Kind                  is Entity_Kind range
4072        E_Entry ..
4073        E_Entry_Family;
4074
4075    subtype Fixed_Point_Kind            is Entity_Kind range
4076        E_Ordinary_Fixed_Point_Type ..
4077    --  E_Ordinary_Fixed_Point_Subtype
4078    --  E_Decimal_Fixed_Point_Type
4079        E_Decimal_Fixed_Point_Subtype;
4080
4081    subtype Float_Kind                  is Entity_Kind range
4082        E_Floating_Point_Type ..
4083        E_Floating_Point_Subtype;
4084
4085    subtype Formal_Kind                 is Entity_Kind range
4086        E_In_Parameter ..
4087    --  E_Out_Parameter
4088      E_In_Out_Parameter;
4089
4090    subtype Formal_Object_Kind          is Entity_Kind range
4091        E_Generic_In_Out_Parameter ..
4092        E_Generic_In_Parameter;
4093
4094    subtype Generic_Subprogram_Kind     is Entity_Kind range
4095        E_Generic_Function ..
4096        E_Generic_Procedure;
4097
4098    subtype Generic_Unit_Kind           is Entity_Kind range
4099        E_Generic_Function ..
4100    --  E_Generic_Procedure
4101        E_Generic_Package;
4102
4103    subtype Incomplete_Kind             is Entity_Kind range
4104        E_Incomplete_Type ..
4105        E_Incomplete_Subtype;
4106
4107    subtype Incomplete_Or_Private_Kind  is Entity_Kind range
4108        E_Record_Type_With_Private ..
4109    --  E_Record_Subtype_With_Private
4110    --  E_Private_Type
4111    --  E_Private_Subtype
4112    --  E_Limited_Private_Type
4113    --  E_Limited_Private_Subtype
4114    --  E_Incomplete_Type
4115        E_Incomplete_Subtype;
4116
4117    subtype Integer_Kind                is Entity_Kind range
4118        E_Signed_Integer_Type ..
4119    --  E_Signed_Integer_Subtype
4120    --  E_Modular_Integer_Type
4121        E_Modular_Integer_Subtype;
4122
4123    subtype Modular_Integer_Kind        is Entity_Kind range
4124        E_Modular_Integer_Type ..
4125        E_Modular_Integer_Subtype;
4126
4127    subtype Named_Kind                  is Entity_Kind range
4128        E_Named_Integer ..
4129        E_Named_Real;
4130
4131    subtype Numeric_Kind                is Entity_Kind range
4132        E_Signed_Integer_Type ..
4133    --  E_Signed_Integer_Subtype
4134    --  E_Modular_Integer_Type
4135    --  E_Modular_Integer_Subtype
4136    --  E_Ordinary_Fixed_Point_Type
4137    --  E_Ordinary_Fixed_Point_Subtype
4138    --  E_Decimal_Fixed_Point_Type
4139    --  E_Decimal_Fixed_Point_Subtype
4140    --  E_Floating_Point_Type
4141        E_Floating_Point_Subtype;
4142
4143    subtype Object_Kind                is Entity_Kind range
4144        E_Variable ..
4145    --  E_Component
4146    --  E_Constant
4147    --  E_Discriminant
4148    --  E_Loop_Parameter
4149    --  E_In_Parameter
4150    --  E_Out_Parameter
4151    --  E_In_Out_Parameter
4152    --  E_Generic_In_Out_Parameter
4153        E_Generic_In_Parameter;
4154
4155    subtype Ordinary_Fixed_Point_Kind   is Entity_Kind range
4156        E_Ordinary_Fixed_Point_Type ..
4157        E_Ordinary_Fixed_Point_Subtype;
4158
4159    subtype Overloadable_Kind           is Entity_Kind range
4160        E_Enumeration_Literal ..
4161    --  E_Function
4162    --  E_Operator
4163    --  E_Procedure
4164        E_Entry;
4165
4166    subtype Private_Kind                is Entity_Kind range
4167        E_Record_Type_With_Private ..
4168    --  E_Record_Subtype_With_Private
4169    --  E_Private_Type
4170    --  E_Private_Subtype
4171    --  E_Limited_Private_Type
4172        E_Limited_Private_Subtype;
4173
4174    subtype Protected_Kind              is Entity_Kind range
4175        E_Protected_Type ..
4176        E_Protected_Subtype;
4177
4178    subtype Real_Kind                   is Entity_Kind range
4179        E_Ordinary_Fixed_Point_Type ..
4180    --  E_Ordinary_Fixed_Point_Subtype
4181    --  E_Decimal_Fixed_Point_Type
4182    --  E_Decimal_Fixed_Point_Subtype
4183    --  E_Floating_Point_Type
4184        E_Floating_Point_Subtype;
4185
4186    subtype Record_Kind                 is Entity_Kind range
4187        E_Class_Wide_Type ..
4188    --  E_Class_Wide_Subtype
4189    --  E_Record_Type
4190    --  E_Record_Subtype
4191    --  E_Record_Type_With_Private
4192        E_Record_Subtype_With_Private;
4193
4194    subtype Scalar_Kind                 is Entity_Kind range
4195        E_Enumeration_Type ..
4196    --  E_Enumeration_Subtype
4197    --  E_Signed_Integer_Type
4198    --  E_Signed_Integer_Subtype
4199    --  E_Modular_Integer_Type
4200    --  E_Modular_Integer_Subtype
4201    --  E_Ordinary_Fixed_Point_Type
4202    --  E_Ordinary_Fixed_Point_Subtype
4203    --  E_Decimal_Fixed_Point_Type
4204    --  E_Decimal_Fixed_Point_Subtype
4205    --  E_Floating_Point_Type
4206        E_Floating_Point_Subtype;
4207
4208    subtype String_Kind                 is Entity_Kind range
4209        E_String_Type ..
4210    --  E_String_Subtype
4211        E_String_Literal_Subtype;
4212
4213    subtype Subprogram_Kind             is Entity_Kind range
4214        E_Function ..
4215    --  E_Operator
4216        E_Procedure;
4217
4218    subtype Signed_Integer_Kind         is Entity_Kind range
4219        E_Signed_Integer_Type ..
4220        E_Signed_Integer_Subtype;
4221
4222    subtype Task_Kind                   is Entity_Kind range
4223        E_Task_Type ..
4224        E_Task_Subtype;
4225
4226    subtype Type_Kind                   is Entity_Kind range
4227        E_Enumeration_Type ..
4228    --  E_Enumeration_Subtype
4229    --  E_Signed_Integer_Type
4230    --  E_Signed_Integer_Subtype
4231    --  E_Modular_Integer_Type
4232    --  E_Modular_Integer_Subtype
4233    --  E_Ordinary_Fixed_Point_Type
4234    --  E_Ordinary_Fixed_Point_Subtype
4235    --  E_Decimal_Fixed_Point_Type
4236    --  E_Decimal_Fixed_Point_Subtype
4237    --  E_Floating_Point_Type
4238    --  E_Floating_Point_Subtype
4239    --  E_Access_Type
4240    --  E_Access_Subtype
4241    --  E_Access_Attribute_Type
4242    --  E_Allocator_Type,
4243    --  E_General_Access_Type
4244    --  E_Access_Subprogram_Type,
4245    --  E_Access_Protected_Subprogram_Type
4246    --  E_Anonymous_Access_Subprogram_Type
4247    --  E_Anonymous_Access_Protected_Subprogram_Type
4248    --  E_Anonymous_Access_Type
4249    --  E_Array_Type
4250    --  E_Array_Subtype
4251    --  E_String_Type
4252    --  E_String_Subtype
4253    --  E_String_Literal_Subtype
4254    --  E_Class_Wide_Subtype
4255    --  E_Class_Wide_Type
4256    --  E_Record_Type
4257    --  E_Record_Subtype
4258    --  E_Record_Type_With_Private
4259    --  E_Record_Subtype_With_Private
4260    --  E_Private_Type
4261    --  E_Private_Subtype
4262    --  E_Limited_Private_Type
4263    --  E_Limited_Private_Subtype
4264    --  E_Incomplete_Type
4265    --  E_Incomplete_Subtype
4266    --  E_Task_Type
4267    --  E_Task_Subtype
4268    --  E_Protected_Type
4269    --  E_Protected_Subtype
4270    --  E_Exception_Type
4271        E_Subprogram_Type;
4272
4273    --------------------------------------------------------
4274    -- Description of Defined Attributes for Entity_Kinds --
4275    --------------------------------------------------------
4276
4277    --  For each enumeration value defined in Entity_Kind we list all the
4278    --  attributes defined in Einfo which can legally be applied to an entity
4279    --  of that kind. The implementation of the attribute functions (and for
4280    --  non-synthetized attributes, of the corresponding set procedures) are
4281    --  in the Einfo body.
4282
4283    --  The following attributes apply to all entities
4284
4285    --    Ekind                               (Ekind)
4286
4287    --    Chars                               (Name1)
4288    --    Next_Entity                         (Node2)
4289    --    Scope                               (Node3)
4290    --    Homonym                             (Node4)
4291    --    Etype                               (Node5)
4292    --    First_Rep_Item                      (Node6)
4293    --    Freeze_Node                         (Node7)
4294    --    Obsolescent_Warning                 (Node24)
4295
4296    --    Address_Taken                       (Flag104)
4297    --    Can_Never_Be_Null                   (Flag38)
4298    --    Checks_May_Be_Suppressed            (Flag31)
4299    --    Debug_Info_Off                      (Flag166)
4300    --    Has_Anon_Block_Suffix               (Flag201)
4301    --    Has_Controlled_Component            (Flag43)   (base type only)
4302    --    Has_Convention_Pragma               (Flag119)
4303    --    Has_Delayed_Freeze                  (Flag18)
4304    --    Has_Fully_Qualified_Name            (Flag173)
4305    --    Has_Gigi_Rep_Item                   (Flag82)
4306    --    Has_Homonym                         (Flag56)
4307    --    Has_Persistent_BSS                  (Flag188)
4308    --    Has_Pragma_Elaborate_Body           (Flag150)
4309    --    Has_Pragma_Inline                   (Flag157)
4310    --    Has_Pragma_Pure                     (Flag203)
4311    --    Has_Pragma_Pure_Function            (Flag179)
4312    --    Has_Pragma_Unreferenced             (Flag180)
4313    --    Has_Private_Declaration             (Flag155)
4314    --    Has_Qualified_Name                  (Flag161)
4315    --    Has_Unknown_Discriminants           (Flag72)
4316    --    Has_Xref_Entry                      (Flag182)
4317    --    Is_Ada_2005_Only                    (Flag185)
4318    --    Is_Bit_Packed_Array                 (Flag122)  (base type only)
4319    --    Is_Child_Unit                       (Flag73)
4320    --    Is_Compilation_Unit                 (Flag149)
4321    --    Is_Completely_Hidden                (Flag103)
4322    --    Is_Discrim_SO_Function              (Flag176)
4323    --    Is_Dispatching_Operation            (Flag6)
4324    --    Is_Exported                         (Flag99)
4325    --    Is_First_Subtype                    (Flag70)
4326    --    Is_Formal_Subprogram                (Flag111)
4327    --    Is_Generic_Instance                 (Flag130)
4328    --    Is_Hidden                           (Flag57)
4329    --    Is_Hidden_Open_Scope                (Flag171)
4330    --    Is_Immediately_Visible              (Flag7)
4331    --    Is_Imported                         (Flag24)
4332    --    Is_Inlined                          (Flag11)
4333    --    Is_Internal                         (Flag17)
4334    --    Is_Itype                            (Flag91)
4335    --    Is_Known_Non_Null                   (Flag37)
4336    --    Is_Known_Null                       (Flag204)
4337    --    Is_Known_Valid                      (Flag170)
4338    --    Is_Limited_Composite                (Flag106)
4339    --    Is_Limited_Record                   (Flag25)
4340    --    Is_Obsolescent                      (Flag153)
4341    --    Is_Package_Body_Entity              (Flag160)
4342    --    Is_Packed_Array_Type                (Flag138)
4343    --    Is_Potentially_Use_Visible          (Flag9)
4344    --    Is_Preelaborated                    (Flag59)
4345    --    Is_Primitive_Wrapper                (Flag195)
4346    --    Is_Public                           (Flag10)
4347    --    Is_Pure                             (Flag44)
4348    --    Is_Remote_Call_Interface            (Flag62)
4349    --    Is_Remote_Types                     (Flag61)
4350    --    Is_Shared_Passive                   (Flag60)
4351    --    Is_Statically_Allocated             (Flag28)
4352    --    Is_Unchecked_Union                  (Flag117)
4353    --    Is_Visible_Formal                   (Flag206)
4354    --    Is_VMS_Exception                    (Flag133)
4355    --    Kill_Elaboration_Checks             (Flag32)
4356    --    Kill_Range_Checks                   (Flag33)
4357    --    Kill_Tag_Checks                     (Flag34)
4358    --    Low_Bound_Known                     (Flag205)
4359    --    Materialize_Entity                  (Flag168)
4360    --    Needs_Debug_Info                    (Flag147)
4361    --    No_Return                           (Flag113)
4362    --    Referenced                          (Flag156)
4363    --    Referenced_As_LHS                   (Flag36)
4364    --    Suppress_Elaboration_Warnings       (Flag148)
4365    --    Suppress_Style_Checks               (Flag165)
4366    --    Suppress_Value_Tracking_On_Call     (Flag217)
4367    --    Was_Hidden                          (Flag196)
4368
4369    --    Declaration_Node                    (synth)
4370    --    Enclosing_Dynamic_Scope             (synth)
4371    --    Has_Foreign_Convention              (synth)
4372    --    Is_Derived_Type                     (synth)
4373    --    Is_Dynamic_Scope                    (synth)
4374    --    Is_Limited_Type                     (synth)
4375    --    Underlying_Type                     (synth)
4376    --    all classification attributes       (synth)
4377
4378    --  The following list of access functions applies to all entities for
4379    --  types and subtypes. References to this list appear subsequently as
4380    --  as "(plus type attributes)" for each appropriate Entity_Kind.
4381
4382    --    Associated_Node_For_Itype           (Node8)
4383    --    Class_Wide_Type                     (Node9)
4384    --    Referenced_Object                   (Node10)
4385    --    Full_View                           (Node11)
4386    --    Esize                               (Uint12)
4387    --    RM_Size                             (Uint13)
4388    --    Alignment                           (Uint14)
4389
4390    --    Depends_On_Private                  (Flag14)
4391    --    Discard_Names                       (Flag88)
4392    --    Finalize_Storage_Only               (Flag158)  (base type only)
4393    --    From_With_Type                      (Flag159)
4394    --    Has_Aliased_Components              (Flag135)  (base type only)
4395    --    Has_Alignment_Clause                (Flag46)
4396    --    Has_Atomic_Components               (Flag86)   (base type only)
4397    --    Has_Completion_In_Body              (Flag71)
4398    --    Has_Complex_Representation          (Flag140)  (base type only)
4399    --    Has_Constrained_Partial_View        (Flag187)
4400    --    Has_Discriminants                   (Flag5)
4401    --    Has_Non_Standard_Rep                (Flag75)   (base type only)
4402    --    Has_Object_Size_Clause              (Flag172)
4403    --    Has_Pragma_Unreferenced_Objects     (Flag212)
4404    --    Has_Primitive_Operations            (Flag120)  (base type only)
4405    --    Has_Size_Clause                     (Flag29)
4406    --    Has_Specified_Layout                (Flag100)  (base type only)
4407    --    Has_Specified_Stream_Input          (Flag190)
4408    --    Has_Specified_Stream_Output         (Flag191)
4409    --    Has_Specified_Stream_Read           (Flag192)
4410    --    Has_Specified_Stream_Write          (Flag193)
4411    --    Has_Stream_Size_Clause              (Flag184)
4412    --    Has_Task                            (Flag30)   (base type only)
4413    --    Has_Unchecked_Union                 (Flag123)  (base type only)
4414    --    Has_Volatile_Components             (Flag87)   (base type only)
4415    --    In_Use                              (Flag8)
4416    --    Is_Abstract_Type                    (Flag146)
4417    --    Is_Asynchronous                     (Flag81)
4418    --    Is_Atomic                           (Flag85)
4419    --    Is_Constr_Subt_For_U_Nominal        (Flag80)
4420    --    Is_Constr_Subt_For_UN_Aliased       (Flag141)
4421    --    Is_Controlled                       (Flag42)   (base type only)
4422    --    Is_Eliminated                       (Flag124)
4423    --    Is_Frozen                           (Flag4)
4424    --    Is_Generic_Actual_Type              (Flag94)
4425    --    Is_Generic_Type                     (Flag13)
4426    --    Is_Protected_Interface              (Flag198)
4427    --    Is_Synchronized_Interface           (Flag199)
4428    --    Is_Task_Interface                   (Flag200)
4429    --    Is_Non_Static_Subtype               (Flag109)
4430    --    Is_Packed                           (Flag51)   (base type only)
4431    --    Is_Private_Composite                (Flag107)
4432    --    Is_Renaming_Of_Object               (Flag112)
4433    --    Is_Tagged_Type                      (Flag55)
4434    --    Is_Unsigned_Type                    (Flag144)
4435    --    Is_Volatile                         (Flag16)
4436    --    Itype_Printed                       (Flag202)  (itypes only)
4437    --    Known_To_Have_Preelab_Init          (Flag207)
4438    --    Must_Be_On_Byte_Boundary            (Flag183)
4439    --    Must_Have_Preelab_Init              (Flag208)
4440    --    Size_Depends_On_Discriminant        (Flag177)
4441    --    Size_Known_At_Compile_Time          (Flag92)
4442    --    Strict_Alignment                    (Flag145)  (base type only)
4443    --    Suppress_Init_Proc                  (Flag105)  (base type only)
4444    --    Treat_As_Volatile                   (Flag41)
4445    --    Universal_Aliasing                  (Flag216)  (base type only)
4446
4447    --    Alignment_Clause                    (synth)
4448    --    Ancestor_Subtype                    (synth)
4449    --    Base_Type                           (synth)
4450    --    First_Subtype                       (synth)
4451    --    Has_Private_Ancestor                (synth)
4452    --    Implementation_Base_Type            (synth)
4453    --    Is_Access_Protected_Subprogram_Type (synth)
4454    --    Is_By_Copy_Type                     (synth)
4455    --    Is_By_Reference_Type                (synth)
4456    --    Is_Inherently_Limited_Type          (synth)
4457    --    Root_Type                           (synth)
4458    --    Size_Clause                         (synth)
4459
4460    ------------------------------------------
4461    -- Applicable attributes by entity kind --
4462    ------------------------------------------
4463
4464    --  E_Access_Protected_Subprogram_Type
4465    --    Equivalent_Type                     (Node18)
4466    --    Directly_Designated_Type            (Node20)
4467    --    Needs_No_Actuals                    (Flag22)
4468    --        (plus type attributes)
4469
4470    --  E_Access_Subprogram_Type
4471    --    Equivalent_Type                     (Node18)   (remote types only)
4472    --    Directly_Designated_Type            (Node20)
4473    --    Needs_No_Actuals                    (Flag22)
4474    --        (plus type attributes)
4475
4476    --  E_Access_Type
4477    --  E_Access_Subtype
4478    --    Storage_Size_Variable               (Node15)   (base type only)
4479    --    Master_Id                           (Node17)
4480    --    Directly_Designated_Type            (Node20)
4481    --    Associated_Storage_Pool             (Node22)   (base type only)
4482    --    Associated_Final_Chain              (Node23)
4483    --    Has_Pragma_Controlled               (Flag27)   (base type only)
4484    --    Has_Storage_Size_Clause             (Flag23)   (base type only)
4485    --    Is_Local_Anonymous_Access           (Flag194)
4486    --    Is_Access_Constant                  (Flag69)
4487    --    Is_Pure_Unit_Access_Type            (Flag189)
4488    --    No_Pool_Assigned                    (Flag131)  (base type only)
4489    --    No_Strict_Aliasing                  (Flag136)  (base type only)
4490    --    (plus type attributes)
4491
4492    --  E_Access_Attribute_Type
4493    --    Directly_Designated_Type            (Node20)
4494    --    (plus type attributes)
4495
4496    --  E_Allocator_Type
4497    --    Directly_Designated_Type            (Node20)
4498    --    (plus type attributes)
4499
4500    --  E_Anonymous_Access_Subprogram_Type
4501    --  E_Anonymous_Access_Protected_Subprogram_Type
4502    --  E_Anonymous_Access_Type
4503    --    Storage_Size_Variable               (Node15)   ??? is this needed ???
4504    --    Directly_Designated_Type            (Node20)
4505    --    (plus type attributes)
4506
4507    --  E_Array_Type
4508    --  E_Array_Subtype
4509    --    First_Index                         (Node17)
4510    --    Related_Array_Object                (Node19)
4511    --    Component_Type                      (Node20)   (base type only)
4512    --    Original_Array_Type                 (Node21)
4513    --    Component_Size                      (Uint22)   (base type only)
4514    --    Packed_Array_Type                   (Node23)
4515    --    Component_Alignment                 (special)  (base type only)
4516    --    Has_Component_Size_Clause           (Flag68)   (base type only)
4517    --    Has_Pragma_Pack                     (Flag121)  (base type only)
4518    --    Is_Aliased                          (Flag15)
4519    --    Is_Constrained                      (Flag12)
4520    --    Next_Index                          (synth)
4521    --    Number_Dimensions                   (synth)
4522    --        (plus type attributes)
4523
4524    --  E_Block
4525    --    Block_Node                          (Node11)
4526    --    First_Entity                        (Node17)
4527    --    Last_Entity                         (Node20)
4528    --    Finalization_Chain_Entity           (Node19)
4529    --    Scope_Depth_Value                   (Uint22)
4530    --    Entry_Cancel_Parameter              (Node23)
4531    --    Delay_Cleanups                      (Flag114)
4532    --    Discard_Names                       (Flag88)
4533    --    Has_Master_Entity                   (Flag21)
4534    --    Has_Nested_Block_With_Handler       (Flag101)
4535    --    Sec_Stack_Needed_For_Return         (Flag167)
4536    --    Uses_Sec_Stack                      (Flag95)
4537    --    Scope_Depth                         (synth)
4538
4539    --  E_Class_Wide_Type
4540    --  E_Class_Wide_Subtype
4541    --    Cloned_Subtype                      (Node16)   (subtype case only)
4542    --    First_Entity                        (Node17)
4543    --    Equivalent_Type                     (Node18)   (always Empty for type)
4544    --    Last_Entity                         (Node20)
4545    --    First_Component                     (synth)
4546    --    First_Component_Or_Discriminant     (synth)
4547    --    First_Discriminant                  (synth)
4548    --        (plus type attributes)
4549
4550    --  E_Component
4551    --    Normalized_First_Bit                (Uint8)
4552    --    Current_Value                       (Node9)    (always Empty)
4553    --    Normalized_Position_Max             (Uint10)
4554    --    Component_Bit_Offset                (Uint11)
4555    --    Esize                               (Uint12)
4556    --    Component_Clause                    (Node13)
4557    --    Normalized_Position                 (Uint14)
4558    --    DT_Entry_Count                      (Uint15)
4559    --    Entry_Formal                        (Node16)
4560    --    Prival                              (Node17)
4561    --    Renamed_Object                      (Node18)   (always Empty)
4562    --    Discriminant_Checking_Func          (Node20)
4563    --    Interface_Name                      (Node21)   (JGNAT usage only)
4564    --    Original_Record_Component           (Node22)
4565    --    Protected_Operation                 (Node23)
4566    --    DT_Offset_To_Top_Func               (Node25)
4567    --    Related_Interface                   (Node26)
4568    --    Has_Biased_Representation           (Flag139)
4569    --    Has_Per_Object_Constraint           (Flag154)
4570    --    Is_Atomic                           (Flag85)
4571    --    Is_Tag                              (Flag78)
4572    --    Is_Volatile                         (Flag16)
4573    --    Treat_As_Volatile                   (Flag41)
4574    --    Is_Return_Object                    (Flag209)
4575    --    Is_Protected_Private                (synth)
4576    --    Next_Component                      (synth)
4577    --    Next_Component_Or_Discriminant      (synth)
4578    --    Next_Tag_Component                  (synth)
4579
4580    --  E_Constant
4581    --  E_Loop_Parameter
4582    --    Current_Value                       (Node9)    (always Empty)
4583    --    Discriminal_Link                    (Node10)   (discriminals only)
4584    --    Full_View                           (Node11)
4585    --    Esize                               (Uint12)
4586    --    Alignment                           (Uint14)
4587    --    Actual_Subtype                      (Node17)
4588    --    Renamed_Object                      (Node18)
4589    --    Size_Check_Code                     (Node19)   (constants only)
4590    --    In_Private_Part                     (Flag45)
4591    --    Interface_Name                      (Node21)
4592    --    Has_Alignment_Clause                (Flag46)
4593    --    Has_Atomic_Components               (Flag86)
4594    --    Has_Biased_Representation           (Flag139)
4595    --    Has_Completion                      (Flag26)   (constants only)
4596    --    Has_Size_Clause                     (Flag29)
4597    --    Has_Up_Level_Access                 (Flag215)
4598    --    Has_Volatile_Components             (Flag87)
4599    --    Is_Atomic                           (Flag85)
4600    --    Is_Eliminated                       (Flag124)
4601    --    Is_True_Constant                    (Flag163)
4602    --    Is_Volatile                         (Flag16)
4603    --    Never_Set_In_Source                 (Flag115)
4604    --    Treat_As_Volatile                   (Flag41)
4605    --    Is_Return_Object                    (Flag209)
4606    --    Address_Clause                      (synth)
4607    --    Alignment_Clause                    (synth)
4608    --    Constant_Value                      (synth)
4609    --    Size_Clause                         (synth)
4610
4611    --  E_Decimal_Fixed_Point_Type
4612    --  E_Decimal_Fixed_Subtype
4613    --    Scale_Value                         (Uint15)
4614    --    Digits_Value                        (Uint17)
4615    --    Scalar_Range                        (Node20)
4616    --    Delta_Value                         (Ureal18)
4617    --    Small_Value                         (Ureal21)
4618    --    Has_Machine_Radix_Clause            (Flag83)
4619    --    Machine_Radix_10                    (Flag84)
4620    --    Type_Low_Bound                      (synth)
4621    --    Type_High_Bound                     (synth)
4622    --          (plus type attributes)
4623
4624    --  E_Discriminant
4625    --    Normalized_First_Bit                (Uint8)
4626    --    Current_Value                       (Node9)    (always Empty)
4627    --    Normalized_Position_Max             (Uint10)
4628    --    Component_Bit_Offset                (Uint11)
4629    --    Esize                               (Uint12)
4630    --    Component_Clause                    (Node13)
4631    --    Normalized_Position                 (Uint14)
4632    --    Discriminant_Number                 (Uint15)
4633    --    Discriminal                         (Node17)
4634    --    Renamed_Object                      (Node18)   (always Empty)
4635    --    Corresponding_Discriminant          (Node19)
4636    --    Discriminant_Default_Value          (Node20)
4637    --    Interface_Name                      (Node21)   (JGNAT usage only)
4638    --    Original_Record_Component           (Node22)
4639    --    CR_Discriminant                     (Node23)
4640    --    Is_Return_Object                    (Flag209)
4641    --    Next_Component_Or_Discriminant      (synth)
4642    --    Next_Discriminant                   (synth)
4643    --    Next_Stored_Discriminant            (synth)
4644
4645    --  E_Entry
4646    --  E_Entry_Family
4647    --    Protected_Body_Subprogram           (Node11)
4648    --    Barrier_Function                    (Node12)
4649    --    Entry_Parameters_Type               (Node15)
4650    --    First_Entity                        (Node17)
4651    --    Alias                               (Node18)   (for entry only. Empty)
4652    --    Finalization_Chain_Entity           (Node19)
4653    --    Last_Entity                         (Node20)
4654    --    Accept_Address                      (Elist21)
4655    --    Scope_Depth_Value                   (Uint22)
4656    --    Privals_Chain                       (Elist23)  (for a protected entry)
4657    --    Default_Expressions_Processed       (Flag108)
4658    --    Entry_Accepted                      (Flag152)
4659    --    Is_AST_Entry                        (Flag132)  (for entry only)
4660    --    Needs_No_Actuals                    (Flag22)
4661    --    Sec_Stack_Needed_For_Return         (Flag167)
4662    --    Uses_Sec_Stack                      (Flag95)
4663    --    Address_Clause                      (synth)
4664    --    First_Formal                        (synth)
4665    --    First_Formal_With_Extras            (synth)
4666    --    Entry_Index_Type                    (synth)
4667    --    Number_Formals                      (synth)
4668    --    Scope_Depth                         (synth)
4669
4670    --  E_Entry_Index_Parameter
4671    --    Entry_Index_Constant                (Node18)
4672
4673    --  E_Enumeration_Literal
4674    --    Enumeration_Pos                     (Uint11)
4675    --    Enumeration_Rep                     (Uint12)
4676    --    Debug_Renaming_Link                 (Node13)
4677    --    Alias                               (Node18)
4678    --    Enumeration_Rep_Expr                (Node22)
4679    --    Next_Literal                        (synth)
4680
4681    --  E_Enumeration_Type
4682    --  E_Enumeration_Subtype
4683    --    Lit_Indexes                         (Node15)   (root type only)
4684    --    Lit_Strings                         (Node16)   (root type only)
4685    --    First_Literal                       (Node17)
4686    --    Scalar_Range                        (Node20)
4687    --    Enum_Pos_To_Rep                     (Node23)   (type only)
4688    --    Has_Biased_Representation           (Flag139)
4689    --    Has_Contiguous_Rep                  (Flag181)
4690    --    Has_Enumeration_Rep_Clause          (Flag66)
4691    --    Nonzero_Is_True                     (Flag162)  (base type only)
4692    --    Type_Low_Bound                      (synth)
4693    --    Type_High_Bound                     (synth)
4694    --        (plus type attributes)
4695
4696    --  E_Exception
4697    --    Esize                               (Uint12)
4698    --    Alignment                           (Uint14)
4699    --    Renamed_Entity                      (Node18)
4700    --    Register_Exception_Call             (Node20)
4701    --    Interface_Name                      (Node21)
4702    --    Exception_Code                      (Uint22)
4703    --    Discard_Names                       (Flag88)
4704    --    Is_VMS_Exception                    (Flag133)
4705
4706    --  E_Exception_Type
4707    --    Equivalent_Type                     (Node18)
4708    --        (plus type attributes)
4709
4710    --  E_Floating_Point_Type
4711    --  E_Floating_Point_Subtype
4712    --    Digits_Value                        (Uint17)
4713    --    Scalar_Range                        (Node20)
4714    --    Type_Low_Bound                      (synth)
4715    --    Type_High_Bound                     (synth)
4716    --        (plus type attributes)
4717
4718    --  E_Function
4719    --  E_Generic_Function
4720    --    Mechanism                           (Uint8)    (Mechanism_Type)
4721    --    Renaming_Map                        (Uint9)
4722    --    Handler_Records                     (List10)   (non-generic case only)
4723    --    Protected_Body_Subprogram           (Node11)
4724    --    Next_Inlined_Subprogram             (Node12)
4725    --    Corresponding_Equality              (Node13)   (implicit /= only)
4726    --    Elaboration_Entity                  (Node13)   (all other cases)
4727    --    First_Optional_Parameter            (Node14)   (non-generic case only)
4728    --    DT_Position                         (Uint15)
4729    --    DTC_Entity                          (Node16)
4730    --    First_Entity                        (Node17)
4731    --    Alias                               (Node18)   (non-generic case only)
4732    --    Renamed_Entity                      (Node18)   (generic case only)
4733    --    Finalization_Chain_Entity           (Node19)
4734    --    Last_Entity                         (Node20)
4735    --    Interface_Name                      (Node21)
4736    --    Scope_Depth_Value                   (Uint22)
4737    --    Generic_Renamings                   (Elist23)  (for an instance)
4738    --    Inner_Instances                     (Elist23)  (generic function only)
4739    --    Privals_Chain                       (Elist23)  (protected func only)
4740    --    Abstract_Interface_Alias            (Node25)
4741    --    Overridden_Operation                (Node26)
4742    --    Extra_Formals                       (Node28)
4743    --    Body_Needed_For_SAL                 (Flag40)
4744    --    Elaboration_Entity_Required         (Flag174)
4745    --    Function_Returns_With_DSP           (Flag169)
4746    --    Default_Expressions_Processed       (Flag108)
4747    --    Delay_Cleanups                      (Flag114)
4748    --    Delay_Subprogram_Descriptors        (Flag50)
4749    --    Discard_Names                       (Flag88)
4750    --    Has_Completion                      (Flag26)
4751    --    Has_Controlling_Result              (Flag98)
4752    --    Has_Master_Entity                   (Flag21)
4753    --    Has_Missing_Return                  (Flag142)
4754    --    Has_Nested_Block_With_Handler       (Flag101)
4755    --    Has_Recursive_Call                  (Flag143)
4756    --    Has_Subprogram_Descriptor           (Flag93)
4757    --    Is_Abstract_Subprogram              (Flag19)   (non-generic case only)
4758    --    Is_Called                           (Flag102)  (non-generic case only)
4759    --    Is_Constructor                      (Flag76)
4760    --    Is_Discrim_SO_Function              (Flag176)
4761    --    Is_Eliminated                       (Flag124)
4762    --    Is_Instantiated                     (Flag126)  (generic case only)
4763    --    Is_Intrinsic_Subprogram             (Flag64)
4764    --    Is_Machine_Code_Subprogram          (Flag137)  (non-generic case only)
4765    --    Is_Overriding_Operation             (Flag39)   (non-generic case only)
4766    --    Is_Private_Descendant               (Flag53)
4767    --    Is_Pure                             (Flag44)
4768    --    Is_Visible_Child_Unit               (Flag116)
4769    --    Needs_No_Actuals                    (Flag22)
4770    --    Requires_Overriding                 (Flag213)  (non-generic case only)
4771    --    Return_Present                      (Flag54)
4772    --    Returns_By_Ref                      (Flag90)
4773    --    Sec_Stack_Needed_For_Return         (Flag167)
4774    --    Uses_Sec_Stack                      (Flag95)
4775    --    Address_Clause                      (synth)
4776    --    First_Formal                        (synth)
4777    --    First_Formal_With_Extras            (synth)
4778    --    Number_Formals                      (synth)
4779    --    Scope_Depth                         (synth)
4780
4781    --  E_General_Access_Type
4782    --    Storage_Size_Variable               (Node15)   (base type only)
4783    --    Master_Id                           (Node17)
4784    --    Directly_Designated_Type            (Node20)
4785    --    Associated_Storage_Pool             (Node22)   (base type only)
4786    --    Associated_Final_Chain              (Node23)
4787    --    (plus type attributes)
4788
4789    --  E_Generic_In_Parameter
4790    --  E_Generic_In_Out_Parameter
4791    --    Current_Value                       (Node9)    (always Empty)
4792    --    Entry_Component                     (Node11)
4793    --    Actual_Subtype                      (Node17)
4794    --    Renamed_Object                      (Node18)   (always Empty)
4795    --    Default_Value                       (Node20)
4796    --    Protected_Formal                    (Node22)
4797    --    Is_Controlling_Formal               (Flag97)
4798    --    Is_Entry_Formal                     (Flag52)
4799    --    Is_Return_Object                    (Flag209)
4800    --    Parameter_Mode                      (synth)
4801
4802    --  E_Incomplete_Type
4803    --  E_Incomplete_Subtype
4804    --    Non_Limited_View                    (Node17)
4805    --    Private_Dependents                  (Elist18)
4806    --    Discriminant_Constraint             (Elist21)
4807    --    Stored_Constraint                   (Elist23)
4808    --    First_Discriminant                  (synth)
4809    --    First_Stored_Discriminant           (synth)
4810    --    (plus type attributes)
4811
4812    --  E_In_Parameter
4813    --  E_In_Out_Parameter
4814    --  E_Out_Parameter
4815    --    Mechanism                           (Uint8)    (Mechanism_Type)
4816    --    Current_Value                       (Node9)
4817    --    Discriminal_Link                    (Node10)   (discriminals only)
4818    --    Entry_Component                     (Node11)
4819    --    Esize                               (Uint12)
4820    --    Extra_Accessibility                 (Node13)
4821    --    Alignment                           (Uint14)
4822    --    Extra_Formal                        (Node15)
4823    --    Unset_Reference                     (Node16)
4824    --    Actual_Subtype                      (Node17)
4825    --    Renamed_Object                      (Node18)
4826    --    Spec_Entity                         (Node19)
4827    --    Default_Value                       (Node20)
4828    --    Default_Expr_Function               (Node21)
4829    --    Protected_Formal                    (Node22)
4830    --    Extra_Constrained                   (Node23)
4831    --    Is_Controlling_Formal               (Flag97)
4832    --    Is_Entry_Formal                     (Flag52)
4833    --    Is_Optional_Parameter               (Flag134)
4834    --    Low_Bound_Known                     (Flag205)
4835    --    Never_Set_In_Source                 (Flag115)
4836    --    Is_Return_Object                    (Flag209)
4837    --    Parameter_Mode                      (synth)
4838
4839    --  E_Label
4840    --    Enclosing_Scope                     (Node18)
4841    --    Reachable                           (Flag49)
4842
4843    --  E_Limited_Private_Type
4844    --  E_Limited_Private_Subtype
4845    --    First_Entity                        (Node17)
4846    --    Private_Dependents                  (Elist18)
4847    --    Underlying_Full_View                (Node19)
4848    --    Last_Entity                         (Node20)
4849    --    Discriminant_Constraint             (Elist21)
4850    --    Private_View                        (Node22)
4851    --    Stored_Constraint                   (Elist23)
4852    --    Has_Completion                      (Flag26)
4853    --    First_Discriminant                  (synth)
4854    --    First_Stored_Discriminant           (synth)
4855    --    (plus type attributes)
4856
4857    --  E_Loop
4858    --    Has_Exit                            (Flag47)
4859    --    Has_Master_Entity                   (Flag21)
4860    --    Has_Nested_Block_With_Handler       (Flag101)
4861
4862    --  E_Modular_Integer_Type
4863    --  E_Modular_Integer_Subtype
4864    --    Modulus                             (Uint17)    (base type only)
4865    --    Original_Array_Type                 (Node21)
4866    --    Scalar_Range                        (Node20)
4867    --    Non_Binary_Modulus                  (Flag58)    (base type only)
4868    --    Has_Biased_Representation           (Flag139)
4869    --    Type_Low_Bound                      (synth)
4870    --    Type_High_Bound                     (synth)
4871    --    (plus type attributes)
4872
4873    --  E_Named_Integer
4874    --    Constant_Value                      (synth)
4875
4876    --  E_Named_Real
4877    --    Constant_Value                      (synth)
4878
4879    --  E_Operator
4880    --    First_Entity                        (Node17)
4881    --    Alias                               (Node18)
4882    --    Last_Entity                         (Node20)
4883    --    Is_Machine_Code_Subprogram          (Flag137)
4884    --    Is_Pure                             (Flag44)
4885    --    Is_Intrinsic_Subprogram             (Flag64)
4886    --    Is_Overriding_Operation             (Flag39)
4887    --    Default_Expressions_Processed       (Flag108)
4888
4889    --  E_Ordinary_Fixed_Point_Type
4890    --  E_Ordinary_Fixed_Point_Subtype
4891    --    Delta_Value                         (Ureal18)
4892    --    Scalar_Range                        (Node20)
4893    --    Small_Value                         (Ureal21)
4894    --    Has_Small_Clause                    (Flag67)
4895    --    Type_Low_Bound                      (synth)
4896    --    Type_High_Bound                     (synth)
4897    --        (plus type attributes)
4898
4899    --  E_Package
4900    --  E_Generic_Package
4901    --    Dependent_Instances                 (Elist8)   (for an instance)
4902    --    Renaming_Map                        (Uint9)
4903    --    Handler_Records                     (List10)   (non-generic case only)
4904    --    Generic_Homonym                     (Node11)   (generic case only)
4905    --    Associated_Formal_Package           (Node12)
4906    --    Elaboration_Entity                  (Node13)
4907    --    Shadow_Entities                     (List14)
4908    --    Related_Instance                    (Node15)   (non-generic case only)
4909    --    First_Private_Entity                (Node16)
4910    --    First_Entity                        (Node17)
4911    --    Renamed_Entity                      (Node18)
4912    --    Body_Entity                         (Node19)
4913    --    Last_Entity                         (Node20)
4914    --    Interface_Name                      (Node21)
4915    --    Scope_Depth_Value                   (Uint22)
4916    --    Generic_Renamings                   (Elist23)  (for an instance)
4917    --    Inner_Instances                     (Elist23)  (generic case only)
4918    --    Limited_View                        (Node23)   (non-generic/instance)
4919    --    Current_Use_Clause                  (Node25)
4920    --    Package_Instantiation               (Node26)
4921    --    Delay_Subprogram_Descriptors        (Flag50)
4922    --    Body_Needed_For_SAL                 (Flag40)
4923    --    Discard_Names                       (Flag88)
4924    --    Elaboration_Entity_Required         (Flag174)
4925    --    Elaborate_Body_Desirable            (Flag210)  (non-generic case only)
4926    --    From_With_Type                      (Flag159)
4927    --    Has_All_Calls_Remote                (Flag79)
4928    --    Has_Completion                      (Flag26)
4929    --    Has_Forward_Instantiation           (Flag175)
4930    --    Has_Master_Entity                   (Flag21)
4931    --    Has_RACW                            (Flag214)  (non-generic case only)
4932    --    Has_Subprogram_Descriptor           (Flag93)
4933    --    In_Package_Body                     (Flag48)
4934    --    In_Private_Part                     (Flag45)
4935    --    In_Use                              (Flag8)
4936    --    Is_Instantiated                     (Flag126)
4937    --    Is_Private_Descendant               (Flag53)
4938    --    Is_Visible_Child_Unit               (Flag116)
4939    --    Is_Wrapper_Package                  (synth)    (non-generic case only)
4940    --    Scope_Depth                         (synth)
4941    --    Static_Elaboration_Desired          (Flag77)   (non-generic case only)
4942
4943    --  E_Package_Body
4944    --    Handler_Records                     (List10)   (non-generic case only)
4945    --    Related_Instance                    (Node15)   (non-generic case only)
4946    --    First_Entity                        (Node17)
4947    --    Spec_Entity                         (Node19)
4948    --    Last_Entity                         (Node20)
4949    --    Scope_Depth_Value                   (Uint22)
4950    --    Scope_Depth                         (synth)
4951    --    Delay_Subprogram_Descriptors        (Flag50)
4952    --    Has_Subprogram_Descriptor           (Flag93)
4953
4954    --  E_Private_Type
4955    --  E_Private_Subtype
4956    --    Primitive_Operations                (Elist15)
4957    --    First_Entity                        (Node17)
4958    --    Private_Dependents                  (Elist18)
4959    --    Underlying_Full_View                (Node19)
4960    --    Last_Entity                         (Node20)
4961    --    Discriminant_Constraint             (Elist21)
4962    --    Private_View                        (Node22)
4963    --    Stored_Constraint                   (Elist23)
4964    --    Has_Completion                      (Flag26)
4965    --    Is_Controlled                       (Flag42)   (base type only)
4966    --    Is_For_Access_Subtype               (Flag118)  (subtype only)
4967    --    First_Discriminant                  (synth)
4968    --    First_Stored_Discriminant           (synth)
4969    --    (plus type attributes)
4970
4971    --  E_Procedure
4972    --  E_Generic_Procedure
4973    --    Renaming_Map                        (Uint9)
4974    --    Handler_Records                     (List10)   (non-generic case only)
4975    --    Protected_Body_Subprogram           (Node11)
4976    --    Next_Inlined_Subprogram             (Node12)
4977    --    Elaboration_Entity                  (Node13)
4978    --    First_Optional_Parameter            (Node14)   (non-generic case only)
4979    --    DT_Position                         (Uint15)
4980    --    DTC_Entity                          (Node16)
4981    --    First_Entity                        (Node17)
4982    --    Alias                               (Node18)   (non-generic case only)
4983    --    Renamed_Entity                      (Node18)   (generic case only)
4984    --    Finalization_Chain_Entity           (Node19)
4985    --    Last_Entity                         (Node20)
4986    --    Interface_Name                      (Node21)
4987    --    Scope_Depth_Value                   (Uint22)
4988    --    Generic_Renamings                   (Elist23)  (for instance)
4989    --    Inner_Instances                     (Elist23)  (for generic proc)
4990    --    Privals_Chain                       (Elist23)  (for protected proc)
4991    --    Abstract_Interface_Alias            (Node25)
4992    --    Static_Initialization               (Node26)   (init_proc only)
4993    --    Overridden_Operation                (Node26)
4994    --    Wrapped_Entity                      (Node27)   (non-generic case only)
4995    --    Extra_Formals                       (Node28)
4996    --    Body_Needed_For_SAL                 (Flag40)
4997    --    Delay_Cleanups                      (Flag114)
4998    --    Discard_Names                       (Flag88)
4999    --    Elaboration_Entity_Required         (Flag174)
5000    --    Function_Returns_With_DSP           (Flag169)  (false for procedure)
5001    --    Default_Expressions_Processed       (Flag108)
5002    --    Delay_Cleanups                      (Flag114)
5003    --    Delay_Subprogram_Descriptors        (Flag50)
5004    --    Discard_Names                       (Flag88)
5005    --    Has_Completion                      (Flag26)
5006    --    Has_Master_Entity                   (Flag21)
5007    --    Has_Nested_Block_With_Handler       (Flag101)
5008    --    Has_Subprogram_Descriptor           (Flag93)
5009    --    Is_Visible_Child_Unit               (Flag116)
5010    --    Is_Abstract_Subprogram              (Flag19)   (non-generic case only)
5011    --    Is_Asynchronous                     (Flag81)
5012    --    Is_Called                           (Flag102)  (non-generic subprog)
5013    --    Is_Constructor                      (Flag76)
5014    --    Is_Eliminated                       (Flag124)
5015    --    Is_Instantiated                     (Flag126)  (generic case only)
5016    --    Is_Interrupt_Handler                (Flag89)
5017    --    Is_Intrinsic_Subprogram             (Flag64)
5018    --    Is_Machine_Code_Subprogram          (Flag137)  (non-generic case only)
5019    --    Is_Null_Init_Proc                   (Flag178)
5020    --    Is_Overriding_Operation             (Flag39)   (non-generic case only)
5021    --    Is_Primitive_Wrapper                (Flag195)  (non-generic case only)
5022    --    Is_Private_Descendant               (Flag53)
5023    --    Is_Pure                             (Flag44)
5024    --    Is_Valued_Procedure                 (Flag127)
5025    --    Is_Visible_Child_Unit               (Flag116)
5026    --    Needs_No_Actuals                    (Flag22)
5027    --    No_Return                           (Flag113)
5028    --    Requires_Overriding                 (Flag213)  (non-generic case only)
5029    --    Sec_Stack_Needed_For_Return         (Flag167)
5030    --    Address_Clause                      (synth)
5031    --    First_Formal                        (synth)
5032    --    First_Formal_With_Extras            (synth)
5033    --    Number_Formals                      (synth)
5034    --    Delay_Cleanups                      (Flag114)
5035    --    Discard_Names                       (Flag88)
5036
5037    --  E_Protected_Body
5038    --    Object_Ref                          (Node17)
5039    --    (any others??? First/Last Entity, Scope_Depth???)
5040
5041    --  E_Protected_Object
5042
5043    --  E_Protected_Type
5044    --  E_Protected_Subtype
5045    --    Entry_Bodies_Array                  (Node15)
5046    --    First_Private_Entity                (Node16)
5047    --    First_Entity                        (Node17)
5048    --    Corresponding_Record_Type           (Node18)
5049    --    Finalization_Chain_Entity           (Node19)
5050    --    Last_Entity                         (Node20)
5051    --    Discriminant_Constraint             (Elist21)
5052    --    Scope_Depth_Value                   (Uint22)
5053    --    Scope_Depth                         (synth)
5054    --    Stored_Constraint                   (Elist23)
5055    --    Has_Interrupt_Handler               (synth)
5056    --    Sec_Stack_Needed_For_Return         (Flag167)  ???
5057    --    Uses_Sec_Stack                      (Flag95)   ???
5058    --    Has_Entries                         (synth)
5059    --    Number_Entries                      (synth)
5060
5061    --  E_Record_Type
5062    --  E_Record_Subtype
5063    --    Primitive_Operations                (Elist15)
5064    --    Access_Disp_Table                   (Elist16)  (base type only)
5065    --    Cloned_Subtype                      (Node16)   (subtype case only)
5066    --    First_Entity                        (Node17)
5067    --    Corresponding_Concurrent_Type       (Node18)
5068    --    Parent_Subtype                      (Node19)
5069    --    Last_Entity                         (Node20)
5070    --    Discriminant_Constraint             (Elist21)
5071    --    Corresponding_Remote_Type           (Node22)
5072    --    Stored_Constraint                   (Elist23)
5073    --    Abstract_Interfaces                 (Elist25)
5074    --    Component_Alignment                 (special)  (base type only)
5075    --    C_Pass_By_Copy                      (Flag125)  (base type only)
5076    --    Has_External_Tag_Rep_Clause         (Flag110)
5077    --    Has_Record_Rep_Clause               (Flag65)   (base type only)
5078    --    Has_Static_Discriminants            (Flag211)  (subtype only)
5079    --    Is_Class_Wide_Equivalent_Type       (Flag35)
5080    --    Is_Concurrent_Record_Type           (Flag20)
5081    --    Is_Constrained                      (Flag12)
5082    --    Is_Controlled                       (Flag42)   (base type only)
5083    --    Is_Interface                        (Flag186)
5084    --    Is_Limited_Interface                (Flag197)
5085    --    Reverse_Bit_Order                   (Flag164)  (base type only)
5086    --    First_Component                     (synth)
5087    --    First_Component_Or_Discriminant     (synth)
5088    --    First_Discriminant                  (synth)
5089    --    First_Stored_Discriminant           (synth)
5090    --    First_Tag_Component                 (synth)
5091    --    (plus type attributes)
5092
5093    --  E_Record_Type_With_Private
5094    --  E_Record_Subtype_With_Private
5095    --    Primitive_Operations                (Elist15)
5096    --    Access_Disp_Table                   (Elist16)  (base type only)
5097    --    First_Entity                        (Node17)
5098    --    Private_Dependents                  (Elist18)
5099    --    Underlying_Full_View                (Node19)
5100    --    Last_Entity                         (Node20)
5101    --    Discriminant_Constraint             (Elist21)
5102    --    Private_View                        (Node22)
5103    --    Stored_Constraint                   (Elist23)
5104    --    Abstract_Interfaces                 (Elist25)
5105    --    Has_Completion                      (Flag26)
5106    --    Has_Record_Rep_Clause               (Flag65)   (base type only)
5107    --    Has_External_Tag_Rep_Clause         (Flag110)
5108    --    Is_Concurrent_Record_Type           (Flag20)
5109    --    Is_Constrained                      (Flag12)
5110    --    Is_Controlled                       (Flag42)   (base type only)
5111    --    Is_Interface                        (Flag186)
5112    --    Is_Limited_Interface                (Flag197)
5113    --    Reverse_Bit_Order                   (Flag164)  (base type only)
5114    --    First_Component                     (synth)
5115    --    First_Component_Or_Discriminant     (synth)
5116    --    First_Discriminant                  (synth)
5117    --    First_Stored_Discriminant           (synth)
5118    --    First_Tag_Component                 (synth)
5119    --    (plus type attributes)
5120
5121    --  E_Return_Statement
5122    --    Return_Applies_To                   (Node8)
5123    --    Finalization_Chain_Entity           (Node19)
5124
5125    --  E_Signed_Integer_Type
5126    --  E_Signed_Integer_Subtype
5127    --    Scalar_Range                        (Node20)
5128    --    Has_Biased_Representation           (Flag139)
5129    --    Type_Low_Bound                      (synth)
5130    --    Type_High_Bound                     (synth)
5131    --    (plus type attributes)
5132
5133    --  E_String_Type
5134    --  E_String_Subtype
5135    --    First_Index                         (Node17)
5136    --    Component_Type                      (Node20)   (base type only)
5137    --    Is_Constrained                      (Flag12)
5138    --    Next_Index                          (synth)
5139    --    Number_Dimensions                   (synth)
5140    --    (plus type attributes)
5141
5142    --  E_String_Literal_Subtype
5143    --    String_Literal_Low_Bound            (Node15)
5144    --    String_Literal_Length               (Uint16)
5145    --    First_Index                         (Node17)   (always Empty)
5146    --    Packed_Array_Type                   (Node23)
5147    --    (plus type attributes)
5148
5149    --  E_Subprogram_Body
5150    --    Mechanism                           (Uint8)
5151    --    First_Entity                        (Node17)
5152    --    Last_Entity                         (Node20)
5153    --    Scope_Depth_Value                   (Uint22)
5154    --    Scope_Depth                         (synth)
5155
5156    --  E_Subprogram_Type
5157    --    Directly_Designated_Type            (Node20)
5158    --    First_Formal                        (synth)
5159    --    First_Formal_With_Extras            (synth)
5160    --    Number_Formals                      (synth)
5161    --    Function_Returns_With_DSP           (Flag169)
5162    --    (plus type attributes)
5163
5164    --  E_Task_Body
5165    --    (any others??? First/Last Entity, Scope_Depth???)
5166
5167    --  E_Task_Type
5168    --  E_Task_Subtype
5169    --    Storage_Size_Variable               (Node15)   (base type only)
5170    --    First_Private_Entity                (Node16)
5171    --    First_Entity                        (Node17)
5172    --    Corresponding_Record_Type           (Node18)
5173    --    Finalization_Chain_Entity           (Node19)
5174    --    Last_Entity                         (Node20)
5175    --    Discriminant_Constraint             (Elist21)
5176    --    Scope_Depth_Value                   (Uint22)
5177    --    Scope_Depth                         (synth)
5178    --    Stored_Constraint                   (Elist23)
5179    --    Task_Body_Procedure                 (Node25)
5180    --    Delay_Cleanups                      (Flag114)
5181    --    Has_Master_Entity                   (Flag21)
5182    --    Has_Storage_Size_Clause             (Flag23)   (base type only)
5183    --    Uses_Sec_Stack                      (Flag95)   ???
5184    --    Sec_Stack_Needed_For_Return         (Flag167)  ???
5185    --    Has_Entries                         (synth)
5186    --    Number_Entries                      (synth)
5187    --    (plus type attributes)
5188
5189    --  E_Variable
5190    --    Hiding_Loop_Variable                (Node8)
5191    --    Current_Value                       (Node9)
5192    --    Esize                               (Uint12)
5193    --    Extra_Accessibility                 (Node13)
5194    --    Alignment                           (Uint14)
5195    --    Shared_Var_Read_Proc                (Node15)
5196    --    Unset_Reference                     (Node16)
5197    --    Actual_Subtype                      (Node17)
5198    --    Renamed_Object                      (Node18)
5199    --    Size_Check_Code                     (Node19)
5200    --    Last_Assignment                     (Node20)
5201    --    Interface_Name                      (Node21)
5202    --    Shared_Var_Assign_Proc              (Node22)
5203    --    Extra_Constrained                   (Node23)
5204    --    Has_Alignment_Clause                (Flag46)
5205    --    Has_Atomic_Components               (Flag86)
5206    --    Has_Biased_Representation           (Flag139)
5207    --    Has_Size_Clause                     (Flag29)
5208    --    Has_Volatile_Components             (Flag87)
5209    --    In_Private_Part                     (Flag45)
5210    --    Is_Atomic                           (Flag85)
5211    --    Is_Eliminated                       (Flag124)
5212    --    Is_Shared_Passive                   (Flag60)
5213    --    Is_True_Constant                    (Flag163)
5214    --    Is_Volatile                         (Flag16)
5215    --    Never_Set_In_Source                 (Flag115)
5216    --    Treat_As_Volatile                   (Flag41)
5217    --    Is_Return_Object                    (Flag209)
5218    --    Has_Up_Level_Access                 (Flag215)
5219    --    Address_Clause                      (synth)
5220    --    Alignment_Clause                    (synth)
5221    --    Constant_Value                      (synth)
5222    --    Size_Clause                         (synth)
5223
5224    --  E_Void
5225    --    Since E_Void is the initial Ekind value of an entity when it is first
5226    --    created, one might expect that no attributes would be defined on such
5227    --    an entity until its Ekind field is set. However, in practice, there
5228    --    are many instances in which fields of an E_Void entity are set in the
5229    --    code prior to setting the Ekind field. This is not well documented or
5230    --    well controlled, and needs cleaning up later. Meanwhile, the access
5231    --    procedures in the body of Einfo permit many, but not all, attributes
5232    --    to be applied to an E_Void entity, precisely so that this kind of
5233    --    pre-setting of attributes works. This is really a hole in the dynamic
5234    --    type checking, since there is no assurance that the eventual Ekind
5235    --    value will be appropriate for the attributes set, and the consequence
5236    --    is that the dynamic type checking in the Einfo body is unnecessarily
5237    --    weak. To be looked at systematically some time ???
5238
5239    ---------------------------------
5240    -- Component_Alignment Control --
5241    ---------------------------------
5242
5243    --  There are four types of alignment possible for array and record
5244    --  types, and a field in the type entities contains a value of the
5245    --  following type indicating which alignment choice applies. For full
5246    --  details of the meaning of these aligment types, see description
5247    --  of the Component_Alignment pragma
5248
5249    type Component_Alignment_Kind is (
5250       Calign_Default,          -- default alignment
5251       Calign_Component_Size,   -- natural alignment for component size
5252       Calign_Component_Size_4, -- natural for size <= 4, 4 for size >= 4
5253       Calign_Storage_Unit);    -- all components byte aligned
5254
5255    ---------------
5256    -- Iterators --
5257    ---------------
5258
5259    --  In addition to attributes that are stored as plain data, other
5260    --  attributes are procedural, and require some small amount of
5261    --  computation. Of course, from the point of view of a user of this
5262    --  package, the distinction is not visible (even the field information
5263    --  provided below should be disregarded, as it is subject to  change
5264    --  without notice!). A number of  attributes appear as lists: lists of
5265    --  formals,  lists of actuals, of discriminants, etc. For these, pairs
5266    --  of functions are defined, which take the form:
5267
5268    --      function First_Thing (E : Enclosing_Construct) return Thing;
5269    --      function Next_Thing (T : Thing) return Thing;
5270
5271    --  The end of iteration is always signaled by a value of Empty, so that
5272    --  loops over these chains invariably have the form:
5273
5274    --      This : Thing;
5275    --      ...
5276    --      This := First_Thing (E);
5277
5278    --      while Present (This) loop
5279    --         Do_Something_With (This);
5280    --        ...
5281    --        This := Next_Thing (This);
5282    --      end loop;
5283
5284    -----------------------------------
5285    -- Handling of Check Suppression --
5286    -----------------------------------
5287
5288    --  There are three ways that checks can be suppressed:
5289
5290    --    1.  At the command line level
5291    --    2.  At the scope level.
5292    --    3.  At the entity level.
5293
5294    --  See spec of Sem in sem.ads for details of the data structures used
5295    --  to keep track of these various methods for suppressing checks.
5296
5297    -------------------------------
5298    -- Handling of Discriminants --
5299    -------------------------------
5300
5301    --  During semantic processing, discriminants are separate entities which
5302    --  reflect the semantic properties and allowed usage of discriminants in
5303    --  the language.
5304
5305    --  In the case of discriminants used as bounds, the references are handled
5306    --  directly, since special processing is needed in any case. However, there
5307    --  are two circumstances in which discriminants are referenced in a quite
5308    --  general manner, like any other variables:
5309
5310    --     In initialization expressions for records. Note that the expressions
5311    --     used in Priority, Storage_Size, and Task_Info pragmas are effectively
5312    --     in this category, since these pragmas are converted to initialized
5313    --     record fields in the Corresponding_Record_Type.
5314
5315    --     In task and protected bodies, where the discriminant values may be
5316    --     referenced freely within these bodies. Discriminants can also appear
5317    --     in bounds of entry families and in defaults of operations.
5318
5319    --  In both these cases, the discriminants must be treated essentially as
5320    --  objects. The following approach is used to simplify and minimize the
5321    --  special processing that is required.
5322
5323    --  When a record type with discriminants is processed, the semantic
5324    --  processing creates the entities for the discriminants. It also creates
5325    --  an additional set of entities, called discriminals, one for each of
5326    --  the discriminants, and the Discriminal field of the discriminant entity
5327    --  points to this additional entity, which is initially created as an
5328    --  uninitialized (E_Void) entity.
5329
5330    --  During expansion of expressions, any discriminant reference is replaced
5331    --  by a reference to the corresponding discriminal. When the initialization
5332    --  procedure for the record is created (there will always be one, since
5333    --  discriminants are present, see Exp_Ch3 for further details), the
5334    --  discriminals are used as the entities for the formal parameters of
5335    --  this initialization procedure. The references to these discriminants
5336    --  have already been replaced by references to these discriminals, which
5337    --  are now the formal parameters corresponding to the required objects.
5338
5339    --  In the case of a task or protected body, the semantics similarly
5340    --  creates a set of discriminals for the discriminants of the task or
5341    --  protected type. When the procedure is created for the task body,
5342    --  the parameter passed in is a reference to the task value type, which
5343    --  contains the required discriminant values. The expander creates a
5344    --  set of declarations of the form:
5345
5346    --      discriminal : constant dtype renames _Task.discriminant;
5347
5348    --  where discriminal is the discriminal entity referenced by the task
5349    --  discriminant, and _Task is the task value passed in as the parameter.
5350    --  Again, any references to discriminants in the task body have been
5351    --  replaced by the discriminal reference, which is now an object that
5352    --  contains the required value.
5353
5354    --  This approach for tasks means that two sets of discriminals are needed
5355    --  for a task type, one for the initialization procedure, and one for the
5356    --  task body. This works out nicely, since the semantics allocates one set
5357    --  for the task itself, and one set for the corresponding record.
5358
5359    --  The one bit of trickiness arises in making sure that the right set of
5360    --  discriminals is used at the right time. First the task definition is
5361    --  processed. Any references to discriminants here are replaced by the
5362    --  the corresponding *task* discriminals (the record type doesn't even
5363    --  exist yet, since it is constructed as part of the expansion of the
5364    --  task declaration, which happens after the semantic processing of the
5365    --  task definition). The discriminants to be used for the corresponding
5366    --  record are created at the same time as the other discriminals, and
5367    --  held in the CR_Discriminant field of the discriminant. A use of the
5368    --  discriminant in a bound for an entry family is replaced with the CR_
5369    --  discriminant because it controls the bound of the entry queue array
5370    --  which is a component of the corresponding record.
5371
5372    --  Just before the record initialization routine is constructed, the
5373    --  expander exchanges the task and record discriminals. This has two
5374    --  effects. First the generation of the record initialization routine
5375    --  uses the discriminals that are now on the record, which is the set
5376    --  that used to be on the task, which is what we want.
5377
5378    --  Second, a new set of (so far unused) discriminals is now on the task
5379    --  discriminants, and it is this set that will be used for expanding the
5380    --  task body, and also for the discriminal declarations at the start of
5381    --  the task body.
5382
5383    ---------------------------------------
5384    -- Private data in protected objects --
5385    ---------------------------------------
5386
5387    --  Private object declarations in protected types pose problems
5388    --  similar to those of discriminants. They are expanded to components
5389    --  of a record which is passed as the parameter "_object" to expanded
5390    --  forms of all protected operations. As with discriminants, timing
5391    --  of this expansion is a problem. The sequence of statements for a
5392    --  protected operation is expanded before the operation itself, so the
5393    --  formal parameter for the record object containing the private data
5394    --  does not exist when the references to that data are expanded.
5395
5396    --  For this reason, private data is handled in the same way as
5397    --  discriminants, expanding references to private data in protected
5398    --  operations (which appear as components) to placeholders which will
5399    --  eventually become renamings of the private selected components
5400    --  of the "_object" formal parameter. These placeholders are called
5401    --  "privals", by analogy to the "discriminals" used to implement
5402    --  discriminants. They are attached to the component declaration nodes
5403    --  representing the private object declarations of the protected type.
5404
5405    --  As with discriminals, each protected subprogram needs a unique set
5406    --  of privals, since they must refer to renamings of components of a
5407    --  formal parameter of that operation. Entry bodies need another set,
5408    --  which they all share and which is associated with renamings in the
5409    --  Service_Entries procedure for the protected type (this is not yet
5410    --  implemented???). This means that we must associate a new set of
5411    --  privals (and discriminals) with the private declarations after
5412    --  the body of a protected subprogram is processed.
5413
5414    --  The last complication is the presence of discriminants and discriminated
5415    --  components. In the corresponding record, the components are constrained
5416    --  by the discriminants of the record, but within each protected operation
5417    --  they are constrained by the discriminants of the actual. The actual
5418    --  subtypes of those components are constructed as for other unconstrained
5419    --  formals, but the privals are created before the formal object is added
5420    --  to the parameter list of the protected operation, so they carry the
5421    --  nominal subtype of the original component. After the protected operation
5422    --  is actually created (in  the expansion of the protected body) we must
5423    --  patch the types of each prival occurrence with the proper actual subtype
5424    --  which is by now set. The Privals_Chain is used for this patching.
5425
5426    -------------------
5427    -- Type Synonyms --
5428    -------------------
5429
5430    --  The following type synonyms are used to tidy up the function and
5431    --  procedure declarations that follow, and also to make it possible
5432    --  to meet the requirement for the XEINFO utility that all function
5433    --  specs must fit on a single source line.
5434
5435    subtype B is Boolean;
5436    subtype C is Component_Alignment_Kind;
5437    subtype E is Entity_Id;
5438    subtype M is Mechanism_Type;
5439    subtype N is Node_Id;
5440    subtype U is Uint;
5441    subtype R is Ureal;
5442    subtype L is Elist_Id;
5443    subtype S is List_Id;
5444
5445    --------------------------------
5446    -- Attribute Access Functions --
5447    --------------------------------
5448
5449    --  All attributes are manipulated through a procedural interface. This
5450    --  section contains the functions used to obtain attribute values which
5451    --  correspond to values in fields or flags in the entity itself.
5452
5453    function Abstract_Interfaces                 (Id : E) return L;
5454    function Accept_Address                      (Id : E) return L;
5455    function Access_Disp_Table                   (Id : E) return L;
5456    function Actual_Subtype                      (Id : E) return E;
5457    function Address_Taken                       (Id : E) return B;
5458    function Alias                               (Id : E) return E;
5459    function Abstract_Interface_Alias            (Id : E) return E;
5460    function Alignment                           (Id : E) return U;
5461    function Associated_Final_Chain              (Id : E) return E;
5462    function Associated_Formal_Package           (Id : E) return E;
5463    function Associated_Node_For_Itype           (Id : E) return N;
5464    function Associated_Storage_Pool             (Id : E) return E;
5465    function Barrier_Function                    (Id : E) return N;
5466    function Block_Node                          (Id : E) return N;
5467    function Body_Entity                         (Id : E) return E;
5468    function Body_Needed_For_SAL                 (Id : E) return B;
5469    function CR_Discriminant                     (Id : E) return E;
5470    function C_Pass_By_Copy                      (Id : E) return B;
5471    function Can_Never_Be_Null                   (Id : E) return B;
5472    function Checks_May_Be_Suppressed            (Id : E) return B;
5473    function Class_Wide_Type                     (Id : E) return E;
5474    function Cloned_Subtype                      (Id : E) return E;
5475    function Component_Alignment                 (Id : E) return C;
5476    function Component_Clause                    (Id : E) return N;
5477    function Component_Bit_Offset                (Id : E) return U;
5478    function Component_Size                      (Id : E) return U;
5479    function Component_Type                      (Id : E) return E;
5480    function Corresponding_Concurrent_Type       (Id : E) return E;
5481    function Corresponding_Discriminant          (Id : E) return E;
5482    function Corresponding_Equality              (Id : E) return E;
5483    function Corresponding_Record_Type           (Id : E) return E;
5484    function Corresponding_Remote_Type           (Id : E) return E;
5485    function Current_Use_Clause                  (Id : E) return E;
5486    function Current_Value                       (Id : E) return N;
5487    function Debug_Info_Off                      (Id : E) return B;
5488    function Debug_Renaming_Link                 (Id : E) return E;
5489    function DTC_Entity                          (Id : E) return E;
5490    function DT_Entry_Count                      (Id : E) return U;
5491    function DT_Offset_To_Top_Func               (Id : E) return E;
5492    function DT_Position                         (Id : E) return U;
5493    function Default_Expr_Function               (Id : E) return E;
5494    function Default_Expressions_Processed       (Id : E) return B;
5495    function Default_Value                       (Id : E) return N;
5496    function Delay_Cleanups                      (Id : E) return B;
5497    function Delay_Subprogram_Descriptors        (Id : E) return B;
5498    function Delta_Value                         (Id : E) return R;
5499    function Dependent_Instances                 (Id : E) return L;
5500    function Depends_On_Private                  (Id : E) return B;
5501    function Digits_Value                        (Id : E) return U;
5502    function Directly_Designated_Type            (Id : E) return E;
5503    function Discard_Names                       (Id : E) return B;
5504    function Discriminal                         (Id : E) return E;
5505    function Discriminal_Link                    (Id : E) return E;
5506    function Discriminant_Checking_Func          (Id : E) return E;
5507    function Discriminant_Constraint             (Id : E) return L;
5508    function Discriminant_Default_Value          (Id : E) return N;
5509    function Discriminant_Number                 (Id : E) return U;
5510    function Elaborate_Body_Desirable            (Id : E) return B;
5511    function Elaboration_Entity                  (Id : E) return E;
5512    function Elaboration_Entity_Required         (Id : E) return B;
5513    function Enclosing_Scope                     (Id : E) return E;
5514    function Entry_Accepted                      (Id : E) return B;
5515    function Entry_Bodies_Array                  (Id : E) return E;
5516    function Entry_Cancel_Parameter              (Id : E) return E;
5517    function Entry_Component                     (Id : E) return E;
5518    function Entry_Formal                        (Id : E) return E;
5519    function Entry_Index_Constant                (Id : E) return E;
5520    function Entry_Index_Type                    (Id : E) return E;
5521    function Entry_Parameters_Type               (Id : E) return E;
5522    function Enum_Pos_To_Rep                     (Id : E) return E;
5523    function Enumeration_Pos                     (Id : E) return U;
5524    function Enumeration_Rep                     (Id : E) return U;
5525    function Enumeration_Rep_Expr                (Id : E) return N;
5526    function Equivalent_Type                     (Id : E) return E;
5527    function Esize                               (Id : E) return U;
5528    function Exception_Code                      (Id : E) return U;
5529    function Extra_Accessibility                 (Id : E) return E;
5530    function Extra_Constrained                   (Id : E) return E;
5531    function Extra_Formal                        (Id : E) return E;
5532    function Extra_Formals                       (Id : E) return E;
5533    function Finalization_Chain_Entity           (Id : E) return E;
5534    function Finalize_Storage_Only               (Id : E) return B;
5535    function First_Entity                        (Id : E) return E;
5536    function First_Index                         (Id : E) return N;
5537    function First_Literal                       (Id : E) return E;
5538    function First_Optional_Parameter            (Id : E) return E;
5539    function First_Private_Entity                (Id : E) return E;
5540    function First_Rep_Item                      (Id : E) return N;
5541    function Freeze_Node                         (Id : E) return N;
5542    function From_With_Type                      (Id : E) return B;
5543    function Full_View                           (Id : E) return E;
5544    function Function_Returns_With_DSP           (Id : E) return B;
5545    function Generic_Homonym                     (Id : E) return E;
5546    function Generic_Renamings                   (Id : E) return L;
5547    function Handler_Records                     (Id : E) return S;
5548    function Has_Aliased_Components              (Id : E) return B;
5549    function Has_Alignment_Clause                (Id : E) return B;
5550    function Has_All_Calls_Remote                (Id : E) return B;
5551    function Has_Anon_Block_Suffix               (Id : E) return B;
5552    function Has_Atomic_Components               (Id : E) return B;
5553    function Has_Biased_Representation           (Id : E) return B;
5554    function Has_Completion                      (Id : E) return B;
5555    function Has_Completion_In_Body              (Id : E) return B;
5556    function Has_Complex_Representation          (Id : E) return B;
5557    function Has_Component_Size_Clause           (Id : E) return B;
5558    function Has_Constrained_Partial_View        (Id : E) return B;
5559    function Has_Contiguous_Rep                  (Id : E) return B;
5560    function Has_Controlled_Component            (Id : E) return B;
5561    function Has_Controlling_Result              (Id : E) return B;
5562    function Has_Convention_Pragma               (Id : E) return B;
5563    function Has_Delayed_Freeze                  (Id : E) return B;
5564    function Has_Discriminants                   (Id : E) return B;
5565    function Has_Enumeration_Rep_Clause          (Id : E) return B;
5566    function Has_Exit                            (Id : E) return B;
5567    function Has_External_Tag_Rep_Clause         (Id : E) return B;
5568    function Has_Fully_Qualified_Name            (Id : E) return B;
5569    function Has_Gigi_Rep_Item                   (Id : E) return B;
5570    function Has_Homonym                         (Id : E) return B;
5571    function Has_Interrupt_Handler               (Id : E) return B;
5572    function Has_Machine_Radix_Clause            (Id : E) return B;
5573    function Has_Master_Entity                   (Id : E) return B;
5574    function Has_Missing_Return                  (Id : E) return B;
5575    function Has_Nested_Block_With_Handler       (Id : E) return B;
5576    function Has_Forward_Instantiation           (Id : E) return B;
5577    function Has_Up_Level_Access                 (Id : E) return B;
5578    function Has_Non_Standard_Rep                (Id : E) return B;
5579    function Has_Object_Size_Clause              (Id : E) return B;
5580    function Has_Per_Object_Constraint           (Id : E) return B;
5581    function Has_Persistent_BSS                  (Id : E) return B;
5582    function Has_Pragma_Controlled               (Id : E) return B;
5583    function Has_Pragma_Elaborate_Body           (Id : E) return B;
5584    function Has_Pragma_Inline                   (Id : E) return B;
5585    function Has_Pragma_Pack                     (Id : E) return B;
5586    function Has_Pragma_Pure                     (Id : E) return B;
5587    function Has_Pragma_Pure_Function            (Id : E) return B;
5588    function Has_Pragma_Unreferenced             (Id : E) return B;
5589    function Has_Pragma_Unreferenced_Objects     (Id : E) return B;
5590    function Has_Primitive_Operations            (Id : E) return B;
5591    function Has_Qualified_Name                  (Id : E) return B;
5592    function Has_RACW                            (Id : E) return B;
5593    function Has_Record_Rep_Clause               (Id : E) return B;
5594    function Has_Recursive_Call                  (Id : E) return B;
5595    function Has_Size_Clause                     (Id : E) return B;
5596    function Has_Small_Clause                    (Id : E) return B;
5597    function Has_Specified_Layout                (Id : E) return B;
5598    function Has_Specified_Stream_Input          (Id : E) return B;
5599    function Has_Specified_Stream_Output         (Id : E) return B;
5600    function Has_Specified_Stream_Read           (Id : E) return B;
5601    function Has_Specified_Stream_Write          (Id : E) return B;
5602    function Has_Static_Discriminants            (Id : E) return B;
5603    function Has_Storage_Size_Clause             (Id : E) return B;
5604    function Has_Stream_Size_Clause              (Id : E) return B;
5605    function Has_Subprogram_Descriptor           (Id : E) return B;
5606    function Has_Task                            (Id : E) return B;
5607    function Has_Unchecked_Union                 (Id : E) return B;
5608    function Has_Unknown_Discriminants           (Id : E) return B;
5609    function Has_Volatile_Components             (Id : E) return B;
5610    function Has_Xref_Entry                      (Id : E) return B;
5611    function Hiding_Loop_Variable                (Id : E) return E;
5612    function Homonym                             (Id : E) return E;
5613    function In_Package_Body                     (Id : E) return B;
5614    function In_Private_Part                     (Id : E) return B;
5615    function In_Use                              (Id : E) return B;
5616    function Inner_Instances                     (Id : E) return L;
5617    function Interface_Name                      (Id : E) return N;
5618    function Is_AST_Entry                        (Id : E) return B;
5619    function Is_Abstract_Subprogram              (Id : E) return B;
5620    function Is_Abstract_Type                    (Id : E) return B;
5621    function Is_Local_Anonymous_Access           (Id : E) return B;
5622    function Is_Access_Constant                  (Id : E) return B;
5623    function Is_Ada_2005_Only                    (Id : E) return B;
5624    function Is_Aliased                          (Id : E) return B;
5625    function Is_Asynchronous                     (Id : E) return B;
5626    function Is_Atomic                           (Id : E) return B;
5627    function Is_Bit_Packed_Array                 (Id : E) return B;
5628    function Is_CPP_Class                        (Id : E) return B;
5629    function Is_Called                           (Id : E) return B;
5630    function Is_Character_Type                   (Id : E) return B;
5631    function Is_Child_Unit                       (Id : E) return B;
5632    function Is_Class_Wide_Equivalent_Type       (Id : E) return B;
5633    function Is_Compilation_Unit                 (Id : E) return B;
5634    function Is_Completely_Hidden                (Id : E) return B;
5635    function Is_Constr_Subt_For_UN_Aliased       (Id : E) return B;
5636    function Is_Constr_Subt_For_U_Nominal        (Id : E) return B;
5637    function Is_Constrained                      (Id : E) return B;
5638    function Is_Constructor                      (Id : E) return B;
5639    function Is_Controlled                       (Id : E) return B;
5640    function Is_Controlling_Formal               (Id : E) return B;
5641    function Is_Discrim_SO_Function              (Id : E) return B;
5642    function Is_Dispatching_Operation            (Id : E) return B;
5643    function Is_Eliminated                       (Id : E) return B;
5644    function Is_Entry_Formal                     (Id : E) return B;
5645    function Is_Exported                         (Id : E) return B;
5646    function Is_First_Subtype                    (Id : E) return B;
5647    function Is_For_Access_Subtype               (Id : E) return B;
5648    function Is_Frozen                           (Id : E) return B;
5649    function Is_Generic_Instance                 (Id : E) return B;
5650    function Is_Hidden                           (Id : E) return B;
5651    function Is_Hidden_Open_Scope                (Id : E) return B;
5652    function Is_Immediately_Visible              (Id : E) return B;
5653    function Is_Imported                         (Id : E) return B;
5654    function Is_Inlined                          (Id : E) return B;
5655    function Is_Interface                        (Id : E) return B;
5656    function Is_Instantiated                     (Id : E) return B;
5657    function Is_Internal                         (Id : E) return B;
5658    function Is_Interrupt_Handler                (Id : E) return B;
5659    function Is_Intrinsic_Subprogram             (Id : E) return B;
5660    function Is_Itype                            (Id : E) return B;
5661    function Is_Known_Non_Null                   (Id : E) return B;
5662    function Is_Known_Null                       (Id : E) return B;
5663    function Is_Known_Valid                      (Id : E) return B;
5664    function Is_Limited_Composite                (Id : E) return B;
5665    function Is_Limited_Interface                (Id : E) return B;
5666    function Is_Machine_Code_Subprogram          (Id : E) return B;
5667    function Is_Non_Static_Subtype               (Id : E) return B;
5668    function Is_Null_Init_Proc                   (Id : E) return B;
5669    function Is_Obsolescent                      (Id : E) return B;
5670    function Is_Optional_Parameter               (Id : E) return B;
5671    function Is_Package_Body_Entity              (Id : E) return B;
5672    function Is_Packed                           (Id : E) return B;
5673    function Is_Packed_Array_Type                (Id : E) return B;
5674    function Is_Potentially_Use_Visible          (Id : E) return B;
5675    function Is_Preelaborated                    (Id : E) return B;
5676    function Is_Primitive_Wrapper                (Id : E) return B;
5677    function Is_Private_Composite                (Id : E) return B;
5678    function Is_Private_Descendant               (Id : E) return B;
5679    function Is_Protected_Interface              (Id : E) return B;
5680    function Is_Public                           (Id : E) return B;
5681    function Is_Pure                             (Id : E) return B;
5682    function Is_Pure_Unit_Access_Type            (Id : E) return B;
5683    function Is_Remote_Call_Interface            (Id : E) return B;
5684    function Is_Remote_Types                     (Id : E) return B;
5685    function Is_Renaming_Of_Object               (Id : E) return B;
5686    function Is_Return_Object                    (Id : E) return B;
5687    function Is_Shared_Passive                   (Id : E) return B;
5688    function Is_Statically_Allocated             (Id : E) return B;
5689    function Is_Synchronized_Interface           (Id : E) return B;
5690    function Is_Tag                              (Id : E) return B;
5691    function Is_Tagged_Type                      (Id : E) return B;
5692    function Is_Task_Interface                   (Id : E) return B;
5693    function Is_True_Constant                    (Id : E) return B;
5694    function Is_Unchecked_Union                  (Id : E) return B;
5695    function Is_Unsigned_Type                    (Id : E) return B;
5696    function Is_VMS_Exception                    (Id : E) return B;
5697    function Is_Valued_Procedure                 (Id : E) return B;
5698    function Is_Visible_Child_Unit               (Id : E) return B;
5699    function Is_Visible_Formal                   (Id : E) return B;
5700    function Is_Volatile                         (Id : E) return B;
5701    function Itype_Printed                       (Id : E) return B;
5702    function Kill_Elaboration_Checks             (Id : E) return B;
5703    function Kill_Range_Checks                   (Id : E) return B;
5704    function Kill_Tag_Checks                     (Id : E) return B;
5705    function Known_To_Have_Preelab_Init          (Id : E) return B;
5706    function Last_Assignment                     (Id : E) return N;
5707    function Last_Entity                         (Id : E) return E;
5708    function Limited_View                        (Id : E) return E;
5709    function Lit_Indexes                         (Id : E) return E;
5710    function Lit_Strings                         (Id : E) return E;
5711    function Low_Bound_Known                     (Id : E) return B;
5712    function Machine_Radix_10                    (Id : E) return B;
5713    function Master_Id                           (Id : E) return E;
5714    function Materialize_Entity                  (Id : E) return B;
5715    function Mechanism                           (Id : E) return M;
5716    function Modulus                             (Id : E) return U;
5717    function Must_Be_On_Byte_Boundary            (Id : E) return B;
5718    function Must_Have_Preelab_Init              (Id : E) return B;
5719    function Needs_Debug_Info                    (Id : E) return B;
5720    function Needs_No_Actuals                    (Id : E) return B;
5721    function Never_Set_In_Source                 (Id : E) return B;
5722    function Next_Inlined_Subprogram             (Id : E) return E;
5723    function No_Pool_Assigned                    (Id : E) return B;
5724    function No_Return                           (Id : E) return B;
5725    function No_Strict_Aliasing                  (Id : E) return B;
5726    function Non_Binary_Modulus                  (Id : E) return B;
5727    function Non_Limited_View                    (Id : E) return E;
5728    function Nonzero_Is_True                     (Id : E) return B;
5729    function Normalized_First_Bit                (Id : E) return U;
5730    function Normalized_Position                 (Id : E) return U;
5731    function Normalized_Position_Max             (Id : E) return U;
5732    function Object_Ref                          (Id : E) return E;
5733    function Obsolescent_Warning                 (Id : E) return N;
5734    function Original_Array_Type                 (Id : E) return E;
5735    function Original_Record_Component           (Id : E) return E;
5736    function Overridden_Operation                (Id : E) return E;
5737    function Package_Instantiation               (Id : E) return N;
5738    function Packed_Array_Type                   (Id : E) return E;
5739    function Parent_Subtype                      (Id : E) return E;
5740    function Primitive_Operations                (Id : E) return L;
5741    function Prival                              (Id : E) return E;
5742    function Privals_Chain                       (Id : E) return L;
5743    function Private_Dependents                  (Id : E) return L;
5744    function Private_View                        (Id : E) return N;
5745    function Protected_Body_Subprogram           (Id : E) return E;
5746    function Protected_Formal                    (Id : E) return E;
5747    function Protected_Operation                 (Id : E) return E;
5748    function RM_Size                             (Id : E) return U;
5749    function Reachable                           (Id : E) return B;
5750    function Referenced                          (Id : E) return B;
5751    function Referenced_As_LHS                   (Id : E) return B;
5752    function Referenced_Object                   (Id : E) return N;
5753    function Register_Exception_Call             (Id : E) return N;
5754    function Related_Array_Object                (Id : E) return E;
5755    function Related_Instance                    (Id : E) return E;
5756    function Related_Interface                   (Id : E) return E;
5757    function Renamed_Entity                      (Id : E) return N;
5758    function Renamed_Object                      (Id : E) return N;
5759    function Renaming_Map                        (Id : E) return U;
5760    function Requires_Overriding                 (Id : E) return B;
5761    function Return_Present                      (Id : E) return B;
5762    function Return_Applies_To                   (Id : E) return N;
5763    function Returns_By_Ref                      (Id : E) return B;
5764    function Reverse_Bit_Order                   (Id : E) return B;
5765    function Scalar_Range                        (Id : E) return N;
5766    function Scale_Value                         (Id : E) return U;
5767    function Scope_Depth_Value                   (Id : E) return U;
5768    function Sec_Stack_Needed_For_Return         (Id : E) return B;
5769    function Shadow_Entities                     (Id : E) return S;
5770    function Shared_Var_Assign_Proc              (Id : E) return E;
5771    function Shared_Var_Read_Proc                (Id : E) return E;
5772    function Size_Check_Code                     (Id : E) return N;
5773    function Size_Known_At_Compile_Time          (Id : E) return B;
5774    function Size_Depends_On_Discriminant        (Id : E) return B;
5775    function Small_Value                         (Id : E) return R;
5776    function Spec_Entity                         (Id : E) return E;
5777    function Storage_Size_Variable               (Id : E) return E;
5778    function Static_Elaboration_Desired          (Id : E) return B;
5779    function Static_Initialization               (Id : E) return N;
5780    function Stored_Constraint                   (Id : E) return L;
5781    function Strict_Alignment                    (Id : E) return B;
5782    function String_Literal_Length               (Id : E) return U;
5783    function String_Literal_Low_Bound            (Id : E) return N;
5784    function Suppress_Elaboration_Warnings       (Id : E) return B;
5785    function Suppress_Init_Proc                  (Id : E) return B;
5786    function Suppress_Style_Checks               (Id : E) return B;
5787    function Suppress_Value_Tracking_On_Call     (Id : E) return B;
5788    function Task_Body_Procedure                 (Id : E) return N;
5789    function Treat_As_Volatile                   (Id : E) return B;
5790    function Underlying_Full_View                (Id : E) return E;
5791    function Universal_Aliasing                  (Id : E) return B;
5792    function Unset_Reference                     (Id : E) return N;
5793    function Uses_Sec_Stack                      (Id : E) return B;
5794    function Vax_Float                           (Id : E) return B;
5795    function Warnings_Off                        (Id : E) return B;
5796    function Was_Hidden                          (Id : E) return B;
5797    function Wrapped_Entity                      (Id : E) return E;
5798
5799    -------------------------------
5800    -- Classification Attributes --
5801    -------------------------------
5802
5803    --  These functions provide a convenient functional notation for testing
5804    --  whether an Ekind value belongs to a specified kind, for example the
5805    --  function Is_Elementary_Type tests if its argument is in Elementary_Kind.
5806    --  In some cases, the test is of an entity attribute (e.g. in the case of
5807    --  Is_Generic_Type where the Ekind does not provide the needed information)
5808
5809    function Is_Access_Type                      (Id : E) return B;
5810    function Is_Access_Protected_Subprogram_Type (Id : E) return B;
5811    function Is_Array_Type                       (Id : E) return B;
5812    function Is_Class_Wide_Type                  (Id : E) return B;
5813    function Is_Composite_Type                   (Id : E) return B;
5814    function Is_Concurrent_Body                  (Id : E) return B;
5815    function Is_Concurrent_Record_Type           (Id : E) return B;
5816    function Is_Concurrent_Type                  (Id : E) return B;
5817    function Is_Decimal_Fixed_Point_Type         (Id : E) return B;
5818    function Is_Digits_Type                      (Id : E) return B;
5819    function Is_Discrete_Or_Fixed_Point_Type     (Id : E) return B;
5820    function Is_Discrete_Type                    (Id : E) return B;
5821    function Is_Elementary_Type                  (Id : E) return B;
5822    function Is_Entry                            (Id : E) return B;
5823    function Is_Enumeration_Type                 (Id : E) return B;
5824    function Is_Fixed_Point_Type                 (Id : E) return B;
5825    function Is_Floating_Point_Type              (Id : E) return B;
5826    function Is_Formal                           (Id : E) return B;
5827    function Is_Formal_Object                    (Id : E) return B;
5828    function Is_Formal_Subprogram                (Id : E) return B;
5829    function Is_Generic_Actual_Type              (Id : E) return B;
5830    function Is_Generic_Unit                     (Id : E) return B;
5831    function Is_Generic_Type                     (Id : E) return B;
5832    function Is_Generic_Subprogram               (Id : E) return B;
5833    function Is_Incomplete_Or_Private_Type       (Id : E) return B;
5834    function Is_Incomplete_Type                  (Id : E) return B;
5835    function Is_Integer_Type                     (Id : E) return B;
5836    function Is_Limited_Record                   (Id : E) return B;
5837    function Is_Modular_Integer_Type             (Id : E) return B;
5838    function Is_Named_Number                     (Id : E) return B;
5839    function Is_Numeric_Type                     (Id : E) return B;
5840    function Is_Object                           (Id : E) return B;
5841    function Is_Ordinary_Fixed_Point_Type        (Id : E) return B;
5842    function Is_Overloadable                     (Id : E) return B;
5843    function Is_Overriding_Operation             (Id : E) return B;
5844    function Is_Private_Type                     (Id : E) return B;
5845    function Is_Protected_Type                   (Id : E) return B;
5846    function Is_Real_Type                        (Id : E) return B;
5847    function Is_Record_Type                      (Id : E) return B;
5848    function Is_Scalar_Type                      (Id : E) return B;
5849    function Is_Signed_Integer_Type              (Id : E) return B;
5850    function Is_Subprogram                       (Id : E) return B;
5851    function Is_Task_Type                        (Id : E) return B;
5852    function Is_Type                             (Id : E) return B;
5853
5854    -------------------------------------
5855    -- Synthesized Attribute Functions --
5856    -------------------------------------
5857
5858    --  The functions in this section synthesize attributes from the tree,
5859    --  so they do not correspond to defined fields in the entity itself.
5860
5861    function Address_Clause                      (Id : E) return N;
5862    function Alignment_Clause                    (Id : E) return N;
5863    function Ancestor_Subtype                    (Id : E) return E;
5864    function Available_View                      (Id : E) return E;
5865    function Base_Type                           (Id : E) return E;
5866    function Constant_Value                      (Id : E) return N;
5867    function Declaration_Node                    (Id : E) return N;
5868    function Designated_Type                     (Id : E) return E;
5869    function Enclosing_Dynamic_Scope             (Id : E) return E;
5870    function First_Component                     (Id : E) return E;
5871    function First_Component_Or_Discriminant     (Id : E) return E;
5872    function First_Discriminant                  (Id : E) return E;
5873    function First_Formal                        (Id : E) return E;
5874    function First_Formal_With_Extras            (Id : E) return E;
5875    function First_Stored_Discriminant           (Id : E) return E;
5876    function First_Subtype                       (Id : E) return E;
5877    function Has_Attach_Handler                  (Id : E) return B;
5878    function Has_Entries                         (Id : E) return B;
5879    function Has_Foreign_Convention              (Id : E) return B;
5880    function Has_Private_Ancestor                (Id : E) return B;
5881    function Has_Private_Declaration             (Id : E) return B;
5882    function Implementation_Base_Type            (Id : E) return E;
5883    function Is_Always_Inlined                   (Id : E) return B;
5884    function Is_Boolean_Type                     (Id : E) return B;
5885    function Is_By_Copy_Type                     (Id : E) return B;
5886    function Is_By_Reference_Type                (Id : E) return B;
5887    function Is_Derived_Type                     (Id : E) return B;
5888    function Is_Dynamic_Scope                    (Id : E) return B;
5889    function Is_Indefinite_Subtype               (Id : E) return B;
5890    function Is_Limited_Type                     (Id : E) return B;
5891    function Is_Package_Or_Generic_Package       (Id : E) return B;
5892    function Is_Protected_Private                (Id : E) return B;
5893    function Is_Protected_Record_Type            (Id : E) return B;
5894    function Is_Inherently_Limited_Type          (Id : E) return B;
5895    function Is_String_Type                      (Id : E) return B;
5896    function Is_Task_Record_Type                 (Id : E) return B;
5897    function Is_Wrapper_Package                  (Id : E) return B;
5898    function Next_Component                      (Id : E) return E;
5899    function Next_Component_Or_Discriminant      (Id : E) return E;
5900    function Next_Discriminant                   (Id : E) return E;
5901    function Next_Formal                         (Id : E) return E;
5902    function Next_Formal_With_Extras             (Id : E) return E;
5903    function Next_Literal                        (Id : E) return E;
5904    function Next_Stored_Discriminant            (Id : E) return E;
5905    function Number_Dimensions                   (Id : E) return Pos;
5906    function Number_Discriminants                (Id : E) return Pos;
5907    function Number_Entries                      (Id : E) return Nat;
5908    function Number_Formals                      (Id : E) return Pos;
5909    function Parameter_Mode                      (Id : E) return Formal_Kind;
5910    function Root_Type                           (Id : E) return E;
5911    function Scope_Depth_Set                     (Id : E) return B;
5912    function Size_Clause                         (Id : E) return N;
5913    function Stream_Size_Clause                  (Id : E) return N;
5914    function First_Tag_Component                 (Id : E) return E;
5915    function Next_Tag_Component                  (Id : E) return E;
5916    function Type_High_Bound                     (Id : E) return N;
5917    function Type_Low_Bound                      (Id : E) return N;
5918    function Underlying_Type                     (Id : E) return E;
5919
5920    ----------------------------------------------
5921    -- Type Representation Attribute Predicates --
5922    ----------------------------------------------
5923
5924    --  These predicates test the setting of the indicated attribute. If the
5925    --  value has been set, then Known is True, and Unknown is False. If no
5926    --  value is set, then Known is False and Unknown is True. The Known_Static
5927    --  predicate is true only if the value is set (Known) and is set to a
5928    --  compile time known value. Note that in the case of Alignment and
5929    --  Normalized_First_Bit, dynamic values are not possible, so we do not
5930    --  need a separate Known_Static calls in these cases. The not set (unknown
5931    --  values are as follows:
5932
5933    --    Alignment               Uint_0 or No_Uint
5934    --    Component_Size          Uint_0 or No_Uint
5935    --    Component_Bit_Offset    No_Uint
5936    --    Digits_Value            Uint_0 or No_Uint
5937    --    Esize                   Uint_0 or No_Uint
5938    --    Normalized_First_Bit    No_Uint
5939    --    Normalized_Position     No_Uint
5940    --    Normalized_Position_Max No_Uint
5941    --    RM_Size                 Uint_0 or No_Uint
5942
5943    --  It would be cleaner to use No_Uint in all these cases, but historically
5944    --  we chose to use Uint_0 at first, and the change over will take time ???
5945    --  This is particularly true for the RM_Size field, where a value of zero
5946    --  is legitimate. We deal with this by a nasty kludge that knows that the
5947    --  value is always known static for discrete types (and no other types can
5948    --  have an RM_Size value of zero).
5949
5950    function Known_Alignment                       (E : Entity_Id) return B;
5951    function Known_Component_Bit_Offset            (E : Entity_Id) return B;
5952    function Known_Component_Size                  (E : Entity_Id) return B;
5953    function Known_Esize                           (E : Entity_Id) return B;
5954    function Known_Normalized_First_Bit            (E : Entity_Id) return B;
5955    function Known_Normalized_Position             (E : Entity_Id) return B;
5956    function Known_Normalized_Position_Max         (E : Entity_Id) return B;
5957    function Known_RM_Size                         (E : Entity_Id) return B;
5958
5959    function Known_Static_Component_Bit_Offset     (E : Entity_Id) return B;
5960    function Known_Static_Component_Size           (E : Entity_Id) return B;
5961    function Known_Static_Esize                    (E : Entity_Id) return B;
5962    function Known_Static_Normalized_First_Bit     (E : Entity_Id) return B;
5963    function Known_Static_Normalized_Position      (E : Entity_Id) return B;
5964    function Known_Static_Normalized_Position_Max  (E : Entity_Id) return B;
5965    function Known_Static_RM_Size                  (E : Entity_Id) return B;
5966
5967    function Unknown_Alignment                     (E : Entity_Id) return B;
5968    function Unknown_Component_Bit_Offset          (E : Entity_Id) return B;
5969    function Unknown_Component_Size                (E : Entity_Id) return B;
5970    function Unknown_Esize                         (E : Entity_Id) return B;
5971    function Unknown_Normalized_First_Bit          (E : Entity_Id) return B;
5972    function Unknown_Normalized_Position           (E : Entity_Id) return B;
5973    function Unknown_Normalized_Position_Max       (E : Entity_Id) return B;
5974    function Unknown_RM_Size                       (E : Entity_Id) return B;
5975
5976    ------------------------------
5977    -- Attribute Set Procedures --
5978    ------------------------------
5979
5980    procedure Set_Abstract_Interfaces             (Id : E; V : L);
5981    procedure Set_Accept_Address                  (Id : E; V : L);
5982    procedure Set_Access_Disp_Table               (Id : E; V : L);
5983    procedure Set_Actual_Subtype                  (Id : E; V : E);
5984    procedure Set_Address_Taken                   (Id : E; V : B := True);
5985    procedure Set_Alias                           (Id : E; V : E);
5986    procedure Set_Abstract_Interface_Alias        (Id : E; V : E);
5987    procedure Set_Alignment                       (Id : E; V : U);
5988    procedure Set_Associated_Final_Chain          (Id : E; V : E);
5989    procedure Set_Associated_Formal_Package       (Id : E; V : E);
5990    procedure Set_Associated_Node_For_Itype       (Id : E; V : N);
5991    procedure Set_Associated_Storage_Pool         (Id : E; V : E);
5992    procedure Set_Barrier_Function                (Id : E; V : N);
5993    procedure Set_Block_Node                      (Id : E; V : N);
5994    procedure Set_Body_Entity                     (Id : E; V : E);
5995    procedure Set_Body_Needed_For_SAL             (Id : E; V : B := True);
5996    procedure Set_CR_Discriminant                 (Id : E; V : E);
5997    procedure Set_C_Pass_By_Copy                  (Id : E; V : B := True);
5998    procedure Set_Can_Never_Be_Null               (Id : E; V : B := True);
5999    procedure Set_Checks_May_Be_Suppressed        (Id : E; V : B := True);
6000    procedure Set_Class_Wide_Type                 (Id : E; V : E);
6001    procedure Set_Cloned_Subtype                  (Id : E; V : E);
6002    procedure Set_Component_Alignment             (Id : E; V : C);
6003    procedure Set_Component_Bit_Offset            (Id : E; V : U);
6004    procedure Set_Component_Clause                (Id : E; V : N);
6005    procedure Set_Component_Size                  (Id : E; V : U);
6006    procedure Set_Component_Type                  (Id : E; V : E);
6007    procedure Set_Corresponding_Concurrent_Type   (Id : E; V : E);
6008    procedure Set_Corresponding_Discriminant      (Id : E; V : E);
6009    procedure Set_Corresponding_Equality          (Id : E; V : E);
6010    procedure Set_Corresponding_Record_Type       (Id : E; V : E);
6011    procedure Set_Corresponding_Remote_Type       (Id : E; V : E);
6012    procedure Set_Current_Use_Clause              (Id : E; V : E);
6013    procedure Set_Current_Value                   (Id : E; V : N);
6014    procedure Set_Debug_Info_Off                  (Id : E; V : B := True);
6015    procedure Set_Debug_Renaming_Link             (Id : E; V : E);
6016    procedure Set_DTC_Entity                      (Id : E; V : E);
6017    procedure Set_DT_Entry_Count                  (Id : E; V : U);
6018    procedure Set_DT_Offset_To_Top_Func           (Id : E; V : E);
6019    procedure Set_DT_Position                     (Id : E; V : U);
6020    procedure Set_Default_Expr_Function           (Id : E; V : E);
6021    procedure Set_Default_Expressions_Processed   (Id : E; V : B := True);
6022    procedure Set_Default_Value                   (Id : E; V : N);
6023    procedure Set_Delay_Cleanups                  (Id : E; V : B := True);
6024    procedure Set_Delay_Subprogram_Descriptors    (Id : E; V : B := True);
6025    procedure Set_Delta_Value                     (Id : E; V : R);
6026    procedure Set_Dependent_Instances             (Id : E; V : L);
6027    procedure Set_Depends_On_Private              (Id : E; V : B := True);
6028    procedure Set_Digits_Value                    (Id : E; V : U);
6029    procedure Set_Directly_Designated_Type        (Id : E; V : E);
6030    procedure Set_Discard_Names                   (Id : E; V : B := True);
6031    procedure Set_Discriminal                     (Id : E; V : E);
6032    procedure Set_Discriminal_Link                (Id : E; V : E);
6033    procedure Set_Discriminant_Checking_Func      (Id : E; V : E);
6034    procedure Set_Discriminant_Constraint         (Id : E; V : L);
6035    procedure Set_Discriminant_Default_Value      (Id : E; V : N);
6036    procedure Set_Discriminant_Number             (Id : E; V : U);
6037    procedure Set_Elaborate_Body_Desirable        (Id : E; V : B := True);
6038    procedure Set_Elaboration_Entity              (Id : E; V : E);
6039    procedure Set_Elaboration_Entity_Required     (Id : E; V : B := True);
6040    procedure Set_Enclosing_Scope                 (Id : E; V : E);
6041    procedure Set_Entry_Accepted                  (Id : E; V : B := True);
6042    procedure Set_Entry_Bodies_Array              (Id : E; V : E);
6043    procedure Set_Entry_Cancel_Parameter          (Id : E; V : E);
6044    procedure Set_Entry_Component                 (Id : E; V : E);
6045    procedure Set_Entry_Formal                    (Id : E; V : E);
6046    procedure Set_Entry_Index_Constant            (Id : E; V : E);
6047    procedure Set_Entry_Parameters_Type           (Id : E; V : E);
6048    procedure Set_Enum_Pos_To_Rep                 (Id : E; V : E);
6049    procedure Set_Enumeration_Pos                 (Id : E; V : U);
6050    procedure Set_Enumeration_Rep                 (Id : E; V : U);
6051    procedure Set_Enumeration_Rep_Expr            (Id : E; V : N);
6052    procedure Set_Equivalent_Type                 (Id : E; V : E);
6053    procedure Set_Esize                           (Id : E; V : U);
6054    procedure Set_Exception_Code                  (Id : E; V : U);
6055    procedure Set_Extra_Accessibility             (Id : E; V : E);
6056    procedure Set_Extra_Constrained               (Id : E; V : E);
6057    procedure Set_Extra_Formal                    (Id : E; V : E);
6058    procedure Set_Extra_Formals                   (Id : E; V : E);
6059    procedure Set_Finalization_Chain_Entity       (Id : E; V : E);
6060    procedure Set_Finalize_Storage_Only           (Id : E; V : B := True);
6061    procedure Set_First_Entity                    (Id : E; V : E);
6062    procedure Set_First_Index                     (Id : E; V : N);
6063    procedure Set_First_Literal                   (Id : E; V : E);
6064    procedure Set_First_Optional_Parameter        (Id : E; V : E);
6065    procedure Set_First_Private_Entity            (Id : E; V : E);
6066    procedure Set_First_Rep_Item                  (Id : E; V : N);
6067    procedure Set_Freeze_Node                     (Id : E; V : N);
6068    procedure Set_From_With_Type                  (Id : E; V : B := True);
6069    procedure Set_Full_View                       (Id : E; V : E);
6070    procedure Set_Function_Returns_With_DSP       (Id : E; V : B := True);
6071    procedure Set_Generic_Homonym                 (Id : E; V : E);
6072    procedure Set_Generic_Renamings               (Id : E; V : L);
6073    procedure Set_Handler_Records                 (Id : E; V : S);
6074    procedure Set_Has_Aliased_Components          (Id : E; V : B := True);
6075    procedure Set_Has_Alignment_Clause            (Id : E; V : B := True);
6076    procedure Set_Has_All_Calls_Remote            (Id : E; V : B := True);
6077    procedure Set_Has_Anon_Block_Suffix           (Id : E; V : B := True);
6078    procedure Set_Has_Atomic_Components           (Id : E; V : B := True);
6079    procedure Set_Has_Biased_Representation       (Id : E; V : B := True);
6080    procedure Set_Has_Completion                  (Id : E; V : B := True);
6081    procedure Set_Has_Completion_In_Body          (Id : E; V : B := True);
6082    procedure Set_Has_Complex_Representation      (Id : E; V : B := True);
6083    procedure Set_Has_Component_Size_Clause       (Id : E; V : B := True);
6084    procedure Set_Has_Constrained_Partial_View    (Id : E; V : B := True);
6085    procedure Set_Has_Contiguous_Rep              (Id : E; V : B := True);
6086    procedure Set_Has_Controlled_Component        (Id : E; V : B := True);
6087    procedure Set_Has_Controlling_Result          (Id : E; V : B := True);
6088    procedure Set_Has_Convention_Pragma           (Id : E; V : B := True);
6089    procedure Set_Has_Delayed_Freeze              (Id : E; V : B := True);
6090    procedure Set_Has_Discriminants               (Id : E; V : B := True);
6091    procedure Set_Has_Enumeration_Rep_Clause      (Id : E; V : B := True);
6092    procedure Set_Has_Exit                        (Id : E; V : B := True);
6093    procedure Set_Has_External_Tag_Rep_Clause     (Id : E; V : B := True);
6094    procedure Set_Has_Fully_Qualified_Name        (Id : E; V : B := True);
6095    procedure Set_Has_Gigi_Rep_Item               (Id : E; V : B := True);
6096    procedure Set_Has_Homonym                     (Id : E; V : B := True);
6097    procedure Set_Has_Machine_Radix_Clause        (Id : E; V : B := True);
6098    procedure Set_Has_Master_Entity               (Id : E; V : B := True);
6099    procedure Set_Has_Missing_Return              (Id : E; V : B := True);
6100    procedure Set_Has_Nested_Block_With_Handler   (Id : E; V : B := True);
6101    procedure Set_Has_Forward_Instantiation       (Id : E; V : B := True);
6102    procedure Set_Has_Up_Level_Access             (Id : E; V : B := True);
6103    procedure Set_Has_Non_Standard_Rep            (Id : E; V : B := True);
6104    procedure Set_Has_Object_Size_Clause          (Id : E; V : B := True);
6105    procedure Set_Has_Per_Object_Constraint       (Id : E; V : B := True);
6106    procedure Set_Has_Persistent_BSS              (Id : E; V : B := True);
6107    procedure Set_Has_Pragma_Controlled           (Id : E; V : B := True);
6108    procedure Set_Has_Pragma_Elaborate_Body       (Id : E; V : B := True);
6109    procedure Set_Has_Pragma_Inline               (Id : E; V : B := True);
6110    procedure Set_Has_Pragma_Pack                 (Id : E; V : B := True);
6111    procedure Set_Has_Pragma_Pure                 (Id : E; V : B := True);
6112    procedure Set_Has_Pragma_Pure_Function        (Id : E; V : B := True);
6113    procedure Set_Has_Pragma_Unreferenced         (Id : E; V : B := True);
6114    procedure Set_Has_Pragma_Unreferenced_Objects (Id : E; V : B := True);
6115    procedure Set_Has_Primitive_Operations        (Id : E; V : B := True);
6116    procedure Set_Has_Private_Declaration         (Id : E; V : B := True);
6117    procedure Set_Has_Qualified_Name              (Id : E; V : B := True);
6118    procedure Set_Has_RACW                        (Id : E; V : B := True);
6119    procedure Set_Has_Record_Rep_Clause           (Id : E; V : B := True);
6120    procedure Set_Has_Recursive_Call              (Id : E; V : B := True);
6121    procedure Set_Has_Size_Clause                 (Id : E; V : B := True);
6122    procedure Set_Has_Small_Clause                (Id : E; V : B := True);
6123    procedure Set_Has_Specified_Layout            (Id : E; V : B := True);
6124    procedure Set_Has_Specified_Stream_Input      (Id : E; V : B := True);
6125    procedure Set_Has_Specified_Stream_Output     (Id : E; V : B := True);
6126    procedure Set_Has_Specified_Stream_Read       (Id : E; V : B := True);
6127    procedure Set_Has_Specified_Stream_Write      (Id : E; V : B := True);
6128    procedure Set_Has_Static_Discriminants        (Id : E; V : B := True);
6129    procedure Set_Has_Storage_Size_Clause         (Id : E; V : B := True);
6130    procedure Set_Has_Stream_Size_Clause          (Id : E; V : B := True);
6131    procedure Set_Has_Subprogram_Descriptor       (Id : E; V : B := True);
6132    procedure Set_Has_Task                        (Id : E; V : B := True);
6133    procedure Set_Has_Unchecked_Union             (Id : E; V : B := True);
6134    procedure Set_Has_Unknown_Discriminants       (Id : E; V : B := True);
6135    procedure Set_Has_Volatile_Components         (Id : E; V : B := True);
6136    procedure Set_Has_Xref_Entry                  (Id : E; V : B := True);
6137    procedure Set_Hiding_Loop_Variable            (Id : E; V : E);
6138    procedure Set_Homonym                         (Id : E; V : E);
6139    procedure Set_In_Package_Body                 (Id : E; V : B := True);
6140    procedure Set_In_Private_Part                 (Id : E; V : B := True);
6141    procedure Set_In_Use                          (Id : E; V : B := True);
6142    procedure Set_Inner_Instances                 (Id : E; V : L);
6143    procedure Set_Interface_Name                  (Id : E; V : N);
6144    procedure Set_Is_AST_Entry                    (Id : E; V : B := True);
6145    procedure Set_Is_Abstract_Subprogram          (Id : E; V : B := True);
6146    procedure Set_Is_Abstract_Type                (Id : E; V : B := True);
6147    procedure Set_Is_Local_Anonymous_Access       (Id : E; V : B := True);
6148    procedure Set_Is_Access_Constant              (Id : E; V : B := True);
6149    procedure Set_Is_Ada_2005_Only                (Id : E; V : B := True);
6150    procedure Set_Is_Aliased                      (Id : E; V : B := True);
6151    procedure Set_Is_Asynchronous                 (Id : E; V : B := True);
6152    procedure Set_Is_Atomic                       (Id : E; V : B := True);
6153    procedure Set_Is_Bit_Packed_Array             (Id : E; V : B := True);
6154    procedure Set_Is_CPP_Class                    (Id : E; V : B := True);
6155    procedure Set_Is_Called                       (Id : E; V : B := True);
6156    procedure Set_Is_Character_Type               (Id : E; V : B := True);
6157    procedure Set_Is_Child_Unit                   (Id : E; V : B := True);
6158    procedure Set_Is_Class_Wide_Equivalent_Type   (Id : E; V : B := True);
6159    procedure Set_Is_Compilation_Unit             (Id : E; V : B := True);
6160    procedure Set_Is_Completely_Hidden            (Id : E; V : B := True);
6161    procedure Set_Is_Concurrent_Record_Type       (Id : E; V : B := True);
6162    procedure Set_Is_Constr_Subt_For_UN_Aliased   (Id : E; V : B := True);
6163    procedure Set_Is_Constr_Subt_For_U_Nominal    (Id : E; V : B := True);
6164    procedure Set_Is_Constrained                  (Id : E; V : B := True);
6165    procedure Set_Is_Constructor                  (Id : E; V : B := True);
6166    procedure Set_Is_Controlled                   (Id : E; V : B := True);
6167    procedure Set_Is_Controlling_Formal           (Id : E; V : B := True);
6168    procedure Set_Is_Discrim_SO_Function          (Id : E; V : B := True);
6169    procedure Set_Is_Dispatching_Operation        (Id : E; V : B := True);
6170    procedure Set_Is_Eliminated                   (Id : E; V : B := True);
6171    procedure Set_Is_Entry_Formal                 (Id : E; V : B := True);
6172    procedure Set_Is_Exported                     (Id : E; V : B := True);
6173    procedure Set_Is_First_Subtype                (Id : E; V : B := True);
6174    procedure Set_Is_For_Access_Subtype           (Id : E; V : B := True);
6175    procedure Set_Is_Formal_Subprogram            (Id : E; V : B := True);
6176    procedure Set_Is_Frozen                       (Id : E; V : B := True);
6177    procedure Set_Is_Generic_Actual_Type          (Id : E; V : B := True);
6178    procedure Set_Is_Generic_Instance             (Id : E; V : B := True);
6179    procedure Set_Is_Generic_Type                 (Id : E; V : B := True);
6180    procedure Set_Is_Hidden                       (Id : E; V : B := True);
6181    procedure Set_Is_Hidden_Open_Scope            (Id : E; V : B := True);
6182    procedure Set_Is_Immediately_Visible          (Id : E; V : B := True);
6183    procedure Set_Is_Imported                     (Id : E; V : B := True);
6184    procedure Set_Is_Inlined                      (Id : E; V : B := True);
6185    procedure Set_Is_Interface                    (Id : E; V : B := True);
6186    procedure Set_Is_Instantiated                 (Id : E; V : B := True);
6187    procedure Set_Is_Internal                     (Id : E; V : B := True);
6188    procedure Set_Is_Interrupt_Handler            (Id : E; V : B := True);
6189    procedure Set_Is_Intrinsic_Subprogram         (Id : E; V : B := True);
6190    procedure Set_Is_Itype                        (Id : E; V : B := True);
6191    procedure Set_Is_Known_Non_Null               (Id : E; V : B := True);
6192    procedure Set_Is_Known_Null                   (Id : E; V : B := True);
6193    procedure Set_Is_Known_Valid                  (Id : E; V : B := True);
6194    procedure Set_Is_Limited_Composite            (Id : E; V : B := True);
6195    procedure Set_Is_Limited_Interface            (Id : E; V : B := True);
6196    procedure Set_Is_Limited_Record               (Id : E; V : B := True);
6197    procedure Set_Is_Machine_Code_Subprogram      (Id : E; V : B := True);
6198    procedure Set_Is_Non_Static_Subtype           (Id : E; V : B := True);
6199    procedure Set_Is_Null_Init_Proc               (Id : E; V : B := True);
6200    procedure Set_Is_Obsolescent                  (Id : E; V : B := True);
6201    procedure Set_Is_Optional_Parameter           (Id : E; V : B := True);
6202    procedure Set_Is_Overriding_Operation         (Id : E; V : B := True);
6203    procedure Set_Is_Package_Body_Entity          (Id : E; V : B := True);
6204    procedure Set_Is_Packed                       (Id : E; V : B := True);
6205    procedure Set_Is_Packed_Array_Type            (Id : E; V : B := True);
6206    procedure Set_Is_Potentially_Use_Visible      (Id : E; V : B := True);
6207    procedure Set_Is_Preelaborated                (Id : E; V : B := True);
6208    procedure Set_Is_Primitive_Wrapper            (Id : E; V : B := True);
6209    procedure Set_Is_Private_Composite            (Id : E; V : B := True);
6210    procedure Set_Is_Private_Descendant           (Id : E; V : B := True);
6211    procedure Set_Is_Protected_Interface          (Id : E; V : B := True);
6212    procedure Set_Is_Public                       (Id : E; V : B := True);
6213    procedure Set_Is_Pure                         (Id : E; V : B := True);
6214    procedure Set_Is_Pure_Unit_Access_Type        (Id : E; V : B := True);
6215    procedure Set_Is_Remote_Call_Interface        (Id : E; V : B := True);
6216    procedure Set_Is_Remote_Types                 (Id : E; V : B := True);
6217    procedure Set_Is_Renaming_Of_Object           (Id : E; V : B := True);
6218    procedure Set_Is_Return_Object                (Id : E; V : B := True);
6219    procedure Set_Is_Shared_Passive               (Id : E; V : B := True);
6220    procedure Set_Is_Statically_Allocated         (Id : E; V : B := True);
6221    procedure Set_Is_Synchronized_Interface       (Id : E; V : B := True);
6222    procedure Set_Is_Tag                          (Id : E; V : B := True);
6223    procedure Set_Is_Tagged_Type                  (Id : E; V : B := True);
6224    procedure Set_Is_Task_Interface               (Id : E; V : B := True);
6225    procedure Set_Is_True_Constant                (Id : E; V : B := True);
6226    procedure Set_Is_Unchecked_Union              (Id : E; V : B := True);
6227    procedure Set_Is_Unsigned_Type                (Id : E; V : B := True);
6228    procedure Set_Is_VMS_Exception                (Id : E; V : B := True);
6229    procedure Set_Is_Valued_Procedure             (Id : E; V : B := True);
6230    procedure Set_Is_Visible_Child_Unit           (Id : E; V : B := True);
6231    procedure Set_Is_Visible_Formal               (Id : E; V : B := True);
6232    procedure Set_Is_Volatile                     (Id : E; V : B := True);
6233    procedure Set_Itype_Printed                   (Id : E; V : B := True);
6234    procedure Set_Kill_Elaboration_Checks         (Id : E; V : B := True);
6235    procedure Set_Kill_Range_Checks               (Id : E; V : B := True);
6236    procedure Set_Kill_Tag_Checks                 (Id : E; V : B := True);
6237    procedure Set_Known_To_Have_Preelab_Init      (Id : E; V : B := True);
6238    procedure Set_Last_Assignment                 (Id : E; V : N);
6239    procedure Set_Last_Entity                     (Id : E; V : E);
6240    procedure Set_Limited_View                    (Id : E; V : E);
6241    procedure Set_Lit_Indexes                     (Id : E; V : E);
6242    procedure Set_Lit_Strings                     (Id : E; V : E);
6243    procedure Set_Low_Bound_Known                 (Id : E; V : B := True);
6244    procedure Set_Machine_Radix_10                (Id : E; V : B := True);
6245    procedure Set_Master_Id                       (Id : E; V : E);
6246    procedure Set_Materialize_Entity              (Id : E; V : B := True);
6247    procedure Set_Mechanism                       (Id : E; V : M);
6248    procedure Set_Modulus                         (Id : E; V : U);
6249    procedure Set_Must_Be_On_Byte_Boundary        (Id : E; V : B := True);
6250    procedure Set_Must_Have_Preelab_Init          (Id : E; V : B := True);
6251    procedure Set_Needs_Debug_Info                (Id : E; V : B := True);
6252    procedure Set_Needs_No_Actuals                (Id : E; V : B := True);
6253    procedure Set_Never_Set_In_Source             (Id : E; V : B := True);
6254    procedure Set_Next_Inlined_Subprogram         (Id : E; V : E);
6255    procedure Set_No_Pool_Assigned                (Id : E; V : B := True);
6256    procedure Set_No_Return                       (Id : E; V : B := True);
6257    procedure Set_No_Strict_Aliasing              (Id : E; V : B := True);
6258    procedure Set_Non_Binary_Modulus              (Id : E; V : B := True);
6259    procedure Set_Non_Limited_View                (Id : E; V : E);
6260    procedure Set_Nonzero_Is_True                 (Id : E; V : B := True);
6261    procedure Set_Normalized_First_Bit            (Id : E; V : U);
6262    procedure Set_Normalized_Position             (Id : E; V : U);
6263    procedure Set_Normalized_Position_Max         (Id : E; V : U);
6264    procedure Set_Object_Ref                      (Id : E; V : E);
6265    procedure Set_Obsolescent_Warning             (Id : E; V : N);
6266    procedure Set_Original_Array_Type             (Id : E; V : E);
6267    procedure Set_Original_Record_Component       (Id : E; V : E);
6268    procedure Set_Overridden_Operation            (Id : E; V : E);
6269    procedure Set_Package_Instantiation           (Id : E; V : N);
6270    procedure Set_Packed_Array_Type               (Id : E; V : E);
6271    procedure Set_Parent_Subtype                  (Id : E; V : E);
6272    procedure Set_Primitive_Operations            (Id : E; V : L);
6273    procedure Set_Prival                          (Id : E; V : E);
6274    procedure Set_Privals_Chain                   (Id : E; V : L);
6275    procedure Set_Private_Dependents              (Id : E; V : L);
6276    procedure Set_Private_View                    (Id : E; V : N);
6277    procedure Set_Protected_Body_Subprogram       (Id : E; V : E);
6278    procedure Set_Protected_Formal                (Id : E; V : E);
6279    procedure Set_Protected_Operation             (Id : E; V : N);
6280    procedure Set_RM_Size                         (Id : E; V : U);
6281    procedure Set_Reachable                       (Id : E; V : B := True);
6282    procedure Set_Referenced                      (Id : E; V : B := True);
6283    procedure Set_Referenced_As_LHS               (Id : E; V : B := True);
6284    procedure Set_Referenced_Object               (Id : E; V : N);
6285    procedure Set_Register_Exception_Call         (Id : E; V : N);
6286    procedure Set_Related_Array_Object            (Id : E; V : E);
6287    procedure Set_Related_Instance                (Id : E; V : E);
6288    procedure Set_Related_Interface               (Id : E; V : E);
6289    procedure Set_Renamed_Entity                  (Id : E; V : N);
6290    procedure Set_Renamed_Object                  (Id : E; V : N);
6291    procedure Set_Renaming_Map                    (Id : E; V : U);
6292    procedure Set_Requires_Overriding             (Id : E; V : B := True);
6293    procedure Set_Return_Present                  (Id : E; V : B := True);
6294    procedure Set_Return_Applies_To               (Id : E; V : N);
6295    procedure Set_Returns_By_Ref                  (Id : E; V : B := True);
6296    procedure Set_Reverse_Bit_Order               (Id : E; V : B := True);
6297    procedure Set_Scalar_Range                    (Id : E; V : N);
6298    procedure Set_Scale_Value                     (Id : E; V : U);
6299    procedure Set_Scope_Depth_Value               (Id : E; V : U);
6300    procedure Set_Sec_Stack_Needed_For_Return     (Id : E; V : B := True);
6301    procedure Set_Shadow_Entities                 (Id : E; V : S);
6302    procedure Set_Shared_Var_Assign_Proc          (Id : E; V : E);
6303    procedure Set_Shared_Var_Read_Proc            (Id : E; V : E);
6304    procedure Set_Size_Check_Code                 (Id : E; V : N);
6305    procedure Set_Size_Depends_On_Discriminant    (Id : E; V : B := True);
6306    procedure Set_Size_Known_At_Compile_Time      (Id : E; V : B := True);
6307    procedure Set_Small_Value                     (Id : E; V : R);
6308    procedure Set_Spec_Entity                     (Id : E; V : E);
6309    procedure Set_Storage_Size_Variable           (Id : E; V : E);
6310    procedure Set_Static_Elaboration_Desired      (Id : E; V : B);
6311    procedure Set_Static_Initialization           (Id : E; V : N);
6312    procedure Set_Stored_Constraint               (Id : E; V : L);
6313    procedure Set_Strict_Alignment                (Id : E; V : B := True);
6314    procedure Set_String_Literal_Length           (Id : E; V : U);
6315    procedure Set_String_Literal_Low_Bound        (Id : E; V : N);
6316    procedure Set_Suppress_Elaboration_Warnings   (Id : E; V : B := True);
6317    procedure Set_Suppress_Init_Proc              (Id : E; V : B := True);
6318    procedure Set_Suppress_Style_Checks           (Id : E; V : B := True);
6319    procedure Set_Suppress_Value_Tracking_On_Call (Id : E; V : B := True);
6320    procedure Set_Task_Body_Procedure             (Id : E; V : N);
6321    procedure Set_Treat_As_Volatile               (Id : E; V : B := True);
6322    procedure Set_Underlying_Full_View            (Id : E; V : E);
6323    procedure Set_Universal_Aliasing              (Id : E; V : B := True);
6324    procedure Set_Unset_Reference                 (Id : E; V : N);
6325    procedure Set_Uses_Sec_Stack                  (Id : E; V : B := True);
6326    procedure Set_Vax_Float                       (Id : E; V : B := True);
6327    procedure Set_Warnings_Off                    (Id : E; V : B := True);
6328    procedure Set_Was_Hidden                      (Id : E; V : B := True);
6329    procedure Set_Wrapped_Entity                  (Id : E; V : E);
6330
6331    -----------------------------------
6332    -- Field Initialization Routines --
6333    -----------------------------------
6334
6335    --  These routines are overloadings of some of the above Set procedures
6336    --  where the argument is normally a Uint. The overloadings take an Int
6337    --  parameter instead, and appropriately convert it. There are also
6338    --  versions that implicitly initialize to the appropriate "not set"
6339    --  value. The not set (unknown) values are as follows:
6340
6341    --    Alignment                 Uint_0
6342    --    Component_Size            Uint_0
6343    --    Component_Bit_Offset      No_Uint
6344    --    Digits_Value              Uint_0
6345    --    Esize                     Uint_0
6346    --    Normalized_First_Bit      No_Uint
6347    --    Normalized_Position       No_Uint
6348    --    Normalized_Position_Max   No_Uint
6349    --    RM_Size                   Uint_0
6350
6351    --  It would be cleaner to use No_Uint in all these cases, but historically
6352    --  we chose to use Uint_0 at first, and the change over will take time ???
6353    --  This is particularly true for the RM_Size field, where a value of zero
6354    --  is legitimate and causes some kludges around the code.
6355
6356    procedure Init_Alignment                (Id : E; V : Int);
6357    procedure Init_Component_Size           (Id : E; V : Int);
6358    procedure Init_Component_Bit_Offset     (Id : E; V : Int);
6359    procedure Init_Digits_Value             (Id : E; V : Int);
6360    procedure Init_Esize                    (Id : E; V : Int);
6361    procedure Init_Normalized_First_Bit     (Id : E; V : Int);
6362    procedure Init_Normalized_Position      (Id : E; V : Int);
6363    procedure Init_Normalized_Position_Max  (Id : E; V : Int);
6364    procedure Init_RM_Size                  (Id : E; V : Int);
6365
6366    procedure Init_Alignment                (Id : E);
6367    procedure Init_Component_Size           (Id : E);
6368    procedure Init_Component_Bit_Offset     (Id : E);
6369    procedure Init_Digits_Value             (Id : E);
6370    procedure Init_Esize                    (Id : E);
6371    procedure Init_Normalized_First_Bit     (Id : E);
6372    procedure Init_Normalized_Position      (Id : E);
6373    procedure Init_Normalized_Position_Max  (Id : E);
6374    procedure Init_RM_Size                  (Id : E);
6375
6376    procedure Init_Size_Align (Id : E);
6377    --  This procedure initializes both size fields and the alignment
6378    --  field to all be Unknown.
6379
6380    procedure Init_Size (Id : E; V : Int);
6381    --  Initialize both the Esize and RM_Size fields of E to V
6382
6383    procedure Init_Component_Location (Id : E);
6384    --  Initializes all fields describing the location of a component
6385    --  (Normalized_Position, Component_Bit_Offset, Normalized_First_Bit,
6386    --  Normalized_Position_Max, Esize) to all be Unknown.
6387
6388    ---------------
6389    -- Iterators --
6390    ---------------
6391
6392    --  The call to Next_xxx (obj) is equivalent to obj := Next_xxx (obj)
6393    --  We define the set of Proc_Next_xxx routines simply for the purposes
6394    --  of inlining them without necessarily inlining the function.
6395
6396    procedure Proc_Next_Component                 (N : in out Node_Id);
6397    procedure Proc_Next_Component_Or_Discriminant (N : in out Node_Id);
6398    procedure Proc_Next_Discriminant              (N : in out Node_Id);
6399    procedure Proc_Next_Formal                    (N : in out Node_Id);
6400    procedure Proc_Next_Formal_With_Extras        (N : in out Node_Id);
6401    procedure Proc_Next_Index                     (N : in out Node_Id);
6402    procedure Proc_Next_Inlined_Subprogram        (N : in out Node_Id);
6403    procedure Proc_Next_Literal                   (N : in out Node_Id);
6404    procedure Proc_Next_Stored_Discriminant       (N : in out Node_Id);
6405
6406    pragma Inline (Proc_Next_Component);
6407    pragma Inline (Proc_Next_Component_Or_Discriminant);
6408    pragma Inline (Proc_Next_Discriminant);
6409    pragma Inline (Proc_Next_Formal);
6410    pragma Inline (Proc_Next_Formal_With_Extras);
6411    pragma Inline (Proc_Next_Index);
6412    pragma Inline (Proc_Next_Inlined_Subprogram);
6413    pragma Inline (Proc_Next_Literal);
6414    pragma Inline (Proc_Next_Stored_Discriminant);
6415
6416    procedure Next_Component                 (N : in out Node_Id)
6417      renames Proc_Next_Component;
6418
6419    procedure Next_Component_Or_Discriminant (N : in out Node_Id)
6420      renames Proc_Next_Component;
6421
6422    procedure Next_Discriminant              (N : in out Node_Id)
6423      renames Proc_Next_Discriminant;
6424
6425    procedure Next_Formal                    (N : in out Node_Id)
6426      renames Proc_Next_Formal;
6427
6428    procedure Next_Formal_With_Extras        (N : in out Node_Id)
6429      renames Proc_Next_Formal_With_Extras;
6430
6431    procedure Next_Index                     (N : in out Node_Id)
6432      renames Proc_Next_Index;
6433
6434    procedure Next_Inlined_Subprogram        (N : in out Node_Id)
6435      renames Proc_Next_Inlined_Subprogram;
6436
6437    procedure Next_Literal                   (N : in out Node_Id)
6438      renames Proc_Next_Literal;
6439
6440    procedure Next_Stored_Discriminant       (N : in out Node_Id)
6441      renames Proc_Next_Stored_Discriminant;
6442
6443    ----------------------------------------------
6444    -- Subprograms for Accessing Rep Item Chain --
6445    ----------------------------------------------
6446
6447    --  The First_Rep_Item field of every entity points to a linked list
6448    --  (linked through Next_Rep_Item) of representation pragmas and attribute
6449    --  definition clauses that apply to the item. Note that in the case of
6450    --  types, it is assumed that any such rep items for a base type also apply
6451    --  to all subtypes. This is implemented by having the chain for subtypes
6452    --  link onto the chain for the base type, so that any new entries for the
6453    --  subtype are added at the start of the chain.
6454
6455    function Get_Attribute_Definition_Clause
6456      (E  : Entity_Id;
6457       Id : Attribute_Id) return Node_Id;
6458    --  Searches the Rep_Item chain for a given entity E, for an instance of an
6459    --  attribute definition clause with the given attribute Id. If found, the
6460    --  value returned is the N_Attribute_Definition_Clause node, otherwise
6461    --  Empty is returned.
6462
6463    function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id;
6464    --  Searches the Rep_Item chain for the given entity E, for an instance
6465    --  a representation pragma with the given name Nam. If found then the
6466    --  value returned is the N_Pragma node, otherwise Empty is returned.
6467
6468    function Has_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Boolean;
6469    --  Searches the Rep_Item chain for the given entity E, for an instance
6470    --  of representation pragma with the given name Nam. If found then True
6471    --  is returned, otherwise False indicates that no matching entry was found.
6472
6473    function Has_Attribute_Definition_Clause
6474      (E  : Entity_Id;
6475       Id : Attribute_Id) return Boolean;
6476    --  Searches the Rep_Item chain for a given entity E, for an instance of an
6477    --  attribute definition clause with the given attribute Id. If found, True
6478    --  is returned, otherwise False indicates that no matching entry was found.
6479
6480    procedure Record_Rep_Item (E : Entity_Id; N : Node_Id);
6481    --  N is the node for either a representation pragma or an attribute
6482    --  definition clause that applies to entity E. This procedure links
6483    --  the node N onto the Rep_Item chain for entity E.
6484
6485    -------------------------------
6486    -- Miscellaneous Subprograms --
6487    -------------------------------
6488
6489    procedure Append_Entity (Id : Entity_Id; V : Entity_Id);
6490    --  Add an entity to the list of entities declared in the scope V
6491
6492    function Is_Entity_Name (N : Node_Id) return Boolean;
6493    --  Test if the node N is the name of an entity (i.e. is an identifier,
6494    --  expanded name, or an attribute reference that returns an entity).
6495
6496    function Next_Index (Id : Node_Id) return Node_Id;
6497    --  Given an index from a previous call to First_Index or Next_Index,
6498    --  returns a node representing the occurrence of the next index subtype,
6499    --  or Empty if there are no more index subtypes.
6500
6501    function Scope_Depth (Id : Entity_Id) return Uint;
6502    --  Returns the scope depth value of the Id, unless the Id is a record
6503    --  type, in which case it returns the scope depth of the record scope.
6504
6505    function Subtype_Kind (K : Entity_Kind) return Entity_Kind;
6506    --  Given an entity_kind K this function returns the entity_kind
6507    --  corresponding to subtype kind of the type represented by K. For
6508    --  example if K is E_Signed_Integer_Type then E_Signed_Integer_Subtype
6509    --  is returned. If K is already a subtype kind it itself is returned. An
6510    --  internal error is generated if no such correspondence exists for K.
6511
6512    ----------------------------------
6513    -- Debugging Output Subprograms --
6514    ----------------------------------
6515
6516    procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String);
6517    --  Writes a series of entries giving a line for each flag that is
6518    --  set to True. Each line is prefixed by the given string
6519
6520    procedure Write_Entity_Info (Id : Entity_Id; Prefix : String);
6521    --  A debugging procedure to write out information about an entity
6522
6523    procedure Write_Field6_Name  (Id : Entity_Id);
6524    procedure Write_Field7_Name  (Id : Entity_Id);
6525    procedure Write_Field8_Name  (Id : Entity_Id);
6526    procedure Write_Field9_Name  (Id : Entity_Id);
6527    procedure Write_Field10_Name (Id : Entity_Id);
6528    procedure Write_Field11_Name (Id : Entity_Id);
6529    procedure Write_Field12_Name (Id : Entity_Id);
6530    procedure Write_Field13_Name (Id : Entity_Id);
6531    procedure Write_Field14_Name (Id : Entity_Id);
6532    procedure Write_Field15_Name (Id : Entity_Id);
6533    procedure Write_Field16_Name (Id : Entity_Id);
6534    procedure Write_Field17_Name (Id : Entity_Id);
6535    procedure Write_Field18_Name (Id : Entity_Id);
6536    procedure Write_Field19_Name (Id : Entity_Id);
6537    procedure Write_Field20_Name (Id : Entity_Id);
6538    procedure Write_Field21_Name (Id : Entity_Id);
6539    procedure Write_Field22_Name (Id : Entity_Id);
6540    procedure Write_Field23_Name (Id : Entity_Id);
6541    procedure Write_Field24_Name (Id : Entity_Id);
6542    procedure Write_Field25_Name (Id : Entity_Id);
6543    procedure Write_Field26_Name (Id : Entity_Id);
6544    procedure Write_Field27_Name (Id : Entity_Id);
6545    procedure Write_Field28_Name (Id : Entity_Id);
6546    --  These routines are used to output a nice symbolic name for the given
6547    --  field, depending on the Ekind. No blanks or end of lines are output,
6548    --  just the characters of the field name.
6549
6550    --------------------
6551    -- Inline Pragmas --
6552    --------------------
6553
6554    --  Note that these inline pragmas are referenced by the XEINFO utility
6555    --  program in preparing the corresponding C header, and only those
6556    --  subprograms meeting the requirements documented in the section on
6557    --  XEINFO may be referenced in this section.
6558
6559    pragma Inline (Abstract_Interfaces);
6560    pragma Inline (Accept_Address);
6561    pragma Inline (Access_Disp_Table);
6562    pragma Inline (Actual_Subtype);
6563    pragma Inline (Address_Taken);
6564    pragma Inline (Abstract_Interface_Alias);
6565    pragma Inline (Alias);
6566    pragma Inline (Alignment);
6567    pragma Inline (Associated_Final_Chain);
6568    pragma Inline (Associated_Formal_Package);
6569    pragma Inline (Associated_Node_For_Itype);
6570    pragma Inline (Associated_Storage_Pool);
6571    pragma Inline (Barrier_Function);
6572    pragma Inline (Block_Node);
6573    pragma Inline (Body_Entity);
6574    pragma Inline (Body_Needed_For_SAL);
6575    pragma Inline (CR_Discriminant);
6576    pragma Inline (C_Pass_By_Copy);
6577    pragma Inline (Can_Never_Be_Null);
6578    pragma Inline (Checks_May_Be_Suppressed);
6579    pragma Inline (Class_Wide_Type);
6580    pragma Inline (Cloned_Subtype);
6581    pragma Inline (Component_Bit_Offset);
6582    pragma Inline (Component_Clause);
6583    pragma Inline (Component_Size);
6584    pragma Inline (Component_Type);
6585    pragma Inline (Corresponding_Concurrent_Type);
6586    pragma Inline (Corresponding_Discriminant);
6587    pragma Inline (Corresponding_Equality);
6588    pragma Inline (Corresponding_Record_Type);
6589    pragma Inline (Corresponding_Remote_Type);
6590    pragma Inline (Current_Use_Clause);
6591    pragma Inline (Current_Value);
6592    pragma Inline (Debug_Info_Off);
6593    pragma Inline (Debug_Renaming_Link);
6594    pragma Inline (DTC_Entity);
6595    pragma Inline (DT_Entry_Count);
6596    pragma Inline (DT_Offset_To_Top_Func);
6597    pragma Inline (DT_Position);
6598    pragma Inline (Default_Expr_Function);
6599    pragma Inline (Default_Expressions_Processed);
6600    pragma Inline (Default_Value);
6601    pragma Inline (Delay_Cleanups);
6602    pragma Inline (Delay_Subprogram_Descriptors);
6603    pragma Inline (Delta_Value);
6604    pragma Inline (Dependent_Instances);
6605    pragma Inline (Depends_On_Private);
6606    pragma Inline (Digits_Value);
6607    pragma Inline (Directly_Designated_Type);
6608    pragma Inline (Discard_Names);
6609    pragma Inline (Discriminal);
6610    pragma Inline (Discriminal_Link);
6611    pragma Inline (Discriminant_Checking_Func);
6612    pragma Inline (Discriminant_Constraint);
6613    pragma Inline (Discriminant_Default_Value);
6614    pragma Inline (Discriminant_Number);
6615    pragma Inline (Elaborate_Body_Desirable);
6616    pragma Inline (Elaboration_Entity);
6617    pragma Inline (Elaboration_Entity_Required);
6618    pragma Inline (Enclosing_Scope);
6619    pragma Inline (Entry_Accepted);
6620    pragma Inline (Entry_Bodies_Array);
6621    pragma Inline (Entry_Cancel_Parameter);
6622    pragma Inline (Entry_Component);
6623    pragma Inline (Entry_Formal);
6624    pragma Inline (Entry_Index_Constant);
6625    pragma Inline (Entry_Index_Type);
6626    pragma Inline (Entry_Parameters_Type);
6627    pragma Inline (Enum_Pos_To_Rep);
6628    pragma Inline (Enumeration_Pos);
6629    pragma Inline (Enumeration_Rep);
6630    pragma Inline (Enumeration_Rep_Expr);
6631    pragma Inline (Equivalent_Type);
6632    pragma Inline (Esize);
6633    pragma Inline (Exception_Code);
6634    pragma Inline (Extra_Accessibility);
6635    pragma Inline (Extra_Constrained);
6636    pragma Inline (Extra_Formal);
6637    pragma Inline (Extra_Formals);
6638    pragma Inline (Finalization_Chain_Entity);
6639    pragma Inline (First_Entity);
6640    pragma Inline (First_Index);
6641    pragma Inline (First_Literal);
6642    pragma Inline (First_Optional_Parameter);
6643    pragma Inline (First_Private_Entity);
6644    pragma Inline (First_Rep_Item);
6645    pragma Inline (Freeze_Node);
6646    pragma Inline (From_With_Type);
6647    pragma Inline (Full_View);
6648    pragma Inline (Function_Returns_With_DSP);
6649    pragma Inline (Generic_Homonym);
6650    pragma Inline (Generic_Renamings);
6651    pragma Inline (Handler_Records);
6652    pragma Inline (Has_Aliased_Components);
6653    pragma Inline (Has_Alignment_Clause);
6654    pragma Inline (Has_All_Calls_Remote);
6655    pragma Inline (Has_Anon_Block_Suffix);
6656    pragma Inline (Has_Atomic_Components);
6657    pragma Inline (Has_Biased_Representation);
6658    pragma Inline (Has_Completion);
6659    pragma Inline (Has_Completion_In_Body);
6660    pragma Inline (Has_Complex_Representation);
6661    pragma Inline (Has_Component_Size_Clause);
6662    pragma Inline (Has_Constrained_Partial_View);
6663    pragma Inline (Has_Contiguous_Rep);
6664    pragma Inline (Has_Controlled_Component);
6665    pragma Inline (Has_Controlling_Result);
6666    pragma Inline (Has_Convention_Pragma);
6667    pragma Inline (Has_Delayed_Freeze);
6668    pragma Inline (Has_Discriminants);
6669    pragma Inline (Has_Enumeration_Rep_Clause);
6670    pragma Inline (Has_Exit);
6671    pragma Inline (Has_External_Tag_Rep_Clause);
6672    pragma Inline (Has_Fully_Qualified_Name);
6673    pragma Inline (Has_Gigi_Rep_Item);
6674    pragma Inline (Has_Homonym);
6675    pragma Inline (Has_Machine_Radix_Clause);
6676    pragma Inline (Has_Master_Entity);
6677    pragma Inline (Has_Missing_Return);
6678    pragma Inline (Has_Nested_Block_With_Handler);
6679    pragma Inline (Has_Forward_Instantiation);
6680    pragma Inline (Has_Non_Standard_Rep);
6681    pragma Inline (Has_Object_Size_Clause);
6682    pragma Inline (Has_Per_Object_Constraint);
6683    pragma Inline (Has_Persistent_BSS);
6684    pragma Inline (Has_Pragma_Controlled);
6685    pragma Inline (Has_Pragma_Elaborate_Body);
6686    pragma Inline (Has_Pragma_Inline);
6687    pragma Inline (Has_Pragma_Pack);
6688    pragma Inline (Has_Pragma_Pure);
6689    pragma Inline (Has_Pragma_Pure_Function);
6690    pragma Inline (Has_Pragma_Unreferenced);
6691    pragma Inline (Has_Pragma_Unreferenced_Objects);
6692    pragma Inline (Has_Primitive_Operations);
6693    pragma Inline (Has_Private_Declaration);
6694    pragma Inline (Has_Qualified_Name);
6695    pragma Inline (Has_RACW);
6696    pragma Inline (Has_Record_Rep_Clause);
6697    pragma Inline (Has_Recursive_Call);
6698    pragma Inline (Has_Size_Clause);
6699    pragma Inline (Has_Small_Clause);
6700    pragma Inline (Has_Specified_Layout);
6701    pragma Inline (Has_Specified_Stream_Input);
6702    pragma Inline (Has_Specified_Stream_Output);
6703    pragma Inline (Has_Specified_Stream_Read);
6704    pragma Inline (Has_Specified_Stream_Write);
6705    pragma Inline (Has_Static_Discriminants);
6706    pragma Inline (Has_Storage_Size_Clause);
6707    pragma Inline (Has_Stream_Size_Clause);
6708    pragma Inline (Has_Subprogram_Descriptor);
6709    pragma Inline (Has_Task);
6710    pragma Inline (Has_Unchecked_Union);
6711    pragma Inline (Has_Unknown_Discriminants);
6712    pragma Inline (Has_Up_Level_Access);
6713    pragma Inline (Has_Volatile_Components);
6714    pragma Inline (Has_Xref_Entry);
6715    pragma Inline (Hiding_Loop_Variable);
6716    pragma Inline (Homonym);
6717    pragma Inline (In_Package_Body);
6718    pragma Inline (In_Private_Part);
6719    pragma Inline (In_Use);
6720    pragma Inline (Inner_Instances);
6721    pragma Inline (Interface_Name);
6722    pragma Inline (Is_AST_Entry);
6723    pragma Inline (Is_Abstract_Subprogram);
6724    pragma Inline (Is_Abstract_Type);
6725    pragma Inline (Is_Local_Anonymous_Access);
6726    pragma Inline (Is_Access_Constant);
6727    pragma Inline (Is_Ada_2005_Only);
6728    pragma Inline (Is_Access_Type);
6729    pragma Inline (Is_Access_Protected_Subprogram_Type);
6730    pragma Inline (Is_Aliased);
6731    pragma Inline (Is_Array_Type);
6732    pragma Inline (Is_Asynchronous);
6733    pragma Inline (Is_Atomic);
6734    pragma Inline (Is_Bit_Packed_Array);
6735    pragma Inline (Is_CPP_Class);
6736    pragma Inline (Is_Called);
6737    pragma Inline (Is_Character_Type);
6738    pragma Inline (Is_Child_Unit);
6739    pragma Inline (Is_Class_Wide_Equivalent_Type);
6740    pragma Inline (Is_Class_Wide_Type);
6741    pragma Inline (Is_Compilation_Unit);
6742    pragma Inline (Is_Completely_Hidden);
6743    pragma Inline (Is_Composite_Type);
6744    pragma Inline (Is_Concurrent_Body);
6745    pragma Inline (Is_Concurrent_Record_Type);
6746    pragma Inline (Is_Concurrent_Type);
6747    pragma Inline (Is_Constr_Subt_For_UN_Aliased);
6748    pragma Inline (Is_Constr_Subt_For_U_Nominal);
6749    pragma Inline (Is_Constrained);
6750    pragma Inline (Is_Constructor);
6751    pragma Inline (Is_Controlled);
6752    pragma Inline (Is_Controlling_Formal);
6753    pragma Inline (Is_Decimal_Fixed_Point_Type);
6754    pragma Inline (Is_Discrim_SO_Function);
6755    pragma Inline (Is_Digits_Type);
6756    pragma Inline (Is_Discrete_Or_Fixed_Point_Type);
6757    pragma Inline (Is_Discrete_Type);
6758    pragma Inline (Is_Dispatching_Operation);
6759    pragma Inline (Is_Elementary_Type);
6760    pragma Inline (Is_Eliminated);
6761    pragma Inline (Is_Entry);
6762    pragma Inline (Is_Entry_Formal);
6763    pragma Inline (Is_Enumeration_Type);
6764    pragma Inline (Is_Exported);
6765    pragma Inline (Is_First_Subtype);
6766    pragma Inline (Is_Fixed_Point_Type);
6767    pragma Inline (Is_Floating_Point_Type);
6768    pragma Inline (Is_For_Access_Subtype);
6769    pragma Inline (Is_Formal);
6770    pragma Inline (Is_Formal_Object);
6771    pragma Inline (Is_Formal_Subprogram);
6772    pragma Inline (Is_Frozen);
6773    pragma Inline (Is_Generic_Actual_Type);
6774    pragma Inline (Is_Generic_Instance);
6775    pragma Inline (Is_Generic_Subprogram);
6776    pragma Inline (Is_Generic_Type);
6777    pragma Inline (Is_Generic_Unit);
6778    pragma Inline (Is_Hidden);
6779    pragma Inline (Is_Hidden_Open_Scope);
6780    pragma Inline (Is_Immediately_Visible);
6781    pragma Inline (Is_Imported);
6782    pragma Inline (Is_Incomplete_Or_Private_Type);
6783    pragma Inline (Is_Incomplete_Type);
6784    pragma Inline (Is_Inlined);
6785    pragma Inline (Is_Interface);
6786    pragma Inline (Is_Instantiated);
6787    pragma Inline (Is_Integer_Type);
6788    pragma Inline (Is_Internal);
6789    pragma Inline (Is_Interrupt_Handler);
6790    pragma Inline (Is_Intrinsic_Subprogram);
6791    pragma Inline (Is_Itype);
6792    pragma Inline (Is_Known_Non_Null);
6793    pragma Inline (Is_Known_Null);
6794    pragma Inline (Is_Known_Valid);
6795    pragma Inline (Is_Limited_Composite);
6796    pragma Inline (Is_Limited_Interface);
6797    pragma Inline (Is_Limited_Record);
6798    pragma Inline (Is_Machine_Code_Subprogram);
6799    pragma Inline (Is_Modular_Integer_Type);
6800    pragma Inline (Is_Named_Number);
6801    pragma Inline (Is_Non_Static_Subtype);
6802    pragma Inline (Is_Null_Init_Proc);
6803    pragma Inline (Is_Obsolescent);
6804    pragma Inline (Is_Numeric_Type);
6805    pragma Inline (Is_Object);
6806    pragma Inline (Is_Optional_Parameter);
6807    pragma Inline (Is_Package_Body_Entity);
6808    pragma Inline (Is_Ordinary_Fixed_Point_Type);
6809    pragma Inline (Is_Overloadable);
6810    pragma Inline (Is_Overriding_Operation);
6811    pragma Inline (Is_Packed);
6812    pragma Inline (Is_Packed_Array_Type);
6813    pragma Inline (Is_Potentially_Use_Visible);
6814    pragma Inline (Is_Preelaborated);
6815    pragma Inline (Is_Primitive_Wrapper);
6816    pragma Inline (Is_Private_Composite);
6817    pragma Inline (Is_Private_Descendant);
6818    pragma Inline (Is_Private_Type);
6819    pragma Inline (Is_Protected_Interface);
6820    pragma Inline (Is_Protected_Type);
6821    pragma Inline (Is_Public);
6822    pragma Inline (Is_Pure);
6823    pragma Inline (Is_Pure_Unit_Access_Type);
6824    pragma Inline (Is_Real_Type);
6825    pragma Inline (Is_Record_Type);
6826    pragma Inline (Is_Remote_Call_Interface);
6827    pragma Inline (Is_Remote_Types);
6828    pragma Inline (Is_Renaming_Of_Object);
6829    pragma Inline (Is_Return_Object);
6830    pragma Inline (Is_Scalar_Type);
6831    pragma Inline (Is_Shared_Passive);
6832    pragma Inline (Is_Signed_Integer_Type);
6833    pragma Inline (Is_Statically_Allocated);
6834    pragma Inline (Is_Subprogram);
6835    pragma Inline (Is_Synchronized_Interface);
6836    pragma Inline (Is_Tag);
6837    pragma Inline (Is_Tagged_Type);
6838    pragma Inline (Is_Task_Interface);
6839    pragma Inline (Is_True_Constant);
6840    pragma Inline (Is_Task_Type);
6841    pragma Inline (Is_Type);
6842    pragma Inline (Is_Unchecked_Union);
6843    pragma Inline (Is_Unsigned_Type);
6844    pragma Inline (Is_VMS_Exception);
6845    pragma Inline (Is_Valued_Procedure);
6846    pragma Inline (Is_Visible_Child_Unit);
6847    pragma Inline (Is_Visible_Formal);
6848    pragma Inline (Itype_Printed);
6849    pragma Inline (Kill_Elaboration_Checks);
6850    pragma Inline (Kill_Range_Checks);
6851    pragma Inline (Kill_Tag_Checks);
6852    pragma Inline (Known_To_Have_Preelab_Init);
6853    pragma Inline (Last_Assignment);
6854    pragma Inline (Last_Entity);
6855    pragma Inline (Limited_View);
6856    pragma Inline (Lit_Indexes);
6857    pragma Inline (Lit_Strings);
6858    pragma Inline (Low_Bound_Known);
6859    pragma Inline (Machine_Radix_10);
6860    pragma Inline (Master_Id);
6861    pragma Inline (Materialize_Entity);
6862    pragma Inline (Mechanism);
6863    pragma Inline (Modulus);
6864    pragma Inline (Must_Be_On_Byte_Boundary);
6865    pragma Inline (Must_Have_Preelab_Init);
6866    pragma Inline (Needs_Debug_Info);
6867    pragma Inline (Needs_No_Actuals);
6868    pragma Inline (Never_Set_In_Source);
6869    pragma Inline (Next_Index);
6870    pragma Inline (Next_Inlined_Subprogram);
6871    pragma Inline (Next_Literal);
6872    pragma Inline (No_Pool_Assigned);
6873    pragma Inline (No_Return);
6874    pragma Inline (No_Strict_Aliasing);
6875    pragma Inline (Non_Binary_Modulus);
6876    pragma Inline (Non_Limited_View);
6877    pragma Inline (Nonzero_Is_True);
6878    pragma Inline (Normalized_First_Bit);
6879    pragma Inline (Normalized_Position);
6880    pragma Inline (Normalized_Position_Max);
6881    pragma Inline (Object_Ref);
6882    pragma Inline (Obsolescent_Warning);
6883    pragma Inline (Original_Array_Type);
6884    pragma Inline (Original_Record_Component);
6885    pragma Inline (Overridden_Operation);
6886    pragma Inline (Package_Instantiation);
6887    pragma Inline (Packed_Array_Type);
6888    pragma Inline (Parameter_Mode);
6889    pragma Inline (Parent_Subtype);
6890    pragma Inline (Primitive_Operations);
6891    pragma Inline (Prival);
6892    pragma Inline (Privals_Chain);
6893    pragma Inline (Private_Dependents);
6894    pragma Inline (Private_View);
6895    pragma Inline (Protected_Body_Subprogram);
6896    pragma Inline (Protected_Formal);
6897    pragma Inline (Protected_Operation);
6898    pragma Inline (RM_Size);
6899    pragma Inline (Reachable);
6900    pragma Inline (Referenced);
6901    pragma Inline (Referenced_As_LHS);
6902    pragma Inline (Referenced_Object);
6903    pragma Inline (Register_Exception_Call);
6904    pragma Inline (Related_Array_Object);
6905    pragma Inline (Related_Instance);
6906    pragma Inline (Related_Interface);
6907    pragma Inline (Renamed_Entity);
6908    pragma Inline (Renamed_Object);
6909    pragma Inline (Renaming_Map);
6910    pragma Inline (Requires_Overriding);
6911    pragma Inline (Return_Present);
6912    pragma Inline (Return_Applies_To);
6913    pragma Inline (Returns_By_Ref);
6914    pragma Inline (Reverse_Bit_Order);
6915    pragma Inline (Scalar_Range);
6916    pragma Inline (Scale_Value);
6917    pragma Inline (Scope_Depth_Value);
6918    pragma Inline (Sec_Stack_Needed_For_Return);
6919    pragma Inline (Shadow_Entities);
6920    pragma Inline (Shared_Var_Assign_Proc);
6921    pragma Inline (Shared_Var_Read_Proc);
6922    pragma Inline (Size_Check_Code);
6923    pragma Inline (Size_Depends_On_Discriminant);
6924    pragma Inline (Size_Known_At_Compile_Time);
6925    pragma Inline (Small_Value);
6926    pragma Inline (Spec_Entity);
6927    pragma Inline (Storage_Size_Variable);
6928    pragma Inline (Static_Elaboration_Desired);
6929    pragma Inline (Static_Initialization);
6930    pragma Inline (Stored_Constraint);
6931    pragma Inline (Strict_Alignment);
6932    pragma Inline (String_Literal_Length);
6933    pragma Inline (String_Literal_Low_Bound);
6934    pragma Inline (Suppress_Elaboration_Warnings);
6935    pragma Inline (Suppress_Init_Proc);
6936    pragma Inline (Suppress_Style_Checks);
6937    pragma Inline (Suppress_Value_Tracking_On_Call);
6938    pragma Inline (Task_Body_Procedure);
6939    pragma Inline (Treat_As_Volatile);
6940    pragma Inline (Underlying_Full_View);
6941    pragma Inline (Universal_Aliasing);
6942    pragma Inline (Unset_Reference);
6943    pragma Inline (Uses_Sec_Stack);
6944    pragma Inline (Vax_Float);
6945    pragma Inline (Warnings_Off);
6946    pragma Inline (Was_Hidden);
6947    pragma Inline (Wrapped_Entity);
6948
6949    pragma Inline (Init_Alignment);
6950    pragma Inline (Init_Component_Bit_Offset);
6951    pragma Inline (Init_Component_Size);
6952    pragma Inline (Init_Digits_Value);
6953    pragma Inline (Init_Esize);
6954    pragma Inline (Init_RM_Size);
6955
6956    pragma Inline (Set_Abstract_Interfaces);
6957    pragma Inline (Set_Accept_Address);
6958    pragma Inline (Set_Access_Disp_Table);
6959    pragma Inline (Set_Actual_Subtype);
6960    pragma Inline (Set_Address_Taken);
6961    pragma Inline (Set_Abstract_Interface_Alias);
6962    pragma Inline (Set_Alias);
6963    pragma Inline (Set_Alignment);
6964    pragma Inline (Set_Associated_Final_Chain);
6965    pragma Inline (Set_Associated_Formal_Package);
6966    pragma Inline (Set_Associated_Node_For_Itype);
6967    pragma Inline (Set_Associated_Storage_Pool);
6968    pragma Inline (Set_Barrier_Function);
6969    pragma Inline (Set_Block_Node);
6970    pragma Inline (Set_Body_Entity);
6971    pragma Inline (Set_Body_Needed_For_SAL);
6972    pragma Inline (Set_CR_Discriminant);
6973    pragma Inline (Set_C_Pass_By_Copy);
6974    pragma Inline (Set_Can_Never_Be_Null);
6975    pragma Inline (Set_Checks_May_Be_Suppressed);
6976    pragma Inline (Set_Class_Wide_Type);
6977    pragma Inline (Set_Cloned_Subtype);
6978    pragma Inline (Set_Component_Bit_Offset);
6979    pragma Inline (Set_Component_Clause);
6980    pragma Inline (Set_Component_Size);
6981    pragma Inline (Set_Component_Type);
6982    pragma Inline (Set_Corresponding_Concurrent_Type);
6983    pragma Inline (Set_Corresponding_Discriminant);
6984    pragma Inline (Set_Corresponding_Equality);
6985    pragma Inline (Set_Corresponding_Record_Type);
6986    pragma Inline (Set_Corresponding_Remote_Type);
6987    pragma Inline (Set_Current_Use_Clause);
6988    pragma Inline (Set_Current_Value);
6989    pragma Inline (Set_Debug_Info_Off);
6990    pragma Inline (Set_Debug_Renaming_Link);
6991    pragma Inline (Set_DTC_Entity);
6992    pragma Inline (Set_DT_Entry_Count);
6993    pragma Inline (Set_DT_Offset_To_Top_Func);
6994    pragma Inline (Set_DT_Position);
6995    pragma Inline (Set_Default_Expr_Function);
6996    pragma Inline (Set_Default_Expressions_Processed);
6997    pragma Inline (Set_Default_Value);
6998    pragma Inline (Set_Delay_Cleanups);
6999    pragma Inline (Set_Delay_Subprogram_Descriptors);
7000    pragma Inline (Set_Delta_Value);
7001    pragma Inline (Set_Dependent_Instances);
7002    pragma Inline (Set_Depends_On_Private);
7003    pragma Inline (Set_Digits_Value);
7004    pragma Inline (Set_Directly_Designated_Type);
7005    pragma Inline (Set_Discard_Names);
7006    pragma Inline (Set_Discriminal);
7007    pragma Inline (Set_Discriminal_Link);
7008    pragma Inline (Set_Discriminant_Checking_Func);
7009    pragma Inline (Set_Discriminant_Constraint);
7010    pragma Inline (Set_Discriminant_Default_Value);
7011    pragma Inline (Set_Discriminant_Number);
7012    pragma Inline (Set_Elaborate_Body_Desirable);
7013    pragma Inline (Set_Elaboration_Entity);
7014    pragma Inline (Set_Elaboration_Entity_Required);
7015    pragma Inline (Set_Enclosing_Scope);
7016    pragma Inline (Set_Entry_Accepted);
7017    pragma Inline (Set_Entry_Bodies_Array);
7018    pragma Inline (Set_Entry_Cancel_Parameter);
7019    pragma Inline (Set_Entry_Component);
7020    pragma Inline (Set_Entry_Formal);
7021    pragma Inline (Set_Entry_Parameters_Type);
7022    pragma Inline (Set_Enum_Pos_To_Rep);
7023    pragma Inline (Set_Enumeration_Pos);
7024    pragma Inline (Set_Enumeration_Rep);
7025    pragma Inline (Set_Enumeration_Rep_Expr);
7026    pragma Inline (Set_Equivalent_Type);
7027    pragma Inline (Set_Esize);
7028    pragma Inline (Set_Exception_Code);
7029    pragma Inline (Set_Extra_Accessibility);
7030    pragma Inline (Set_Extra_Constrained);
7031    pragma Inline (Set_Extra_Formal);
7032    pragma Inline (Set_Extra_Formals);
7033    pragma Inline (Set_Finalization_Chain_Entity);
7034    pragma Inline (Set_First_Entity);
7035    pragma Inline (Set_First_Index);
7036    pragma Inline (Set_First_Literal);
7037    pragma Inline (Set_First_Optional_Parameter);
7038    pragma Inline (Set_First_Private_Entity);
7039    pragma Inline (Set_First_Rep_Item);
7040    pragma Inline (Set_Freeze_Node);
7041    pragma Inline (Set_From_With_Type);
7042    pragma Inline (Set_Full_View);
7043    pragma Inline (Set_Function_Returns_With_DSP);
7044    pragma Inline (Set_Generic_Homonym);
7045    pragma Inline (Set_Generic_Renamings);
7046    pragma Inline (Set_Handler_Records);
7047    pragma Inline (Set_Has_Aliased_Components);
7048    pragma Inline (Set_Has_Alignment_Clause);
7049    pragma Inline (Set_Has_All_Calls_Remote);
7050    pragma Inline (Set_Has_Anon_Block_Suffix);
7051    pragma Inline (Set_Has_Atomic_Components);
7052    pragma Inline (Set_Has_Biased_Representation);
7053    pragma Inline (Set_Has_Completion);
7054    pragma Inline (Set_Has_Completion_In_Body);
7055    pragma Inline (Set_Has_Complex_Representation);
7056    pragma Inline (Set_Has_Component_Size_Clause);
7057    pragma Inline (Set_Has_Constrained_Partial_View);
7058    pragma Inline (Set_Has_Contiguous_Rep);
7059    pragma Inline (Set_Has_Controlled_Component);
7060    pragma Inline (Set_Has_Controlling_Result);
7061    pragma Inline (Set_Has_Convention_Pragma);
7062    pragma Inline (Set_Has_Delayed_Freeze);
7063    pragma Inline (Set_Has_Discriminants);
7064    pragma Inline (Set_Has_Enumeration_Rep_Clause);
7065    pragma Inline (Set_Has_Exit);
7066    pragma Inline (Set_Has_External_Tag_Rep_Clause);
7067    pragma Inline (Set_Has_Fully_Qualified_Name);
7068    pragma Inline (Set_Has_Gigi_Rep_Item);
7069    pragma Inline (Set_Has_Homonym);
7070    pragma Inline (Set_Has_Machine_Radix_Clause);
7071    pragma Inline (Set_Has_Master_Entity);
7072    pragma Inline (Set_Has_Missing_Return);
7073    pragma Inline (Set_Has_Nested_Block_With_Handler);
7074    pragma Inline (Set_Has_Forward_Instantiation);
7075    pragma Inline (Set_Has_Non_Standard_Rep);
7076    pragma Inline (Set_Has_Object_Size_Clause);
7077    pragma Inline (Set_Has_Per_Object_Constraint);
7078    pragma Inline (Set_Has_Persistent_BSS);
7079    pragma Inline (Set_Has_Pragma_Controlled);
7080    pragma Inline (Set_Has_Pragma_Elaborate_Body);
7081    pragma Inline (Set_Has_Pragma_Inline);
7082    pragma Inline (Set_Has_Pragma_Pack);
7083    pragma Inline (Set_Has_Pragma_Pure);
7084    pragma Inline (Set_Has_Pragma_Pure_Function);
7085    pragma Inline (Set_Has_Pragma_Unreferenced);
7086    pragma Inline (Set_Has_Pragma_Unreferenced_Objects);
7087    pragma Inline (Set_Has_Primitive_Operations);
7088    pragma Inline (Set_Has_Private_Declaration);
7089    pragma Inline (Set_Has_Qualified_Name);
7090    pragma Inline (Set_Has_RACW);
7091    pragma Inline (Set_Has_Record_Rep_Clause);
7092    pragma Inline (Set_Has_Recursive_Call);
7093    pragma Inline (Set_Has_Size_Clause);
7094    pragma Inline (Set_Has_Small_Clause);
7095    pragma Inline (Set_Has_Specified_Layout);
7096    pragma Inline (Set_Has_Specified_Stream_Input);
7097    pragma Inline (Set_Has_Specified_Stream_Output);
7098    pragma Inline (Set_Has_Specified_Stream_Read);
7099    pragma Inline (Set_Has_Specified_Stream_Write);
7100    pragma Inline (Set_Has_Static_Discriminants);
7101    pragma Inline (Set_Has_Storage_Size_Clause);
7102    pragma Inline (Set_Has_Stream_Size_Clause);
7103    pragma Inline (Set_Has_Subprogram_Descriptor);
7104    pragma Inline (Set_Has_Task);
7105    pragma Inline (Set_Has_Unchecked_Union);
7106    pragma Inline (Set_Has_Unknown_Discriminants);
7107    pragma Inline (Set_Has_Up_Level_Access);
7108    pragma Inline (Set_Has_Volatile_Components);
7109    pragma Inline (Set_Has_Xref_Entry);
7110    pragma Inline (Set_Hiding_Loop_Variable);
7111    pragma Inline (Set_Homonym);
7112    pragma Inline (Set_In_Package_Body);
7113    pragma Inline (Set_In_Private_Part);
7114    pragma Inline (Set_In_Use);
7115    pragma Inline (Set_Inner_Instances);
7116    pragma Inline (Set_Interface_Name);
7117    pragma Inline (Set_Is_AST_Entry);
7118    pragma Inline (Set_Is_Abstract_Subprogram);
7119    pragma Inline (Set_Is_Abstract_Type);
7120    pragma Inline (Set_Is_Local_Anonymous_Access);
7121    pragma Inline (Set_Is_Access_Constant);
7122    pragma Inline (Set_Is_Ada_2005_Only);
7123    pragma Inline (Set_Is_Aliased);
7124    pragma Inline (Set_Is_Asynchronous);
7125    pragma Inline (Set_Is_Atomic);
7126    pragma Inline (Set_Is_Bit_Packed_Array);
7127    pragma Inline (Set_Is_CPP_Class);
7128    pragma Inline (Set_Is_Called);
7129    pragma Inline (Set_Is_Character_Type);
7130    pragma Inline (Set_Is_Child_Unit);
7131    pragma Inline (Set_Is_Class_Wide_Equivalent_Type);
7132    pragma Inline (Set_Is_Compilation_Unit);
7133    pragma Inline (Set_Is_Completely_Hidden);
7134    pragma Inline (Set_Is_Concurrent_Record_Type);
7135    pragma Inline (Set_Is_Constr_Subt_For_U_Nominal);
7136    pragma Inline (Set_Is_Constr_Subt_For_UN_Aliased);
7137    pragma Inline (Set_Is_Constrained);
7138    pragma Inline (Set_Is_Constructor);
7139    pragma Inline (Set_Is_Controlled);
7140    pragma Inline (Set_Is_Controlling_Formal);
7141    pragma Inline (Set_Is_Discrim_SO_Function);
7142    pragma Inline (Set_Is_Dispatching_Operation);
7143    pragma Inline (Set_Is_Eliminated);
7144    pragma Inline (Set_Is_Entry_Formal);
7145    pragma Inline (Set_Is_Exported);
7146    pragma Inline (Set_Is_First_Subtype);
7147    pragma Inline (Set_Is_For_Access_Subtype);
7148    pragma Inline (Set_Is_Formal_Subprogram);
7149    pragma Inline (Set_Is_Frozen);
7150    pragma Inline (Set_Is_Generic_Actual_Type);
7151    pragma Inline (Set_Is_Generic_Instance);
7152    pragma Inline (Set_Is_Generic_Type);
7153    pragma Inline (Set_Is_Hidden);
7154    pragma Inline (Set_Is_Hidden_Open_Scope);
7155    pragma Inline (Set_Is_Immediately_Visible);
7156    pragma Inline (Set_Is_Imported);
7157    pragma Inline (Set_Is_Inlined);
7158    pragma Inline (Set_Is_Interface);
7159    pragma Inline (Set_Is_Instantiated);
7160    pragma Inline (Set_Is_Internal);
7161    pragma Inline (Set_Is_Interrupt_Handler);
7162    pragma Inline (Set_Is_Intrinsic_Subprogram);
7163    pragma Inline (Set_Is_Itype);
7164    pragma Inline (Set_Is_Known_Non_Null);
7165    pragma Inline (Set_Is_Known_Null);
7166    pragma Inline (Set_Is_Known_Valid);
7167    pragma Inline (Set_Is_Limited_Composite);
7168    pragma Inline (Set_Is_Limited_Interface);
7169    pragma Inline (Set_Is_Limited_Record);
7170    pragma Inline (Set_Is_Machine_Code_Subprogram);
7171    pragma Inline (Set_Is_Non_Static_Subtype);
7172    pragma Inline (Set_Is_Null_Init_Proc);
7173    pragma Inline (Set_Is_Obsolescent);
7174    pragma Inline (Set_Is_Optional_Parameter);
7175    pragma Inline (Set_Is_Overriding_Operation);
7176    pragma Inline (Set_Is_Package_Body_Entity);
7177    pragma Inline (Set_Is_Packed);
7178    pragma Inline (Set_Is_Packed_Array_Type);
7179    pragma Inline (Set_Is_Potentially_Use_Visible);
7180    pragma Inline (Set_Is_Preelaborated);
7181    pragma Inline (Set_Is_Primitive_Wrapper);
7182    pragma Inline (Set_Is_Private_Composite);
7183    pragma Inline (Set_Is_Private_Descendant);
7184    pragma Inline (Set_Is_Protected_Interface);
7185    pragma Inline (Set_Is_Public);
7186    pragma Inline (Set_Is_Pure);
7187    pragma Inline (Set_Is_Pure_Unit_Access_Type);
7188    pragma Inline (Set_Is_Remote_Call_Interface);
7189    pragma Inline (Set_Is_Remote_Types);
7190    pragma Inline (Set_Is_Renaming_Of_Object);
7191    pragma Inline (Set_Is_Return_Object);
7192    pragma Inline (Set_Is_Shared_Passive);
7193    pragma Inline (Set_Is_Statically_Allocated);
7194    pragma Inline (Set_Is_Synchronized_Interface);
7195    pragma Inline (Set_Is_Tag);
7196    pragma Inline (Set_Is_Tagged_Type);
7197    pragma Inline (Set_Is_Task_Interface);
7198    pragma Inline (Set_Is_True_Constant);
7199    pragma Inline (Set_Is_Unchecked_Union);
7200    pragma Inline (Set_Is_Unsigned_Type);
7201    pragma Inline (Set_Is_VMS_Exception);
7202    pragma Inline (Set_Is_Valued_Procedure);
7203    pragma Inline (Set_Is_Visible_Child_Unit);
7204    pragma Inline (Set_Is_Visible_Formal);
7205    pragma Inline (Set_Is_Volatile);
7206    pragma Inline (Set_Itype_Printed);
7207    pragma Inline (Set_Kill_Elaboration_Checks);
7208    pragma Inline (Set_Kill_Range_Checks);
7209    pragma Inline (Set_Kill_Tag_Checks);
7210    pragma Inline (Set_Known_To_Have_Preelab_Init);
7211    pragma Inline (Set_Last_Assignment);
7212    pragma Inline (Set_Last_Entity);
7213    pragma Inline (Set_Limited_View);
7214    pragma Inline (Set_Lit_Indexes);
7215    pragma Inline (Set_Lit_Strings);
7216    pragma Inline (Set_Low_Bound_Known);
7217    pragma Inline (Set_Machine_Radix_10);
7218    pragma Inline (Set_Master_Id);
7219    pragma Inline (Set_Materialize_Entity);
7220    pragma Inline (Set_Mechanism);
7221    pragma Inline (Set_Modulus);
7222    pragma Inline (Set_Must_Be_On_Byte_Boundary);
7223    pragma Inline (Set_Must_Have_Preelab_Init);
7224    pragma Inline (Set_Needs_Debug_Info);
7225    pragma Inline (Set_Needs_No_Actuals);
7226    pragma Inline (Set_Never_Set_In_Source);
7227    pragma Inline (Set_Next_Inlined_Subprogram);
7228    pragma Inline (Set_No_Pool_Assigned);
7229    pragma Inline (Set_No_Return);
7230    pragma Inline (Set_No_Strict_Aliasing);
7231    pragma Inline (Set_Non_Binary_Modulus);
7232    pragma Inline (Set_Non_Limited_View);
7233    pragma Inline (Set_Nonzero_Is_True);
7234    pragma Inline (Set_Normalized_First_Bit);
7235    pragma Inline (Set_Normalized_Position);
7236    pragma Inline (Set_Normalized_Position_Max);
7237    pragma Inline (Set_Object_Ref);
7238    pragma Inline (Set_Obsolescent_Warning);
7239    pragma Inline (Set_Original_Array_Type);
7240    pragma Inline (Set_Original_Record_Component);
7241    pragma Inline (Set_Overridden_Operation);
7242    pragma Inline (Set_Package_Instantiation);
7243    pragma Inline (Set_Packed_Array_Type);
7244    pragma Inline (Set_Parent_Subtype);
7245    pragma Inline (Set_Primitive_Operations);
7246    pragma Inline (Set_Prival);
7247    pragma Inline (Set_Privals_Chain);
7248    pragma Inline (Set_Private_Dependents);
7249    pragma Inline (Set_Private_View);
7250    pragma Inline (Set_Protected_Body_Subprogram);
7251    pragma Inline (Set_Protected_Formal);
7252    pragma Inline (Set_Protected_Operation);
7253    pragma Inline (Set_RM_Size);
7254    pragma Inline (Set_Reachable);
7255    pragma Inline (Set_Referenced);
7256    pragma Inline (Set_Referenced_As_LHS);
7257    pragma Inline (Set_Referenced_Object);
7258    pragma Inline (Set_Register_Exception_Call);
7259    pragma Inline (Set_Related_Array_Object);
7260    pragma Inline (Set_Related_Instance);
7261    pragma Inline (Set_Related_Interface);
7262    pragma Inline (Set_Renamed_Entity);
7263    pragma Inline (Set_Renamed_Object);
7264    pragma Inline (Set_Renaming_Map);
7265    pragma Inline (Set_Requires_Overriding);
7266    pragma Inline (Set_Return_Present);
7267    pragma Inline (Set_Return_Applies_To);
7268    pragma Inline (Set_Returns_By_Ref);
7269    pragma Inline (Set_Reverse_Bit_Order);
7270    pragma Inline (Set_Scalar_Range);
7271    pragma Inline (Set_Scale_Value);
7272    pragma Inline (Set_Scope_Depth_Value);
7273    pragma Inline (Set_Sec_Stack_Needed_For_Return);
7274    pragma Inline (Set_Shadow_Entities);
7275    pragma Inline (Set_Shared_Var_Assign_Proc);
7276    pragma Inline (Set_Shared_Var_Read_Proc);
7277    pragma Inline (Set_Size_Check_Code);
7278    pragma Inline (Set_Size_Depends_On_Discriminant);
7279    pragma Inline (Set_Size_Known_At_Compile_Time);
7280    pragma Inline (Set_Small_Value);
7281    pragma Inline (Set_Spec_Entity);
7282    pragma Inline (Set_Storage_Size_Variable);
7283    pragma Inline (Set_Static_Elaboration_Desired);
7284    pragma Inline (Set_Static_Initialization);
7285    pragma Inline (Set_Stored_Constraint);
7286    pragma Inline (Set_Strict_Alignment);
7287    pragma Inline (Set_String_Literal_Length);
7288    pragma Inline (Set_String_Literal_Low_Bound);
7289    pragma Inline (Set_Suppress_Elaboration_Warnings);
7290    pragma Inline (Set_Suppress_Init_Proc);
7291    pragma Inline (Set_Suppress_Style_Checks);
7292    pragma Inline (Set_Suppress_Value_Tracking_On_Call);
7293    pragma Inline (Set_Task_Body_Procedure);
7294    pragma Inline (Set_Treat_As_Volatile);
7295    pragma Inline (Set_Underlying_Full_View);
7296    pragma Inline (Set_Universal_Aliasing);
7297    pragma Inline (Set_Unset_Reference);
7298    pragma Inline (Set_Uses_Sec_Stack);
7299    pragma Inline (Set_Vax_Float);
7300    pragma Inline (Set_Warnings_Off);
7301    pragma Inline (Set_Was_Hidden);
7302    pragma Inline (Set_Wrapped_Entity);
7303
7304    --  END XEINFO INLINES
7305
7306    --  The following Inline pragmas are *not* read by xeinfo when building
7307    --  the C version of this interface automatically (so the C version will
7308    --  end up making out of line calls). The pragma scan in xeinfo will be
7309    --  terminated on encountering the END XEINFO INLINES line. We inline
7310    --  things here which are small, but not of the canonical attribute
7311    --  access/set format that can be handled by xeinfo.
7312
7313    pragma Inline (Is_Package_Or_Generic_Package);
7314    pragma Inline (Is_Volatile);
7315    pragma Inline (Is_Wrapper_Package);
7316    pragma Inline (Known_RM_Size);
7317    pragma Inline (Known_Static_Component_Bit_Offset);
7318    pragma Inline (Known_Static_RM_Size);
7319    pragma Inline (Scope_Depth);
7320    pragma Inline (Scope_Depth_Set);
7321    pragma Inline (Unknown_RM_Size);
7322
7323 end Einfo;