OSDN Git Service

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