OSDN Git Service

2009-04-10 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                                S I N F O                                 --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
17 --                                                                          --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception,   --
20 -- version 3.1, as published by the Free Software Foundation.               --
21 --                                                                          --
22 -- You should have received a copy of the GNU General Public License and    --
23 -- a copy of the GCC Runtime Library Exception along with this program;     --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
25 -- <http://www.gnu.org/licenses/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package defines the structure of the abstract syntax tree. The Tree
33 --  package provides a basic tree structure. Sinfo describes how this structure
34 --  is used to represent the syntax of an Ada program.
35
36 --  The grammar in the RM is followed very closely in the tree
37 --  design, and is repeated as part of this source file.
38
39 --  The tree contains not only the full syntactic representation of the
40 --  program, but also the results of semantic analysis. In particular, the
41 --  nodes for defining identifiers, defining character literals and defining
42 --  operator symbols, collectively referred to as entities, represent what
43 --  would normally be regarded as the symbol table information. In addition a
44 --  number of the tree nodes contain semantic information.
45
46 --  WARNING: Several files are automatically generated from this package.
47 --  See below for details.
48
49 with Namet;  use Namet;
50 with Types;  use Types;
51 with Uintp;  use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56    ---------------------------------
57    -- Making Changes to This File --
58    ---------------------------------
59
60    --  If changes are made to this file, a number of related steps must be
61    --  carried out to ensure consistency. First, if a field access function is
62    --  added, it appears in seven places:
63
64    --    The documentation associated with the node
65    --    The spec of the access function in sinfo.ads
66    --    The body of the access function in sinfo.adb
67    --    The pragma Inline at the end of sinfo.ads for the access function
68    --    The spec of the set procedure in sinfo.ads
69    --    The body of the set procedure in sinfo.adb
70    --    The pragma Inline at the end of sinfo.ads for the set procedure
71
72    --  The field chosen must be consistent in all places, and, for a node that
73    --  is a subexpression, must not overlap any of the standard expression
74    --  fields.
75
76    --  In addition, if any of the standard expression fields is changed, then
77    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
78    --  must be updated appropriately, since it special cases expression fields.
79
80    --  If a new tree node is added, then the following changes are made
81
82    --    Add it to the documentation in the appropriate place
83    --    Add its fields to this documentation section
84    --    Define it in the appropriate classification in Node_Kind
85    --    In the body (sinfo), add entries to the access functions for all
86    --     its fields (except standard expression fields) to include the new
87    --     node in the checks.
88    --    Add an appropriate section to the case statement in sprint.adb
89    --    Add an appropriate section to the case statement in sem.adb
90    --    Add an appropriate section to the case statement in exp_util.adb
91    --     (Insert_Actions procedure)
92    --    For a subexpression, add an appropriate section to the case
93    --     statement in sem_eval.adb
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_res.adb
96
97    --  Finally, four utility programs must be run:
98
99    --    Run CSinfo to check that you have made the changes consistently. It
100    --     checks most of the rules given above, with clear error messages. This
101    --     utility reads sinfo.ads and sinfo.adb and generates a report to
102    --     standard output.
103
104    --    Run XSinfo to create sinfo.h, the corresponding C header. This
105    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
106    --     not need to read sinfo.adb, since the contents of the body are
107    --     algorithmically determinable from the spec.
108
109    --    Run XTreeprs to create treeprs.ads, an updated version of the module
110    --     that is used to drive the tree print routine. This utility reads (but
111    --     does not modify) treeprs.adt, the template that provides the basic
112    --     structure of the file, and then fills in the data from the comments
113    --     in sinfo.ads.
114
115    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
116    --     spec of the Nmake package which contains functions for constructing
117    --     nodes.
118
119    --  All of the above steps except CSinfo are done automatically by the
120    --  build scripts when you do a full bootstrap.
121
122    --  Note: sometime we could write a utility that actually generated the body
123    --  of sinfo from the spec instead of simply checking it, since, as noted
124    --  above, the contents of the body can be determined from the spec.
125
126    --------------------------------
127    -- Implicit Nodes in the Tree --
128    --------------------------------
129
130    --  Generally the structure of the tree very closely follows the grammar as
131    --  defined in the RM. However, certain nodes are omitted to save space and
132    --  simplify semantic processing. Two general classes of such omitted nodes
133    --  are as follows:
134
135    --   If the only possibilities for a non-terminal are one or more other
136    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
137    --   corresponding node is omitted from the tree, and the target construct
138    --   appears directly. For example, a real type definition is either
139    --   floating point definition or a fixed point definition. No explicit node
140    --   appears for real type definition. Instead either the floating point
141    --   definition or fixed point definition appears directly.
142
143    --   If a non-terminal corresponds to a list of some other non-terminal
144    --   (possibly with separating punctuation), then usually it is omitted from
145    --   the tree, and a list of components appears instead. For example,
146    --   sequence of statements does not appear explicitly in the tree. Instead
147    --   a list of statements appears directly.
148
149    --  Some additional cases of omitted nodes occur and are documented
150    --  individually. In particular, many nodes are omitted in the tree
151    --  generated for an expression.
152
153    -------------------------------------------
154    -- Handling of Defining Identifier Lists --
155    -------------------------------------------
156
157    --  In several declarative forms in the syntax, lists of defining
158    --  identifiers appear (object declarations, component declarations, number
159    --  declarations etc.)
160
161    --  The semantics of such statements are equivalent to a series of identical
162    --  declarations of single defining identifiers (except that conformance
163    --  checks require the same grouping of identifiers in the parameter case).
164
165    --  To simplify semantic processing, the parser breaks down such multiple
166    --  declaration cases into sequences of single declarations, duplicating
167    --  type and initialization information as required. The flags More_Ids and
168    --  Prev_Ids are used to record the original form of the source in the case
169    --  where the original source used a list of names, More_Ids being set on
170    --  all but the last name and Prev_Ids being set on all but the first name.
171    --  These flags are used to reconstruct the original source (e.g. in the
172    --  Sprint package), and also are included in the conformance checks, but
173    --  otherwise have no semantic significance.
174
175    --  Note: the reason that we use More_Ids and Prev_Ids rather than
176    --  First_Name and Last_Name flags is so that the flags are off in the
177    --  normal one identifier case, which minimizes tree print output.
178
179    -----------------------
180    -- Use of Node Lists --
181    -----------------------
182
183    --  With a few exceptions, if a construction of the form {non-terminal}
184    --  appears in the tree, lists are used in the corresponding tree node (see
185    --  package Nlists for handling of node lists). In this case a field of the
186    --  parent node points to a list of nodes for the non-terminal. The field
187    --  name for such fields has a plural name which always ends in "s". For
188    --  example, a case statement has a field Alternatives pointing to list of
189    --  case statement alternative nodes.
190
191    --  Only fields pointing to lists have names ending in "s", so generally the
192    --  structure is strongly typed, fields not ending in s point to single
193    --  nodes, and fields ending in s point to lists.
194
195    --  The following example shows how a traversal of a list is written. We
196    --  suppose here that Stmt points to a N_Case_Statement node which has a
197    --  list field called Alternatives:
198
199    --   Alt := First (Alternatives (Stmt));
200    --   while Present (Alt) loop
201    --      ..
202    --      -- processing for case statement alternative Alt
203    --      ..
204    --      Alt := Next (Alt);
205    --   end loop;
206
207    --  The Present function tests for Empty, which in this case signals the end
208    --  of the list. First returns Empty immediately if the list is empty.
209    --  Present is defined in Atree, First and Next are defined in Nlists.
210
211    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212    --  contexts, which is handled as described in the previous section, and
213    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214    --  using the First_Name and Last_Name flags, as further detailed in the
215    --  description of the N_With_Clause node.
216
217    -------------
218    -- Pragmas --
219    -------------
220
221    --  Pragmas can appear in many different context, but are not included in
222    --  the grammar. Still they must appear in the tree, so they can be properly
223    --  processed.
224
225    --  Two approaches are used. In some cases, an extra field is defined in an
226    --  appropriate node that contains a list of pragmas appearing in the
227    --  expected context. For example pragmas can appear before an
228    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231    --  The other approach is to simply allow pragmas to appear in syntactic
232    --  lists where the grammar (of course) does not include the possibility.
233    --  For example, the Variants field of an N_Variant_Part node points to a
234    --  list that can contain both N_Pragma and N_Variant nodes.
235
236    --  To make processing easier in the latter case, the Nlists package
237    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239    --  ignoring all pragmas.
240
241    --  In the case of the variants list, we can either write:
242
243    --      Variant := First (Variants (N));
244    --      while Present (Variant) loop
245    --         ...
246    --         Variant := Next (Variant);
247    --      end loop;
248
249    --  or
250
251    --      Variant := First_Non_Pragma (Variants (N));
252    --      while Present (Variant) loop
253    --         ...
254    --         Variant := Next_Non_Pragma (Variant);
255    --      end loop;
256
257    --  In the first form of the loop, Variant can either be an N_Pragma or an
258    --  N_Variant node. In the second form, Variant can only be N_Variant since
259    --  all pragmas are skipped.
260
261    ---------------------
262    -- Optional Fields --
263    ---------------------
264
265    --  Fields which correspond to a section of the syntax enclosed in square
266    --  brackets are generally omitted (and the corresponding field set to Empty
267    --  for a node, or No_List for a list). The documentation of such fields
268    --  notes these cases. One exception to this rule occurs in the case of
269    --  possibly empty statement sequences (such as the sequence of statements
270    --  in an entry call alternative). Such cases appear in the syntax rules as
271    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272    --  statement sequences always contain an empty list (not No_List) if no
273    --  statements are present.
274
275    --  Note: the utility program that constructs the body and spec of the Nmake
276    --  package relies on the format of the comments to determine if a field
277    --  should have a default value in the corresponding make routine. The rule
278    --  is that if the first line of the description of the field contains the
279    --  string "(set to xxx if", then a default value of xxx is provided for
280    --  this field in the corresponding Make_yyy routine.
281
282    -----------------------------------
283    -- Note on Body/Spec Terminology --
284    -----------------------------------
285
286    --  In informal discussions about Ada, it is customary to refer to package
287    --  and subprogram specs and bodies. However, this is not technically
288    --  correct, what is normally referred to as a spec or specification is in
289    --  fact a package declaration or subprogram declaration. We are careful in
290    --  GNAT to use the correct terminology and in particular, the full word
291    --  specification is never used as an incorrect substitute for declaration.
292    --  The structure and terminology used in the tree also reflects the grammar
293    --  and thus uses declaration and specification in the technically correct
294    --  manner.
295
296    --  However, there are contexts in which the informal terminology is useful.
297    --  We have the word "body" to refer to the Interp_Etype declared by the
298    --  declaration of a unit body, and in some contexts we need similar term to
299    --  refer to the entity declared by the package or subprogram declaration,
300    --  and simply using declaration can be confusing since the body also has a
301    --  declaration.
302
303    --  An example of such a context is the link between the package body and
304    --  its declaration. With_Declaration is confusing, since the package body
305    --  itself is a declaration.
306
307    --  To deal with this problem, we reserve the informal term Spec, i.e. the
308    --  popular abbreviation used in this context, to refer to the entity
309    --  declared by the package or subprogram declaration. So in the above
310    --  example case, the field in the body is called With_Spec.
311
312    --  Another important context for the use of the word Spec is in error
313    --  messages, where a hyper-correct use of declaration would be confusing to
314    --  a typical Ada programmer, and even for an expert programmer can cause
315    --  confusion since the body has a declaration as well.
316
317    --  So, to summarize:
318
319    --     Declaration    always refers to the syntactic entity that is called
320    --                    a declaration. In particular, subprogram declaration
321    --                    and package declaration are used to describe the
322    --                    syntactic entity that includes the semicolon.
323
324    --     Specification  always refers to the syntactic entity that is called
325    --                    a specification. In particular, the terms procedure
326    --                    specification, function specification, package
327    --                    specification, subprogram specification always refer
328    --                    to the syntactic entity that has no semicolon.
329
330    --     Spec           is an informal term, used to refer to the entity
331    --                    that is declared by a task declaration, protected
332    --                    declaration, generic declaration, subprogram
333    --                    declaration or package declaration.
334
335    --  This convention is followed throughout the GNAT documentation
336    --  both internal and external, and in all error message text.
337
338    ------------------------
339    -- Internal Use Nodes --
340    ------------------------
341
342    --  These are Node_Kind settings used in the internal implementation which
343    --  are not logically part of the specification.
344
345    --  N_Unused_At_Start
346    --  Completely unused entry at the start of the enumeration type. This
347    --  is inserted so that no legitimate value is zero, which helps to get
348    --  better debugging behavior, since zero is a likely uninitialized value).
349
350    --  N_Unused_At_End
351    --  Completely unused entry at the end of the enumeration type. This is
352    --  handy so that arrays with Node_Kind as the index type have an extra
353    --  entry at the end (see for example the use of the Pchar_Pos_Array in
354    --  Treepr, where the extra entry provides the limit value when dealing with
355    --  the last used entry in the array).
356
357    -----------------------------------------
358    -- Note on the settings of Sloc fields --
359    -----------------------------------------
360
361    --  The Sloc field of nodes that come from the source is set by the parser.
362    --  For internal nodes, and nodes generated during expansion the Sloc is
363    --  usually set in the call to the constructor for the node. In general the
364    --  Sloc value chosen for an internal node is the Sloc of the source node
365    --  whose processing is responsible for the expansion. For example, the Sloc
366    --  of an inherited primitive operation is the Sloc of the corresponding
367    --  derived type declaration.
368
369    --  For the nodes of a generic instantiation, the Sloc value is encoded to
370    --  represent both the original Sloc in the generic unit, and the Sloc of
371    --  the instantiation itself. See Sinput.ads for details.
372
373    --  Subprogram instances create two callable entities: one is the visible
374    --  subprogram instance, and the other is an anonymous subprogram nested
375    --  within a wrapper package that contains the renamings for the actuals.
376    --  Both of these entities have the Sloc of the defining entity in the
377    --  instantiation node. This simplifies some ASIS queries.
378
379    -----------------------
380    -- Field Definitions --
381    -----------------------
382
383    --  In the following node definitions, all fields, both syntactic and
384    --  semantic, are documented. The one exception is in the case of entities
385    --  (defining identifiers, character literals and operator symbols), where
386    --  the usage of the fields depends on the entity kind. Entity fields are
387    --  fully documented in the separate package Einfo.
388
389    --  In the node definitions, three common sets of fields are abbreviated to
390    --  save both space in the documentation, and also space in the string
391    --  (defined in Tree_Print_Strings) used to print trees. The following
392    --  abbreviations are used:
393
394    --  Note: the utility program that creates the Treeprs spec (in the file
395    --  xtreeprs.adb) knows about the special fields here, so it must be
396    --  modified if any change is made to these fields.
397
398    --    "plus fields for binary operator"
399    --       Chars                    (Name1)      Name_Id for the operator
400    --       Left_Opnd                (Node2)      left operand expression
401    --       Right_Opnd               (Node3)      right operand expression
402    --       Entity                   (Node4-Sem)  defining entity for operator
403    --       Associated_Node          (Node4-Sem)  for generic processing
404    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
405    --       Has_Private_View         (Flag11-Sem) set in generic units.
406
407    --    "plus fields for unary operator"
408    --       Chars                    (Name1)      Name_Id for the operator
409    --       Right_Opnd               (Node3)      right operand expression
410    --       Entity                   (Node4-Sem)  defining entity for operator
411    --       Associated_Node          (Node4-Sem)  for generic processing
412    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
413    --       Has_Private_View         (Flag11-Sem) set in generic units.
414
415    --    "plus fields for expression"
416    --       Paren_Count                           number of parentheses levels
417    --       Etype                    (Node5-Sem)  type of the expression
418    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
419    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
420    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
421    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
422    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
423    --       Assignment_OK            (Flag15-Sem) set if modification is OK
424    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
425
426    --  Note: see under (EXPRESSION) for further details on the use of
427    --  the Paren_Count field to record the number of parentheses levels.
428
429    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
430    --  The actual definition of this type is given later (the reason for this
431    --  is that we want the descriptions ordered by logical chapter in the RM,
432    --  but the type definition is reordered to facilitate the definition of
433    --  some subtype ranges. The individual descriptions of the nodes show how
434    --  the various fields are used in each node kind, as well as providing
435    --  logical names for the fields. Functions and procedures are provided for
436    --  accessing and setting these fields using these logical names.
437
438    -----------------------
439    -- Gigi Restrictions --
440    -----------------------
441
442    --  The tree passed to Gigi is more restricted than the general tree form.
443    --  For example, as a result of expansion, most of the tasking nodes can
444    --  never appear. For each node to which either a complete or partial
445    --  restriction applies, a note entitled "Gigi restriction" appears which
446    --  documents the restriction.
447
448    --  Note that most of these restrictions apply only to trees generated when
449    --  code is being generated, since they involved expander actions that
450    --  destroy the tree.
451
452    ------------------------
453    -- Common Flag Fields --
454    ------------------------
455
456    --  The following flag fields appear in all nodes
457
458    --  Analyzed (Flag1)
459    --    This flag is used to indicate that a node (and all its children have
460    --    been analyzed. It is used to avoid reanalysis of a node that has
461    --    already been analyzed, both for efficiency and functional correctness
462    --    reasons.
463
464    --  Comes_From_Source (Flag2)
465    --    This flag is on for any nodes built by the scanner or parser from the
466    --    source program, and off for any nodes built by the analyzer or
467    --    expander. It indicates that a node comes from the original source.
468    --    This flag is defined in Atree.
469
470    --  Error_Posted (Flag3)
471    --    This flag is used to avoid multiple error messages being posted on or
472    --    referring to the same node. This flag is set if an error message
473    --    refers to a node or is posted on its source location, and has the
474    --    effect of inhibiting further messages involving this same node.
475
476    --  Has_Dynamic_Length_Check (Flag10-Sem)
477    --    This flag is present on all nodes. It is set to indicate that one of
478    --    the routines in unit Checks has generated a length check action which
479    --    has been inserted at the flagged node. This is used to avoid the
480    --    generation of duplicate checks.
481
482    --  Has_Dynamic_Range_Check (Flag12-Sem)
483    --    This flag is present on all nodes. It is set to indicate that one of
484    --    the routines in unit Checks has generated a range check action which
485    --    has been inserted at the flagged node. This is used to avoid the
486    --    generation of duplicate checks.
487
488    --  Has_Local_Raise (Flag8-Sem)
489    --    Present in exception handler nodes. Set if the handler can be entered
490    --    via a local raise that gets transformed to a goto statement. This will
491    --    always be set if Local_Raise_Statements is non-empty, but can also be
492    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
493    --    nodes requiring generation of back end checks.
494
495    ------------------------------------
496    -- Description of Semantic Fields --
497    ------------------------------------
498
499    --  The meaning of the syntactic fields is generally clear from their names
500    --  without any further description, since the names are chosen to
501    --  correspond very closely to the syntax in the reference manual. This
502    --  section describes the usage of the semantic fields, which are used to
503    --  contain additional information determined during semantic analysis.
504
505    --  ABE_Is_Certain (Flag18-Sem)
506    --    This flag is set in an instantiation node or a call node is determined
507    --    to be sure to raise an ABE. This is used to trigger special handling
508    --    of such cases, particularly in the instantiation case where we avoid
509    --    instantiating the body if this flag is set. This flag is also present
510    --    in an N_Formal_Package_Declaration_Node since formal package
511    --    declarations are treated like instantiations, but it is always set to
512    --    False in this context.
513
514    --  Accept_Handler_Records (List5-Sem)
515    --    This field is present only in an N_Accept_Alternative node. It is used
516    --    to temporarily hold the exception handler records from an accept
517    --    statement in a selective accept. These exception handlers will
518    --    eventually be placed in the Handler_Records list of the procedure
519    --    built for this accept (see Expand_N_Selective_Accept procedure in
520    --    Exp_Ch9 for further details).
521
522    --  Access_Types_To_Process (Elist2-Sem)
523    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
524    --    Contains the list of access types which may require specific treatment
525    --    when the nature of the type completion is completely known. An example
526    --    of such treatment is the generation of the associated_final_chain.
527
528    --  Actions (List1-Sem)
529    --    This field contains a sequence of actions that are associated with the
530    --    node holding the field. See the individual node types for details of
531    --    how this field is used, as well as the description of the specific use
532    --    for a particular node type.
533
534    --  Activation_Chain_Entity (Node3-Sem)
535    --    This is used in tree nodes representing task activators (blocks,
536    --    subprogram bodies, package declarations, and task bodies). It is
537    --    initially Empty, and then gets set to point to the entity for the
538    --    declared Activation_Chain variable when the first task is declared.
539    --    When tasks are declared in the corresponding declarative region this
540    --    entity is located by name (its name is always _Chain) and the declared
541    --    tasks are added to the chain. Note that N_Extended_Return_Statement
542    --    does not have this attribute, although it does have an activation
543    --    chain. This chain is used to store the tasks temporarily, and is not
544    --    used for activating them. On successful completion of the return
545    --    statement, the tasks are moved to the caller's chain, and the caller
546    --    activates them.
547
548    --  Acts_As_Spec (Flag4-Sem)
549    --    A flag set in the N_Subprogram_Body node for a subprogram body which
550    --    is acting as its own spec, except in the case of a library level
551    --    subprogram, in which case the flag is set on the parent compilation
552    --    unit node instead (see further description in spec of Lib package).
553    --    ??? Above note about Lib is dubious since lib.ads does not mention
554    --    Acts_As_Spec at all.
555
556    --  Actual_Designated_Subtype (Node4-Sem)
557    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
558    --    needs to known the dynamic constrained subtype of the designated
559    --    object, this attribute is set to that type. This is done for
560    --    N_Free_Statements for access-to-classwide types and access to
561    --    unconstrained packed array types, and for N_Explicit_Dereference when
562    --    the designated type is an unconstrained packed array and the
563    --    dereference is the prefix of a 'Size attribute reference.
564
565    --  Address_Warning_Posted (Flag18-Sem)
566    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
567    --    posted a warning for the address clause regarding size or alignment
568    --    issues. Used to inhibit multiple redundant messages.
569
570    --  Aggregate_Bounds (Node3-Sem)
571    --    Present in array N_Aggregate nodes. If the aggregate contains
572    --    component associations this field points to an N_Range node whose
573    --    bounds give the lowest and highest discrete choice values. If the
574    --    named aggregate contains a dynamic or null choice this field is empty.
575    --    If the aggregate contains positional elements this field points to an
576    --    N_Integer_Literal node giving the number of positional elements. Note
577    --    that if the aggregate contains positional elements and an other choice
578    --    the N_Integer_Literal only accounts for the number of positional
579    --    elements.
580
581    --  All_Others (Flag11-Sem)
582    --    Present in an N_Others_Choice node. This flag is set for an others
583    --    exception where all exceptions are to be caught, even those that are
584    --    not normally handled (in particular the tasking abort signal). This
585    --    is used for translation of the at end handler into a normal exception
586    --    handler.
587
588    --  Assignment_OK (Flag15-Sem)
589    --    This flag is set in a subexpression node for an object, indicating
590    --    that the associated object can be modified, even if this would not
591    --    normally be permissible (either by direct assignment, or by being
592    --    passed as an out or in-out parameter). This is used by the expander
593    --    for a number of purposes, including initialization of constants and
594    --    limited type objects (such as tasks), setting discriminant fields,
595    --    setting tag values, etc. N_Object_Declaration nodes also have this
596    --    flag defined. Here it is used to indicate that an initialization
597    --    expression is valid, even where it would normally not be allowed
598    --    (e.g. where the type involved is limited).
599
600    --  Associated_Node (Node4-Sem)
601    --    Present in nodes that can denote an entity: identifiers, character
602    --    literals, operator symbols, expanded names, operator nodes, and
603    --    attribute reference nodes (all these nodes have an Entity field).
604    --    This field is also present in N_Aggregate, N_Selected_Component, and
605    --    N_Extension_Aggregate nodes. This field is used in generic processing
606    --    to create links between the generic template and the generic copy.
607    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
608    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
609    --    the normal function of Entity is not required at the point where the
610    --    Associated_Node is set. Note also, that in generic templates, this
611    --    means that the Entity field does not necessarily point to an Entity.
612    --    Since the back end is expected to ignore generic templates, this is
613    --    harmless.
614
615    --  At_End_Proc (Node1)
616    --    This field is present in an N_Handled_Sequence_Of_Statements node.
617    --    It contains an identifier reference for the cleanup procedure to be
618    --    called. See description of this node for further details.
619
620    --  Backwards_OK (Flag6-Sem)
621    --    A flag present in the N_Assignment_Statement node. It is used only
622    --    if the type being assigned is an array type, and is set if analysis
623    --    determines that it is definitely safe to do the copy backwards, i.e.
624    --    starting at the highest addressed element. Note that if neither of the
625    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
626    --    could not determine that either direction is definitely safe, and a
627    --    runtime check may be required if the backend cannot figure it out.
628
629    --  Body_To_Inline (Node3-Sem)
630    --    present in subprogram declarations. Denotes analyzed but unexpanded
631    --    body of subprogram, to be used when inlining calls. Present when the
632    --    subprogram has an Inline pragma and inlining is enabled. If the
633    --    declaration is completed by a renaming_as_body, and the renamed en-
634    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
635    --    which is used directly in later calls to the original subprogram.
636
637    --  Body_Required (Flag13-Sem)
638    --    A flag that appears in the N_Compilation_Unit node indicating that
639    --    the corresponding unit requires a body. For the package case, this
640    --    indicates that a completion is required. In Ada 95, if the flag is not
641    --    set for the package case, then a body may not be present. In Ada 83,
642    --    if the flag is not set for the package case, then body is optional.
643    --    For a subprogram declaration, the flag is set except in the case where
644    --    a pragma Import or Interface applies, in which case no body is
645    --    permitted (in Ada 83 or Ada 95).
646
647    --  By_Ref (Flag5-Sem)
648    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
649    --    this flag is set when the returned expression is already allocated on
650    --    the secondary stack and thus the result is passed by reference rather
651    --    than copied another time.
652
653    --  Check_Address_Alignment (Flag11-Sem)
654    --    A flag present in N_Attribute_Definition clause for a 'Address
655    --    attribute definition. This flag is set if a dynamic check should be
656    --    generated at the freeze point for the entity to which this address
657    --    clause applies. The reason that we need this flag is that we want to
658    --    check for range checks being suppressed at the point where the
659    --    attribute definition clause is given, rather than testing this at the
660    --    freeze point.
661
662    --  Coextensions (Elist4-Sem)
663    --    Present in allocators nodes. Points to list of allocators for the
664    --    access discriminants of the allocated object.
665
666    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
667    --    Present in N_Simple_Return_Statement nodes. True if this node was
668    --    constructed as part of the N_Extended_Return_Statement expansion.
669    --    .
670
671    --  Compile_Time_Known_Aggregate (Flag18-Sem)
672    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
673    --    evaluated at compile time without raising constraint error. Such
674    --    aggregates can be passed as is to Gigi without any expansion. See
675    --    Sem_Aggr for the specific conditions under which an aggregate has this
676    --    flag set. See also the flag Static_Processing_OK.
677
678    --  Condition_Actions (List3-Sem)
679    --    This field appears in else-if nodes and in the iteration scheme node
680    --    for while loops. This field is only used during semantic processing to
681    --    temporarily hold actions inserted into the tree. In the tree passed
682    --    to gigi, the condition actions field is always set to No_List. For
683    --    details on how this field is used, see the routine Insert_Actions in
684    --    package Exp_Util, and also the expansion routines for the relevant
685    --    nodes.
686
687    --  Controlling_Argument (Node1-Sem)
688    --    This field is set in procedure and function call nodes if the call
689    --    is a dispatching call (it is Empty for a non-dispatching call). It
690    --    indicates the source of the call's controlling tag. For procedure
691    --    calls, the Controlling_Argument is one of the actuals. For function
692    --    that has a dispatching result, it is an entity in the context of the
693    --    call that can provide a tag, or else it is the tag of the root type
694    --    of the class. It can also specify a tag directly rather than being a
695    --    tagged object. The latter is needed by the implementations of AI-239
696    --    and AI-260.
697
698    --  Conversion_OK (Flag14-Sem)
699    --    A flag set on type conversion nodes to indicate that the conversion
700    --    is to be considered as being valid, even though it is the case that
701    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
702    --    Fixed_Value and Integer_Value, for internal conversions done for
703    --    fixed-point operations, and for certain conversions for calls to
704    --    initialization procedures. If Conversion_OK is set, then Etype must be
705    --    set (the analyzer assumes that Etype has been set). For the case of
706    --    fixed-point operands, it also indicates that the conversion is to be
707    --    direct conversion of the underlying integer result, with no regard to
708    --    the small operand.
709
710    --  Corresponding_Body (Node5-Sem)
711    --    This field is set in subprogram declarations, package declarations,
712    --    entry declarations of protected types, and in generic units. It
713    --    points to the defining entity for the corresponding body (NOT the
714    --    node for the body itself).
715
716    --  Corresponding_Formal_Spec (Node3-Sem)
717    --    This field is set in subprogram renaming declarations, where it points
718    --    to the defining entity for a formal subprogram in the case where the
719    --    renaming corresponds to a generic formal subprogram association in an
720    --    instantiation. The field is Empty if the renaming does not correspond
721    --    to such a formal association.
722
723    --  Corresponding_Generic_Association (Node5-Sem)
724    --    This field is defined for object declarations and object renaming
725    --    declarations. It is set for the declarations within an instance that
726    --    map generic formals to their actuals. If set, the field points to
727    --    a generic_association which is the original parent of the expression
728    --    or name appearing in the declaration. This simplifies ASIS queries.
729
730    --  Corresponding_Integer_Value (Uint4-Sem)
731    --    This field is set in real literals of fixed-point types (it is not
732    --    used for floating-point types). It contains the integer value used
733    --    to represent the fixed-point value. It is also set on the universal
734    --    real literals used to represent bounds of fixed-point base types
735    --    and their first named subtypes.
736
737    --  Corresponding_Spec (Node5-Sem)
738    --    This field is set in subprogram, package, task, and protected body
739    --    nodes, where it points to the defining entity in the corresponding
740    --    spec. The attribute is also set in N_With_Clause nodes where it points
741    --    to the defining entity for the with'ed spec, and in a subprogram
742    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
743    --    if there is no corresponding spec, as in the case of a subprogram body
744    --    that serves as its own spec.
745
746    --  Corresponding_Stub (Node3-Sem)
747    --    This field is present in an N_Subunit node. It holds the node in
748    --    the parent unit that is the stub declaration for the subunit. It is
749    --    set when analysis of the stub forces loading of the proper body. If
750    --    expansion of the proper body creates new declarative nodes, they are
751    --    inserted at the point of the corresponding_stub.
752
753    --  Dcheck_Function (Node5-Sem)
754    --    This field is present in an N_Variant node, It references the entity
755    --    for the discriminant checking function for the variant.
756
757    --  Debug_Statement (Node3)
758    --    This field is present in an N_Pragma node. It is used only for a Debug
759    --    pragma. The parameter is of the form of an expression, as required by
760    --    the pragma syntax, but is actually a procedure call. To simplify
761    --    semantic processing, the parser creates a copy of the argument
762    --    rearranged into a procedure call statement and places it in the
763    --    Debug_Statement field. Note that this field is considered syntactic
764    --    field, since it is created by the parser.
765
766    --  Default_Expression (Node5-Sem)
767    --    This field is Empty if there is no default expression. If there is a
768    --    simple default expression (one with no side effects), then this field
769    --    simply contains a copy of the Expression field (both point to the tree
770    --    for the default expression). Default_Expression is used for
771    --    conformance checking.
772
773    --  Discr_Check_Funcs_Built (Flag11-Sem)
774    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
775    --    discriminant checking functions are constructed. The purpose is to
776    --    avoid attempting to set these functions more than once.
777
778    --  Do_Accessibility_Check (Flag13-Sem)
779    --    This flag is set on N_Parameter_Specification nodes to indicate
780    --    that an accessibility check is required for the parameter. It is
781    --    not yet decided who takes care of this check (TBD ???).
782
783    --  Do_Discriminant_Check (Flag13-Sem)
784    --    This flag is set on N_Selected_Component nodes to indicate that a
785    --    discriminant check is required using the discriminant check routine
786    --    associated with the selector. The actual check is generated by the
787    --    expander when processing selected components.
788
789    --  Do_Division_Check (Flag13-Sem)
790    --    This flag is set on a division operator (/ mod rem) to indicate
791    --    that a zero divide check is required. The actual check is dealt
792    --    with by the backend (all the front end does is to set the flag).
793
794    --  Do_Length_Check (Flag4-Sem)
795    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
796    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
797    --    is required. It is not determined who deals with this flag (???).
798
799    --  Do_Overflow_Check (Flag17-Sem)
800    --    This flag is set on an operator where an overflow check is required on
801    --    the operation. The actual check is dealt with by the backend (all the
802    --    front end does is to set the flag). The other cases where this flag is
803    --    used is on a Type_Conversion node and for attribute reference nodes.
804    --    For a type conversion, it means that the conversion is from one base
805    --    type to another, and the value may not fit in the target base type.
806    --    See also the description of Do_Range_Check for this case. The only
807    --    attribute references which use this flag are Pred and Succ, where it
808    --    means that the result should be checked for going outside the base
809    --    range.
810
811    --  Do_Range_Check (Flag9-Sem)
812    --    This flag is set on an expression which appears in a context where a
813    --    range check is required. The target type is clear from the context.
814    --    The contexts in which this flag can appear are the following:
815
816    --      Right side of an assignment. In this case the target type is
817    --      taken from the left side of the assignment, which is referenced
818    --      by the Name of the N_Assignment_Statement node.
819
820    --      Subscript expressions in an indexed component. In this case the
821    --      target type is determined from the type of the array, which is
822    --      referenced by the Prefix of the N_Indexed_Component node.
823
824    --      Argument expression for a parameter, appearing either directly in
825    --      the Parameter_Associations list of a call or as the Expression of an
826    --      N_Parameter_Association node that appears in this list. In either
827    --      case, the check is against the type of the formal. Note that the
828    --      flag is relevant only in IN and IN OUT parameters, and will be
829    --      ignored for OUT parameters, where no check is required in the call,
830    --      and if a check is required on the return, it is generated explicitly
831    --      with a type conversion.
832
833    --      Initialization expression for the initial value in an object
834    --      declaration. In this case the Do_Range_Check flag is set on
835    --      the initialization expression, and the check is against the
836    --      range of the type of the object being declared.
837
838    --      The expression of a type conversion. In this case the range check is
839    --      against the target type of the conversion. See also the use of
840    --      Do_Overflow_Check on a type conversion. The distinction is that the
841    --      overflow check protects against a value that is outside the range of
842    --      the target base type, whereas a range check checks that the
843    --      resulting value (which is a value of the base type of the target
844    --      type), satisfies the range constraint of the target type.
845
846    --    Note: when a range check is required in contexts other than those
847    --    listed above (e.g. in a return statement), an additional type
848    --    conversion node is introduced to represent the required check.
849
850    --  Do_Storage_Check (Flag17-Sem)
851    --    This flag is set in an N_Allocator node to indicate that a storage
852    --    check is required for the allocation, or in an N_Subprogram_Body node
853    --    to indicate that a stack check is required in the subprogram prolog.
854    --    The N_Allocator case is handled by the routine that expands the call
855    --    to the runtime routine. The N_Subprogram_Body case is handled by the
856    --    backend, and all the semantics does is set the flag.
857
858    --  Do_Tag_Check (Flag13-Sem)
859    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
860    --    N_Procedure_Call_Statement, N_Type_Conversion,
861    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
862    --    node to indicate that the tag check can be suppressed. It is not
863    --    yet decided how this flag is used (TBD ???).
864
865    --  Elaborate_Present (Flag4-Sem)
866    --    This flag is set in the N_With_Clause node to indicate that pragma
867    --    Elaborate pragma appears for the with'ed units.
868
869    --  Elaborate_All_Desirable (Flag9-Sem)
870    --    This flag is set in the N_With_Clause mode to indicate that the static
871    --    elaboration processing has determined that an Elaborate_All pragma is
872    --    desirable for correct elaboration for this unit.
873
874    --  Elaborate_All_Present (Flag14-Sem)
875    --    This flag is set in the N_With_Clause node to indicate that a
876    --    pragma Elaborate_All pragma appears for the with'ed units.
877
878    --  Elaborate_Desirable (Flag11-Sem)
879    --    This flag is set in the N_With_Clause mode to indicate that the static
880    --    elaboration processing has determined that an Elaborate pragma is
881    --    desirable for correct elaboration for this unit.
882
883    --  Elaboration_Boolean (Node2-Sem)
884    --    This field is present in function and procedure specification nodes.
885    --    If set, it points to the entity for a Boolean flag that must be tested
886    --    for certain calls to check for access before elaboration. See body of
887    --    Sem_Elab for further details. This field is Empty if no elaboration
888    --    boolean is required.
889
890    --  Else_Actions (List3-Sem)
891    --    This field is present in conditional expression nodes. During code
892    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
893    --    actions at an appropriate place in the tree to get elaborated at the
894    --    right time. For conditional expressions, we have to be sure that the
895    --    actions for the Else branch are only elaborated if the condition is
896    --    False. The Else_Actions field is used as a temporary parking place for
897    --    these actions. The final tree is always rewritten to eliminate the
898    --    need for this field, so in the tree passed to Gigi, this field is
899    --    always set to No_List.
900
901    --  Enclosing_Variant (Node2-Sem)
902    --    This field is present in the N_Variant node and identifies the Node_Id
903    --    corresponding to the immediately enclosing variant when the variant is
904    --    nested, and N_Empty otherwise. Set during semantic processing of the
905    --    variant part of a record type.
906
907    --  Entity (Node4-Sem)
908    --    Appears in all direct names (identifiers, character literals, and
909    --    operator symbols), as well as expanded names, and attributes that
910    --    denote entities, such as 'Class. Points to entity for corresponding
911    --    defining occurrence. Set after name resolution. For identifiers in a
912    --    WITH list, the corresponding defining occurrence is in a separately
913    --    compiled file, and Entity must be set by the library Load procedure.
914    --
915    --    Note: During name resolution, the value in Entity may be temporarily
916    --    incorrect (e.g. during overload resolution, Entity is initially set to
917    --    the first possible correct interpretation, and then later modified if
918    --    necessary to contain the correct value after resolution).
919    --
920    --    Note: This field overlaps Associated_Node, which is used during
921    --    generic processing (see Sem_Ch12 for details). Note also that in
922    --    generic templates, this means that the Entity field does not always
923    --    point to an Entity. Since the back end is expected to ignore generic
924    --    templates, this is harmless.
925    --
926    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
927    --    It is used only for stream attributes definition clauses. In this
928    --    case, it denotes a (possibly dummy) subprogram entity that is declared
929    --    conceptually at the point of the clause. Thus the visibility of the
930    --    attribute definition clause (in the sense of 8.3(23) as amended by
931    --    AI-195) can be checked by testing the visibility of that subprogram.
932    --
933    --    Note: Normally the Entity field of an identifier points to the entity
934    --    for the corresponding defining identifier, and hence the Chars field
935    --    of an identifier will match the Chars field of the entity. However,
936    --    there is no requirement that these match, and there are obscure cases
937    --    of generated code where they do not match.
938
939    --  Entity_Or_Associated_Node (Node4-Sem)
940    --    A synonym for both Entity and Associated_Node. Used by convention in
941    --    the code when referencing this field in cases where it is not known
942    --    whether the field contains an Entity or an Associated_Node.
943
944    --  Etype (Node5-Sem)
945    --    Appears in all expression nodes, all direct names, and all entities.
946    --    Points to the entity for the related type. Set after type resolution.
947    --    Normally this is the actual subtype of the expression. However, in
948    --    certain contexts such as the right side of an assignment, subscripts,
949    --    arguments to calls, returned value in a function, initial value etc.
950    --    it is the desired target type. In the event that this is different
951    --    from the actual type, the Do_Range_Check flag will be set if a range
952    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
953    --    points to an essentially arbitrary choice from the possible set of
954    --    types.
955
956    --  Exception_Junk (Flag8-Sem)
957    --    This flag is set in a various nodes appearing in a statement sequence
958    --    to indicate that the corresponding node is an artifact of the
959    --    generated code for exception handling, and should be ignored when
960    --    analyzing the control flow of the relevant sequence of statements
961    --    (e.g. to check that it does not end with a bad return statement).
962
963    --  Exception_Label (Node5-Sem)
964    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
965    --    to be used for transforming the corresponding exception into a goto,
966    --    or contains Empty, if this exception is not to be transformed. Also
967    --    appears in N_Exception_Handler nodes, where, if set, it indicates
968    --    that there may be a local raise for the handler, so that expansion
969    --    to allow a goto is required (and this field contains the label for
970    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
971
972    --  Expansion_Delayed (Flag11-Sem)
973    --    Set on aggregates and extension aggregates that need a top-down rather
974    --    than bottom up expansion. Typically aggregate expansion happens bottom
975    --    up. For nested aggregates the expansion is delayed until the enclosing
976    --    aggregate itself is expanded, e.g. in the context of a declaration. To
977    --    delay it we set this flag. This is done to avoid creating a temporary
978    --    for each level of a nested aggregates, and also to prevent the
979    --    premature generation of constraint checks. This is also a requirement
980    --    if we want to generate the proper attachment to the internal
981    --    finalization lists (for record with controlled components). Top down
982    --    expansion of aggregates is also used for in-place array aggregate
983    --    assignment or initialization. When the full context is known, the
984    --    target of the assignment or initialization is used to generate the
985    --    left-hand side of individual assignment to each sub-component.
986
987    --  First_Inlined_Subprogram (Node3-Sem)
988    --    Present in the N_Compilation_Unit node for the main program. Points
989    --    to a chain of entities for subprograms that are to be inlined. The
990    --    Next_Inlined_Subprogram field of these entities is used as a link
991    --    pointer with Empty marking the end of the list. This field is Empty
992    --    if there are no inlined subprograms or inlining is not active.
993
994    --  First_Named_Actual (Node4-Sem)
995    --    Present in procedure call statement and function call nodes, and also
996    --    in Intrinsic nodes. Set during semantic analysis to point to the first
997    --    named parameter where parameters are ordered by declaration order (as
998    --    opposed to the actual order in the call which may be different due to
999    --    named associations). Note: this field points to the explicit actual
1000    --    parameter itself, not the N_Parameter_Association node (its parent).
1001
1002    --  First_Real_Statement (Node2-Sem)
1003    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1004    --    Empty. Used only when declarations are moved into the statement part
1005    --    of a construct as a result of wrapping an AT END handler that is
1006    --    required to cover the declarations. In this case, this field is used
1007    --    to remember the location in the statements list of the first real
1008    --    statement, i.e. the statement that used to be first in the statement
1009    --    list before the declarations were prepended.
1010
1011    --  First_Subtype_Link (Node5-Sem)
1012    --    Present in N_Freeze_Entity node for an anonymous base type that is
1013    --    implicitly created by the declaration of a first subtype. It points
1014    --    to the entity for the first subtype.
1015
1016    --  Float_Truncate (Flag11-Sem)
1017    --    A flag present in type conversion nodes. This is used for float to
1018    --    integer conversions where truncation is required rather than rounding.
1019    --    Note that Gigi does not handle type conversions from real to integer
1020    --    with rounding (see Expand_N_Type_Conversion).
1021
1022    --  Forwards_OK (Flag5-Sem)
1023    --    A flag present in the N_Assignment_Statement node. It is used only
1024    --    if the type being assigned is an array type, and is set if analysis
1025    --    determines that it is definitely safe to do the copy forwards, i.e.
1026    --    starting at the lowest addressed element. Note that if neither of the
1027    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
1028    --    could not determine that either direction is definitely safe, and a
1029    --    runtime check is required.
1030
1031    --  From_At_End (Flag4-Sem)
1032    --    This flag is set on an N_Raise_Statement node if it corresponds to
1033    --    the reraise statement generated as the last statement of an AT END
1034    --    handler when SJLJ exception handling is active. It is used to stop
1035    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1036    --    because if the restriction is set, the reraise is not generated.
1037
1038    --  From_At_Mod (Flag4-Sem)
1039    --    This flag is set on the attribute definition clause node that is
1040    --    generated by a transformation of an at mod phrase in a record
1041    --    representation clause. This is used to give slightly different (Ada 83
1042    --    compatible) semantics to such a clause, namely it is used to specify a
1043    --    minimum acceptable alignment for the base type and all subtypes. In
1044    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1045    --    must be a multiple of the given value, and the representation clause
1046    --    is considered to be type specific instead of subtype specific.
1047
1048    --  From_Default (Flag6-Sem)
1049    --    This flag is set on the subprogram renaming declaration created in an
1050    --    instance for a formal subprogram, when the formal is declared with a
1051    --    box, and there is no explicit actual. If the flag is present, the
1052    --    declaration is treated as an implicit reference to the formal in the
1053    --    ali file.
1054
1055    --  Generic_Parent (Node5-Sem)
1056    --    Generic_Parent is defined on declaration nodes that are instances. The
1057    --    value of Generic_Parent is the generic entity from which the instance
1058    --    is obtained. Generic_Parent is also defined for the renaming
1059    --    declarations and object declarations created for the actuals in an
1060    --    instantiation. The generic parent of such a declaration is the
1061    --    corresponding generic association in the Instantiation node.
1062
1063    --  Generic_Parent_Type (Node4-Sem)
1064    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1065    --    actuals of formal private and derived types. Within the instance, the
1066    --    operations on the actual are those inherited from the parent. For a
1067    --    formal private type, the parent type is the generic type itself. The
1068    --    Generic_Parent_Type is also used in an instance to determine whether a
1069    --    private operation overrides an inherited one.
1070
1071    --  Handler_List_Entry (Node2-Sem)
1072    --    This field is present in N_Object_Declaration nodes. It is set only
1073    --    for the Handler_Record entry generated for an exception in zero cost
1074    --    exception handling mode. It references the corresponding item in the
1075    --    handler list, and is used to delete this entry if the corresponding
1076    --    handler is deleted during optimization. For further details on why
1077    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1078
1079    --  Has_No_Elaboration_Code (Flag17-Sem)
1080    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1081    --    or not elaboration code is present for this unit. It is initially set
1082    --    true for subprogram specs and bodies and for all generic units and
1083    --    false for non-generic package specs and bodies. Gigi may set the flag
1084    --    in the non-generic package case if it determines that no elaboration
1085    --    code is generated. Note that this flag is not related to the
1086    --    Is_Preelaborated status, there can be preelaborated packages that
1087    --    generate elaboration code, and non-preelaborated packages which do
1088    --    not generate elaboration code.
1089
1090    --  Has_Priority_Pragma (Flag6-Sem)
1091    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1092    --    N_Protected_Definition nodes to flag the presence of either a Priority
1093    --    or Interrupt_Priority pragma in the declaration sequence (public or
1094    --    private in the task and protected cases)
1095
1096    --  Has_Private_View (Flag11-Sem)
1097    --    A flag present in generic nodes that have an entity, to indicate that
1098    --    the node has a private type. Used to exchange private and full
1099    --    declarations if the visibility at instantiation is different from the
1100    --    visibility at generic definition.
1101
1102    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1103    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1104    --    flag the presence of a pragma Relative_Deadline.
1105
1106    --  Has_Self_Reference (Flag13-Sem)
1107    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1108    --    of the expressions contains an access attribute reference to the
1109    --    enclosing type. Such a self-reference can only appear in default-
1110    --    initialized aggregate for a record type.
1111
1112    --  Has_Storage_Size_Pragma (Flag5-Sem)
1113    --    A flag present in an N_Task_Definition node to flag the presence of a
1114    --    Storage_Size pragma.
1115
1116    --  Has_Task_Info_Pragma (Flag7-Sem)
1117    --    A flag present in an N_Task_Definition node to flag the presence of a
1118    --    Task_Info pragma. Used to detect duplicate pragmas.
1119
1120    --  Has_Task_Name_Pragma (Flag8-Sem)
1121    --    A flag present in N_Task_Definition nodes to flag the presence of a
1122    --    Task_Name pragma in the declaration sequence for the task.
1123
1124    --  Has_Wide_Character (Flag11-Sem)
1125    --    Present in string literals, set if any wide character (i.e. character
1126    --    code outside the Character range) appears in the string.
1127
1128    --  Hidden_By_Use_Clause (Elist4-Sem)
1129    --     An entity list present in use clauses that appear within
1130    --     instantiations. For the resolution of local entities, entities
1131    --     introduced by these use clauses have priority over global ones, and
1132    --     outer entities must be explicitly hidden/restored on exit.
1133
1134    --  Implicit_With (Flag16-Sem)
1135    --    This flag is set in the N_With_Clause node that is implicitly
1136    --    generated for runtime units that are loaded by the expander, and also
1137    --    for package System, if it is loaded implicitly by a use of the
1138    --    'Address or 'Tag attribute.
1139
1140    --  Includes_Infinities (Flag11-Sem)
1141    --    This flag is present in N_Range nodes. It is set for the range of
1142    --    unconstrained float types defined in Standard, which include not only
1143    --    the given range of values, but also legitimately can include infinite
1144    --    values. This flag is false for any float type for which an explicit
1145    --    range is given by the programmer, even if that range is identical to
1146    --    the range for Float.
1147
1148    --  Instance_Spec (Node5-Sem)
1149    --    This field is present in generic instantiation nodes, and also in
1150    --    formal package declaration nodes (formal package declarations are
1151    --    treated in a manner very similar to package instantiations). It points
1152    --    to the node for the spec of the instance, inserted as part of the
1153    --    semantic processing for instantiations in Sem_Ch12.
1154
1155    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1156    --    A flag set in a Block_Statement node to indicate that it is the
1157    --    expansion of an asynchronous entry call. Such a block needs cleanup
1158    --    handler to assure that the call is cancelled.
1159
1160    --  Is_Component_Left_Opnd  (Flag13-Sem)
1161    --  Is_Component_Right_Opnd (Flag14-Sem)
1162    --    Present in concatenation nodes, to indicate that the corresponding
1163    --    operand is of the component type of the result. Used in resolving
1164    --    concatenation nodes in instances.
1165
1166    --  Is_Controlling_Actual (Flag16-Sem)
1167    --    This flag is set on in an expression that is a controlling argument in
1168    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1169    --    details of its use.
1170
1171    --  Is_Dynamic_Coextension (Flag18-Sem)
1172    --    Present in allocator nodes, to indicate that this is an allocator
1173    --    for an access discriminant of a dynamically allocated object. The
1174    --    coextension must be deallocated and finalized at the same time as
1175    --    the enclosing object.
1176
1177    --  Is_Entry_Barrier_Function (Flag8-Sem)
1178    --    This flag is set in an N_Subprogram_Body node which is the expansion
1179    --    of an entry barrier from a protected entry body. It is used for the
1180    --    circuitry checking for incorrect use of Current_Task.
1181
1182    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1183    --    This flag is set in an N_Function_Call node to indicate that the extra
1184    --    actuals to support a build-in-place style of call have been added to
1185    --    the call.
1186
1187    --  Is_In_Discriminant_Check (Flag11-Sem)
1188    --    This flag is present in a selected component, and is used to indicate
1189    --    that the reference occurs within a discriminant check. The
1190    --    significance is that optimizations based on assuming that the
1191    --    discriminant check has a correct value cannot be performed in this
1192    --    case (or the discriminant check may be optimized away!)
1193
1194    --  Is_Machine_Number (Flag11-Sem)
1195    --    This flag is set in an N_Real_Literal node to indicate that the value
1196    --    is a machine number. This avoids some unnecessary cases of converting
1197    --    real literals to machine numbers.
1198
1199    --  Is_Null_Loop (Flag16-Sem)
1200    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1201    --    can be determined to be null at compile time. This is used to remove
1202    --    the loop entirely at expansion time.
1203
1204    --  Is_Overloaded (Flag5-Sem)
1205    --    A flag present in all expression nodes. Used temporarily during
1206    --    overloading determination. The setting of this flag is not relevant
1207    --    once overloading analysis is complete.
1208
1209    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1210    --    A flag present only in N_Op_Expon nodes. It is set when the
1211    --    exponentiation is of the form 2 ** N, where the type of N is an
1212    --    unsigned integral subtype whose size does not exceed the size of
1213    --    Standard_Integer (i.e. a type that can be safely converted to
1214    --    Natural), and the exponentiation appears as the right operand of an
1215    --    integer multiplication or an integer division where the dividend is
1216    --    unsigned. It is also required that overflow checking is off for both
1217    --    the exponentiation and the multiply/divide node. If this set of
1218    --    conditions holds, and the flag is set, then the division or
1219    --    multiplication can be (and is) converted to a shift.
1220
1221    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1222    --    A flag set in a Subprogram_Body block to indicate that it is the
1223    --    implementation of a protected subprogram. Such a body needs cleanup
1224    --    handler to make sure that the associated protected object is unlocked
1225    --    when the subprogram completes.
1226
1227    --  Is_Static_Coextension (Flag14-Sem)
1228    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1229    --    of an object allocated on the stack rather than the heap.
1230
1231    --  Is_Static_Expression (Flag6-Sem)
1232    --    Indicates that an expression is a static expression (RM 4.9). See spec
1233    --    of package Sem_Eval for full details on the use of this flag.
1234
1235    --  Is_Subprogram_Descriptor (Flag16-Sem)
1236    --    Present in N_Object_Declaration, and set only for the object
1237    --    declaration generated for a subprogram descriptor in fast exception
1238    --    mode. See Exp_Ch11 for details of use.
1239
1240    --  Is_Task_Allocation_Block (Flag6-Sem)
1241    --    A flag set in a Block_Statement node to indicate that it is the
1242    --    expansion of a task allocator, or the allocator of an object
1243    --    containing tasks. Such a block requires a cleanup handler to call
1244    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1245    --    allocated but not activated when the allocator completes abnormally.
1246
1247    --  Is_Task_Master (Flag5-Sem)
1248    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1249    --    indicate that the construct is a task master (i.e. has declared tasks
1250    --    or declares an access to a task type).
1251
1252    --  Itype (Node1-Sem)
1253    --    Used in N_Itype_Reference node to reference an itype for which it is
1254    --    important to ensure that it is defined. See description of this node
1255    --    for further details.
1256
1257    --  Kill_Range_Check (Flag11-Sem)
1258    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1259    --    result should not be subjected to range checks. This is used for the
1260    --    implementation of Normalize_Scalars.
1261
1262    --  Label_Construct (Node2-Sem)
1263    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1264    --    N_Block_Statement or N_Loop_Statement node to which the label
1265    --    declaration applies. This is not currently used in the compiler
1266    --    itself, but it is useful in the implementation of ASIS queries.
1267    --    This field is left empty for the special labels generated as part
1268    --    of expanding raise statements with a local exception handler.
1269
1270    --  Library_Unit (Node4-Sem)
1271    --    In a stub node, Library_Unit points to the compilation unit node of
1272    --    the corresponding subunit.
1273    --
1274    --    In a with clause node, Library_Unit points to the spec of the with'ed
1275    --    unit.
1276    --
1277    --    In a compilation unit node, the usage depends on the unit type:
1278    --
1279    --     For a subprogram body, Library_Unit points to the compilation unit
1280    --     node of the corresponding spec, unless Acts_As_Spec is set, in which
1281    --     case it points to itself.
1282    --
1283    --     For a package body, Library_Unit points to the compilation unit of
1284    --     the corresponding package spec.
1285    --
1286    --     For a subprogram spec to which pragma Inline applies, Library_Unit
1287    --     points to the compilation unit node of the corresponding body, if
1288    --     inlining is active.
1289    --
1290    --     For a generic declaration, Library_Unit points to the compilation
1291    --     unit node of the corresponding generic body.
1292    --
1293    --     For a subunit, Library_Unit points to the compilation unit node of
1294    --     the parent body.
1295    --
1296    --    Note that this field is not used to hold the parent pointer for child
1297    --    unit (which might in any case need to use it for some other purpose as
1298    --    described above). Instead for a child unit, implicit with's are
1299    --    generated for all parents.
1300
1301    --  Local_Raise_Statements (Elist1)
1302    --    This field is present in exception handler nodes. It is set to
1303    --    No_Elist in the normal case. If there is at least one raise statement
1304    --    which can potentially be handled as a local raise, then this field
1305    --    points to a list of raise nodes, which are calls to a routine to raise
1306    --    an exception. These are raise nodes which can be optimized into gotos
1307    --    if the handler turns out to meet the conditions which permit this
1308    --    transformation. Note that this does NOT include instances of the
1309    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1310    --    handled by the back end (using the N_Push/N_Pop mechanism).
1311
1312    --  Loop_Actions (List2-Sem)
1313    --    A list present in Component_Association nodes in array aggregates.
1314    --    Used to collect actions that must be executed within the loop because
1315    --    they may need to be evaluated anew each time through.
1316
1317    --  Limited_View_Installed (Flag18-Sem)
1318    --    Present in With_Clauses and in package specifications. If set on
1319    --    with_clause, it indicates that this clause has created the current
1320    --    limited view of the designated package. On a package specification, it
1321    --    indicates that the limited view has already been created because the
1322    --    package is mentioned in a limited_with_clause in the closure of the
1323    --    unit being compiled.
1324
1325    --  Local_Raise_Not_OK (Flag7-Sem)
1326    --    Present in N_Exception_Handler nodes. Set if the handler contains
1327    --    a construct (reraise statement, or call to subprogram in package
1328    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1329    --    for a local raise (one that could otherwise be converted to a goto).
1330
1331    --  Must_Be_Byte_Aligned (Flag14-Sem)
1332    --    This flag is present in N_Attribute_Reference nodes. It can be set
1333    --    only for the Address and Unrestricted_Access attributes. If set it
1334    --    means that the object for which the address/access is given must be on
1335    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1336    --    of the object is to be made before taking the address (this copy is in
1337    --    the current scope on the stack frame). This is used for certain cases
1338    --    of code generated by the expander that passes parameters by address.
1339    --
1340    --    The reason the copy is not made by the front end is that the back end
1341    --    has more information about type layout and may be able to (but is not
1342    --    guaranteed to) prevent making unnecessary copies.
1343
1344    --  Must_Not_Freeze (Flag8-Sem)
1345    --    A flag present in all expression nodes. Normally expressions cause
1346    --    freezing as described in the RM. If this flag is set, then this is
1347    --    inhibited. This is used by the analyzer and expander to label nodes
1348    --    that are created by semantic analysis or expansion and which must not
1349    --    cause freezing even though they normally would. This flag is also
1350    --    present in an N_Subtype_Indication node, since we also use these in
1351    --    calls to Freeze_Expression.
1352
1353    --  Next_Entity (Node2-Sem)
1354    --    Present in defining identifiers, defining character literals and
1355    --    defining operator symbols (i.e. in all entities). The entities of a
1356    --    scope are chained, and this field is used as the forward pointer for
1357    --    this list. See Einfo for further details.
1358
1359    --  Next_Named_Actual (Node4-Sem)
1360    --    Present in parameter association node. Set during semantic analysis to
1361    --    point to the next named parameter, where parameters are ordered by
1362    --    declaration order (as opposed to the actual order in the call, which
1363    --    may be different due to named associations). Not that this field
1364    --    points to the explicit actual parameter itself, not to the
1365    --    N_Parameter_Association node (its parent).
1366
1367    --  Next_Pragma (Node1-Sem)
1368    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1369    --    nodes. Currently used for two purposes:
1370    --
1371    --      Create a list of linked Check_Policy pragmas. The head of this list
1372    --      is stored in Opt.Check_Policy_List (which has further details).
1373    --
1374    --      Used by processing for Pre/Postcondition pragmas to store a list of
1375    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1376    --      details).
1377
1378    --  Next_Rep_Item (Node5-Sem)
1379    --    Present in pragma nodes and attribute definition nodes. Used to link
1380    --    representation items that apply to an entity. See description of
1381    --    First_Rep_Item field in Einfo for full details.
1382
1383    --  Next_Use_Clause (Node3-Sem)
1384    --    While use clauses are active during semantic processing, they are
1385    --    chained from the scope stack entry, using Next_Use_Clause as a link
1386    --    pointer, with Empty marking the end of the list. The head pointer is
1387    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1388    --    processing (i.e. when Gigi sees the tree, the contents of this field
1389    --    is undefined and should not be read).
1390
1391    --  No_Ctrl_Actions (Flag7-Sem)
1392    --    Present in N_Assignment_Statement to indicate that no finalize nor
1393    --    adjust should take place on this assignment even though the rhs is
1394    --    controlled. This is used in init procs and aggregate expansions where
1395    --    the generated assignments are more initialisations than real
1396    --    assignments.
1397
1398    --  No_Elaboration_Check (Flag14-Sem)
1399    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1400    --    that no elaboration check is needed on the call, because it appears in
1401    --    the context of a local Suppress pragma. This is used on calls within
1402    --    task bodies, where the actual elaboration checks are applied after
1403    --    analysis, when the local scope stack is not present.
1404
1405    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1406    --    Present in N_With_Clause nodes. Set if the with clause is on the
1407    --    package or subprogram spec where the main unit is the corresponding
1408    --    body, and no entities of the with'ed unit are referenced by the spec
1409    --    (an entity may still be referenced in the body, so this flag is used
1410    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1411    --    full details)
1412
1413    --  No_Initialization (Flag13-Sem)
1414    --    Present in N_Object_Declaration and N_Allocator to indicate that the
1415    --    object must not be initialized (by Initialize or call to an init
1416    --    proc). This is needed for controlled aggregates. When the Object
1417    --    declaration has an expression, this flag means that this expression
1418    --    should not be taken into account (needed for in place initialization
1419    --    with aggregates).
1420
1421    --  No_Truncation (Flag17-Sem)
1422    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1423    --    only if the RM_Size of the source is greater than the RM_Size of the
1424    --    target for scalar operands. Normally in such a case we truncate some
1425    --    higher order bits of the source, and then sign/zero extend the result
1426    --    to form the output value. But if this flag is set, then we do not do
1427    --    any truncation, so for example, if an 8 bit input is converted to 5
1428    --    bit result which is in fact stored in 8 bits, then the high order
1429    --    three bits of the target result will be copied from the source. This
1430    --    is used for properly setting out of range values for use by pragmas
1431    --    Initialize_Scalars and Normalize_Scalars.
1432
1433    --  Original_Discriminant (Node2-Sem)
1434    --    Present in identifiers. Used in references to discriminants that
1435    --    appear in generic units. Because the names of the discriminants may be
1436    --    different in an instance, we use this field to recover the position of
1437    --    the discriminant in the original type, and replace it with the
1438    --    discriminant at the same position in the instantiated type.
1439
1440    --  Original_Entity (Node2-Sem)
1441    --    Present in numeric literals. Used to denote the named number that has
1442    --    been constant-folded into the given literal. If literal is from
1443    --    source, or the result of some other constant-folding operation, then
1444    --    Original_Entity is empty. This field is needed to handle properly
1445    --    named numbers in generic units, where the Associated_Node field
1446    --    interferes with the Entity field, making it impossible to preserve the
1447    --    original entity at the point of instantiation (ASIS problem).
1448
1449    --  Others_Discrete_Choices (List1-Sem)
1450    --    When a case statement or variant is analyzed, the semantic checks
1451    --    determine the actual list of choices that correspond to an others
1452    --    choice. This list is materialized for later use by the expander and
1453    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1454    --    this materialized list of choices, which is in standard format for a
1455    --    list of discrete choices, except that of course it cannot contain an
1456    --    N_Others_Choice entry.
1457
1458    --  Parameter_List_Truncated (Flag17-Sem)
1459    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1460    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1461    --    a result of a First_Optional_Parameter specification in an
1462    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1463    --    The truncation is done by the expander by removing trailing parameters
1464    --    from the argument list, in accordance with the set of rules allowing
1465    --    such parameter removal. In particular, parameters can be removed
1466    --    working from the end of the parameter list backwards up to and
1467    --    including the entry designated by First_Optional_Parameter in the
1468    --    Import pragma. Parameters can be removed if they are implicit and the
1469    --    default value is a known-at-compile-time value, including the use of
1470    --    the Null_Parameter attribute, or if explicit parameter values are
1471    --    present that match the corresponding defaults.
1472
1473    --  Parent_Spec (Node4-Sem)
1474    --    For a library unit that is a child unit spec (package or subprogram
1475    --    declaration, generic declaration or instantiation, or library level
1476    --    rename, this field points to the compilation unit node for the parent
1477    --    package specification. This field is Empty for library bodies (the
1478    --    parent spec in this case can be found from the corresponding spec).
1479
1480    --  PPC_Enabled (Flag5-Sem)
1481    --    Present in N_Pragma nodes. This flag is relevant only for precondition
1482    --    and postcondition nodes. It is true if the check corresponding to the
1483    --    pragma type is enabled at the point where the pragma appears.
1484
1485    --  Present_Expr (Uint3-Sem)
1486    --    Present in an N_Variant node. This has a meaningful value only after
1487    --    Gigi has back annotated the tree with representation information. At
1488    --    this point, it contains a reference to a gcc expression that depends
1489    --    on the values of one or more discriminants. Give a set of discriminant
1490    --    values, this expression evaluates to False (zero) if variant is not
1491    --    present, and True (non-zero) if it is present. See unit Repinfo for
1492    --    further details on gigi back annotation. This field is used during
1493    --    ASIS processing (data decomposition annex) to determine if a field is
1494    --    present or not.
1495
1496    --  Print_In_Hex (Flag13-Sem)
1497    --    Set on an N_Integer_Literal node to indicate that the value should be
1498    --    printed in hexadecimal in the sprint listing. Has no effect on
1499    --    legality or semantics of program, only on the displayed output. This
1500    --    is used to clarify output from the packed array cases.
1501
1502    --  Procedure_To_Call (Node2-Sem)
1503    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1504    --    and N_Extended_Return_Statement nodes. References the entity for the
1505    --    declaration of the procedure to be called to accomplish the required
1506    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1507    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1508    --    allocating the return value), and for the Deallocate procedure in the
1509    --    case of N_Free_Statement.
1510
1511    --  Raises_Constraint_Error (Flag7-Sem)
1512    --    Set on an expression whose evaluation will definitely fail constraint
1513    --    error check. In the case of static expressions, this flag must be set
1514    --    accurately (and if it is set, the expression is typically illegal
1515    --    unless it appears as a non-elaborated branch of a short-circuit form).
1516    --    For a non-static expression, this flag may be set whenever an
1517    --    expression (e.g. an aggregate) is known to raise constraint error. If
1518    --    set, the expression definitely will raise CE if elaborated at runtime.
1519    --    If not set, the expression may or may not raise CE. In other words, on
1520    --    static expressions, the flag is set accurately, on non-static
1521    --    expressions it is set conservatively.
1522
1523    --  Redundant_Use (Flag13-Sem)
1524    --    Present in nodes that can appear as an operand in a use clause or use
1525    --    type clause (identifiers, expanded names, attribute references). Set
1526    --    to indicate that a use is redundant (and therefore need not be undone
1527    --    on scope exit).
1528
1529    --  Renaming_Exception (Node2-Sem)
1530    --    Present in N_Exception_Declaration node. Used to point back to the
1531    --    exception renaming for an exception declared within a subprogram.
1532    --    What happens is that an exception declared in a subprogram is moved
1533    --    to the library level with a unique name, and the original exception
1534    --    becomes a renaming. This link from the library level exception to the
1535    --    renaming declaration allows registering of the proper exception name.
1536
1537    --  Return_Statement_Entity (Node5-Sem)
1538    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1539    --    Points to an E_Return_Statement representing the return statement.
1540
1541    --  Return_Object_Declarations (List3)
1542    --    Present in N_Extended_Return_Statement.
1543    --    Points to a list initially containing a single
1544    --    N_Object_Declaration representing the return object.
1545    --    We use a list (instead of just a pointer to the object decl)
1546    --    because Analyze wants to insert extra actions on this list.
1547
1548    --  Rounded_Result (Flag18-Sem)
1549    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1550    --    Used in the fixed-point cases to indicate that the result must be
1551    --    rounded as a result of the use of the 'Round attribute. Also used for
1552    --    integer N_Op_Divide nodes to indicate that the result should be
1553    --    rounded to the nearest integer (breaking ties away from zero), rather
1554    --    than truncated towards zero as usual. These rounded integer operations
1555    --    are the result of expansion of rounded fixed-point divide, conversion
1556    --    and multiplication operations.
1557
1558    --  Scope (Node3-Sem)
1559    --    Present in defining identifiers, defining character literals and
1560    --    defining operator symbols (i.e. in all entities). The entities of a
1561    --    scope all use this field to reference the corresponding scope entity.
1562    --    See Einfo for further details.
1563
1564    --  Shift_Count_OK (Flag4-Sem)
1565    --    A flag present in shift nodes to indicate that the shift count is
1566    --    known to be in range, i.e. is in the range from zero to word length
1567    --    minus one. If this flag is not set, then the shift count may be
1568    --    outside this range, i.e. larger than the word length, and the code
1569    --    must ensure that such shift counts give the appropriate result.
1570
1571    --  Source_Type (Node1-Sem)
1572    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1573    --    source type entity for the unchecked conversion instantiation
1574    --    which gigi must do size validation for.
1575
1576    --  Static_Processing_OK (Flag4-Sem)
1577    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1578    --    flag is set, the full value of the aggregate can be determined at
1579    --    compile time and the aggregate can be passed as is to the back-end.
1580    --    In this event it is irrelevant whether this flag is set or not.
1581    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1582    --    Static_Processing_OK is set, the aggregate can (but need not) be
1583    --    converted into a compile time known aggregate by the expander. See
1584    --    Sem_Aggr for the specific conditions under which an aggregate has its
1585    --    Static_Processing_OK flag set.
1586
1587    --  Storage_Pool (Node1-Sem)
1588    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1589    --    and N_Extended_Return_Statement nodes. References the entity for the
1590    --    storage pool to be used for the allocate or free call or for the
1591    --    allocation of the returned value from function. Empty indicates that
1592    --    the global default pool is to be used. Note that in the case
1593    --    of a return statement, this field is set only if the function returns
1594    --    value of a type whose size is not known at compile time on the
1595    --    secondary stack.
1596
1597    --  Suppress_Loop_Warnings (Flag17-Sem)
1598    --    Used in N_Loop_Statement node to indicate that warnings within the
1599    --    body of the loop should be suppressed. This is set when the range
1600    --    of a FOR loop is known to be null, or is probably null (loop would
1601    --    only execute if invalid values are present).
1602
1603    --  Target_Type (Node2-Sem)
1604    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1605    --    type entity for the unchecked conversion instantiation which gigi must
1606    --    do size validation for.
1607
1608    --  Then_Actions (List3-Sem)
1609    --    This field is present in conditional expression nodes. During code
1610    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1611    --    actions at an appropriate place in the tree to get elaborated at the
1612    --    right time. For conditional expressions, we have to be sure that the
1613    --    actions for the Then branch are only elaborated if the condition is
1614    --    True. The Then_Actions field is used as a temporary parking place for
1615    --    these actions. The final tree is always rewritten to eliminate the
1616    --    need for this field, so in the tree passed to Gigi, this field is
1617    --    always set to No_List.
1618
1619    --  Treat_Fixed_As_Integer (Flag14-Sem)
1620    --    This flag appears in operator nodes for divide, multiply, mod and rem
1621    --    on fixed-point operands. It indicates that the operands are to be
1622    --    treated as integer values, ignoring small values. This flag is only
1623    --    set as a result of expansion of fixed-point operations. Typically a
1624    --    fixed-point multiplication in the source generates subsidiary
1625    --    multiplication and division operations that work with the underlying
1626    --    integer values and have this flag set. Note that this flag is not
1627    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1628    --    in these cases it is always the case that fixed is treated as integer.
1629    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1630    --    leave such nodes alone, and whoever makes them must set the correct
1631    --    Etype value.
1632
1633    --  TSS_Elist (Elist3-Sem)
1634    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1635    --    entries for each TSS (type support subprogram) associated with the
1636    --    frozen type. The elements of the list are the entities for the
1637    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1638    --    if there are no type support subprograms for the type or if the freeze
1639    --    node is not for a type.
1640
1641    --  Unreferenced_In_Spec (Flag7-Sem)
1642    --    Present in N_With_Clause nodes. Set if the with clause is on the
1643    --    package or subprogram spec where the main unit is the corresponding
1644    --    body, and is not referenced by the spec (it may still be referenced by
1645    --    the body, so this flag is used to generate the proper message (see
1646    --    Sem_Util.Check_Unused_Withs for details)
1647
1648    --  Was_Originally_Stub (Flag13-Sem)
1649    --    This flag is set in the node for a proper body that replaces stub.
1650    --    During the analysis procedure, stubs in some situations get rewritten
1651    --    by the corresponding bodies, and we set this flag to remember that
1652    --    this happened. Note that it is not good enough to rely on the use of
1653    --    Original_Node here because of the case of nested instantiations where
1654    --    the substituted node can be copied.
1655
1656    --  Zero_Cost_Handling (Flag5-Sem)
1657    --    This flag is set in all handled sequence of statement and exception
1658    --    handler nodes if exceptions are to be handled using the zero-cost
1659    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1660    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1661    --    to do for such a handler is simply to put the code in the handler
1662    --    somewhere. The front end has generated all necessary labels.
1663
1664    --------------------------------------------------
1665    -- Note on Use of End_Label and End_Span Fields --
1666    --------------------------------------------------
1667
1668    --  Several constructs have end lines:
1669
1670    --    Loop Statement             end loop [loop_IDENTIFIER];
1671    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1672    --    Task Definition            end [task_IDENTIFIER]
1673    --    Protected Definition       end [protected_IDENTIFIER]
1674    --    Protected Body             end [protected_IDENTIFIER]
1675
1676    --    Block Statement            end [block_IDENTIFIER];
1677    --    Subprogram Body            end [DESIGNATOR];
1678    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1679    --    Task Body                  end [task_IDENTIFIER];
1680    --    Accept Statement           end [entry_IDENTIFIER]];
1681    --    Entry Body                 end [entry_IDENTIFIER];
1682
1683    --    If Statement               end if;
1684    --    Case Statement             end case;
1685
1686    --    Record Definition          end record;
1687    --    Enumeration Definition     );
1688
1689    --  The End_Label and End_Span fields are used to mark the locations of
1690    --  these lines, and also keep track of the label in the case where a label
1691    --  is present.
1692
1693    --  For the first group above, the End_Label field of the corresponding node
1694    --  is used to point to the label identifier. In the case where there is no
1695    --  label in the source, the parser supplies a dummy identifier (with
1696    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1697    --  marks the location of the token following the END token.
1698
1699    --  For the second group, the use of End_Label is similar, but the End_Label
1700    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1701    --  simply because in some cases there is no room in the parent node.
1702
1703    --  For the third group, there is never any label, and instead of using
1704    --  End_Label, we use the End_Span field which gives the location of the
1705    --  token following END, relative to the starting Sloc of the construct,
1706    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1707    --  following the End_Label.
1708
1709    --  The record definition case is handled specially, we treat it as though
1710    --  it required an optional label which is never present, and so the parser
1711    --  always builds a dummy identifier with Comes From Source set False. The
1712    --  reason we do this, rather than using End_Span in this case, is that we
1713    --  want to generate a cross-ref entry for the end of a record, since it
1714    --  represents a scope for name declaration purposes.
1715
1716    --  The enumeration definition case is handled in an exactly similar manner,
1717    --  building a dummy identifier to get a cross-reference.
1718
1719    --  Note: the reason we store the difference as a Uint, instead of storing
1720    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1721    --  distinguished from other types of values, and we count on all general
1722    --  use fields being self describing. To make things easier for clients,
1723    --  note that we provide function End_Location, and procedure
1724    --  Set_End_Location to allow access to the logical value (which is the
1725    --  Source_Ptr value for the end token).
1726
1727    ---------------------
1728    -- Syntactic Nodes --
1729    ---------------------
1730
1731       ---------------------
1732       -- 2.3  Identifier --
1733       ---------------------
1734
1735       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1736       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1737
1738       --  An IDENTIFIER shall not be a reserved word
1739
1740       --  In the Ada grammar identifiers are the bottom level tokens which have
1741       --  very few semantics. Actual program identifiers are direct names. If
1742       --  we were being 100% honest with the grammar, then we would have a node
1743       --  called N_Direct_Name which would point to an identifier. However,
1744       --  that's too many extra nodes, so we just use the N_Identifier node
1745       --  directly as a direct name, and it contains the expression fields and
1746       --  Entity field that correspond to its use as a direct name. In those
1747       --  few cases where identifiers appear in contexts where they are not
1748       --  direct names (pragmas, pragma argument associations, attribute
1749       --  references and attribute definition clauses), the Chars field of the
1750       --  node contains the Name_Id for the identifier name.
1751
1752       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1753       --  cases. First, an incorrect use of a reserved word as an identifier is
1754       --  diagnosed and then treated as a normal identifier. Second, an
1755       --  attribute designator of the form of a reserved word (access, delta,
1756       --  digits, range) is treated as an identifier.
1757
1758       --  Note: The set of letters that is permitted in an identifier depends
1759       --  on the character set in use. See package Csets for full details.
1760
1761       --  N_Identifier
1762       --  Sloc points to identifier
1763       --  Chars (Name1) contains the Name_Id for the identifier
1764       --  Entity (Node4-Sem)
1765       --  Associated_Node (Node4-Sem)
1766       --  Original_Discriminant (Node2-Sem)
1767       --  Redundant_Use (Flag13-Sem)
1768       --  Has_Private_View (Flag11-Sem) (set in generic units)
1769       --  plus fields for expression
1770
1771       --------------------------
1772       -- 2.4  Numeric Literal --
1773       --------------------------
1774
1775       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1776
1777       ----------------------------
1778       -- 2.4.1  Decimal Literal --
1779       ----------------------------
1780
1781       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1782
1783       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1784
1785       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1786
1787       --  Decimal literals appear in the tree as either integer literal nodes
1788       --  or real literal nodes, depending on whether a period is present.
1789
1790       --  Note: literal nodes appear as a result of direct use of literals
1791       --  in the source program, and also as the result of evaluating
1792       --  expressions at compile time. In the latter case, it is possible
1793       --  to construct real literals that have no syntactic representation
1794       --  using the standard literal format. Such literals are listed by
1795       --  Sprint using the notation [numerator / denominator].
1796
1797       --  Note: the value of an integer literal node created by the front end
1798       --  is never outside the range of values of the base type. However, it
1799       --  can be the case that the value is outside the range of the
1800       --  particular subtype. This happens in the case of integer overflows
1801       --  with checks suppressed.
1802
1803       --  N_Integer_Literal
1804       --  Sloc points to literal
1805       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1806       --  has been constant-folded into its literal value.
1807       --  Intval (Uint3) contains integer value of literal
1808       --  plus fields for expression
1809       --  Print_In_Hex (Flag13-Sem)
1810
1811       --  N_Real_Literal
1812       --  Sloc points to literal
1813       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1814       --  has been constant-folded into its literal value.
1815       --  Realval (Ureal3) contains real value of literal
1816       --  Corresponding_Integer_Value (Uint4-Sem)
1817       --  Is_Machine_Number (Flag11-Sem)
1818       --  plus fields for expression
1819
1820       --------------------------
1821       -- 2.4.2  Based Literal --
1822       --------------------------
1823
1824       --  BASED_LITERAL ::=
1825       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1826
1827       --  BASE ::= NUMERAL
1828
1829       --  BASED_NUMERAL ::=
1830       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1831
1832       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1833
1834       --  Based literals appear in the tree as either integer literal nodes
1835       --  or real literal nodes, depending on whether a period is present.
1836
1837       ----------------------------
1838       -- 2.5  Character Literal --
1839       ----------------------------
1840
1841       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1842
1843       --  N_Character_Literal
1844       --  Sloc points to literal
1845       --  Chars (Name1) contains the Name_Id for the identifier
1846       --  Char_Literal_Value (Uint2) contains the literal value
1847       --  Entity (Node4-Sem)
1848       --  Associated_Node (Node4-Sem)
1849       --  Has_Private_View (Flag11-Sem) set in generic units.
1850       --  plus fields for expression
1851
1852       --  Note: the Entity field will be missing (set to Empty) for character
1853       --  literals whose type is Standard.Wide_Character or Standard.Character
1854       --  or a type derived from one of these two. In this case the character
1855       --  literal stands for its own coding. The reason we take this irregular
1856       --  short cut is to avoid the need to build lots of junk defining
1857       --  character literal nodes.
1858
1859       -------------------------
1860       -- 2.6  String Literal --
1861       -------------------------
1862
1863       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1864
1865       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1866       --  single GRAPHIC_CHARACTER other than a quotation mark.
1867       --
1868       --  Is_Folded_In_Parser is True if the parser created this literal by
1869       --  folding a sequence of "&" operators. For example, if the source code
1870       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1871       --  is set. This flag is needed because the parser doesn't know about
1872       --  visibility, so the folded result might be wrong, and semantic
1873       --  analysis needs to check for that.
1874
1875       --  N_String_Literal
1876       --  Sloc points to literal
1877       --  Strval (Str3) contains Id of string value
1878       --  Has_Wide_Character (Flag11-Sem)
1879       --  Is_Folded_In_Parser (Flag4)
1880       --  plus fields for expression
1881
1882       ------------------
1883       -- 2.7  Comment --
1884       ------------------
1885
1886       --  A COMMENT starts with two adjacent hyphens and extends up to the
1887       --  end of the line. A COMMENT may appear on any line of a program.
1888
1889       --  Comments are skipped by the scanner and do not appear in the tree.
1890       --  It is possible to reconstruct the position of comments with respect
1891       --  to the elements of the tree by using the source position (Sloc)
1892       --  pointers that appear in every tree node.
1893
1894       -----------------
1895       -- 2.8  Pragma --
1896       -----------------
1897
1898       --  PRAGMA ::= pragma IDENTIFIER
1899       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1900
1901       --  Note that a pragma may appear in the tree anywhere a declaration
1902       --  or a statement may appear, as well as in some other situations
1903       --  which are explicitly documented.
1904
1905       --  N_Pragma
1906       --  Sloc points to pragma identifier
1907       --  Next_Pragma (Node1-Sem)
1908       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1909       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1910       --  Pragma_Identifier (Node4)
1911       --  Next_Rep_Item (Node5-Sem)
1912       --  PPC_Enabled (Flag5-Sem)
1913
1914       --  Note: we should have a section on what pragmas are passed on to
1915       --  the back end to be processed. This section should note that pragma
1916       --  Psect_Object is always converted to Common_Object, but there are
1917       --  undoubtedly many other similar notes required ???
1918
1919       --  Note: a utility function Pragma_Name may be applied to pragma nodes
1920       --  to conveniently obtain the Chars field of the Pragma_Identifier.
1921
1922       --------------------------------------
1923       -- 2.8  Pragma Argument Association --
1924       --------------------------------------
1925
1926       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
1927       --    [pragma_argument_IDENTIFIER =>] NAME
1928       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
1929
1930       --  N_Pragma_Argument_Association
1931       --  Sloc points to first token in association
1932       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
1933       --  Expression (Node3)
1934
1935       ------------------------
1936       -- 2.9  Reserved Word --
1937       ------------------------
1938
1939       --  Reserved words are parsed by the scanner, and returned as the
1940       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1941
1942       ----------------------------
1943       -- 3.1  Basic Declaration --
1944       ----------------------------
1945
1946       --  BASIC_DECLARATION ::=
1947       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
1948       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
1949       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
1950       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
1951       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
1952       --  | GENERIC_INSTANTIATION
1953
1954       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1955       --  see further description in section on semantic nodes.
1956
1957       --  Also, in the tree that is constructed, a pragma may appear
1958       --  anywhere that a declaration may appear.
1959
1960       ------------------------------
1961       -- 3.1  Defining Identifier --
1962       ------------------------------
1963
1964       --  DEFINING_IDENTIFIER ::= IDENTIFIER
1965
1966       --  A defining identifier is an entity, which has additional fields
1967       --  depending on the setting of the Ekind field. These additional
1968       --  fields are defined (and access subprograms declared) in package
1969       --  Einfo.
1970
1971       --  Note: N_Defining_Identifier is an extended node whose fields are
1972       --  deliberate layed out to match the layout of fields in an ordinary
1973       --  N_Identifier node allowing for easy alteration of an identifier
1974       --  node into a defining identifier node. For details, see procedure
1975       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1976
1977       --  N_Defining_Identifier
1978       --  Sloc points to identifier
1979       --  Chars (Name1) contains the Name_Id for the identifier
1980       --  Next_Entity (Node2-Sem)
1981       --  Scope (Node3-Sem)
1982       --  Etype (Node5-Sem)
1983
1984       -----------------------------
1985       -- 3.2.1  Type Declaration --
1986       -----------------------------
1987
1988       --  TYPE_DECLARATION ::=
1989       --    FULL_TYPE_DECLARATION
1990       --  | INCOMPLETE_TYPE_DECLARATION
1991       --  | PRIVATE_TYPE_DECLARATION
1992       --  | PRIVATE_EXTENSION_DECLARATION
1993
1994       ----------------------------------
1995       -- 3.2.1  Full Type Declaration --
1996       ----------------------------------
1997
1998       --  FULL_TYPE_DECLARATION ::=
1999       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2000       --      is TYPE_DEFINITION;
2001       --  | TASK_TYPE_DECLARATION
2002       --  | PROTECTED_TYPE_DECLARATION
2003
2004       --  The full type declaration node is used only for the first case. The
2005       --  second case (concurrent type declaration), is represented directly
2006       --  by a task type declaration or a protected type declaration.
2007
2008       --  N_Full_Type_Declaration
2009       --  Sloc points to TYPE
2010       --  Defining_Identifier (Node1)
2011       --  Discriminant_Specifications (List4) (set to No_List if none)
2012       --  Type_Definition (Node3)
2013       --  Discr_Check_Funcs_Built (Flag11-Sem)
2014
2015       ----------------------------
2016       -- 3.2.1  Type Definition --
2017       ----------------------------
2018
2019       --  TYPE_DEFINITION ::=
2020       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2021       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2022       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2023       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2024
2025       --------------------------------
2026       -- 3.2.2  Subtype Declaration --
2027       --------------------------------
2028
2029       --  SUBTYPE_DECLARATION ::=
2030       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2031
2032       --  The subtype indication field is set to Empty for subtypes
2033       --  declared in package Standard (Positive, Natural).
2034
2035       --  N_Subtype_Declaration
2036       --  Sloc points to SUBTYPE
2037       --  Defining_Identifier (Node1)
2038       --  Null_Exclusion_Present (Flag11)
2039       --  Subtype_Indication (Node5)
2040       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2041       --  Exception_Junk (Flag8-Sem)
2042
2043       -------------------------------
2044       -- 3.2.2  Subtype Indication --
2045       -------------------------------
2046
2047       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2048
2049       --  Note: if no constraint is present, the subtype indication appears
2050       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2051       --  node is used only if a constraint is present.
2052
2053       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2054       --  with the null-exclusion part (see AI-231), we had to introduce a new
2055       --  attribute in all the parents of subtype_indication nodes to indicate
2056       --  if the null-exclusion is present.
2057
2058       --  Note: the reason that this node has expression fields is that a
2059       --  subtype indication can appear as an operand of a membership test.
2060
2061       --  N_Subtype_Indication
2062       --  Sloc points to first token of subtype mark
2063       --  Subtype_Mark (Node4)
2064       --  Constraint (Node3)
2065       --  Etype (Node5-Sem)
2066       --  Must_Not_Freeze (Flag8-Sem)
2067
2068       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2069       --  reason for this redundancy is so that in a list of array index types,
2070       --  the Etype can be uniformly accessed to determine the subscript type.
2071       --  This means that no Itype is constructed for the actual subtype that
2072       --  is created by the subtype indication. If such an Itype is required,
2073       --  it is constructed in the context in which the indication appears.
2074
2075       -------------------------
2076       -- 3.2.2  Subtype Mark --
2077       -------------------------
2078
2079       --  SUBTYPE_MARK ::= subtype_NAME
2080
2081       -----------------------
2082       -- 3.2.2  Constraint --
2083       -----------------------
2084
2085       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2086
2087       ------------------------------
2088       -- 3.2.2  Scalar Constraint --
2089       ------------------------------
2090
2091       --  SCALAR_CONSTRAINT ::=
2092       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2093
2094       ---------------------------------
2095       -- 3.2.2  Composite Constraint --
2096       ---------------------------------
2097
2098       --  COMPOSITE_CONSTRAINT ::=
2099       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2100
2101       -------------------------------
2102       -- 3.3.1  Object Declaration --
2103       -------------------------------
2104
2105       --  OBJECT_DECLARATION ::=
2106       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2107       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2108       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2109       --      ACCESS_DEFINITION [:= EXPRESSION];
2110       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2111       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2112       --  | SINGLE_TASK_DECLARATION
2113       --  | SINGLE_PROTECTED_DECLARATION
2114
2115       --  Note: aliased is not permitted in Ada 83 mode
2116
2117       --  The N_Object_Declaration node is only for the first two cases.
2118       --  Single task declaration is handled by P_Task (9.1)
2119       --  Single protected declaration is handled by P_protected (9.5)
2120
2121       --  Although the syntax allows multiple identifiers in the list, the
2122       --  semantics is as though successive declarations were given with
2123       --  identical type definition and expression components. To simplify
2124       --  semantic processing, the parser represents a multiple declaration
2125       --  case as a sequence of single declarations, using the More_Ids and
2126       --  Prev_Ids flags to preserve the original source form as described
2127       --  in the section on "Handling of Defining Identifier Lists".
2128
2129       --  The flag Has_Init_Expression is set if an initializing expression
2130       --  is present. Normally it is set if and only if Expression contains
2131       --  a non-empty value, but there is an exception to this. When the
2132       --  initializing expression is an aggregate which requires explicit
2133       --  assignments, the Expression field gets set to Empty, but this flag
2134       --  is still set, so we don't forget we had an initializing expression.
2135
2136       --  Note: if a range check is required for the initialization
2137       --  expression then the Do_Range_Check flag is set in the Expression,
2138       --  with the check being done against the type given by the object
2139       --  definition, which is also the Etype of the defining identifier.
2140
2141       --  Note: the contents of the Expression field must be ignored (i.e.
2142       --  treated as though it were Empty) if No_Initialization is set True.
2143
2144       --  Note: the back end places some restrictions on the form of the
2145       --  Expression field. If the object being declared is Atomic, then
2146       --  the Expression may not have the form of an aggregate (since this
2147       --  might cause the back end to generate separate assignments). It
2148       --  also cannot be a reference to an object marked as a true constant
2149       --  (Is_True_Constant flag set), where the object is itself initialized
2150       --  with an aggregate. If necessary the front end must generate an
2151       --  extra temporary (with Is_True_Constant set False), and initialize
2152       --  this temporary as required (the temporary itself is not atomic).
2153
2154       --  Note: there is not node kind for object definition. Instead, the
2155       --  corresponding field holds a subtype indication, an array type
2156       --  definition, or (Ada 2005, AI-406) an access definition.
2157
2158       --  N_Object_Declaration
2159       --  Sloc points to first identifier
2160       --  Defining_Identifier (Node1)
2161       --  Aliased_Present (Flag4) set if ALIASED appears
2162       --  Constant_Present (Flag17) set if CONSTANT appears
2163       --  Null_Exclusion_Present (Flag11)
2164       --  Object_Definition (Node4) subtype indic./array type def./ access def.
2165       --  Expression (Node3) (set to Empty if not present)
2166       --  Handler_List_Entry (Node2-Sem)
2167       --  Corresponding_Generic_Association (Node5-Sem)
2168       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2169       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2170       --  No_Initialization (Flag13-Sem)
2171       --  Assignment_OK (Flag15-Sem)
2172       --  Exception_Junk (Flag8-Sem)
2173       --  Is_Subprogram_Descriptor (Flag16-Sem)
2174       --  Has_Init_Expression (Flag14)
2175
2176       -------------------------------------
2177       -- 3.3.1  Defining Identifier List --
2178       -------------------------------------
2179
2180       --  DEFINING_IDENTIFIER_LIST ::=
2181       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2182
2183       -------------------------------
2184       -- 3.3.2  Number Declaration --
2185       -------------------------------
2186
2187       --  NUMBER_DECLARATION ::=
2188       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2189
2190       --  Although the syntax allows multiple identifiers in the list, the
2191       --  semantics is as though successive declarations were given with
2192       --  identical expressions. To simplify semantic processing, the parser
2193       --  represents a multiple declaration case as a sequence of single
2194       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2195       --  the original source form as described in the section on "Handling
2196       --  of Defining Identifier Lists".
2197
2198       --  N_Number_Declaration
2199       --  Sloc points to first identifier
2200       --  Defining_Identifier (Node1)
2201       --  Expression (Node3)
2202       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2203       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2204
2205       ----------------------------------
2206       -- 3.4  Derived Type Definition --
2207       ----------------------------------
2208
2209       --  DERIVED_TYPE_DEFINITION ::=
2210       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2211       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2212
2213       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2214       --  in Ada 83 mode
2215
2216       --  Note: a record extension part is required if ABSTRACT is present
2217
2218       --  N_Derived_Type_Definition
2219       --  Sloc points to NEW
2220       --  Abstract_Present (Flag4)
2221       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2222       --  Subtype_Indication (Node5)
2223       --  Record_Extension_Part (Node3) (set to Empty if not present)
2224       --  Limited_Present (Flag17)
2225       --  Task_Present (Flag5) set in task interfaces
2226       --  Protected_Present (Flag6) set in protected interfaces
2227       --  Synchronized_Present (Flag7) set in interfaces
2228       --  Interface_List (List2) (set to No_List if none)
2229       --  Interface_Present (Flag16) set in abstract interfaces
2230
2231       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2232       --        Interface_List, and Interface_Present are used for abstract
2233       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2234
2235       ---------------------------
2236       -- 3.5  Range Constraint --
2237       ---------------------------
2238
2239       --  RANGE_CONSTRAINT ::= range RANGE
2240
2241       --  N_Range_Constraint
2242       --  Sloc points to RANGE
2243       --  Range_Expression (Node4)
2244
2245       ----------------
2246       -- 3.5  Range --
2247       ----------------
2248
2249       --  RANGE ::=
2250       --    RANGE_ATTRIBUTE_REFERENCE
2251       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2252
2253       --  Note: the case of a range given as a range attribute reference
2254       --  appears directly in the tree as an attribute reference.
2255
2256       --  Note: the field name for a reference to a range is Range_Expression
2257       --  rather than Range, because range is a reserved keyword in Ada!
2258
2259       --  Note: the reason that this node has expression fields is that a
2260       --  range can appear as an operand of a membership test. The Etype
2261       --  field is the type of the range (we do NOT construct an implicit
2262       --  subtype to represent the range exactly).
2263
2264       --  N_Range
2265       --  Sloc points to ..
2266       --  Low_Bound (Node1)
2267       --  High_Bound (Node2)
2268       --  Includes_Infinities (Flag11)
2269       --  plus fields for expression
2270
2271       --  Note: if the range appears in a context, such as a subtype
2272       --  declaration, where range checks are required on one or both of
2273       --  the expression fields, then type conversion nodes are inserted
2274       --  to represent the required checks.
2275
2276       ----------------------------------------
2277       -- 3.5.1  Enumeration Type Definition --
2278       ----------------------------------------
2279
2280       --  ENUMERATION_TYPE_DEFINITION ::=
2281       --    (ENUMERATION_LITERAL_SPECIFICATION
2282       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2283
2284       --  Note: the Literals field in the node described below is null for
2285       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2286       --  which special processing handles these types as special cases.
2287
2288       --  N_Enumeration_Type_Definition
2289       --  Sloc points to left parenthesis
2290       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2291       --  End_Label (Node4) (set to Empty if internally generated record)
2292
2293       ----------------------------------------------
2294       -- 3.5.1  Enumeration Literal Specification --
2295       ----------------------------------------------
2296
2297       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2298       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2299
2300       ---------------------------------------
2301       -- 3.5.1  Defining Character Literal --
2302       ---------------------------------------
2303
2304       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2305
2306       --  A defining character literal is an entity, which has additional
2307       --  fields depending on the setting of the Ekind field. These
2308       --  additional fields are defined (and access subprograms declared)
2309       --  in package Einfo.
2310
2311       --  Note: N_Defining_Character_Literal is an extended node whose fields
2312       --  are deliberate layed out to match the layout of fields in an ordinary
2313       --  N_Character_Literal node allowing for easy alteration of a character
2314       --  literal node into a defining character literal node. For details, see
2315       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2316
2317       --  N_Defining_Character_Literal
2318       --  Sloc points to literal
2319       --  Chars (Name1) contains the Name_Id for the identifier
2320       --  Next_Entity (Node2-Sem)
2321       --  Scope (Node3-Sem)
2322       --  Etype (Node5-Sem)
2323
2324       ------------------------------------
2325       -- 3.5.4  Integer Type Definition --
2326       ------------------------------------
2327
2328       --  Note: there is an error in this rule in the latest version of the
2329       --  grammar, so we have retained the old rule pending clarification.
2330
2331       --  INTEGER_TYPE_DEFINITION ::=
2332       --    SIGNED_INTEGER_TYPE_DEFINITION
2333       --  | MODULAR_TYPE_DEFINITION
2334
2335       -------------------------------------------
2336       -- 3.5.4  Signed Integer Type Definition --
2337       -------------------------------------------
2338
2339       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2340       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2341
2342       --  Note: the Low_Bound and High_Bound fields are set to Empty
2343       --  for integer types defined in package Standard.
2344
2345       --  N_Signed_Integer_Type_Definition
2346       --  Sloc points to RANGE
2347       --  Low_Bound (Node1)
2348       --  High_Bound (Node2)
2349
2350       ------------------------------------
2351       -- 3.5.4  Modular Type Definition --
2352       ------------------------------------
2353
2354       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2355
2356       --  N_Modular_Type_Definition
2357       --  Sloc points to MOD
2358       --  Expression (Node3)
2359
2360       ---------------------------------
2361       -- 3.5.6  Real Type Definition --
2362       ---------------------------------
2363
2364       --  REAL_TYPE_DEFINITION ::=
2365       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2366
2367       --------------------------------------
2368       -- 3.5.7  Floating Point Definition --
2369       --------------------------------------
2370
2371       --  FLOATING_POINT_DEFINITION ::=
2372       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2373
2374       --  Note: The Digits_Expression and Real_Range_Specifications fields
2375       --  are set to Empty for floating-point types declared in Standard.
2376
2377       --  N_Floating_Point_Definition
2378       --  Sloc points to DIGITS
2379       --  Digits_Expression (Node2)
2380       --  Real_Range_Specification (Node4) (set to Empty if not present)
2381
2382       -------------------------------------
2383       -- 3.5.7  Real Range Specification --
2384       -------------------------------------
2385
2386       --  REAL_RANGE_SPECIFICATION ::=
2387       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2388
2389       --  N_Real_Range_Specification
2390       --  Sloc points to RANGE
2391       --  Low_Bound (Node1)
2392       --  High_Bound (Node2)
2393
2394       -----------------------------------
2395       -- 3.5.9  Fixed Point Definition --
2396       -----------------------------------
2397
2398       --  FIXED_POINT_DEFINITION ::=
2399       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2400
2401       --------------------------------------------
2402       -- 3.5.9  Ordinary Fixed Point Definition --
2403       --------------------------------------------
2404
2405       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2406       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2407
2408       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2409
2410       --  N_Ordinary_Fixed_Point_Definition
2411       --  Sloc points to DELTA
2412       --  Delta_Expression (Node3)
2413       --  Real_Range_Specification (Node4)
2414
2415       -------------------------------------------
2416       -- 3.5.9  Decimal Fixed Point Definition --
2417       -------------------------------------------
2418
2419       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2420       --    delta static_EXPRESSION
2421       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2422
2423       --  Note: decimal types are not permitted in Ada 83 mode
2424
2425       --  N_Decimal_Fixed_Point_Definition
2426       --  Sloc points to DELTA
2427       --  Delta_Expression (Node3)
2428       --  Digits_Expression (Node2)
2429       --  Real_Range_Specification (Node4) (set to Empty if not present)
2430
2431       ------------------------------
2432       -- 3.5.9  Digits Constraint --
2433       ------------------------------
2434
2435       --  DIGITS_CONSTRAINT ::=
2436       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2437
2438       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2439       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2440
2441       --  N_Digits_Constraint
2442       --  Sloc points to DIGITS
2443       --  Digits_Expression (Node2)
2444       --  Range_Constraint (Node4) (set to Empty if not present)
2445
2446       --------------------------------
2447       -- 3.6  Array Type Definition --
2448       --------------------------------
2449
2450       --  ARRAY_TYPE_DEFINITION ::=
2451       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2452
2453       -----------------------------------------
2454       -- 3.6  Unconstrained Array Definition --
2455       -----------------------------------------
2456
2457       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2458       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2459       --      COMPONENT_DEFINITION
2460
2461       --  Note: dimensionality of array is indicated by number of entries in
2462       --  the Subtype_Marks list, which has one entry for each dimension.
2463
2464       --  N_Unconstrained_Array_Definition
2465       --  Sloc points to ARRAY
2466       --  Subtype_Marks (List2)
2467       --  Component_Definition (Node4)
2468
2469       -----------------------------------
2470       -- 3.6  Index Subtype Definition --
2471       -----------------------------------
2472
2473       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2474
2475       --  There is no explicit node in the tree for an index subtype
2476       --  definition since the N_Unconstrained_Array_Definition node
2477       --  incorporates the type marks which appear in this context.
2478
2479       ---------------------------------------
2480       -- 3.6  Constrained Array Definition --
2481       ---------------------------------------
2482
2483       --  CONSTRAINED_ARRAY_DEFINITION ::=
2484       --    array (DISCRETE_SUBTYPE_DEFINITION
2485       --      {, DISCRETE_SUBTYPE_DEFINITION})
2486       --        of COMPONENT_DEFINITION
2487
2488       --  Note: dimensionality of array is indicated by number of entries
2489       --  in the Discrete_Subtype_Definitions list, which has one entry
2490       --  for each dimension.
2491
2492       --  N_Constrained_Array_Definition
2493       --  Sloc points to ARRAY
2494       --  Discrete_Subtype_Definitions (List2)
2495       --  Component_Definition (Node4)
2496
2497       --------------------------------------
2498       -- 3.6  Discrete Subtype Definition --
2499       --------------------------------------
2500
2501       --  DISCRETE_SUBTYPE_DEFINITION ::=
2502       --    discrete_SUBTYPE_INDICATION | RANGE
2503
2504       -------------------------------
2505       -- 3.6  Component Definition --
2506       -------------------------------
2507
2508       --  COMPONENT_DEFINITION ::=
2509       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2510
2511       --  Note: although the syntax does not permit a component definition to
2512       --  be an anonymous array (and the parser will diagnose such an attempt
2513       --  with an appropriate message), it is possible for anonymous arrays
2514       --  to appear as component definitions. The semantics and back end handle
2515       --  this case properly, and the expander in fact generates such cases.
2516       --  Access_Definition is an optional field that gives support to
2517       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2518       --  Subtype_Indication field or else the Access_Definition field.
2519
2520       --  N_Component_Definition
2521       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2522       --  Aliased_Present (Flag4)
2523       --  Null_Exclusion_Present (Flag11)
2524       --  Subtype_Indication (Node5) (set to Empty if not present)
2525       --  Access_Definition (Node3) (set to Empty if not present)
2526
2527       -----------------------------
2528       -- 3.6.1  Index Constraint --
2529       -----------------------------
2530
2531       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2532
2533       --  It is not in general possible to distinguish between discriminant
2534       --  constraints and index constraints at parse time, since a simple
2535       --  name could be either the subtype mark of a discrete range, or an
2536       --  expression in a discriminant association with no name. Either
2537       --  entry appears simply as the name, and the semantic parse must
2538       --  distinguish between the two cases. Thus we use a common tree
2539       --  node format for both of these constraint types.
2540
2541       --  See Discriminant_Constraint for format of node
2542
2543       ---------------------------
2544       -- 3.6.1  Discrete Range --
2545       ---------------------------
2546
2547       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2548
2549       ----------------------------
2550       -- 3.7  Discriminant Part --
2551       ----------------------------
2552
2553       --  DISCRIMINANT_PART ::=
2554       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2555
2556       ------------------------------------
2557       -- 3.7  Unknown Discriminant Part --
2558       ------------------------------------
2559
2560       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2561
2562       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2563
2564       --  There is no explicit node in the tree for an unknown discriminant
2565       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2566       --  parent node.
2567
2568       ----------------------------------
2569       -- 3.7  Known Discriminant Part --
2570       ----------------------------------
2571
2572       --  KNOWN_DISCRIMINANT_PART ::=
2573       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2574
2575       -------------------------------------
2576       -- 3.7  Discriminant Specification --
2577       -------------------------------------
2578
2579       --  DISCRIMINANT_SPECIFICATION ::=
2580       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2581       --      [:= DEFAULT_EXPRESSION]
2582       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2583       --      [:= DEFAULT_EXPRESSION]
2584
2585       --  Although the syntax allows multiple identifiers in the list, the
2586       --  semantics is as though successive specifications were given with
2587       --  identical type definition and expression components. To simplify
2588       --  semantic processing, the parser represents a multiple declaration
2589       --  case as a sequence of single specifications, using the More_Ids and
2590       --  Prev_Ids flags to preserve the original source form as described
2591       --  in the section on "Handling of Defining Identifier Lists".
2592
2593       --  N_Discriminant_Specification
2594       --  Sloc points to first identifier
2595       --  Defining_Identifier (Node1)
2596       --  Null_Exclusion_Present (Flag11)
2597       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2598       --  Expression (Node3) (set to Empty if no default expression)
2599       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2600       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2601
2602       -----------------------------
2603       -- 3.7  Default Expression --
2604       -----------------------------
2605
2606       --  DEFAULT_EXPRESSION ::= EXPRESSION
2607
2608       ------------------------------------
2609       -- 3.7.1  Discriminant Constraint --
2610       ------------------------------------
2611
2612       --  DISCRIMINANT_CONSTRAINT ::=
2613       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2614
2615       --  It is not in general possible to distinguish between discriminant
2616       --  constraints and index constraints at parse time, since a simple
2617       --  name could be either the subtype mark of a discrete range, or an
2618       --  expression in a discriminant association with no name. Either
2619       --  entry appears simply as the name, and the semantic parse must
2620       --  distinguish between the two cases. Thus we use a common tree
2621       --  node format for both of these constraint types.
2622
2623       --  N_Index_Or_Discriminant_Constraint
2624       --  Sloc points to left paren
2625       --  Constraints (List1) points to list of discrete ranges or
2626       --    discriminant associations
2627
2628       -------------------------------------
2629       -- 3.7.1  Discriminant Association --
2630       -------------------------------------
2631
2632       --  DISCRIMINANT_ASSOCIATION ::=
2633       --    [discriminant_SELECTOR_NAME
2634       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2635
2636       --  Note: a discriminant association that has no selector name list
2637       --  appears directly as an expression in the tree.
2638
2639       --  N_Discriminant_Association
2640       --  Sloc points to first token of discriminant association
2641       --  Selector_Names (List1) (always non-empty, since if no selector
2642       --   names are present, this node is not used, see comment above)
2643       --  Expression (Node3)
2644
2645       ---------------------------------
2646       -- 3.8  Record Type Definition --
2647       ---------------------------------
2648
2649       --  RECORD_TYPE_DEFINITION ::=
2650       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2651
2652       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2653
2654       --  There is no explicit node in the tree for a record type definition.
2655       --  Instead the flags for Tagged_Present and Limited_Present appear in
2656       --  the N_Record_Definition node for a record definition appearing in
2657       --  the context of a record type definition.
2658
2659       ----------------------------
2660       -- 3.8  Record Definition --
2661       ----------------------------
2662
2663       --  RECORD_DEFINITION ::=
2664       --    record
2665       --      COMPONENT_LIST
2666       --    end record
2667       --  | null record
2668
2669       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2670       --  flags appear only for a record definition appearing in a record
2671       --  type definition.
2672
2673       --  Note: the NULL RECORD case is not permitted in Ada 83
2674
2675       --  N_Record_Definition
2676       --  Sloc points to RECORD or NULL
2677       --  End_Label (Node4) (set to Empty if internally generated record)
2678       --  Abstract_Present (Flag4)
2679       --  Tagged_Present (Flag15)
2680       --  Limited_Present (Flag17)
2681       --  Component_List (Node1) empty in null record case
2682       --  Null_Present (Flag13) set in null record case
2683       --  Task_Present (Flag5) set in task interfaces
2684       --  Protected_Present (Flag6) set in protected interfaces
2685       --  Synchronized_Present (Flag7) set in interfaces
2686       --  Interface_Present (Flag16) set in abstract interfaces
2687       --  Interface_List (List2) (set to No_List if none)
2688
2689       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2690       --        Interface_List and Interface_Present are used for abstract
2691       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2692
2693       -------------------------
2694       -- 3.8  Component List --
2695       -------------------------
2696
2697       --  COMPONENT_LIST ::=
2698       --    COMPONENT_ITEM {COMPONENT_ITEM}
2699       --  | {COMPONENT_ITEM} VARIANT_PART
2700       --  | null;
2701
2702       --  N_Component_List
2703       --  Sloc points to first token of component list
2704       --  Component_Items (List3)
2705       --  Variant_Part (Node4) (set to Empty if no variant part)
2706       --  Null_Present (Flag13)
2707
2708       -------------------------
2709       -- 3.8  Component Item --
2710       -------------------------
2711
2712       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2713
2714       --  Note: A component item can also be a pragma, and in the tree
2715       --  that is obtained after semantic processing, a component item
2716       --  can be an N_Null node resulting from a non-recognized pragma.
2717
2718       --------------------------------
2719       -- 3.8  Component Declaration --
2720       --------------------------------
2721
2722       --  COMPONENT_DECLARATION ::=
2723       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2724       --      [:= DEFAULT_EXPRESSION]
2725
2726       --  Note: although the syntax does not permit a component definition to
2727       --  be an anonymous array (and the parser will diagnose such an attempt
2728       --  with an appropriate message), it is possible for anonymous arrays
2729       --  to appear as component definitions. The semantics and back end handle
2730       --  this case properly, and the expander in fact generates such cases.
2731
2732       --  Although the syntax allows multiple identifiers in the list, the
2733       --  semantics is as though successive declarations were given with the
2734       --  same component definition and expression components. To simplify
2735       --  semantic processing, the parser represents a multiple declaration
2736       --  case as a sequence of single declarations, using the More_Ids and
2737       --  Prev_Ids flags to preserve the original source form as described
2738       --  in the section on "Handling of Defining Identifier Lists".
2739
2740       --  N_Component_Declaration
2741       --  Sloc points to first identifier
2742       --  Defining_Identifier (Node1)
2743       --  Component_Definition (Node4)
2744       --  Expression (Node3) (set to Empty if no default expression)
2745       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2746       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2747
2748       -------------------------
2749       -- 3.8.1  Variant Part --
2750       -------------------------
2751
2752       --  VARIANT_PART ::=
2753       --    case discriminant_DIRECT_NAME is
2754       --      VARIANT
2755       --      {VARIANT}
2756       --    end case;
2757
2758       --  Note: the variants list can contain pragmas as well as variants.
2759       --  In a properly formed program there is at least one variant.
2760
2761       --  N_Variant_Part
2762       --  Sloc points to CASE
2763       --  Name (Node2)
2764       --  Variants (List1)
2765
2766       --------------------
2767       -- 3.8.1  Variant --
2768       --------------------
2769
2770       --  VARIANT ::=
2771       --    when DISCRETE_CHOICE_LIST =>
2772       --      COMPONENT_LIST
2773
2774       --  N_Variant
2775       --  Sloc points to WHEN
2776       --  Discrete_Choices (List4)
2777       --  Component_List (Node1)
2778       --  Enclosing_Variant (Node2-Sem)
2779       --  Present_Expr (Uint3-Sem)
2780       --  Dcheck_Function (Node5-Sem)
2781
2782       ---------------------------------
2783       -- 3.8.1  Discrete Choice List --
2784       ---------------------------------
2785
2786       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2787
2788       ----------------------------
2789       -- 3.8.1  Discrete Choice --
2790       ----------------------------
2791
2792       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2793
2794       --  Note: in Ada 83 mode, the expression must be a simple expression
2795
2796       --  The only choice that appears explicitly is the OTHERS choice, as
2797       --  defined here. Other cases of discrete choice (expression and
2798       --  discrete range) appear directly. This production is also used
2799       --  for the OTHERS possibility of an exception choice.
2800
2801       --  Note: in accordance with the syntax, the parser does not check that
2802       --  OTHERS appears at the end on its own in a choice list context. This
2803       --  is a semantic check.
2804
2805       --  N_Others_Choice
2806       --  Sloc points to OTHERS
2807       --  Others_Discrete_Choices (List1-Sem)
2808       --  All_Others (Flag11-Sem)
2809
2810       ----------------------------------
2811       -- 3.9.1  Record Extension Part --
2812       ----------------------------------
2813
2814       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2815
2816       --  Note: record extension parts are not permitted in Ada 83 mode
2817
2818       --------------------------------------
2819       -- 3.9.4  Interface Type Definition --
2820       --------------------------------------
2821
2822       --  INTERFACE_TYPE_DEFINITION ::=
2823       --    [limited | task | protected | synchronized]
2824       --    interface [interface_list]
2825
2826       --  Note: Interfaces are implemented with N_Record_Definition and
2827       --        N_Derived_Type_Definition nodes because most of the support
2828       --        for the analysis of abstract types has been reused to
2829       --        analyze abstract interfaces.
2830
2831       ----------------------------------
2832       -- 3.10  Access Type Definition --
2833       ----------------------------------
2834
2835       --  ACCESS_TYPE_DEFINITION ::=
2836       --    ACCESS_TO_OBJECT_DEFINITION
2837       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2838
2839       --------------------------
2840       -- 3.10  Null Exclusion --
2841       --------------------------
2842
2843       --  NULL_EXCLUSION ::= not null
2844
2845       ---------------------------------------
2846       -- 3.10  Access To Object Definition --
2847       ---------------------------------------
2848
2849       --  ACCESS_TO_OBJECT_DEFINITION ::=
2850       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2851       --    SUBTYPE_INDICATION
2852
2853       --  N_Access_To_Object_Definition
2854       --  Sloc points to ACCESS
2855       --  All_Present (Flag15)
2856       --  Null_Exclusion_Present (Flag11)
2857       --  Subtype_Indication (Node5)
2858       --  Constant_Present (Flag17)
2859
2860       -----------------------------------
2861       -- 3.10  General Access Modifier --
2862       -----------------------------------
2863
2864       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2865
2866       --  Note: general access modifiers are not permitted in Ada 83 mode
2867
2868       --  There is no explicit node in the tree for general access modifier.
2869       --  Instead the All_Present or Constant_Present flags are set in the
2870       --  parent node.
2871
2872       -------------------------------------------
2873       -- 3.10  Access To Subprogram Definition --
2874       -------------------------------------------
2875
2876       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2877       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2878       --  | [NULL_EXCLUSION] access [protected] function
2879       --    PARAMETER_AND_RESULT_PROFILE
2880
2881       --  Note: access to subprograms are not permitted in Ada 83 mode
2882
2883       --  N_Access_Function_Definition
2884       --  Sloc points to ACCESS
2885       --  Null_Exclusion_Present (Flag11)
2886       --  Null_Exclusion_In_Return_Present (Flag14)
2887       --  Protected_Present (Flag6)
2888       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2889       --  Result_Definition (Node4) result subtype (subtype mark or access def)
2890
2891       --  N_Access_Procedure_Definition
2892       --  Sloc points to ACCESS
2893       --  Null_Exclusion_Present (Flag11)
2894       --  Protected_Present (Flag6)
2895       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2896
2897       -----------------------------
2898       -- 3.10  Access Definition --
2899       -----------------------------
2900
2901       --  ACCESS_DEFINITION ::=
2902       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2903       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2904
2905       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
2906
2907       --  N_Access_Definition
2908       --  Sloc points to ACCESS
2909       --  Null_Exclusion_Present (Flag11)
2910       --  All_Present (Flag15)
2911       --  Constant_Present (Flag17)
2912       --  Subtype_Mark (Node4)
2913       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2914
2915       -----------------------------------------
2916       -- 3.10.1  Incomplete Type Declaration --
2917       -----------------------------------------
2918
2919       --  INCOMPLETE_TYPE_DECLARATION ::=
2920       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2921
2922       --  N_Incomplete_Type_Declaration
2923       --  Sloc points to TYPE
2924       --  Defining_Identifier (Node1)
2925       --  Discriminant_Specifications (List4) (set to No_List if no
2926       --   discriminant part, or if the discriminant part is an
2927       --   unknown discriminant part)
2928       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2929       --  Tagged_Present (Flag15)
2930
2931       ----------------------------
2932       -- 3.11  Declarative Part --
2933       ----------------------------
2934
2935       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2936
2937       --  Note: although the parser enforces the syntactic requirement that
2938       --  a declarative part can contain only declarations, the semantic
2939       --  processing may add statements to the list of actions in a
2940       --  declarative part, so the code generator should be prepared
2941       --  to accept a statement in this position.
2942
2943       ----------------------------
2944       -- 3.11  Declarative Item --
2945       ----------------------------
2946
2947       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2948
2949       ----------------------------------
2950       -- 3.11  Basic Declarative Item --
2951       ----------------------------------
2952
2953       --  BASIC_DECLARATIVE_ITEM ::=
2954       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2955
2956       ----------------
2957       -- 3.11  Body --
2958       ----------------
2959
2960       --  BODY ::= PROPER_BODY | BODY_STUB
2961
2962       -----------------------
2963       -- 3.11  Proper Body --
2964       -----------------------
2965
2966       --  PROPER_BODY ::=
2967       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2968
2969       ---------------
2970       -- 4.1  Name --
2971       ---------------
2972
2973       --  NAME ::=
2974       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
2975       --  | INDEXED_COMPONENT  | SLICE
2976       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2977       --  | TYPE_CONVERSION    | FUNCTION_CALL
2978       --  | CHARACTER_LITERAL
2979
2980       ----------------------
2981       -- 4.1  Direct Name --
2982       ----------------------
2983
2984       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2985
2986       -----------------
2987       -- 4.1  Prefix --
2988       -----------------
2989
2990       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2991
2992       -------------------------------
2993       -- 4.1  Explicit Dereference --
2994       -------------------------------
2995
2996       --  EXPLICIT_DEREFERENCE ::= NAME . all
2997
2998       --  N_Explicit_Dereference
2999       --  Sloc points to ALL
3000       --  Prefix (Node3)
3001       --  Actual_Designated_Subtype (Node4-Sem)
3002       --  plus fields for expression
3003
3004       -------------------------------
3005       -- 4.1  Implicit Dereference --
3006       -------------------------------
3007
3008       --  IMPLICIT_DEREFERENCE ::= NAME
3009
3010       ------------------------------
3011       -- 4.1.1  Indexed Component --
3012       ------------------------------
3013
3014       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3015
3016       --  Note: the parser may generate this node in some situations where it
3017       --  should be a function call. The semantic  pass must correct this
3018       --  misidentification (which is inevitable at the parser level).
3019
3020       --  N_Indexed_Component
3021       --  Sloc contains a copy of the Sloc value of the Prefix
3022       --  Prefix (Node3)
3023       --  Expressions (List1)
3024       --  plus fields for expression
3025
3026       --  Note: if any of the subscripts requires a range check, then the
3027       --  Do_Range_Check flag is set on the corresponding expression, with
3028       --  the index type being determined from the type of the Prefix, which
3029       --  references the array being indexed.
3030
3031       --  Note: in a fully analyzed and expanded indexed component node, and
3032       --  hence in any such node that gigi sees, if the prefix is an access
3033       --  type, then an explicit dereference operation has been inserted.
3034
3035       ------------------
3036       -- 4.1.2  Slice --
3037       ------------------
3038
3039       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3040
3041       --  Note: an implicit subtype is created to describe the resulting
3042       --  type, so that the bounds of this type are the bounds of the slice.
3043
3044       --  N_Slice
3045       --  Sloc points to first token of prefix
3046       --  Prefix (Node3)
3047       --  Discrete_Range (Node4)
3048       --  plus fields for expression
3049
3050       -------------------------------
3051       -- 4.1.3  Selected Component --
3052       -------------------------------
3053
3054       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3055
3056       --  Note: selected components that are semantically expanded names get
3057       --  changed during semantic processing into the separate N_Expanded_Name
3058       --  node. See description of this node in the section on semantic nodes.
3059
3060       --  N_Selected_Component
3061       --  Sloc points to period
3062       --  Prefix (Node3)
3063       --  Selector_Name (Node2)
3064       --  Associated_Node (Node4-Sem)
3065       --  Do_Discriminant_Check (Flag13-Sem)
3066       --  Is_In_Discriminant_Check (Flag11-Sem)
3067       --  plus fields for expression
3068
3069       --------------------------
3070       -- 4.1.3  Selector Name --
3071       --------------------------
3072
3073       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3074
3075       --------------------------------
3076       -- 4.1.4  Attribute Reference --
3077       --------------------------------
3078
3079       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3080
3081       --  Note: the syntax is quite ambiguous at this point. Consider:
3082
3083       --    A'Length (X)  X is part of the attribute designator
3084       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3085       --    A'Class (X)   X is the expression of a type conversion
3086
3087       --  It would be possible for the parser to distinguish these cases
3088       --  by looking at the attribute identifier. However, that would mean
3089       --  more work in introducing new implementation defined attributes,
3090       --  and also it would mean that special processing for attributes
3091       --  would be scattered around, instead of being centralized in the
3092       --  semantic routine that handles an N_Attribute_Reference node.
3093       --  Consequently, the parser in all the above cases stores the
3094       --  expression (X in these examples) as a single element list in
3095       --  in the Expressions field of the N_Attribute_Reference node.
3096
3097       --  Similarly, for attributes like Max which take two arguments,
3098       --  we store the two arguments as a two element list in the
3099       --  Expressions field. Of course it is clear at parse time that
3100       --  this case is really a function call with an attribute as the
3101       --  prefix, but it turns out to be convenient to handle the two
3102       --  argument case in a similar manner to the one argument case,
3103       --  and indeed in general the parser will accept any number of
3104       --  expressions in this position and store them as a list in the
3105       --  attribute reference node. This allows for future addition of
3106       --  attributes that take more than two arguments.
3107
3108       --  Note: named associates are not permitted in function calls where
3109       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3110       --  to skip the normal subprogram argument processing.
3111
3112       --  Note: for the attributes whose designators are technically keywords,
3113       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3114       --  the corresponding name, even though no identifier is involved.
3115
3116       --  Note: the generated code may contain stream attributes applied to
3117       --  limited types for which no stream routines exist officially. In such
3118       --  case, the result is to use the stream attribute for the underlying
3119       --  full type, or in the case of a protected type, the components
3120       --  (including any discriminants) are merely streamed in order.
3121
3122       --  See Exp_Attr for a complete description of which attributes are
3123       --  passed onto Gigi, and which are handled entirely by the front end.
3124
3125       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3126       --  a non-standard enumeration type or a nonzero/zero semantics
3127       --  boolean type, so the value is simply the stored representation.
3128
3129       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3130       --  references a subprogram that is a renaming, then the front end must
3131       --  rewrite the attribute to refer directly to the renamed entity.
3132
3133       --  Note: In generated code, the Address and Unrestricted_Access
3134       --  attributes can be applied to any expression, and the meaning is
3135       --  to create an object containing the value (the object is in the
3136       --  current stack frame), and pass the address of this value. If the
3137       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3138       --  is taken must be on a byte (storage unit) boundary, and if it is
3139       --  not (or may not be), then the generated code must create a copy
3140       --  that is byte aligned, and pass the address of this copy.
3141
3142       --  N_Attribute_Reference
3143       --  Sloc points to apostrophe
3144       --  Prefix (Node3)
3145       --  Attribute_Name (Name2) identifier name from attribute designator
3146       --  Expressions (List1) (set to No_List if no associated expressions)
3147       --  Entity (Node4-Sem) used if the attribute yields a type
3148       --  Associated_Node (Node4-Sem)
3149       --  Do_Overflow_Check (Flag17-Sem)
3150       --  Redundant_Use (Flag13-Sem)
3151       --  Must_Be_Byte_Aligned (Flag14)
3152       --  plus fields for expression
3153
3154       ---------------------------------
3155       -- 4.1.4  Attribute Designator --
3156       ---------------------------------
3157
3158       --  ATTRIBUTE_DESIGNATOR ::=
3159       --    IDENTIFIER [(static_EXPRESSION)]
3160       --  | access | delta | digits
3161
3162       --  There is no explicit node in the tree for an attribute designator.
3163       --  Instead the Attribute_Name and Expressions fields of the parent
3164       --  node (N_Attribute_Reference node) hold the information.
3165
3166       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3167       --  designator, then they are treated as identifiers internally
3168       --  rather than the keywords of the same name.
3169
3170       --------------------------------------
3171       -- 4.1.4  Range Attribute Reference --
3172       --------------------------------------
3173
3174       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3175
3176       --  A range attribute reference is represented in the tree using the
3177       --  normal N_Attribute_Reference node.
3178
3179       ---------------------------------------
3180       -- 4.1.4  Range Attribute Designator --
3181       ---------------------------------------
3182
3183       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3184
3185       --  A range attribute designator is represented in the tree using the
3186       --  normal N_Attribute_Reference node.
3187
3188       --------------------
3189       -- 4.3  Aggregate --
3190       --------------------
3191
3192       --  AGGREGATE ::=
3193       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3194
3195       -----------------------------
3196       -- 4.3.1  Record Aggregate --
3197       -----------------------------
3198
3199       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3200
3201       --  N_Aggregate
3202       --  Sloc points to left parenthesis
3203       --  Expressions (List1) (set to No_List if none or null record case)
3204       --  Component_Associations (List2) (set to No_List if none)
3205       --  Null_Record_Present (Flag17)
3206       --  Aggregate_Bounds (Node3-Sem)
3207       --  Associated_Node (Node4-Sem)
3208       --  Static_Processing_OK (Flag4-Sem)
3209       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3210       --  Expansion_Delayed (Flag11-Sem)
3211       --  Has_Self_Reference (Flag13-Sem)
3212       --  plus fields for expression
3213
3214       --  Note: this structure is used for both record and array aggregates
3215       --  since the two cases are not separable by the parser. The parser
3216       --  makes no attempt to enforce consistency here, so it is up to the
3217       --  semantic phase to make sure that the aggregate is consistent (i.e.
3218       --  that it is not a "half-and-half" case that mixes record and array
3219       --  syntax. In particular, for a record aggregate, the expressions
3220       --  field will be set if there are positional associations.
3221
3222       --  Note: N_Aggregate is not used for all aggregates; in particular,
3223       --  there is a separate node kind for extension aggregates.
3224
3225       --  Note: gigi/gcc can handle array aggregates correctly providing that
3226       --  they are entirely positional, and the array subtype involved has a
3227       --  known at compile time length and is not bit packed, or a convention
3228       --  Fortran array with more than one dimension. If these conditions
3229       --  are not met, then the front end must translate the aggregate into
3230       --  an appropriate set of assignments into a temporary.
3231
3232       --  Note: for the record aggregate case, gigi/gcc can handle all cases
3233       --  of record aggregates, including those for packed, and rep-claused
3234       --  records, and also variant records, providing that there are no
3235       --  variable length fields whose size is not known at runtime, and
3236       --  providing that the aggregate is presented in fully named form.
3237
3238       ----------------------------------------------
3239       -- 4.3.1  Record Component Association List --
3240       ----------------------------------------------
3241
3242       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3243       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3244       --   | null record
3245
3246       --  There is no explicit node in the tree for a record component
3247       --  association list. Instead the Null_Record_Present flag is set in
3248       --  the parent node for the NULL RECORD case.
3249
3250       ------------------------------------------------------
3251       -- 4.3.1  Record Component Association (also 4.3.3) --
3252       ------------------------------------------------------
3253
3254       --  RECORD_COMPONENT_ASSOCIATION ::=
3255       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3256
3257       --  N_Component_Association
3258       --  Sloc points to first selector name
3259       --  Choices (List1)
3260       --  Loop_Actions (List2-Sem)
3261       --  Expression (Node3)
3262       --  Box_Present (Flag15)
3263
3264       --  Note: this structure is used for both record component associations
3265       --  and array component associations, since the two cases aren't always
3266       --  separable by the parser. The choices list may represent either a
3267       --  list of selector names in the record aggregate case, or a list of
3268       --  discrete choices in the array aggregate case or an N_Others_Choice
3269       --  node (which appears as a singleton list). Box_Present gives support
3270       --  to Ada 2005 (AI-287).
3271
3272       ----------------------------------
3273       -- 4.3.1  Component Choice List --
3274       ----------------------------------
3275
3276       --  COMPONENT_CHOICE_LIST ::=
3277       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3278       --  | others
3279
3280       --  The entries of a component choice list appear in the Choices list of
3281       --  the associated N_Component_Association, as either selector names, or
3282       --  as an N_Others_Choice node.
3283
3284       --------------------------------
3285       -- 4.3.2  Extension Aggregate --
3286       --------------------------------
3287
3288       --  EXTENSION_AGGREGATE ::=
3289       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3290
3291       --  Note: extension aggregates are not permitted in Ada 83 mode
3292
3293       --  N_Extension_Aggregate
3294       --  Sloc points to left parenthesis
3295       --  Ancestor_Part (Node3)
3296       --  Associated_Node (Node4-Sem)
3297       --  Expressions (List1) (set to No_List if none or null record case)
3298       --  Component_Associations (List2) (set to No_List if none)
3299       --  Null_Record_Present (Flag17)
3300       --  Expansion_Delayed (Flag11-Sem)
3301       --  Has_Self_Reference (Flag13-Sem)
3302       --  plus fields for expression
3303
3304       --------------------------
3305       -- 4.3.2  Ancestor Part --
3306       --------------------------
3307
3308       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3309
3310       ----------------------------
3311       -- 4.3.3  Array Aggregate --
3312       ----------------------------
3313
3314       --  ARRAY_AGGREGATE ::=
3315       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3316
3317       ---------------------------------------
3318       -- 4.3.3  Positional Array Aggregate --
3319       ---------------------------------------
3320
3321       --  POSITIONAL_ARRAY_AGGREGATE ::=
3322       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3323       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3324
3325       --  See Record_Aggregate (4.3.1) for node structure
3326
3327       ----------------------------------
3328       -- 4.3.3  Named Array Aggregate --
3329       ----------------------------------
3330
3331       --  NAMED_ARRAY_AGGREGATE ::=
3332       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3333
3334       --  See Record_Aggregate (4.3.1) for node structure
3335
3336       ----------------------------------------
3337       -- 4.3.3  Array Component Association --
3338       ----------------------------------------
3339
3340       --  ARRAY_COMPONENT_ASSOCIATION ::=
3341       --    DISCRETE_CHOICE_LIST => EXPRESSION
3342
3343       --  See Record_Component_Association (4.3.1) for node structure
3344
3345       --------------------------------------------------
3346       -- 4.4  Expression/Relation/Term/Factor/Primary --
3347       --------------------------------------------------
3348
3349       --  EXPRESSION ::=
3350       --    RELATION {and RELATION} | RELATION {and then RELATION}
3351       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3352       --  | RELATION {xor RELATION}
3353
3354       --  RELATION ::=
3355       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3356       --  | SIMPLE_EXPRESSION [not] in RANGE
3357       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3358
3359       --  SIMPLE_EXPRESSION ::=
3360       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3361
3362       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3363
3364       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3365
3366       --  No nodes are generated for any of these constructs. Instead, the
3367       --  node for the operator appears directly. When we refer to an
3368       --  expression in this description, we mean any of the possible
3369       --  constituent components of an expression (e.g. identifier is
3370       --  an example of an expression).
3371
3372       ------------------
3373       -- 4.4  Primary --
3374       ------------------
3375
3376       --  PRIMARY ::=
3377       --    NUMERIC_LITERAL  | null
3378       --  | STRING_LITERAL   | AGGREGATE
3379       --  | NAME             | QUALIFIED_EXPRESSION
3380       --  | ALLOCATOR        | (EXPRESSION)
3381
3382       --  Usually there is no explicit node in the tree for primary. Instead
3383       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3384       --  exceptions. First, there is an explicit node for a null primary.
3385
3386       --  N_Null
3387       --  Sloc points to NULL
3388       --  plus fields for expression
3389
3390       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3391       --  that the parser keep track of which subexpressions are enclosed
3392       --  in parentheses, and how many levels of parentheses are used. This
3393       --  information is required for optimization purposes, and also for
3394       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3395       --  conform with ((((1)))) in the body).
3396
3397       --  The parentheses are recorded by keeping a Paren_Count field in every
3398       --  subexpression node (it is actually present in all nodes, but only
3399       --  used in subexpression nodes). This count records the number of
3400       --  levels of parentheses. If the number of levels in the source exceeds
3401       --  the maximum accommodated by this count, then the count is simply left
3402       --  at the maximum value. This means that there are some pathological
3403       --  cases of failure to detect conformance failures (e.g. an expression
3404       --  with 500 levels of parens will conform with one with 501 levels),
3405       --  but we do not need to lose sleep over this.
3406
3407       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3408       --  type N_Parenthesized_Expression used to accurately record unlimited
3409       --  numbers of levels of parentheses. However, it turned out to be a
3410       --  real nuisance to have to take into account the possible presence of
3411       --  this node during semantic analysis, since basically parentheses have
3412       --  zero relevance to semantic analysis.
3413
3414       --  Note: the level of parentheses always present in things like
3415       --  aggregates does not count, only the parentheses in the primary
3416       --  (EXPRESSION) affect the setting of the Paren_Count field.
3417
3418       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3419       --  treated as though it were Empty) if No_Initialization is set True.
3420
3421       --------------------------------------
3422       -- 4.5  Short Circuit Control Forms --
3423       --------------------------------------
3424
3425       --  EXPRESSION ::=
3426       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3427
3428       --  Gigi restriction: For both these control forms, the operand and
3429       --  result types are always Standard.Boolean. The expander inserts the
3430       --  required conversion operations where needed to ensure this is the
3431       --  case.
3432
3433       --  N_And_Then
3434       --  Sloc points to AND of AND THEN
3435       --  Left_Opnd (Node2)
3436       --  Right_Opnd (Node3)
3437       --  Actions (List1-Sem)
3438       --  plus fields for expression
3439
3440       --  N_Or_Else
3441       --  Sloc points to OR of OR ELSE
3442       --  Left_Opnd (Node2)
3443       --  Right_Opnd (Node3)
3444       --  Actions (List1-Sem)
3445       --  plus fields for expression
3446
3447       --  Note: The Actions field is used to hold actions associated with
3448       --  the right hand operand. These have to be treated specially since
3449       --  they are not unconditionally executed. See Insert_Actions for a
3450       --  more detailed description of how these actions are handled.
3451
3452       ---------------------------
3453       -- 4.5  Membership Tests --
3454       ---------------------------
3455
3456       --  RELATION ::=
3457       --    SIMPLE_EXPRESSION [not] in RANGE
3458       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3459
3460       --  Note: although the grammar above allows only a range or a
3461       --  subtype mark, the parser in fact will accept any simple
3462       --  expression in place of a subtype mark. This means that the
3463       --  semantic analyzer must be prepared to deal with, and diagnose
3464       --  a simple expression other than a name for the right operand.
3465       --  This simplifies error recovery in the parser.
3466
3467       --  N_In
3468       --  Sloc points to IN
3469       --  Left_Opnd (Node2)
3470       --  Right_Opnd (Node3)
3471       --  plus fields for expression
3472
3473       --  N_Not_In
3474       --  Sloc points to NOT of NOT IN
3475       --  Left_Opnd (Node2)
3476       --  Right_Opnd (Node3)
3477       --  plus fields for expression
3478
3479       --------------------
3480       -- 4.5  Operators --
3481       --------------------
3482
3483       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3484
3485       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3486
3487       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3488
3489       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3490
3491       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3492
3493       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3494
3495       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3496
3497       --     x #* y
3498       --     x #/ y
3499       --     x #mod y
3500       --     x #rem y
3501
3502       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3503       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3504       --  All handling of smalls for multiplication and division is handled
3505       --  by the front end (mod and rem result only from expansion). Gigi
3506       --  thus never needs to worry about small values (for other operators
3507       --  operating on fixed-point, e.g. addition, the small value does not
3508       --  have any semantic effect anyway, these are always integer operations.
3509
3510       --  Gigi restriction: For all operators taking Boolean operands, the
3511       --  type is always Standard.Boolean. The expander inserts the required
3512       --  conversion operations where needed to ensure this is the case.
3513
3514       --  N_Op_And
3515       --  Sloc points to AND
3516       --  Do_Length_Check (Flag4-Sem)
3517       --  plus fields for binary operator
3518       --  plus fields for expression
3519
3520       --  N_Op_Or
3521       --  Sloc points to OR
3522       --  Do_Length_Check (Flag4-Sem)
3523       --  plus fields for binary operator
3524       --  plus fields for expression
3525
3526       --  N_Op_Xor
3527       --  Sloc points to XOR
3528       --  Do_Length_Check (Flag4-Sem)
3529       --  plus fields for binary operator
3530       --  plus fields for expression
3531
3532       --  N_Op_Eq
3533       --  Sloc points to =
3534       --  plus fields for binary operator
3535       --  plus fields for expression
3536
3537       --  N_Op_Ne
3538       --  Sloc points to /=
3539       --  plus fields for binary operator
3540       --  plus fields for expression
3541
3542       --  N_Op_Lt
3543       --  Sloc points to <
3544       --  plus fields for binary operator
3545       --  plus fields for expression
3546
3547       --  N_Op_Le
3548       --  Sloc points to <=
3549       --  plus fields for binary operator
3550       --  plus fields for expression
3551
3552       --  N_Op_Gt
3553       --  Sloc points to >
3554       --  plus fields for binary operator
3555       --  plus fields for expression
3556
3557       --  N_Op_Ge
3558       --  Sloc points to >=
3559       --  plus fields for binary operator
3560       --  plus fields for expression
3561
3562       --  N_Op_Add
3563       --  Sloc points to + (binary)
3564       --  plus fields for binary operator
3565       --  plus fields for expression
3566
3567       --  N_Op_Subtract
3568       --  Sloc points to - (binary)
3569       --  plus fields for binary operator
3570       --  plus fields for expression
3571
3572       --  N_Op_Concat
3573       --  Sloc points to &
3574       --  Is_Component_Left_Opnd (Flag13-Sem)
3575       --  Is_Component_Right_Opnd (Flag14-Sem)
3576       --  plus fields for binary operator
3577       --  plus fields for expression
3578
3579       --  N_Op_Multiply
3580       --  Sloc points to *
3581       --  Treat_Fixed_As_Integer (Flag14-Sem)
3582       --  Rounded_Result (Flag18-Sem)
3583       --  plus fields for binary operator
3584       --  plus fields for expression
3585
3586       --  N_Op_Divide
3587       --  Sloc points to /
3588       --  Treat_Fixed_As_Integer (Flag14-Sem)
3589       --  Do_Division_Check (Flag13-Sem)
3590       --  Rounded_Result (Flag18-Sem)
3591       --  plus fields for binary operator
3592       --  plus fields for expression
3593
3594       --  N_Op_Mod
3595       --  Sloc points to MOD
3596       --  Treat_Fixed_As_Integer (Flag14-Sem)
3597       --  Do_Division_Check (Flag13-Sem)
3598       --  plus fields for binary operator
3599       --  plus fields for expression
3600
3601       --  N_Op_Rem
3602       --  Sloc points to REM
3603       --  Treat_Fixed_As_Integer (Flag14-Sem)
3604       --  Do_Division_Check (Flag13-Sem)
3605       --  plus fields for binary operator
3606       --  plus fields for expression
3607
3608       --  N_Op_Expon
3609       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3610       --  Sloc points to **
3611       --  plus fields for binary operator
3612       --  plus fields for expression
3613
3614       --  N_Op_Plus
3615       --  Sloc points to + (unary)
3616       --  plus fields for unary operator
3617       --  plus fields for expression
3618
3619       --  N_Op_Minus
3620       --  Sloc points to - (unary)
3621       --  plus fields for unary operator
3622       --  plus fields for expression
3623
3624       --  N_Op_Abs
3625       --  Sloc points to ABS
3626       --  plus fields for unary operator
3627       --  plus fields for expression
3628
3629       --  N_Op_Not
3630       --  Sloc points to NOT
3631       --  plus fields for unary operator
3632       --  plus fields for expression
3633
3634       --  See also shift operators in section B.2
3635
3636       --  Note on fixed-point operations passed to Gigi: For adding operators,
3637       --  the semantics is to treat these simply as integer operations, with
3638       --  the small values being ignored (the bounds are already stored in
3639       --  units of small, so that constraint checking works as usual). For the
3640       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3641       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3642       --  thus treat these nodes in identical manner, ignoring small values.
3643
3644       --------------------------
3645       -- 4.6  Type Conversion --
3646       --------------------------
3647
3648       --  TYPE_CONVERSION ::=
3649       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3650
3651       --  In the (NAME) case, the name is stored as the expression
3652
3653       --  Note: the parser never generates a type conversion node, since it
3654       --  looks like an indexed component which is generated by preference.
3655       --  The semantic pass must correct this misidentification.
3656
3657       --  Gigi handles conversions that involve no change in the root type,
3658       --  and also all conversions from integer to floating-point types.
3659       --  Conversions from floating-point to integer are only handled in
3660       --  the case where Float_Truncate flag set. Other conversions from
3661       --  floating-point to integer (involving rounding) and all conversions
3662       --  involving fixed-point types are handled by the expander.
3663
3664       --  Sprint syntax if Float_Truncate set: X^(Y)
3665       --  Sprint syntax if Conversion_OK set X?(Y)
3666       --  Sprint syntax if both flags set X?^(Y)
3667
3668       --  Note: If either the operand or result type is fixed-point, Gigi will
3669       --  only see a type conversion node with Conversion_OK set. The front end
3670       --  takes care of all handling of small's for fixed-point conversions.
3671
3672       --  N_Type_Conversion
3673       --  Sloc points to first token of subtype mark
3674       --  Subtype_Mark (Node4)
3675       --  Expression (Node3)
3676       --  Do_Tag_Check (Flag13-Sem)
3677       --  Do_Length_Check (Flag4-Sem)
3678       --  Do_Overflow_Check (Flag17-Sem)
3679       --  Float_Truncate (Flag11-Sem)
3680       --  Rounded_Result (Flag18-Sem)
3681       --  Conversion_OK (Flag14-Sem)
3682       --  plus fields for expression
3683
3684       --  Note: if a range check is required, then the Do_Range_Check flag
3685       --  is set in the Expression with the check being done against the
3686       --  target type range (after the base type conversion, if any).
3687
3688       -------------------------------
3689       -- 4.7  Qualified Expression --
3690       -------------------------------
3691
3692       --  QUALIFIED_EXPRESSION ::=
3693       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3694
3695       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3696       --  the expression, so the Expression field of this node always points
3697       --  to a parenthesized expression in this case (i.e. Paren_Count will
3698       --  always be non-zero for the referenced expression if it is not an
3699       --  aggregate).
3700
3701       --  N_Qualified_Expression
3702       --  Sloc points to apostrophe
3703       --  Subtype_Mark (Node4)
3704       --  Expression (Node3) expression or aggregate
3705       --  plus fields for expression
3706
3707       --------------------
3708       -- 4.8  Allocator --
3709       --------------------
3710
3711       --  ALLOCATOR ::=
3712       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3713
3714       --  Sprint syntax (when storage pool present)
3715       --    new xxx (storage_pool = pool)
3716
3717       --  N_Allocator
3718       --  Sloc points to NEW
3719       --  Expression (Node3) subtype indication or qualified expression
3720       --  Storage_Pool (Node1-Sem)
3721       --  Procedure_To_Call (Node2-Sem)
3722       --  Coextensions (Elist4-Sem)
3723       --  Null_Exclusion_Present (Flag11)
3724       --  No_Initialization (Flag13-Sem)
3725       --  Is_Static_Coextension (Flag14-Sem)
3726       --  Do_Storage_Check (Flag17-Sem)
3727       --  Is_Dynamic_Coextension (Flag18-Sem)
3728       --  plus fields for expression
3729
3730       ---------------------------------
3731       -- 5.1  Sequence Of Statements --
3732       ---------------------------------
3733
3734       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3735
3736       --  Note: Although the parser will not accept a declaration as a
3737       --  statement, the semantic analyzer may insert declarations (e.g.
3738       --  declarations of implicit types needed for execution of other
3739       --  statements) into a sequence of statements, so the code generator
3740       --  should be prepared to accept a declaration where a statement is
3741       --  expected. Note also that pragmas can appear as statements.
3742
3743       --------------------
3744       -- 5.1  Statement --
3745       --------------------
3746
3747       --  STATEMENT ::=
3748       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3749
3750       --  There is no explicit node in the tree for a statement. Instead, the
3751       --  individual statement appears directly. Labels are treated  as a
3752       --  kind of statement, i.e. they are linked into a statement list at
3753       --  the point they appear, so the labeled statement appears following
3754       --  the label or labels in the statement list.
3755
3756       ---------------------------
3757       -- 5.1  Simple Statement --
3758       ---------------------------
3759
3760       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3761       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3762       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3763       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3764       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3765       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3766       --  | CODE_STATEMENT
3767
3768       -----------------------------
3769       -- 5.1  Compound Statement --
3770       -----------------------------
3771
3772       --  COMPOUND_STATEMENT ::=
3773       --    IF_STATEMENT              | CASE_STATEMENT
3774       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3775       --  | EXTENDED_RETURN_STATEMENT
3776       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3777
3778       -------------------------
3779       -- 5.1  Null Statement --
3780       -------------------------
3781
3782       --  NULL_STATEMENT ::= null;
3783
3784       --  N_Null_Statement
3785       --  Sloc points to NULL
3786
3787       ----------------
3788       -- 5.1  Label --
3789       ----------------
3790
3791       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3792
3793       --  Note that the occurrence of a label is not a defining identifier,
3794       --  but rather a referencing occurrence. The defining occurrence is
3795       --  in the implicit label declaration which occurs in the innermost
3796       --  enclosing block.
3797
3798       --  N_Label
3799       --  Sloc points to <<
3800       --  Identifier (Node1) direct name of statement identifier
3801       --  Exception_Junk (Flag8-Sem)
3802
3803       -------------------------------
3804       -- 5.1  Statement Identifier --
3805       -------------------------------
3806
3807       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
3808
3809       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3810       --  (not an OPERATOR_SYMBOL)
3811
3812       -------------------------------
3813       -- 5.2  Assignment Statement --
3814       -------------------------------
3815
3816       --  ASSIGNMENT_STATEMENT ::=
3817       --    variable_NAME := EXPRESSION;
3818
3819       --  N_Assignment_Statement
3820       --  Sloc points to :=
3821       --  Name (Node2)
3822       --  Expression (Node3)
3823       --  Do_Tag_Check (Flag13-Sem)
3824       --  Do_Length_Check (Flag4-Sem)
3825       --  Forwards_OK (Flag5-Sem)
3826       --  Backwards_OK (Flag6-Sem)
3827       --  No_Ctrl_Actions (Flag7-Sem)
3828
3829       --  Note: if a range check is required, then the Do_Range_Check flag
3830       --  is set in the Expression (right hand side), with the check being
3831       --  done against the type of the Name (left hand side).
3832
3833       --  Note: the back end places some restrictions on the form of the
3834       --  Expression field. If the object being assigned to is Atomic, then
3835       --  the Expression may not have the form of an aggregate (since this
3836       --  might cause the back end to generate separate assignments). It
3837       --  also cannot be a reference to an object marked as a true constant
3838       --  (Is_True_Constant flag set), where the object is itself initialized
3839       --  with an aggregate. If necessary the front end must generate an
3840       --  extra temporary (with Is_True_Constant set False), and initialize
3841       --  this temporary as required (the temporary itself is not atomic).
3842
3843       -----------------------
3844       -- 5.3  If Statement --
3845       -----------------------
3846
3847       --  IF_STATEMENT ::=
3848       --    if CONDITION then
3849       --      SEQUENCE_OF_STATEMENTS
3850       --    {elsif CONDITION then
3851       --      SEQUENCE_OF_STATEMENTS}
3852       --    [else
3853       --      SEQUENCE_OF_STATEMENTS]
3854       --    end if;
3855
3856       --  Gigi restriction: This expander ensures that the type of the
3857       --  Condition fields is always Standard.Boolean, even if the type
3858       --  in the source is some non-standard boolean type.
3859
3860       --  N_If_Statement
3861       --  Sloc points to IF
3862       --  Condition (Node1)
3863       --  Then_Statements (List2)
3864       --  Elsif_Parts (List3) (set to No_List if none present)
3865       --  Else_Statements (List4) (set to No_List if no else part present)
3866       --  End_Span (Uint5) (set to No_Uint if expander generated)
3867
3868       --  N_Elsif_Part
3869       --  Sloc points to ELSIF
3870       --  Condition (Node1)
3871       --  Then_Statements (List2)
3872       --  Condition_Actions (List3-Sem)
3873
3874       --------------------
3875       -- 5.3  Condition --
3876       --------------------
3877
3878       --  CONDITION ::= boolean_EXPRESSION
3879
3880       -------------------------
3881       -- 5.4  Case Statement --
3882       -------------------------
3883
3884       --  CASE_STATEMENT ::=
3885       --    case EXPRESSION is
3886       --      CASE_STATEMENT_ALTERNATIVE
3887       --      {CASE_STATEMENT_ALTERNATIVE}
3888       --    end case;
3889
3890       --  Note: the Alternatives can contain pragmas. These only occur at
3891       --  the start of the list, since any pragmas occurring after the first
3892       --  alternative are absorbed into the corresponding statement sequence.
3893
3894       --  N_Case_Statement
3895       --  Sloc points to CASE
3896       --  Expression (Node3)
3897       --  Alternatives (List4)
3898       --  End_Span (Uint5) (set to No_Uint if expander generated)
3899
3900       -------------------------------------
3901       -- 5.4  Case Statement Alternative --
3902       -------------------------------------
3903
3904       --  CASE_STATEMENT_ALTERNATIVE ::=
3905       --    when DISCRETE_CHOICE_LIST =>
3906       --      SEQUENCE_OF_STATEMENTS
3907
3908       --  N_Case_Statement_Alternative
3909       --  Sloc points to WHEN
3910       --  Discrete_Choices (List4)
3911       --  Statements (List3)
3912
3913       -------------------------
3914       -- 5.5  Loop Statement --
3915       -------------------------
3916
3917       --  LOOP_STATEMENT ::=
3918       --    [loop_STATEMENT_IDENTIFIER :]
3919       --      [ITERATION_SCHEME] loop
3920       --        SEQUENCE_OF_STATEMENTS
3921       --      end loop [loop_IDENTIFIER];
3922
3923       --  Note: The occurrence of a loop label is not a defining identifier
3924       --  but rather a referencing occurrence. The defining occurrence is in
3925       --  the implicit label declaration which occurs in the innermost
3926       --  enclosing block.
3927
3928       --  Note: there is always a loop statement identifier present in
3929       --  the tree, even if none was given in the source. In the case where
3930       --  no loop identifier is given in the source, the parser creates
3931       --  a name of the form _Loop_n, where n is a decimal integer (the
3932       --  two underlines ensure that the loop names created in this manner
3933       --  do not conflict with any user defined identifiers), and the flag
3934       --  Has_Created_Identifier is set to True. The only exception to the
3935       --  rule that all loop statement nodes have identifiers occurs for
3936       --  loops constructed by the expander, and the semantic analyzer will
3937       --  create and supply dummy loop identifiers in these cases.
3938
3939       --  N_Loop_Statement
3940       --  Sloc points to LOOP
3941       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
3942       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3943       --  Statements (List3)
3944       --  End_Label (Node4)
3945       --  Has_Created_Identifier (Flag15)
3946       --  Is_Null_Loop (Flag16)
3947       --  Suppress_Loop_Warnings (Flag17)
3948
3949       --------------------------
3950       -- 5.5 Iteration Scheme --
3951       --------------------------
3952
3953       --  ITERATION_SCHEME ::=
3954       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3955
3956       --  Gigi restriction: This expander ensures that the type of the
3957       --  Condition field is always Standard.Boolean, even if the type
3958       --  in the source is some non-standard boolean type.
3959
3960       --  N_Iteration_Scheme
3961       --  Sloc points to WHILE or FOR
3962       --  Condition (Node1) (set to Empty if FOR case)
3963       --  Condition_Actions (List3-Sem)
3964       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3965
3966       ---------------------------------------
3967       -- 5.5  Loop parameter specification --
3968       ---------------------------------------
3969
3970       --  LOOP_PARAMETER_SPECIFICATION ::=
3971       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3972
3973       --  N_Loop_Parameter_Specification
3974       --  Sloc points to first identifier
3975       --  Defining_Identifier (Node1)
3976       --  Reverse_Present (Flag15)
3977       --  Discrete_Subtype_Definition (Node4)
3978
3979       --------------------------
3980       -- 5.6  Block Statement --
3981       --------------------------
3982
3983       --  BLOCK_STATEMENT ::=
3984       --    [block_STATEMENT_IDENTIFIER:]
3985       --      [declare
3986       --        DECLARATIVE_PART]
3987       --      begin
3988       --        HANDLED_SEQUENCE_OF_STATEMENTS
3989       --      end [block_IDENTIFIER];
3990
3991       --  Note that the occurrence of a block identifier is not a defining
3992       --  identifier, but rather a referencing occurrence. The defining
3993       --  occurrence is an E_Block entity declared by the implicit label
3994       --  declaration which occurs in the innermost enclosing block statement
3995       --  or body; the block identifier denotes that E_Block.
3996
3997       --  For block statements that come from source code, there is always a
3998       --  block statement identifier present in the tree, denoting an
3999       --  E_Block. In the case where no block identifier is given in the
4000       --  source, the parser creates a name of the form B_n, where n is a
4001       --  decimal integer, and the flag Has_Created_Identifier is set to
4002       --  True. Blocks constructed by the expander usually have no identifier,
4003       --  and no corresponding entity.
4004
4005       --  Note: the block statement created for an extended return statement
4006       --  has an entity, and this entity is an E_Return_Statement, rather than
4007       --  the usual E_Block.
4008
4009       --  Note: Exception_Junk is set for the wrapping blocks created during
4010       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4011
4012       --  N_Block_Statement
4013       --  Sloc points to DECLARE or BEGIN
4014       --  Identifier (Node1) block direct name (set to Empty if not present)
4015       --  Declarations (List2) (set to No_List if no DECLARE part)
4016       --  Handled_Statement_Sequence (Node4)
4017       --  Is_Task_Master (Flag5-Sem)
4018       --  Activation_Chain_Entity (Node3-Sem)
4019       --  Has_Created_Identifier (Flag15)
4020       --  Is_Task_Allocation_Block (Flag6)
4021       --  Is_Asynchronous_Call_Block (Flag7)
4022       --  Exception_Junk (Flag8-Sem)
4023
4024       -------------------------
4025       -- 5.7  Exit Statement --
4026       -------------------------
4027
4028       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4029
4030       --  Gigi restriction: This expander ensures that the type of the
4031       --  Condition field is always Standard.Boolean, even if the type
4032       --  in the source is some non-standard boolean type.
4033
4034       --  N_Exit_Statement
4035       --  Sloc points to EXIT
4036       --  Name (Node2) (set to Empty if no loop name present)
4037       --  Condition (Node1) (set to Empty if no when part present)
4038
4039       -------------------------
4040       -- 5.9  Goto Statement --
4041       -------------------------
4042
4043       --  GOTO_STATEMENT ::= goto label_NAME;
4044
4045       --  N_Goto_Statement
4046       --  Sloc points to GOTO
4047       --  Name (Node2)
4048       --  Exception_Junk (Flag8-Sem)
4049
4050       ---------------------------------
4051       -- 6.1  Subprogram Declaration --
4052       ---------------------------------
4053
4054       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4055
4056       --  N_Subprogram_Declaration
4057       --  Sloc points to FUNCTION or PROCEDURE
4058       --  Specification (Node1)
4059       --  Body_To_Inline (Node3-Sem)
4060       --  Corresponding_Body (Node5-Sem)
4061       --  Parent_Spec (Node4-Sem)
4062
4063       ------------------------------------------
4064       -- 6.1  Abstract Subprogram Declaration --
4065       ------------------------------------------
4066
4067       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4068       --    SUBPROGRAM_SPECIFICATION is abstract;
4069
4070       --  N_Abstract_Subprogram_Declaration
4071       --  Sloc points to ABSTRACT
4072       --  Specification (Node1)
4073
4074       -----------------------------------
4075       -- 6.1  Subprogram Specification --
4076       -----------------------------------
4077
4078       --  SUBPROGRAM_SPECIFICATION ::=
4079       --    [[not] overriding]
4080       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4081       --  | [[not] overriding]
4082       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4083
4084       --  Note: there are no separate nodes for the profiles, instead the
4085       --  information appears directly in the following nodes.
4086
4087       --  N_Function_Specification
4088       --  Sloc points to FUNCTION
4089       --  Defining_Unit_Name (Node1) (the designator)
4090       --  Elaboration_Boolean (Node2-Sem)
4091       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4092       --  Null_Exclusion_Present (Flag11)
4093       --  Result_Definition (Node4) for result subtype
4094       --  Generic_Parent (Node5-Sem)
4095       --  Must_Override (Flag14) set if overriding indicator present
4096       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4097
4098       --  N_Procedure_Specification
4099       --  Sloc points to PROCEDURE
4100       --  Defining_Unit_Name (Node1)
4101       --  Elaboration_Boolean (Node2-Sem)
4102       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4103       --  Generic_Parent (Node5-Sem)
4104       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4105       --  Must_Override (Flag14) set if overriding indicator present
4106       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4107
4108       --  Note: overriding indicator is an Ada 2005 feature
4109
4110       ---------------------
4111       -- 6.1  Designator --
4112       ---------------------
4113
4114       --  DESIGNATOR ::=
4115       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4116
4117       --  Designators that are simply identifiers or operator symbols appear
4118       --  directly in the tree in this form. The following node is used only
4119       --  in the case where the designator has a parent unit name component.
4120
4121       --  N_Designator
4122       --  Sloc points to period
4123       --  Name (Node2) holds the parent unit name. Note that this is always
4124       --   non-Empty, since this node is only used for the case where a
4125       --   parent library unit package name is present.
4126       --  Identifier (Node1)
4127
4128       --  Note that the identifier can also be an operator symbol here
4129
4130       ------------------------------
4131       -- 6.1  Defining Designator --
4132       ------------------------------
4133
4134       --  DEFINING_DESIGNATOR ::=
4135       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4136
4137       -------------------------------------
4138       -- 6.1  Defining Program Unit Name --
4139       -------------------------------------
4140
4141       --  DEFINING_PROGRAM_UNIT_NAME ::=
4142       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4143
4144       --  The parent unit name is present only in the case of a child unit
4145       --  name (permissible only for Ada 95 for a library level unit, i.e.
4146       --  a unit at scope level one). If no such name is present, the defining
4147       --  program unit name is represented simply as the defining identifier.
4148       --  In the child unit case, the following node is used to represent the
4149       --  child unit name.
4150
4151       --  N_Defining_Program_Unit_Name
4152       --  Sloc points to period
4153       --  Name (Node2) holds the parent unit name. Note that this is always
4154       --   non-Empty, since this node is only used for the case where a
4155       --   parent unit name is present.
4156       --  Defining_Identifier (Node1)
4157
4158       --------------------------
4159       -- 6.1  Operator Symbol --
4160       --------------------------
4161
4162       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4163
4164       --  Note: the fields of the N_Operator_Symbol node are laid out to
4165       --  match the corresponding fields of an N_Character_Literal node. This
4166       --  allows easy conversion of the operator symbol node into a character
4167       --  literal node in the case where a string constant of the form of an
4168       --  operator symbol is scanned out as such, but turns out semantically
4169       --  to be a string literal that is not an operator. For details see
4170       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4171
4172       --  N_Operator_Symbol
4173       --  Sloc points to literal
4174       --  Chars (Name1) contains the Name_Id for the operator symbol
4175       --  Strval (Str3) Id of string value. This is used if the operator
4176       --   symbol turns out to be a normal string after all.
4177       --  Entity (Node4-Sem)
4178       --  Associated_Node (Node4-Sem)
4179       --  Has_Private_View (Flag11-Sem) set in generic units.
4180       --  Etype (Node5-Sem)
4181
4182       --  Note: the Strval field may be set to No_String for generated
4183       --  operator symbols that are known not to be string literals
4184       --  semantically.
4185
4186       -----------------------------------
4187       -- 6.1  Defining Operator Symbol --
4188       -----------------------------------
4189
4190       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4191
4192       --  A defining operator symbol is an entity, which has additional
4193       --  fields depending on the setting of the Ekind field. These
4194       --  additional fields are defined (and access subprograms declared)
4195       --  in package Einfo.
4196
4197       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4198       --  are deliberately layed out to match the layout of fields in an
4199       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4200       --  an operator symbol node into a defining operator symbol node.
4201       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4202       --  for further details.
4203
4204       --  N_Defining_Operator_Symbol
4205       --  Sloc points to literal
4206       --  Chars (Name1) contains the Name_Id for the operator symbol
4207       --  Next_Entity (Node2-Sem)
4208       --  Scope (Node3-Sem)
4209       --  Etype (Node5-Sem)
4210
4211       ----------------------------
4212       -- 6.1  Parameter Profile --
4213       ----------------------------
4214
4215       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4216
4217       ---------------------------------------
4218       -- 6.1  Parameter and Result Profile --
4219       ---------------------------------------
4220
4221       --  PARAMETER_AND_RESULT_PROFILE ::=
4222       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4223       --  | [FORMAL_PART] return ACCESS_DEFINITION
4224
4225       --  There is no explicit node in the tree for a parameter and result
4226       --  profile. Instead the information appears directly in the parent.
4227
4228       ----------------------
4229       -- 6.1  Formal part --
4230       ----------------------
4231
4232       --  FORMAL_PART ::=
4233       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4234
4235       ----------------------------------
4236       -- 6.1  Parameter specification --
4237       ----------------------------------
4238
4239       --  PARAMETER_SPECIFICATION ::=
4240       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4241       --      [:= DEFAULT_EXPRESSION]
4242       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4243       --      [:= DEFAULT_EXPRESSION]
4244
4245       --  Although the syntax allows multiple identifiers in the list, the
4246       --  semantics is as though successive specifications were given with
4247       --  identical type definition and expression components. To simplify
4248       --  semantic processing, the parser represents a multiple declaration
4249       --  case as a sequence of single Specifications, using the More_Ids and
4250       --  Prev_Ids flags to preserve the original source form as described
4251       --  in the section on "Handling of Defining Identifier Lists".
4252
4253       --  N_Parameter_Specification
4254       --  Sloc points to first identifier
4255       --  Defining_Identifier (Node1)
4256       --  In_Present (Flag15)
4257       --  Out_Present (Flag17)
4258       --  Null_Exclusion_Present (Flag11)
4259       --  Parameter_Type (Node2) subtype mark or access definition
4260       --  Expression (Node3) (set to Empty if no default expression present)
4261       --  Do_Accessibility_Check (Flag13-Sem)
4262       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4263       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4264       --  Default_Expression (Node5-Sem)
4265
4266       ---------------
4267       -- 6.1  Mode --
4268       ---------------
4269
4270       --  MODE ::= [in] | in out | out
4271
4272       --  There is no explicit node in the tree for the Mode. Instead the
4273       --  In_Present and Out_Present flags are set in the parent node to
4274       --  record the presence of keywords specifying the mode.
4275
4276       --------------------------
4277       -- 6.3  Subprogram Body --
4278       --------------------------
4279
4280       --  SUBPROGRAM_BODY ::=
4281       --    SUBPROGRAM_SPECIFICATION is
4282       --      DECLARATIVE_PART
4283       --    begin
4284       --      HANDLED_SEQUENCE_OF_STATEMENTS
4285       --    end [DESIGNATOR];
4286
4287       --  N_Subprogram_Body
4288       --  Sloc points to FUNCTION or PROCEDURE
4289       --  Specification (Node1)
4290       --  Declarations (List2)
4291       --  Handled_Statement_Sequence (Node4)
4292       --  Activation_Chain_Entity (Node3-Sem)
4293       --  Corresponding_Spec (Node5-Sem)
4294       --  Acts_As_Spec (Flag4-Sem)
4295       --  Bad_Is_Detected (Flag15) used only by parser
4296       --  Do_Storage_Check (Flag17-Sem)
4297       --  Has_Priority_Pragma (Flag6-Sem)
4298       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4299       --  Is_Entry_Barrier_Function (Flag8-Sem)
4300       --  Is_Task_Master (Flag5-Sem)
4301       --  Was_Originally_Stub (Flag13-Sem)
4302       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4303
4304       -----------------------------------
4305       -- 6.4  Procedure Call Statement --
4306       -----------------------------------
4307
4308       --  PROCEDURE_CALL_STATEMENT ::=
4309       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4310
4311       --  Note: the reason that a procedure call has expression fields is
4312       --  that it semantically resembles an expression, e.g. overloading is
4313       --  allowed and a type is concocted for semantic processing purposes.
4314       --  Certain of these fields, such as Parens are not relevant, but it
4315       --  is easier to just supply all of them together!
4316
4317       --  N_Procedure_Call_Statement
4318       --  Sloc points to first token of name or prefix
4319       --  Name (Node2) stores name or prefix
4320       --  Parameter_Associations (List3) (set to No_List if no
4321       --   actual parameter part)
4322       --  First_Named_Actual (Node4-Sem)
4323       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4324       --  Do_Tag_Check (Flag13-Sem)
4325       --  No_Elaboration_Check (Flag14-Sem)
4326       --  Parameter_List_Truncated (Flag17-Sem)
4327       --  ABE_Is_Certain (Flag18-Sem)
4328       --  plus fields for expression
4329
4330       --  If any IN parameter requires a range check, then the corresponding
4331       --  argument expression has the Do_Range_Check flag set, and the range
4332       --  check is done against the formal type. Note that this argument
4333       --  expression may appear directly in the Parameter_Associations list,
4334       --  or may be a descendent of an N_Parameter_Association node that
4335       --  appears in this list.
4336
4337       ------------------------
4338       -- 6.4  Function Call --
4339       ------------------------
4340
4341       --  FUNCTION_CALL ::=
4342       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4343
4344       --  Note: the parser may generate an indexed component node or simply
4345       --  a name node instead of a function call node. The semantic pass must
4346       --  correct this misidentification.
4347
4348       --  N_Function_Call
4349       --  Sloc points to first token of name or prefix
4350       --  Name (Node2) stores name or prefix
4351       --  Parameter_Associations (List3) (set to No_List if no
4352       --   actual parameter part)
4353       --  First_Named_Actual (Node4-Sem)
4354       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4355       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4356       --  Do_Tag_Check (Flag13-Sem)
4357       --  No_Elaboration_Check (Flag14-Sem)
4358       --  Parameter_List_Truncated (Flag17-Sem)
4359       --  ABE_Is_Certain (Flag18-Sem)
4360       --  plus fields for expression
4361
4362       --------------------------------
4363       -- 6.4  Actual Parameter Part --
4364       --------------------------------
4365
4366       --  ACTUAL_PARAMETER_PART ::=
4367       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4368
4369       --------------------------------
4370       -- 6.4  Parameter Association --
4371       --------------------------------
4372
4373       --  PARAMETER_ASSOCIATION ::=
4374       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4375
4376       --  Note: the N_Parameter_Association node is built only if a formal
4377       --  parameter selector name is present, otherwise the parameter
4378       --  association appears in the tree simply as the node for the
4379       --  explicit actual parameter.
4380
4381       --  N_Parameter_Association
4382       --  Sloc points to formal parameter
4383       --  Selector_Name (Node2) (always non-Empty)
4384       --  Explicit_Actual_Parameter (Node3)
4385       --  Next_Named_Actual (Node4-Sem)
4386
4387       ---------------------------
4388       -- 6.4  Actual Parameter --
4389       ---------------------------
4390
4391       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4392
4393       ---------------------------
4394       -- 6.5  Return Statement --
4395       ---------------------------
4396
4397       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4398
4399       --  In Ada 2005, we have:
4400
4401       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4402
4403       --  EXTENDED_RETURN_STATEMENT ::=
4404       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4405       --                                           [:= EXPRESSION] [do
4406       --      HANDLED_SEQUENCE_OF_STATEMENTS
4407       --    end return];
4408
4409       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4410
4411       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4412       --  "return statement" is defined in 6.5 to mean a
4413       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4414
4415       --  N_Return_Statement
4416       --  Sloc points to RETURN
4417       --  Return_Statement_Entity (Node5-Sem)
4418       --  Expression (Node3) (set to Empty if no expression present)
4419       --  Storage_Pool (Node1-Sem)
4420       --  Procedure_To_Call (Node2-Sem)
4421       --  Do_Tag_Check (Flag13-Sem)
4422       --  By_Ref (Flag5-Sem)
4423       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4424
4425       --  N_Return_Statement represents a simple_return_statement, and is
4426       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4427       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4428       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4429       --  as Make_Simple_Return_Statement in Sem_Util.
4430
4431       --  Note: Return_Statement_Entity points to an E_Return_Statement
4432
4433       --  If a range check is required, then Do_Range_Check is set on the
4434       --  Expression. The check is against the return subtype of the function.
4435
4436       --  N_Extended_Return_Statement
4437       --  Sloc points to RETURN
4438       --  Return_Statement_Entity (Node5-Sem)
4439       --  Return_Object_Declarations (List3)
4440       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4441       --  Storage_Pool (Node1-Sem)
4442       --  Procedure_To_Call (Node2-Sem)
4443       --  Do_Tag_Check (Flag13-Sem)
4444       --  By_Ref (Flag5-Sem)
4445
4446       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4447       --  Note that Return_Object_Declarations is a list containing the
4448       --  N_Object_Declaration -- see comment on this field above.
4449       --  The declared object will have Is_Return_Object = True.
4450       --  There is no such syntactic category as return_object_declaration
4451       --  in the RM. Return_Object_Declarations represents this portion of
4452       --  the syntax for EXTENDED_RETURN_STATEMENT:
4453       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4454       --                                      [:= EXPRESSION]
4455
4456       --  There are two entities associated with an extended_return_statement:
4457       --  the Return_Statement_Entity represents the statement itself, and the
4458       --  Defining_Identifier of the Object_Declaration in
4459       --  Return_Object_Declarations represents the object being
4460       --  returned. N_Simple_Return_Statement has only the former.
4461
4462       ------------------------------
4463       -- 7.1  Package Declaration --
4464       ------------------------------
4465
4466       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4467
4468       --  Note: the activation chain entity for a package spec is used for
4469       --  all tasks declared in the package spec, or in the package body.
4470
4471       --  N_Package_Declaration
4472       --  Sloc points to PACKAGE
4473       --  Specification (Node1)
4474       --  Corresponding_Body (Node5-Sem)
4475       --  Parent_Spec (Node4-Sem)
4476       --  Activation_Chain_Entity (Node3-Sem)
4477
4478       --------------------------------
4479       -- 7.1  Package Specification --
4480       --------------------------------
4481
4482       --  PACKAGE_SPECIFICATION ::=
4483       --    package DEFINING_PROGRAM_UNIT_NAME is
4484       --      {BASIC_DECLARATIVE_ITEM}
4485       --    [private
4486       --      {BASIC_DECLARATIVE_ITEM}]
4487       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4488
4489       --  N_Package_Specification
4490       --  Sloc points to PACKAGE
4491       --  Defining_Unit_Name (Node1)
4492       --  Visible_Declarations (List2)
4493       --  Private_Declarations (List3) (set to No_List if no private
4494       --   part present)
4495       --  End_Label (Node4)
4496       --  Generic_Parent (Node5-Sem)
4497       --  Limited_View_Installed (Flag18-Sem)
4498
4499       -----------------------
4500       -- 7.1  Package Body --
4501       -----------------------
4502
4503       --  PACKAGE_BODY ::=
4504       --    package body DEFINING_PROGRAM_UNIT_NAME is
4505       --      DECLARATIVE_PART
4506       --    [begin
4507       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4508       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4509
4510       --  N_Package_Body
4511       --  Sloc points to PACKAGE
4512       --  Defining_Unit_Name (Node1)
4513       --  Declarations (List2)
4514       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4515       --  Corresponding_Spec (Node5-Sem)
4516       --  Was_Originally_Stub (Flag13-Sem)
4517
4518       --  Note: if a source level package does not contain a handled sequence
4519       --  of statements, then the parser supplies a dummy one with a null
4520       --  sequence of statements. Comes_From_Source will be False in this
4521       --  constructed sequence. The reason we need this is for the End_Label
4522       --  field in the HSS.
4523
4524       -----------------------------------
4525       -- 7.4  Private Type Declaration --
4526       -----------------------------------
4527
4528       --  PRIVATE_TYPE_DECLARATION ::=
4529       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4530       --      is [[abstract] tagged] [limited] private;
4531
4532       --  Note: TAGGED is not permitted in Ada 83 mode
4533
4534       --  N_Private_Type_Declaration
4535       --  Sloc points to TYPE
4536       --  Defining_Identifier (Node1)
4537       --  Discriminant_Specifications (List4) (set to No_List if no
4538       --   discriminant part)
4539       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4540       --  Abstract_Present (Flag4)
4541       --  Tagged_Present (Flag15)
4542       --  Limited_Present (Flag17)
4543
4544       ----------------------------------------
4545       -- 7.4  Private Extension Declaration --
4546       ----------------------------------------
4547
4548       --  PRIVATE_EXTENSION_DECLARATION ::=
4549       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4550       --      [abstract] [limited | synchronized]
4551       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4552       --           with private;
4553
4554       --  Note: LIMITED, and private extension declarations are not allowed
4555       --        in Ada 83 mode.
4556
4557       --  N_Private_Extension_Declaration
4558       --  Sloc points to TYPE
4559       --  Defining_Identifier (Node1)
4560       --  Discriminant_Specifications (List4) (set to No_List if no
4561       --   discriminant part)
4562       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4563       --  Abstract_Present (Flag4)
4564       --  Limited_Present (Flag17)
4565       --  Synchronized_Present (Flag7)
4566       --  Subtype_Indication (Node5)
4567       --  Interface_List (List2) (set to No_List if none)
4568
4569       ---------------------
4570       -- 8.4  Use Clause --
4571       ---------------------
4572
4573       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4574
4575       -----------------------------
4576       -- 8.4  Use Package Clause --
4577       -----------------------------
4578
4579       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4580
4581       --  N_Use_Package_Clause
4582       --  Sloc points to USE
4583       --  Names (List2)
4584       --  Next_Use_Clause (Node3-Sem)
4585       --  Hidden_By_Use_Clause (Elist4-Sem)
4586
4587       --------------------------
4588       -- 8.4  Use Type Clause --
4589       --------------------------
4590
4591       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4592
4593       --  Note: use type clause is not permitted in Ada 83 mode
4594
4595       --  N_Use_Type_Clause
4596       --  Sloc points to USE
4597       --  Subtype_Marks (List2)
4598       --  Next_Use_Clause (Node3-Sem)
4599       --  Hidden_By_Use_Clause (Elist4-Sem)
4600
4601       -------------------------------
4602       -- 8.5  Renaming Declaration --
4603       -------------------------------
4604
4605       --  RENAMING_DECLARATION ::=
4606       --    OBJECT_RENAMING_DECLARATION
4607       --  | EXCEPTION_RENAMING_DECLARATION
4608       --  | PACKAGE_RENAMING_DECLARATION
4609       --  | SUBPROGRAM_RENAMING_DECLARATION
4610       --  | GENERIC_RENAMING_DECLARATION
4611
4612       --------------------------------------
4613       -- 8.5  Object Renaming Declaration --
4614       --------------------------------------
4615
4616       --  OBJECT_RENAMING_DECLARATION ::=
4617       --    DEFINING_IDENTIFIER :
4618       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4619       --  | DEFINING_IDENTIFIER :
4620       --      ACCESS_DEFINITION renames object_NAME;
4621
4622       --  Note: Access_Definition is an optional field that gives support to
4623       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4624       --  Subtype_Indication field or else the Access_Definition field.
4625
4626       --  N_Object_Renaming_Declaration
4627       --  Sloc points to first identifier
4628       --  Defining_Identifier (Node1)
4629       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4630       --  Subtype_Mark (Node4) (set to Empty if not present)
4631       --  Access_Definition (Node3) (set to Empty if not present)
4632       --  Name (Node2)
4633       --  Corresponding_Generic_Association (Node5-Sem)
4634
4635       -----------------------------------------
4636       -- 8.5  Exception Renaming Declaration --
4637       -----------------------------------------
4638
4639       --  EXCEPTION_RENAMING_DECLARATION ::=
4640       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4641
4642       --  N_Exception_Renaming_Declaration
4643       --  Sloc points to first identifier
4644       --  Defining_Identifier (Node1)
4645       --  Name (Node2)
4646
4647       ---------------------------------------
4648       -- 8.5  Package Renaming Declaration --
4649       ---------------------------------------
4650
4651       --  PACKAGE_RENAMING_DECLARATION ::=
4652       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4653
4654       --  N_Package_Renaming_Declaration
4655       --  Sloc points to PACKAGE
4656       --  Defining_Unit_Name (Node1)
4657       --  Name (Node2)
4658       --  Parent_Spec (Node4-Sem)
4659
4660       ------------------------------------------
4661       -- 8.5  Subprogram Renaming Declaration --
4662       ------------------------------------------
4663
4664       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4665       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4666
4667       --  N_Subprogram_Renaming_Declaration
4668       --  Sloc points to RENAMES
4669       --  Specification (Node1)
4670       --  Name (Node2)
4671       --  Parent_Spec (Node4-Sem)
4672       --  Corresponding_Spec (Node5-Sem)
4673       --  Corresponding_Formal_Spec (Node3-Sem)
4674       --  From_Default (Flag6-Sem)
4675
4676       -----------------------------------------
4677       -- 8.5.5  Generic Renaming Declaration --
4678       -----------------------------------------
4679
4680       --  GENERIC_RENAMING_DECLARATION ::=
4681       --    generic package DEFINING_PROGRAM_UNIT_NAME
4682       --      renames generic_package_NAME
4683       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4684       --      renames generic_procedure_NAME
4685       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4686       --      renames generic_function_NAME
4687
4688       --  N_Generic_Package_Renaming_Declaration
4689       --  Sloc points to GENERIC
4690       --  Defining_Unit_Name (Node1)
4691       --  Name (Node2)
4692       --  Parent_Spec (Node4-Sem)
4693
4694       --  N_Generic_Procedure_Renaming_Declaration
4695       --  Sloc points to GENERIC
4696       --  Defining_Unit_Name (Node1)
4697       --  Name (Node2)
4698       --  Parent_Spec (Node4-Sem)
4699
4700       --  N_Generic_Function_Renaming_Declaration
4701       --  Sloc points to GENERIC
4702       --  Defining_Unit_Name (Node1)
4703       --  Name (Node2)
4704       --  Parent_Spec (Node4-Sem)
4705
4706       --------------------------------
4707       -- 9.1  Task Type Declaration --
4708       --------------------------------
4709
4710       --  TASK_TYPE_DECLARATION ::=
4711       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4712       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4713
4714       --  N_Task_Type_Declaration
4715       --  Sloc points to TASK
4716       --  Defining_Identifier (Node1)
4717       --  Discriminant_Specifications (List4) (set to No_List if no
4718       --   discriminant part)
4719       --  Interface_List (List2) (set to No_List if none)
4720       --  Task_Definition (Node3) (set to Empty if not present)
4721       --  Corresponding_Body (Node5-Sem)
4722
4723       ----------------------------------
4724       -- 9.1  Single Task Declaration --
4725       ----------------------------------
4726
4727       --  SINGLE_TASK_DECLARATION ::=
4728       --    task DEFINING_IDENTIFIER
4729       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4730
4731       --  N_Single_Task_Declaration
4732       --  Sloc points to TASK
4733       --  Defining_Identifier (Node1)
4734       --  Interface_List (List2) (set to No_List if none)
4735       --  Task_Definition (Node3) (set to Empty if not present)
4736
4737       --------------------------
4738       -- 9.1  Task Definition --
4739       --------------------------
4740
4741       --  TASK_DEFINITION ::=
4742       --      {TASK_ITEM}
4743       --    [private
4744       --      {TASK_ITEM}]
4745       --    end [task_IDENTIFIER]
4746
4747       --  Note: as a result of semantic analysis, the list of task items can
4748       --  include implicit type declarations resulting from entry families.
4749
4750       --  N_Task_Definition
4751       --  Sloc points to first token of task definition
4752       --  Visible_Declarations (List2)
4753       --  Private_Declarations (List3) (set to No_List if no private part)
4754       --  End_Label (Node4)
4755       --  Has_Priority_Pragma (Flag6-Sem)
4756       --  Has_Storage_Size_Pragma (Flag5-Sem)
4757       --  Has_Task_Info_Pragma (Flag7-Sem)
4758       --  Has_Task_Name_Pragma (Flag8-Sem)
4759       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4760
4761       --------------------
4762       -- 9.1  Task Item --
4763       --------------------
4764
4765       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4766
4767       --------------------
4768       -- 9.1  Task Body --
4769       --------------------
4770
4771       --  TASK_BODY ::=
4772       --    task body task_DEFINING_IDENTIFIER is
4773       --      DECLARATIVE_PART
4774       --    begin
4775       --      HANDLED_SEQUENCE_OF_STATEMENTS
4776       --    end [task_IDENTIFIER];
4777
4778       --  Gigi restriction: This node never appears
4779
4780       --  N_Task_Body
4781       --  Sloc points to TASK
4782       --  Defining_Identifier (Node1)
4783       --  Declarations (List2)
4784       --  Handled_Statement_Sequence (Node4)
4785       --  Is_Task_Master (Flag5-Sem)
4786       --  Activation_Chain_Entity (Node3-Sem)
4787       --  Corresponding_Spec (Node5-Sem)
4788       --  Was_Originally_Stub (Flag13-Sem)
4789
4790       -------------------------------------
4791       -- 9.4  Protected Type Declaration --
4792       -------------------------------------
4793
4794       --  PROTECTED_TYPE_DECLARATION ::=
4795       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4796       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4797
4798       --  Note: protected type declarations are not permitted in Ada 83 mode
4799
4800       --  N_Protected_Type_Declaration
4801       --  Sloc points to PROTECTED
4802       --  Defining_Identifier (Node1)
4803       --  Discriminant_Specifications (List4) (set to No_List if no
4804       --   discriminant part)
4805       --  Interface_List (List2) (set to No_List if none)
4806       --  Protected_Definition (Node3)
4807       --  Corresponding_Body (Node5-Sem)
4808
4809       ---------------------------------------
4810       -- 9.4  Single Protected Declaration --
4811       ---------------------------------------
4812
4813       --  SINGLE_PROTECTED_DECLARATION ::=
4814       --    protected DEFINING_IDENTIFIER
4815       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4816
4817       --  Note: single protected declarations are not allowed in Ada 83 mode
4818
4819       --  N_Single_Protected_Declaration
4820       --  Sloc points to PROTECTED
4821       --  Defining_Identifier (Node1)
4822       --  Interface_List (List2) (set to No_List if none)
4823       --  Protected_Definition (Node3)
4824
4825       -------------------------------
4826       -- 9.4  Protected Definition --
4827       -------------------------------
4828
4829       --  PROTECTED_DEFINITION ::=
4830       --      {PROTECTED_OPERATION_DECLARATION}
4831       --    [private
4832       --      {PROTECTED_ELEMENT_DECLARATION}]
4833       --    end [protected_IDENTIFIER]
4834
4835       --  N_Protected_Definition
4836       --  Sloc points to first token of protected definition
4837       --  Visible_Declarations (List2)
4838       --  Private_Declarations (List3) (set to No_List if no private part)
4839       --  End_Label (Node4)
4840       --  Has_Priority_Pragma (Flag6-Sem)
4841
4842       ------------------------------------------
4843       -- 9.4  Protected Operation Declaration --
4844       ------------------------------------------
4845
4846       --  PROTECTED_OPERATION_DECLARATION ::=
4847       --    SUBPROGRAM_DECLARATION
4848       --  | ENTRY_DECLARATION
4849       --  | REPRESENTATION_CLAUSE
4850
4851       ----------------------------------------
4852       -- 9.4  Protected Element Declaration --
4853       ----------------------------------------
4854
4855       --  PROTECTED_ELEMENT_DECLARATION ::=
4856       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4857
4858       -------------------------
4859       -- 9.4  Protected Body --
4860       -------------------------
4861
4862       --  PROTECTED_BODY ::=
4863       --    protected body DEFINING_IDENTIFIER is
4864       --      {PROTECTED_OPERATION_ITEM}
4865       --    end [protected_IDENTIFIER];
4866
4867       --  Note: protected bodies are not allowed in Ada 83 mode
4868
4869       --  Gigi restriction: This node never appears
4870
4871       --  N_Protected_Body
4872       --  Sloc points to PROTECTED
4873       --  Defining_Identifier (Node1)
4874       --  Declarations (List2) protected operation items (and pragmas)
4875       --  End_Label (Node4)
4876       --  Corresponding_Spec (Node5-Sem)
4877       --  Was_Originally_Stub (Flag13-Sem)
4878
4879       -----------------------------------
4880       -- 9.4  Protected Operation Item --
4881       -----------------------------------
4882
4883       --  PROTECTED_OPERATION_ITEM ::=
4884       --    SUBPROGRAM_DECLARATION
4885       --  | SUBPROGRAM_BODY
4886       --  | ENTRY_BODY
4887       --  | REPRESENTATION_CLAUSE
4888
4889       ------------------------------
4890       -- 9.5.2  Entry Declaration --
4891       ------------------------------
4892
4893       --  ENTRY_DECLARATION ::=
4894       --    [[not] overriding]
4895       --    entry DEFINING_IDENTIFIER
4896       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4897
4898       --  N_Entry_Declaration
4899       --  Sloc points to ENTRY
4900       --  Defining_Identifier (Node1)
4901       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4902       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4903       --  Corresponding_Body (Node5-Sem)
4904       --  Must_Override (Flag14) set if overriding indicator present
4905       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4906
4907       --  Note: overriding indicator is an Ada 2005 feature
4908
4909       -----------------------------
4910       -- 9.5.2  Accept statement --
4911       -----------------------------
4912
4913       --  ACCEPT_STATEMENT ::=
4914       --    accept entry_DIRECT_NAME
4915       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4916       --        HANDLED_SEQUENCE_OF_STATEMENTS
4917       --    end [entry_IDENTIFIER]];
4918
4919       --  Gigi restriction: This node never appears
4920
4921       --  Note: there are no explicit declarations allowed in an accept
4922       --  statement. However, the implicit declarations for any statement
4923       --  identifiers (labels and block/loop identifiers) are declarations
4924       --  that belong logically to the accept statement, and that is why
4925       --  there is a Declarations field in this node.
4926
4927       --  N_Accept_Statement
4928       --  Sloc points to ACCEPT
4929       --  Entry_Direct_Name (Node1)
4930       --  Entry_Index (Node5) (set to Empty if not present)
4931       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4932       --  Handled_Statement_Sequence (Node4)
4933       --  Declarations (List2) (set to No_List if no declarations)
4934
4935       ------------------------
4936       -- 9.5.2  Entry Index --
4937       ------------------------
4938
4939       --  ENTRY_INDEX ::= EXPRESSION
4940
4941       -----------------------
4942       -- 9.5.2  Entry Body --
4943       -----------------------
4944
4945       --  ENTRY_BODY ::=
4946       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4947       --      DECLARATIVE_PART
4948       --    begin
4949       --      HANDLED_SEQUENCE_OF_STATEMENTS
4950       --    end [entry_IDENTIFIER];
4951
4952       --  ENTRY_BARRIER ::= when CONDITION
4953
4954       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4955       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4956       --  too full (it would otherwise have too many fields)
4957
4958       --  Gigi restriction: This node never appears
4959
4960       --  N_Entry_Body
4961       --  Sloc points to ENTRY
4962       --  Defining_Identifier (Node1)
4963       --  Entry_Body_Formal_Part (Node5)
4964       --  Declarations (List2)
4965       --  Handled_Statement_Sequence (Node4)
4966       --  Activation_Chain_Entity (Node3-Sem)
4967
4968       -----------------------------------
4969       -- 9.5.2  Entry Body Formal Part --
4970       -----------------------------------
4971
4972       --  ENTRY_BODY_FORMAL_PART ::=
4973       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4974
4975       --  Note that an entry body formal part node is present even if it is
4976       --  empty. This reflects the grammar, in which it is the components of
4977       --  the entry body formal part that are optional, not the entry body
4978       --  formal part itself. Also this means that the barrier condition
4979       --  always has somewhere to be stored.
4980
4981       --  Gigi restriction: This node never appears
4982
4983       --  N_Entry_Body_Formal_Part
4984       --  Sloc points to first token
4985       --  Entry_Index_Specification (Node4) (set to Empty if not present)
4986       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4987       --  Condition (Node1) from entry barrier of entry body
4988
4989       --------------------------
4990       -- 9.5.2  Entry Barrier --
4991       --------------------------
4992
4993       --  ENTRY_BARRIER ::= when CONDITION
4994
4995       --------------------------------------
4996       -- 9.5.2  Entry Index Specification --
4997       --------------------------------------
4998
4999       --  ENTRY_INDEX_SPECIFICATION ::=
5000       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5001
5002       --  Gigi restriction: This node never appears
5003
5004       --  N_Entry_Index_Specification
5005       --  Sloc points to FOR
5006       --  Defining_Identifier (Node1)
5007       --  Discrete_Subtype_Definition (Node4)
5008
5009       ---------------------------------
5010       -- 9.5.3  Entry Call Statement --
5011       ---------------------------------
5012
5013       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5014
5015       --  The parser may generate a procedure call for this construct. The
5016       --  semantic pass must correct this misidentification where needed.
5017
5018       --  Gigi restriction: This node never appears
5019
5020       --  N_Entry_Call_Statement
5021       --  Sloc points to first token of name
5022       --  Name (Node2)
5023       --  Parameter_Associations (List3) (set to No_List if no
5024       --   actual parameter part)
5025       --  First_Named_Actual (Node4-Sem)
5026
5027       ------------------------------
5028       -- 9.5.4  Requeue Statement --
5029       ------------------------------
5030
5031       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5032
5033       --  Note: requeue statements are not permitted in Ada 83 mode
5034
5035       --  Gigi restriction: This node never appears
5036
5037       --  N_Requeue_Statement
5038       --  Sloc points to REQUEUE
5039       --  Name (Node2)
5040       --  Abort_Present (Flag15)
5041
5042       --------------------------
5043       -- 9.6  Delay Statement --
5044       --------------------------
5045
5046       --  DELAY_STATEMENT ::=
5047       --    DELAY_UNTIL_STATEMENT
5048       --  | DELAY_RELATIVE_STATEMENT
5049
5050       --------------------------------
5051       -- 9.6  Delay Until Statement --
5052       --------------------------------
5053
5054       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5055
5056       --  Note: delay until statements are not permitted in Ada 83 mode
5057
5058       --  Gigi restriction: This node never appears
5059
5060       --  N_Delay_Until_Statement
5061       --  Sloc points to DELAY
5062       --  Expression (Node3)
5063
5064       -----------------------------------
5065       -- 9.6  Delay Relative Statement --
5066       -----------------------------------
5067
5068       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5069
5070       --  Gigi restriction: This node never appears
5071
5072       --  N_Delay_Relative_Statement
5073       --  Sloc points to DELAY
5074       --  Expression (Node3)
5075
5076       ---------------------------
5077       -- 9.7  Select Statement --
5078       ---------------------------
5079
5080       --  SELECT_STATEMENT ::=
5081       --    SELECTIVE_ACCEPT
5082       --  | TIMED_ENTRY_CALL
5083       --  | CONDITIONAL_ENTRY_CALL
5084       --  | ASYNCHRONOUS_SELECT
5085
5086       -----------------------------
5087       -- 9.7.1  Selective Accept --
5088       -----------------------------
5089
5090       --  SELECTIVE_ACCEPT ::=
5091       --    select
5092       --      [GUARD]
5093       --        SELECT_ALTERNATIVE
5094       --    {or
5095       --      [GUARD]
5096       --        SELECT_ALTERNATIVE}
5097       --    [else
5098       --      SEQUENCE_OF_STATEMENTS]
5099       --    end select;
5100
5101       --  Gigi restriction: This node never appears
5102
5103       --  Note: the guard expression, if present, appears in the node for
5104       --  the select alternative.
5105
5106       --  N_Selective_Accept
5107       --  Sloc points to SELECT
5108       --  Select_Alternatives (List1)
5109       --  Else_Statements (List4) (set to No_List if no else part)
5110
5111       ------------------
5112       -- 9.7.1  Guard --
5113       ------------------
5114
5115       --  GUARD ::= when CONDITION =>
5116
5117       --  As noted above, the CONDITION that is part of a GUARD is included
5118       --  in the node for the select alternative for convenience.
5119
5120       -------------------------------
5121       -- 9.7.1  Select Alternative --
5122       -------------------------------
5123
5124       --  SELECT_ALTERNATIVE ::=
5125       --    ACCEPT_ALTERNATIVE
5126       --  | DELAY_ALTERNATIVE
5127       --  | TERMINATE_ALTERNATIVE
5128
5129       -------------------------------
5130       -- 9.7.1  Accept Alternative --
5131       -------------------------------
5132
5133       --  ACCEPT_ALTERNATIVE ::=
5134       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5135
5136       --  Gigi restriction: This node never appears
5137
5138       --  N_Accept_Alternative
5139       --  Sloc points to ACCEPT
5140       --  Accept_Statement (Node2)
5141       --  Condition (Node1) from the guard (set to Empty if no guard present)
5142       --  Statements (List3) (set to Empty_List if no statements)
5143       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5144       --  Accept_Handler_Records (List5-Sem)
5145
5146       ------------------------------
5147       -- 9.7.1  Delay Alternative --
5148       ------------------------------
5149
5150       --  DELAY_ALTERNATIVE ::=
5151       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5152
5153       --  Gigi restriction: This node never appears
5154
5155       --  N_Delay_Alternative
5156       --  Sloc points to DELAY
5157       --  Delay_Statement (Node2)
5158       --  Condition (Node1) from the guard (set to Empty if no guard present)
5159       --  Statements (List3) (set to Empty_List if no statements)
5160       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5161
5162       ----------------------------------
5163       -- 9.7.1  Terminate Alternative --
5164       ----------------------------------
5165
5166       --  TERMINATE_ALTERNATIVE ::= terminate;
5167
5168       --  Gigi restriction: This node never appears
5169
5170       --  N_Terminate_Alternative
5171       --  Sloc points to TERMINATE
5172       --  Condition (Node1) from the guard (set to Empty if no guard present)
5173       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5174       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5175
5176       -----------------------------
5177       -- 9.7.2  Timed Entry Call --
5178       -----------------------------
5179
5180       --  TIMED_ENTRY_CALL ::=
5181       --    select
5182       --      ENTRY_CALL_ALTERNATIVE
5183       --    or
5184       --      DELAY_ALTERNATIVE
5185       --    end select;
5186
5187       --  Gigi restriction: This node never appears
5188
5189       --  N_Timed_Entry_Call
5190       --  Sloc points to SELECT
5191       --  Entry_Call_Alternative (Node1)
5192       --  Delay_Alternative (Node4)
5193
5194       -----------------------------------
5195       -- 9.7.2  Entry Call Alternative --
5196       -----------------------------------
5197
5198       --  ENTRY_CALL_ALTERNATIVE ::=
5199       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5200
5201       --  PROCEDURE_OR_ENTRY_CALL ::=
5202       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5203
5204       --  Gigi restriction: This node never appears
5205
5206       --  N_Entry_Call_Alternative
5207       --  Sloc points to first token of entry call statement
5208       --  Entry_Call_Statement (Node1)
5209       --  Statements (List3) (set to Empty_List if no statements)
5210       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5211
5212       -----------------------------------
5213       -- 9.7.3  Conditional Entry Call --
5214       -----------------------------------
5215
5216       --  CONDITIONAL_ENTRY_CALL ::=
5217       --    select
5218       --      ENTRY_CALL_ALTERNATIVE
5219       --    else
5220       --      SEQUENCE_OF_STATEMENTS
5221       --    end select;
5222
5223       --  Gigi restriction: This node never appears
5224
5225       --  N_Conditional_Entry_Call
5226       --  Sloc points to SELECT
5227       --  Entry_Call_Alternative (Node1)
5228       --  Else_Statements (List4)
5229
5230       --------------------------------
5231       -- 9.7.4  Asynchronous Select --
5232       --------------------------------
5233
5234       --  ASYNCHRONOUS_SELECT ::=
5235       --    select
5236       --      TRIGGERING_ALTERNATIVE
5237       --    then abort
5238       --      ABORTABLE_PART
5239       --    end select;
5240
5241       --  Note: asynchronous select is not permitted in Ada 83 mode
5242
5243       --  Gigi restriction: This node never appears
5244
5245       --  N_Asynchronous_Select
5246       --  Sloc points to SELECT
5247       --  Triggering_Alternative (Node1)
5248       --  Abortable_Part (Node2)
5249
5250       -----------------------------------
5251       -- 9.7.4  Triggering Alternative --
5252       -----------------------------------
5253
5254       --  TRIGGERING_ALTERNATIVE ::=
5255       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5256
5257       --  Gigi restriction: This node never appears
5258
5259       --  N_Triggering_Alternative
5260       --  Sloc points to first token of triggering statement
5261       --  Triggering_Statement (Node1)
5262       --  Statements (List3) (set to Empty_List if no statements)
5263       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5264
5265       ---------------------------------
5266       -- 9.7.4  Triggering Statement --
5267       ---------------------------------
5268
5269       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5270
5271       ---------------------------
5272       -- 9.7.4  Abortable Part --
5273       ---------------------------
5274
5275       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5276
5277       --  Gigi restriction: This node never appears
5278
5279       --  N_Abortable_Part
5280       --  Sloc points to ABORT
5281       --  Statements (List3)
5282
5283       --------------------------
5284       -- 9.8  Abort Statement --
5285       --------------------------
5286
5287       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5288
5289       --  Gigi restriction: This node never appears
5290
5291       --  N_Abort_Statement
5292       --  Sloc points to ABORT
5293       --  Names (List2)
5294
5295       -------------------------
5296       -- 10.1.1  Compilation --
5297       -------------------------
5298
5299       --  COMPILATION ::= {COMPILATION_UNIT}
5300
5301       --  There is no explicit node in the tree for a compilation, since in
5302       --  general the compiler is processing only a single compilation unit
5303       --  at a time. It is possible to parse multiple units in syntax check
5304       --  only mode, but they the trees are discarded in any case.
5305
5306       ------------------------------
5307       -- 10.1.1  Compilation Unit --
5308       ------------------------------
5309
5310       --  COMPILATION_UNIT ::=
5311       --    CONTEXT_CLAUSE LIBRARY_ITEM
5312       --  | CONTEXT_CLAUSE SUBUNIT
5313
5314       --  The N_Compilation_Unit node itself represents the above syntax.
5315       --  However, there are two additional items not reflected in the above
5316       --  syntax. First we have the global declarations that are added by the
5317       --  code generator. These are outer level declarations (so they cannot
5318       --  be represented as being inside the units). An example is the wrapper
5319       --  subprograms that are created to do ABE checking. As always a list of
5320       --  declarations can contain actions as well (i.e. statements), and such
5321       --  statements are executed as part of the elaboration of the unit. Note
5322       --  that all such declarations are elaborated before the library unit.
5323
5324       --  Similarly, certain actions need to be elaborated at the completion
5325       --  of elaboration of the library unit (notably the statement that sets
5326       --  the Boolean flag indicating that elaboration is complete).
5327
5328       --  The third item not reflected in the syntax is pragmas that appear
5329       --  after the compilation unit. As always pragmas are a problem since
5330       --  they are not part of the formal syntax, but can be stuck into the
5331       --  source following a set of ad hoc rules, and we have to find an ad
5332       --  hoc way of sticking them into the tree. For pragmas that appear
5333       --  before the library unit, we just consider them to be part of the
5334       --  context clause, and pragmas can appear in the Context_Items list
5335       --  of the compilation unit. However, pragmas can also appear after
5336       --  the library item.
5337
5338       --  To deal with all these problems, we create an auxiliary node for
5339       --  a compilation unit, referenced from the N_Compilation_Unit node
5340       --  that contains these three items.
5341
5342       --  N_Compilation_Unit
5343       --  Sloc points to first token of defining unit name
5344       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5345       --  Context_Items (List1) context items and pragmas preceding unit
5346       --  Private_Present (Flag15) set if library unit has private keyword
5347       --  Unit (Node2) library item or subunit
5348       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5349       --  Has_No_Elaboration_Code (Flag17-Sem)
5350       --  Body_Required (Flag13-Sem) set for spec if body is required
5351       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5352       --  First_Inlined_Subprogram (Node3-Sem)
5353
5354       --  N_Compilation_Unit_Aux
5355       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5356       --  Declarations (List2) (set to No_List if no global declarations)
5357       --  Actions (List1) (set to No_List if no actions)
5358       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5359       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5360
5361       --------------------------
5362       -- 10.1.1  Library Item --
5363       --------------------------
5364
5365       --  LIBRARY_ITEM ::=
5366       --    [private] LIBRARY_UNIT_DECLARATION
5367       --  | LIBRARY_UNIT_BODY
5368       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5369
5370       --  Note: PRIVATE is not allowed in Ada 83 mode
5371
5372       --  There is no explicit node in the tree for library item, instead
5373       --  the declaration or body, and the flag for private if present,
5374       --  appear in the N_Compilation_Unit clause.
5375
5376       --------------------------------------
5377       -- 10.1.1  Library Unit Declaration --
5378       --------------------------------------
5379
5380       --  LIBRARY_UNIT_DECLARATION ::=
5381       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5382       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5383
5384       -----------------------------------------------
5385       -- 10.1.1  Library Unit Renaming Declaration --
5386       -----------------------------------------------
5387
5388       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5389       --    PACKAGE_RENAMING_DECLARATION
5390       --  | GENERIC_RENAMING_DECLARATION
5391       --  | SUBPROGRAM_RENAMING_DECLARATION
5392
5393       -------------------------------
5394       -- 10.1.1  Library unit body --
5395       -------------------------------
5396
5397       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5398
5399       ------------------------------
5400       -- 10.1.1  Parent Unit Name --
5401       ------------------------------
5402
5403       --  PARENT_UNIT_NAME ::= NAME
5404
5405       ----------------------------
5406       -- 10.1.2  Context clause --
5407       ----------------------------
5408
5409       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5410
5411       --  The context clause can include pragmas, and any pragmas that appear
5412       --  before the context clause proper (i.e. all configuration pragmas,
5413       --  also appear at the front of this list).
5414
5415       --------------------------
5416       -- 10.1.2  Context_Item --
5417       --------------------------
5418
5419       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5420
5421       -------------------------
5422       -- 10.1.2  With clause --
5423       -------------------------
5424
5425       --  WITH_CLAUSE ::=
5426       --    with library_unit_NAME {,library_unit_NAME};
5427
5428       --  A separate With clause is built for each name, so that we have
5429       --  a Corresponding_Spec field for each with'ed spec. The flags
5430       --  First_Name and Last_Name are used to reconstruct the exact
5431       --  source form. When a list of names appears in one with clause,
5432       --  the first name in the list has First_Name set, and the last
5433       --  has Last_Name set. If the with clause has only one name, then
5434       --  both of the flags First_Name and Last_Name are set in this name.
5435
5436       --  Note: in the case of implicit with's that are installed by the
5437       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5438       --  set to Standard_Location, but it is incorrect to test the Sloc
5439       --  to find out if a with clause is implicit, test the flag instead.
5440
5441       --  N_With_Clause
5442       --  Sloc points to first token of library unit name
5443       --  Name (Node2)
5444       --  Library_Unit (Node4-Sem)
5445       --  Corresponding_Spec (Node5-Sem)
5446       --  First_Name (Flag5) (set to True if first name or only one name)
5447       --  Last_Name (Flag6) (set to True if last name or only one name)
5448       --  Context_Installed (Flag13-Sem)
5449       --  Elaborate_Present (Flag4-Sem)
5450       --  Elaborate_All_Present (Flag14-Sem)
5451       --  Elaborate_All_Desirable (Flag9-Sem)
5452       --  Elaborate_Desirable (Flag11-Sem)
5453       --  Private_Present (Flag15) set if with_clause has private keyword
5454       --  Implicit_With (Flag16-Sem)
5455       --  Limited_Present (Flag17)  set if LIMITED is present
5456       --  Limited_View_Installed (Flag18-Sem)
5457       --  Unreferenced_In_Spec (Flag7-Sem)
5458       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5459
5460       --  Note: Limited_Present and Limited_View_Installed give support to
5461       --        Ada 2005 (AI-50217).
5462       --  Similarly, Private_Present gives support to AI-50262.
5463
5464       ----------------------
5465       -- With_Type clause --
5466       ----------------------
5467
5468       --  This is a GNAT extension, used to implement mutually recursive
5469       --  types declared in different packages.
5470       --  Note: this is now obsolete. The functionality of this construct
5471       --  is now implemented by the Ada 2005 Limited_with_Clause.
5472
5473       ---------------------
5474       -- 10.2  Body stub --
5475       ---------------------
5476
5477       --  BODY_STUB ::=
5478       --    SUBPROGRAM_BODY_STUB
5479       --  | PACKAGE_BODY_STUB
5480       --  | TASK_BODY_STUB
5481       --  | PROTECTED_BODY_STUB
5482
5483       ----------------------------------
5484       -- 10.1.3  Subprogram Body Stub --
5485       ----------------------------------
5486
5487       --  SUBPROGRAM_BODY_STUB ::=
5488       --    SUBPROGRAM_SPECIFICATION is separate;
5489
5490       --  N_Subprogram_Body_Stub
5491       --  Sloc points to FUNCTION or PROCEDURE
5492       --  Specification (Node1)
5493       --  Library_Unit (Node4-Sem) points to the subunit
5494       --  Corresponding_Body (Node5-Sem)
5495
5496       -------------------------------
5497       -- 10.1.3  Package Body Stub --
5498       -------------------------------
5499
5500       --  PACKAGE_BODY_STUB ::=
5501       --    package body DEFINING_IDENTIFIER is separate;
5502
5503       --  N_Package_Body_Stub
5504       --  Sloc points to PACKAGE
5505       --  Defining_Identifier (Node1)
5506       --  Library_Unit (Node4-Sem) points to the subunit
5507       --  Corresponding_Body (Node5-Sem)
5508
5509       ----------------------------
5510       -- 10.1.3  Task Body Stub --
5511       ----------------------------
5512
5513       --  TASK_BODY_STUB ::=
5514       --    task body DEFINING_IDENTIFIER is separate;
5515
5516       --  N_Task_Body_Stub
5517       --  Sloc points to TASK
5518       --  Defining_Identifier (Node1)
5519       --  Library_Unit (Node4-Sem) points to the subunit
5520       --  Corresponding_Body (Node5-Sem)
5521
5522       ---------------------------------
5523       -- 10.1.3  Protected Body Stub --
5524       ---------------------------------
5525
5526       --  PROTECTED_BODY_STUB ::=
5527       --    protected body DEFINING_IDENTIFIER is separate;
5528
5529       --  Note: protected body stubs are not allowed in Ada 83 mode
5530
5531       --  N_Protected_Body_Stub
5532       --  Sloc points to PROTECTED
5533       --  Defining_Identifier (Node1)
5534       --  Library_Unit (Node4-Sem) points to the subunit
5535       --  Corresponding_Body (Node5-Sem)
5536
5537       ---------------------
5538       -- 10.1.3  Subunit --
5539       ---------------------
5540
5541       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5542
5543       --  N_Subunit
5544       --  Sloc points to SEPARATE
5545       --  Name (Node2) is the name of the parent unit
5546       --  Proper_Body (Node1) is the subunit body
5547       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5548
5549       ---------------------------------
5550       -- 11.1  Exception Declaration --
5551       ---------------------------------
5552
5553       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5554
5555       --  For consistency with object declarations etc., the parser converts
5556       --  the case of multiple identifiers being declared to a series of
5557       --  declarations in which the expression is copied, using the More_Ids
5558       --  and Prev_Ids flags to remember the source form as described in the
5559       --  section on "Handling of Defining Identifier Lists".
5560
5561       --  N_Exception_Declaration
5562       --  Sloc points to EXCEPTION
5563       --  Defining_Identifier (Node1)
5564       --  Expression (Node3-Sem)
5565       --  Renaming_Exception (Node2-Sem)
5566       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5567       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5568
5569       ------------------------------------------
5570       -- 11.2  Handled Sequence Of Statements --
5571       ------------------------------------------
5572
5573       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5574       --      SEQUENCE_OF_STATEMENTS
5575       --    [exception
5576       --      EXCEPTION_HANDLER
5577       --      {EXCEPTION_HANDLER}]
5578       --    [at end
5579       --      cleanup_procedure_call (param, param, param, ...);]
5580
5581       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5582       --  used only internally currently, but is considered to be syntactic.
5583       --  At the moment, the only cleanup action allowed is a single call to
5584       --  a parameterless procedure, and the Identifier field of the node is
5585       --  the procedure to be called. Also there is a current restriction
5586       --  that exception handles and a cleanup cannot be present in the same
5587       --  frame, so at least one of Exception_Handlers or the Identifier must
5588       --  be missing.
5589
5590       --  Actually, more accurately, this restriction applies to the original
5591       --  source program. In the expanded tree, if the At_End_Proc field is
5592       --  present, then there will also be an exception handler of the form:
5593
5594       --     when all others =>
5595       --        cleanup;
5596       --        raise;
5597
5598       --  where cleanup is the procedure to be generated. The reason we do
5599       --  this is so that the front end can handle the necessary entries in
5600       --  the exception tables, and other exception handler actions required
5601       --  as part of the normal handling for exception handlers.
5602
5603       --  The AT END cleanup handler protects only the sequence of statements
5604       --  (not the associated declarations of the parent), just like exception
5605       --  handlers. The big difference is that the cleanup procedure is called
5606       --  on either a normal or an abnormal exit from the statement sequence.
5607
5608       --  Note: the list of Exception_Handlers can contain pragmas as well
5609       --  as actual handlers. In practice these pragmas can only occur at
5610       --  the start of the list, since any pragmas occurring later on will
5611       --  be included in the statement list of the corresponding handler.
5612
5613       --  Note: although in the Ada syntax, the sequence of statements in
5614       --  a handled sequence of statements can only contain statements, we
5615       --  allow free mixing of declarations and statements in the resulting
5616       --  expanded tree. This is for example used to deal with the case of
5617       --  a cleanup procedure that must handle declarations as well as the
5618       --  statements of a block.
5619
5620       --  N_Handled_Sequence_Of_Statements
5621       --  Sloc points to first token of first statement
5622       --  Statements (List3)
5623       --  End_Label (Node4) (set to Empty if expander generated)
5624       --  Exception_Handlers (List5) (set to No_List if none present)
5625       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5626       --  First_Real_Statement (Node2-Sem)
5627       --  Zero_Cost_Handling (Flag5-Sem)
5628
5629       --  Note: the parent always contains a Declarations field which contains
5630       --  declarations associated with the handled sequence of statements. This
5631       --  is true even in the case of an accept statement (see description of
5632       --  the N_Accept_Statement node).
5633
5634       --  End_Label refers to the containing construct
5635
5636       -----------------------------
5637       -- 11.2  Exception Handler --
5638       -----------------------------
5639
5640       --  EXCEPTION_HANDLER ::=
5641       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5642       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5643       --        SEQUENCE_OF_STATEMENTS
5644
5645       --  Note: choice parameter specification is not allowed in Ada 83 mode
5646
5647       --  N_Exception_Handler
5648       --  Sloc points to WHEN
5649       --  Choice_Parameter (Node2) (set to Empty if not present)
5650       --  Exception_Choices (List4)
5651       --  Statements (List3)
5652       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5653       --  Zero_Cost_Handling (Flag5-Sem)
5654       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5655       --  Local_Raise_Not_OK (Flag7-Sem)
5656       --  Has_Local_Raise (Flag8-Sem)
5657
5658       ------------------------------------------
5659       -- 11.2  Choice parameter specification --
5660       ------------------------------------------
5661
5662       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5663
5664       ----------------------------
5665       -- 11.2  Exception Choice --
5666       ----------------------------
5667
5668       --  EXCEPTION_CHOICE ::= exception_NAME | others
5669
5670       --  Except in the case of OTHERS, no explicit node appears in the tree
5671       --  for exception choice. Instead the exception name appears directly.
5672       --  An OTHERS choice is represented by a N_Others_Choice node (see
5673       --  section 3.8.1.
5674
5675       --  Note: for the exception choice created for an at end handler, the
5676       --  exception choice is an N_Others_Choice node with All_Others set.
5677
5678       ---------------------------
5679       -- 11.3  Raise Statement --
5680       ---------------------------
5681
5682       --  RAISE_STATEMENT ::= raise [exception_NAME];
5683
5684       --  In Ada 2005, we have
5685
5686       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5687
5688       --  N_Raise_Statement
5689       --  Sloc points to RAISE
5690       --  Name (Node2) (set to Empty if no exception name present)
5691       --  Expression (Node3) (set to Empty if no expression present)
5692       --  From_At_End (Flag4-Sem)
5693
5694       -------------------------------
5695       -- 12.1  Generic Declaration --
5696       -------------------------------
5697
5698       --  GENERIC_DECLARATION ::=
5699       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5700
5701       ------------------------------------------
5702       -- 12.1  Generic Subprogram Declaration --
5703       ------------------------------------------
5704
5705       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5706       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5707
5708       --  Note: Generic_Formal_Declarations can include pragmas
5709
5710       --  N_Generic_Subprogram_Declaration
5711       --  Sloc points to GENERIC
5712       --  Specification (Node1) subprogram specification
5713       --  Corresponding_Body (Node5-Sem)
5714       --  Generic_Formal_Declarations (List2) from generic formal part
5715       --  Parent_Spec (Node4-Sem)
5716
5717       ---------------------------------------
5718       -- 12.1  Generic Package Declaration --
5719       ---------------------------------------
5720
5721       --  GENERIC_PACKAGE_DECLARATION ::=
5722       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5723
5724       --  Note: when we do generics right, the Activation_Chain_Entity entry
5725       --  for this node can be removed (since the expander won't see generic
5726       --  units any more)???.
5727
5728       --  Note: Generic_Formal_Declarations can include pragmas
5729
5730       --  N_Generic_Package_Declaration
5731       --  Sloc points to GENERIC
5732       --  Specification (Node1) package specification
5733       --  Corresponding_Body (Node5-Sem)
5734       --  Generic_Formal_Declarations (List2) from generic formal part
5735       --  Parent_Spec (Node4-Sem)
5736       --  Activation_Chain_Entity (Node3-Sem)
5737
5738       -------------------------------
5739       -- 12.1  Generic Formal Part --
5740       -------------------------------
5741
5742       --  GENERIC_FORMAL_PART ::=
5743       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5744
5745       ------------------------------------------------
5746       -- 12.1  Generic Formal Parameter Declaration --
5747       ------------------------------------------------
5748
5749       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5750       --    FORMAL_OBJECT_DECLARATION
5751       --  | FORMAL_TYPE_DECLARATION
5752       --  | FORMAL_SUBPROGRAM_DECLARATION
5753       --  | FORMAL_PACKAGE_DECLARATION
5754
5755       ---------------------------------
5756       -- 12.3  Generic Instantiation --
5757       ---------------------------------
5758
5759       --  GENERIC_INSTANTIATION ::=
5760       --    package DEFINING_PROGRAM_UNIT_NAME is
5761       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5762       --  | [[not] overriding]
5763       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5764       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5765       --  | [[not] overriding]
5766       --    function DEFINING_DESIGNATOR is
5767       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5768
5769       --  N_Package_Instantiation
5770       --  Sloc points to PACKAGE
5771       --  Defining_Unit_Name (Node1)
5772       --  Name (Node2)
5773       --  Generic_Associations (List3) (set to No_List if no
5774       --   generic actual part)
5775       --  Parent_Spec (Node4-Sem)
5776       --  Instance_Spec (Node5-Sem)
5777       --  ABE_Is_Certain (Flag18-Sem)
5778
5779       --  N_Procedure_Instantiation
5780       --  Sloc points to PROCEDURE
5781       --  Defining_Unit_Name (Node1)
5782       --  Name (Node2)
5783       --  Parent_Spec (Node4-Sem)
5784       --  Generic_Associations (List3) (set to No_List if no
5785       --   generic actual part)
5786       --  Instance_Spec (Node5-Sem)
5787       --  Must_Override (Flag14) set if overriding indicator present
5788       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5789       --  ABE_Is_Certain (Flag18-Sem)
5790
5791       --  N_Function_Instantiation
5792       --  Sloc points to FUNCTION
5793       --  Defining_Unit_Name (Node1)
5794       --  Name (Node2)
5795       --  Generic_Associations (List3) (set to No_List if no
5796       --   generic actual part)
5797       --  Parent_Spec (Node4-Sem)
5798       --  Instance_Spec (Node5-Sem)
5799       --  Must_Override (Flag14) set if overriding indicator present
5800       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5801       --  ABE_Is_Certain (Flag18-Sem)
5802
5803       --  Note: overriding indicator is an Ada 2005 feature
5804
5805       -------------------------------
5806       -- 12.3  Generic Actual Part --
5807       -------------------------------
5808
5809       --  GENERIC_ACTUAL_PART ::=
5810       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5811
5812       -------------------------------
5813       -- 12.3  Generic Association --
5814       -------------------------------
5815
5816       --  GENERIC_ASSOCIATION ::=
5817       --    [generic_formal_parameter_SELECTOR_NAME =>]
5818
5819       --  Note: unlike the procedure call case, a generic association node
5820       --  is generated for every association, even if no formal parameter
5821       --  selector name is present. In this case the parser will leave the
5822       --  Selector_Name field set to Empty, to be filled in later by the
5823       --  semantic pass.
5824
5825       --  In Ada 2005, a formal may be associated with a box, if the
5826       --  association is part of the list of actuals for a formal package.
5827       --  If the association is given by  OTHERS => <>, the association is
5828       --  an N_Others_Choice.
5829
5830       --  N_Generic_Association
5831       --  Sloc points to first token of generic association
5832       --  Selector_Name (Node2) (set to Empty if no formal
5833       --   parameter selector name)
5834       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5835       --  Box_Present (Flag15) (for formal_package associations with a box)
5836
5837       ---------------------------------------------
5838       -- 12.3  Explicit Generic Actual Parameter --
5839       ---------------------------------------------
5840
5841       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5842       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5843       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5844
5845       -------------------------------------
5846       -- 12.4  Formal Object Declaration --
5847       -------------------------------------
5848
5849       --  FORMAL_OBJECT_DECLARATION ::=
5850       --    DEFINING_IDENTIFIER_LIST :
5851       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5852       --  | DEFINING_IDENTIFIER_LIST :
5853       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5854
5855       --  Although the syntax allows multiple identifiers in the list, the
5856       --  semantics is as though successive declarations were given with
5857       --  identical type definition and expression components. To simplify
5858       --  semantic processing, the parser represents a multiple declaration
5859       --  case as a sequence of single declarations, using the More_Ids and
5860       --  Prev_Ids flags to preserve the original source form as described
5861       --  in the section on "Handling of Defining Identifier Lists".
5862
5863       --  N_Formal_Object_Declaration
5864       --  Sloc points to first identifier
5865       --  Defining_Identifier (Node1)
5866       --  In_Present (Flag15)
5867       --  Out_Present (Flag17)
5868       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5869       --  Subtype_Mark (Node4) (set to Empty if not present)
5870       --  Access_Definition (Node3) (set to Empty if not present)
5871       --  Default_Expression (Node5) (set to Empty if no default expression)
5872       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5873       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5874
5875       -----------------------------------
5876       -- 12.5  Formal Type Declaration --
5877       -----------------------------------
5878
5879       --  FORMAL_TYPE_DECLARATION ::=
5880       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5881       --      is FORMAL_TYPE_DEFINITION;
5882
5883       --  N_Formal_Type_Declaration
5884       --  Sloc points to TYPE
5885       --  Defining_Identifier (Node1)
5886       --  Formal_Type_Definition (Node3)
5887       --  Discriminant_Specifications (List4) (set to No_List if no
5888       --   discriminant part)
5889       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5890
5891       ----------------------------------
5892       -- 12.5  Formal type definition --
5893       ----------------------------------
5894
5895       --  FORMAL_TYPE_DEFINITION ::=
5896       --    FORMAL_PRIVATE_TYPE_DEFINITION
5897       --  | FORMAL_DERIVED_TYPE_DEFINITION
5898       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5899       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5900       --  | FORMAL_MODULAR_TYPE_DEFINITION
5901       --  | FORMAL_FLOATING_POINT_DEFINITION
5902       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5903       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5904       --  | FORMAL_ARRAY_TYPE_DEFINITION
5905       --  | FORMAL_ACCESS_TYPE_DEFINITION
5906       --  | FORMAL_INTERFACE_TYPE_DEFINITION
5907
5908       ---------------------------------------------
5909       -- 12.5.1  Formal Private Type Definition --
5910       ---------------------------------------------
5911
5912       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
5913       --    [[abstract] tagged] [limited] private
5914
5915       --  Note: TAGGED is not allowed in Ada 83 mode
5916
5917       --  N_Formal_Private_Type_Definition
5918       --  Sloc points to PRIVATE
5919       --  Abstract_Present (Flag4)
5920       --  Tagged_Present (Flag15)
5921       --  Limited_Present (Flag17)
5922
5923       --------------------------------------------
5924       -- 12.5.1  Formal Derived Type Definition --
5925       --------------------------------------------
5926
5927       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
5928       --    [abstract] [limited | synchronized]
5929       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5930       --  Note: this construct is not allowed in Ada 83 mode
5931
5932       --  N_Formal_Derived_Type_Definition
5933       --  Sloc points to NEW
5934       --  Subtype_Mark (Node4)
5935       --  Private_Present (Flag15)
5936       --  Abstract_Present (Flag4)
5937       --  Limited_Present (Flag17)
5938       --  Synchronized_Present (Flag7)
5939       --  Interface_List (List2) (set to No_List if none)
5940
5941       ---------------------------------------------
5942       -- 12.5.2  Formal Discrete Type Definition --
5943       ---------------------------------------------
5944
5945       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5946
5947       --  N_Formal_Discrete_Type_Definition
5948       --  Sloc points to (
5949
5950       ---------------------------------------------------
5951       -- 12.5.2  Formal Signed Integer Type Definition --
5952       ---------------------------------------------------
5953
5954       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5955
5956       --  N_Formal_Signed_Integer_Type_Definition
5957       --  Sloc points to RANGE
5958
5959       --------------------------------------------
5960       -- 12.5.2  Formal Modular Type Definition --
5961       --------------------------------------------
5962
5963       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5964
5965       --  N_Formal_Modular_Type_Definition
5966       --  Sloc points to MOD
5967
5968       ----------------------------------------------
5969       -- 12.5.2  Formal Floating Point Definition --
5970       ----------------------------------------------
5971
5972       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5973
5974       --  N_Formal_Floating_Point_Definition
5975       --  Sloc points to DIGITS
5976
5977       ----------------------------------------------------
5978       -- 12.5.2  Formal Ordinary Fixed Point Definition --
5979       ----------------------------------------------------
5980
5981       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5982
5983       --  N_Formal_Ordinary_Fixed_Point_Definition
5984       --  Sloc points to DELTA
5985
5986       ---------------------------------------------------
5987       -- 12.5.2  Formal Decimal Fixed Point Definition --
5988       ---------------------------------------------------
5989
5990       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5991
5992       --  Note: formal decimal fixed point definition not allowed in Ada 83
5993
5994       --  N_Formal_Decimal_Fixed_Point_Definition
5995       --  Sloc points to DELTA
5996
5997       ------------------------------------------
5998       -- 12.5.3  Formal Array Type Definition --
5999       ------------------------------------------
6000
6001       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6002
6003       -------------------------------------------
6004       -- 12.5.4  Formal Access Type Definition --
6005       -------------------------------------------
6006
6007       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6008
6009       ----------------------------------------------
6010       -- 12.5.5  Formal Interface Type Definition --
6011       ----------------------------------------------
6012
6013       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6014
6015       -----------------------------------------
6016       -- 12.6  Formal Subprogram Declaration --
6017       -----------------------------------------
6018
6019       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6020       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6021       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6022
6023       --------------------------------------------------
6024       -- 12.6  Formal Concrete Subprogram Declaration --
6025       --------------------------------------------------
6026
6027       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6028       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6029
6030       --  N_Formal_Concrete_Subprogram_Declaration
6031       --  Sloc points to WITH
6032       --  Specification (Node1)
6033       --  Default_Name (Node2) (set to Empty if no subprogram default)
6034       --  Box_Present (Flag15)
6035
6036       --  Note: if no subprogram default is present, then Name is set
6037       --  to Empty, and Box_Present is False.
6038
6039       --------------------------------------------------
6040       -- 12.6  Formal Abstract Subprogram Declaration --
6041       --------------------------------------------------
6042
6043       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6044       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6045
6046       --  N_Formal_Abstract_Subprogram_Declaration
6047       --  Sloc points to WITH
6048       --  Specification (Node1)
6049       --  Default_Name (Node2) (set to Empty if no subprogram default)
6050       --  Box_Present (Flag15)
6051
6052       --  Note: if no subprogram default is present, then Name is set
6053       --  to Empty, and Box_Present is False.
6054
6055       ------------------------------
6056       -- 12.6  Subprogram Default --
6057       ------------------------------
6058
6059       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6060
6061       --  There is no separate node in the tree for a subprogram default.
6062       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6063       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6064       --  default name or box indication, as needed.
6065
6066       ------------------------
6067       -- 12.6  Default Name --
6068       ------------------------
6069
6070       --  DEFAULT_NAME ::= NAME
6071
6072       --------------------------------------
6073       -- 12.7  Formal Package Declaration --
6074       --------------------------------------
6075
6076       --  FORMAL_PACKAGE_DECLARATION ::=
6077       --    with package DEFINING_IDENTIFIER
6078       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6079
6080       --  Note: formal package declarations not allowed in Ada 83 mode
6081
6082       --  N_Formal_Package_Declaration
6083       --  Sloc points to WITH
6084       --  Defining_Identifier (Node1)
6085       --  Name (Node2)
6086       --  Generic_Associations (List3) (set to No_List if (<>) case or
6087       --   empty generic actual part)
6088       --  Box_Present (Flag15)
6089       --  Instance_Spec (Node5-Sem)
6090       --  ABE_Is_Certain (Flag18-Sem)
6091
6092       --------------------------------------
6093       -- 12.7  Formal Package Actual Part --
6094       --------------------------------------
6095
6096       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6097       --    ([OTHERS] => <>)
6098       --    | [GENERIC_ACTUAL_PART]
6099       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6100
6101       --  FORMAL_PACKAGE_ASSOCIATION ::=
6102       --   GENERIC_ASSOCIATION
6103       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6104
6105       --  There is no explicit node in the tree for a formal package actual
6106       --  part. Instead the information appears in the parent node (i.e. the
6107       --  formal package declaration node itself).
6108
6109       --  There is no explicit node for a formal package association. All of
6110       --  them are represented either by a generic association, possibly with
6111       --  Box_Present, or by an N_Others_Choice.
6112
6113       ---------------------------------
6114       -- 13.1  Representation clause --
6115       ---------------------------------
6116
6117       --  REPRESENTATION_CLAUSE ::=
6118       --    ATTRIBUTE_DEFINITION_CLAUSE
6119       --  | ENUMERATION_REPRESENTATION_CLAUSE
6120       --  | RECORD_REPRESENTATION_CLAUSE
6121       --  | AT_CLAUSE
6122
6123       ----------------------
6124       -- 13.1  Local Name --
6125       ----------------------
6126
6127       --  LOCAL_NAME :=
6128       --    DIRECT_NAME
6129       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6130       --  | library_unit_NAME
6131
6132       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6133       --  as an attribute reference, which has essentially the same form.
6134
6135       ---------------------------------------
6136       -- 13.3  Attribute definition clause --
6137       ---------------------------------------
6138
6139       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6140       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6141       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6142
6143       --  In Ada 83, the expression must be a simple expression and the
6144       --  local name must be a direct name.
6145
6146       --  Note: the only attribute definition clause that is processed by
6147       --  gigi is an address clause. For all other cases, the information
6148       --  is extracted by the front end and either results in setting entity
6149       --  information, e.g. Esize for the Size clause, or in appropriate
6150       --  expansion actions (e.g. in the case of Storage_Size).
6151
6152       --  For an address clause, Gigi constructs the appropriate addressing
6153       --  code. It also ensures that no aliasing optimizations are made
6154       --  for the object for which the address clause appears.
6155
6156       --  Note: for an address clause used to achieve an overlay:
6157
6158       --    A : Integer;
6159       --    B : Integer;
6160       --    for B'Address use A'Address;
6161
6162       --  the above rule means that Gigi will ensure that no optimizations
6163       --  will be made for B that would violate the implementation advice
6164       --  of RM 13.3(19). However, this advice applies only to B and not
6165       --  to A, which seems unfortunate. The GNAT front end will mark the
6166       --  object A as volatile to also prevent unwanted optimization
6167       --  assumptions based on no aliasing being made for B.
6168
6169       --  N_Attribute_Definition_Clause
6170       --  Sloc points to FOR
6171       --  Name (Node2) the local name
6172       --  Chars (Name1) the identifier name from the attribute designator
6173       --  Expression (Node3) the expression or name
6174       --  Entity (Node4-Sem)
6175       --  Next_Rep_Item (Node5-Sem)
6176       --  From_At_Mod (Flag4-Sem)
6177       --  Check_Address_Alignment (Flag11-Sem)
6178       --  Address_Warning_Posted (Flag18-Sem)
6179
6180       ---------------------------------------------
6181       -- 13.4  Enumeration representation clause --
6182       ---------------------------------------------
6183
6184       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6185       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6186
6187       --  In Ada 83, the name must be a direct name
6188
6189       --  N_Enumeration_Representation_Clause
6190       --  Sloc points to FOR
6191       --  Identifier (Node1) direct name
6192       --  Array_Aggregate (Node3)
6193       --  Next_Rep_Item (Node5-Sem)
6194
6195       ---------------------------------
6196       -- 13.4  Enumeration aggregate --
6197       ---------------------------------
6198
6199       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6200
6201       ------------------------------------------
6202       -- 13.5.1  Record representation clause --
6203       ------------------------------------------
6204
6205       --  RECORD_REPRESENTATION_CLAUSE ::=
6206       --    for first_subtype_LOCAL_NAME use
6207       --      record [MOD_CLAUSE]
6208       --        {COMPONENT_CLAUSE}
6209       --      end record;
6210
6211       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6212       --  replaced by a corresponding Alignment attribute definition clause).
6213
6214       --  Note: Component_Clauses can include pragmas
6215
6216       --  N_Record_Representation_Clause
6217       --  Sloc points to FOR
6218       --  Identifier (Node1) direct name
6219       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6220       --  Component_Clauses (List3)
6221       --  Next_Rep_Item (Node5-Sem)
6222
6223       ------------------------------
6224       -- 13.5.1  Component clause --
6225       ------------------------------
6226
6227       --  COMPONENT_CLAUSE ::=
6228       --    component_LOCAL_NAME at POSITION
6229       --      range FIRST_BIT .. LAST_BIT;
6230
6231       --  N_Component_Clause
6232       --  Sloc points to AT
6233       --  Component_Name (Node1) points to Name or Attribute_Reference
6234       --  Position (Node2)
6235       --  First_Bit (Node3)
6236       --  Last_Bit (Node4)
6237
6238       ----------------------
6239       -- 13.5.1  Position --
6240       ----------------------
6241
6242       --  POSITION ::= static_EXPRESSION
6243
6244       -----------------------
6245       -- 13.5.1  First_Bit --
6246       -----------------------
6247
6248       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6249
6250       ----------------------
6251       -- 13.5.1  Last_Bit --
6252       ----------------------
6253
6254       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6255
6256       --------------------------
6257       -- 13.8  Code statement --
6258       --------------------------
6259
6260       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6261
6262       --  Note: in GNAT, the qualified expression has the form
6263
6264       --    Asm_Insn'(Asm (...));
6265
6266       --  See package System.Machine_Code in file s-maccod.ads for details on
6267       --  the allowed parameters to Asm. There are two ways this node can
6268       --  arise, as a code statement, in which case the expression is the
6269       --  qualified expression, or as a result of the expansion of an intrinsic
6270       --  call to the Asm or Asm_Input procedure.
6271
6272       --  N_Code_Statement
6273       --  Sloc points to first token of the expression
6274       --  Expression (Node3)
6275
6276       --  Note: package Exp_Code contains an abstract functional interface
6277       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6278
6279       ------------------------
6280       -- 13.12  Restriction --
6281       ------------------------
6282
6283       --  RESTRICTION ::=
6284       --    restriction_IDENTIFIER
6285       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6286
6287       --  There is no explicit node for restrictions. Instead the restriction
6288       --  appears in normal pragma syntax as a pragma argument association,
6289       --  which has the same syntactic form.
6290
6291       --------------------------
6292       -- B.2  Shift Operators --
6293       --------------------------
6294
6295       --  Calls to the intrinsic shift functions are converted to one of
6296       --  the following shift nodes, which have the form of normal binary
6297       --  operator names. Note that for a given shift operation, one node
6298       --  covers all possible types, as for normal operators.
6299
6300       --  Note: it is perfectly permissible for the expander to generate
6301       --  shift operation nodes directly, in which case they will be analyzed
6302       --  and parsed in the usual manner.
6303
6304       --  Sprint syntax: shift-function-name!(expr, count)
6305
6306       --  Note: the Left_Opnd field holds the first argument (the value to
6307       --  be shifted). The Right_Opnd field holds the second argument (the
6308       --  shift count). The Chars field is the name of the intrinsic function.
6309
6310       --  N_Op_Rotate_Left
6311       --  Sloc points to the function name
6312       --  plus fields for binary operator
6313       --  plus fields for expression
6314       --  Shift_Count_OK (Flag4-Sem)
6315
6316       --  N_Op_Rotate_Right
6317       --  Sloc points to the function name
6318       --  plus fields for binary operator
6319       --  plus fields for expression
6320       --  Shift_Count_OK (Flag4-Sem)
6321
6322       --  N_Op_Shift_Left
6323       --  Sloc points to the function name
6324       --  plus fields for binary operator
6325       --  plus fields for expression
6326       --  Shift_Count_OK (Flag4-Sem)
6327
6328       --  N_Op_Shift_Right_Arithmetic
6329       --  Sloc points to the function name
6330       --  plus fields for binary operator
6331       --  plus fields for expression
6332       --  Shift_Count_OK (Flag4-Sem)
6333
6334       --  N_Op_Shift_Right
6335       --  Sloc points to the function name
6336       --  plus fields for binary operator
6337       --  plus fields for expression
6338       --  Shift_Count_OK (Flag4-Sem)
6339
6340    --------------------------
6341    -- Obsolescent Features --
6342    --------------------------
6343
6344       --  The syntax descriptions and tree nodes for obsolescent features are
6345       --  grouped together, corresponding to their location in appendix I in
6346       --  the RM. However, parsing and semantic analysis for these constructs
6347       --  is located in an appropriate chapter (see individual notes).
6348
6349       ---------------------------
6350       -- J.3  Delta Constraint --
6351       ---------------------------
6352
6353       --  Note: the parse routine for this construct is located in section
6354       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6355       --  where delta constraint logically belongs.
6356
6357       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6358
6359       --  N_Delta_Constraint
6360       --  Sloc points to DELTA
6361       --  Delta_Expression (Node3)
6362       --  Range_Constraint (Node4) (set to Empty if not present)
6363
6364       --------------------
6365       -- J.7  At Clause --
6366       --------------------
6367
6368       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6369
6370       --  Note: the parse routine for this construct is located in Par-Ch13,
6371       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6372       --  belongs if it were not obsolescent.
6373
6374       --  Note: in Ada 83 the expression must be a simple expression
6375
6376       --  Gigi restriction: This node never appears, it is rewritten as an
6377       --  address attribute definition clause.
6378
6379       --  N_At_Clause
6380       --  Sloc points to FOR
6381       --  Identifier (Node1)
6382       --  Expression (Node3)
6383
6384       ---------------------
6385       -- J.8  Mod clause --
6386       ---------------------
6387
6388       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6389
6390       --  Note: the parse routine for this construct is located in Par-Ch13,
6391       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6392       --  belongs if it were not obsolescent.
6393
6394       --  Note: in Ada 83, the expression must be a simple expression
6395
6396       --  Gigi restriction: this node never appears. It is replaced
6397       --  by a corresponding Alignment attribute definition clause.
6398
6399       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6400       --  its name has "clause" in it. This is rather strange, but is quite
6401       --  definitely specified. The pragmas before are collected in the
6402       --  Pragmas_Before field of the mod clause node itself, and pragmas
6403       --  after are simply swallowed up in the list of component clauses.
6404
6405       --  N_Mod_Clause
6406       --  Sloc points to AT
6407       --  Expression (Node3)
6408       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6409
6410    --------------------
6411    -- Semantic Nodes --
6412    --------------------
6413
6414    --  These semantic nodes are used to hold additional semantic information.
6415    --  They are inserted into the tree as a result of semantic processing.
6416    --  Although there are no legitimate source syntax constructions that
6417    --  correspond directly to these nodes, we need a source syntax for the
6418    --  reconstructed tree printed by Sprint, and the node descriptions here
6419    --  show this syntax.
6420
6421       ----------------------------
6422       -- Conditional Expression --
6423       ----------------------------
6424
6425       --  This node is used to represent an expression corresponding to the
6426       --  C construct (condition ? then-expression : else_expression), where
6427       --  Expressions is a three element list, whose first expression is the
6428       --  condition, and whose second and third expressions are the then and
6429       --  else expressions respectively.
6430
6431       --  Note: the Then_Actions and Else_Actions fields are always set to
6432       --  No_List in the tree passed to Gigi. These fields are used only
6433       --  for temporary processing purposes in the expander.
6434
6435       --  Sprint syntax: (if expr then expr else expr)
6436
6437       --  N_Conditional_Expression
6438       --  Sloc points to related node
6439       --  Expressions (List1)
6440       --  Then_Actions (List2-Sem)
6441       --  Else_Actions (List3-Sem)
6442       --  plus fields for expression
6443
6444       --  Note: in the case where a debug source file is generated, the Sloc
6445       --  for this node points to the IF keyword in the Sprint file output.
6446
6447       -------------------
6448       -- Expanded_Name --
6449       -------------------
6450
6451       --  The N_Expanded_Name node is used to represent a selected component
6452       --  name that has been resolved to an expanded name. The semantic phase
6453       --  replaces N_Selected_Component nodes that represent names by the use
6454       --  of this node, leaving the N_Selected_Component node used only when
6455       --  the prefix is a record or protected type.
6456
6457       --  The fields of the N_Expanded_Name node are layed out identically
6458       --  to those of the N_Selected_Component node, allowing conversion of
6459       --  an expanded name node to a selected component node to be done
6460       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6461
6462       --  There is no special sprint syntax for an expanded name
6463
6464       --  N_Expanded_Name
6465       --  Sloc points to the period
6466       --  Chars (Name1) copy of Chars field of selector name
6467       --  Prefix (Node3)
6468       --  Selector_Name (Node2)
6469       --  Entity (Node4-Sem)
6470       --  Associated_Node (Node4-Sem)
6471       --  Redundant_Use (Flag13-Sem)
6472       --  Has_Private_View (Flag11-Sem) set in generic units.
6473       --  plus fields for expression
6474
6475       --------------------
6476       -- Free Statement --
6477       --------------------
6478
6479       --  The N_Free_Statement node is generated as a result of a call to an
6480       --  instantiation of Unchecked_Deallocation. The instantiation of this
6481       --  generic is handled specially and generates this node directly.
6482
6483       --  Sprint syntax: free expression
6484
6485       --  N_Free_Statement
6486       --  Sloc is copied from the unchecked deallocation call
6487       --  Expression (Node3) argument to unchecked deallocation call
6488       --  Storage_Pool (Node1-Sem)
6489       --  Procedure_To_Call (Node2-Sem)
6490       --  Actual_Designated_Subtype (Node4-Sem)
6491
6492       --  Note: in the case where a debug source file is generated, the Sloc
6493       --  for this node points to the FREE keyword in the Sprint file output.
6494
6495       -------------------
6496       -- Freeze Entity --
6497       -------------------
6498
6499       --  This node marks the point in a declarative part at which an entity
6500       --  declared therein becomes frozen. The expander places initialization
6501       --  procedures for types at those points. Gigi uses the freezing point
6502       --  to elaborate entities that may depend on previous private types.
6503
6504       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6505       --  a full description of the use of this node.
6506
6507       --  The Entity field points back to the entity for the type (whose
6508       --  Freeze_Node field points back to this freeze node).
6509
6510       --  The Actions field contains a list of declarations and statements
6511       --  generated by the expander which are associated with the freeze
6512       --  node, and are elaborated as though the freeze node were replaced
6513       --  by this sequence of actions.
6514
6515       --  Note: the Sloc field in the freeze node references a construct
6516       --  associated with the freezing point. This is used for posting
6517       --  messages in some error/warning situations, e.g. the case where
6518       --  a primitive operation of a tagged type is declared too late.
6519
6520       --  Sprint syntax: freeze entity-name [
6521       --                   freeze actions
6522       --                 ]
6523
6524       --  N_Freeze_Entity
6525       --  Sloc points near freeze point (see above special note)
6526       --  Entity (Node4-Sem)
6527       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6528       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6529       --  Actions (List1) (set to No_List if no freeze actions)
6530       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6531
6532       --  The Actions field holds actions associated with the freeze. These
6533       --  actions are elaborated at the point where the type is frozen.
6534
6535       --  Note: in the case where a debug source file is generated, the Sloc
6536       --  for this node points to the FREEZE keyword in the Sprint file output.
6537
6538       --------------------------------
6539       -- Implicit Label Declaration --
6540       --------------------------------
6541
6542       --  An implicit label declaration is created for every occurrence of a
6543       --  label on a statement or a label on a block or loop. It is chained
6544       --  in the declarations of the innermost enclosing block as specified
6545       --  in RM section 5.1 (3).
6546
6547       --  The Defining_Identifier is the actual identifier for the
6548       --  statement identifier. Note that the occurrence of the label
6549       --  is a reference, NOT the defining occurrence. The defining
6550       --  occurrence occurs at the head of the innermost enclosing
6551       --  block, and is represented by this node.
6552
6553       --  Note: from the grammar, this might better be called an implicit
6554       --  statement identifier declaration, but the term we choose seems
6555       --  friendlier, since at least informally statement identifiers are
6556       --  called labels in both cases (i.e. when used in labels, and when
6557       --  used as the identifiers of blocks and loops).
6558
6559       --  Note: although this is logically a semantic node, since it does
6560       --  not correspond directly to a source syntax construction, these
6561       --  nodes are actually created by the parser in a post pass done just
6562       --  after parsing is complete, before semantic analysis is started (see
6563       --  the Par.Labl subunit in file par-labl.adb).
6564
6565       --  Sprint syntax: labelname : label;
6566
6567       --  N_Implicit_Label_Declaration
6568       --  Sloc points to the << of the label
6569       --  Defining_Identifier (Node1)
6570       --  Label_Construct (Node2-Sem)
6571
6572       --  Note: in the case where a debug source file is generated, the Sloc
6573       --  for this node points to the label name in the generated declaration.
6574
6575       ---------------------
6576       -- Itype_Reference --
6577       ---------------------
6578
6579       --  This node is used to create a reference to an Itype. The only
6580       --  purpose is to make sure that the Itype is defined if this is the
6581       --  first reference.
6582
6583       --  A typical use of this node is when an Itype is to be referenced in
6584       --  two branches of an if statement. In this case it is important that
6585       --  the first use of the Itype not be inside the conditional, since
6586       --  then it might not be defined if the wrong branch of the if is
6587       --  taken in the case where the definition generates elaboration code.
6588
6589       --  The Itype field points to the referenced Itype
6590
6591       --  sprint syntax: reference itype-name
6592
6593       --  N_Itype_Reference
6594       --  Sloc points to the node generating the reference
6595       --  Itype (Node1-Sem)
6596
6597       --  Note: in the case where a debug source file is generated, the Sloc
6598       --  for this node points to the REFERENCE keyword in the file output.
6599
6600       ---------------------
6601       -- Raise_xxx_Error --
6602       ---------------------
6603
6604       --  One of these nodes is created during semantic analysis to replace
6605       --  a node for an expression that is determined to definitely raise
6606       --  the corresponding exception.
6607
6608       --  The N_Raise_xxx_Error node may also stand alone in place
6609       --  of a declaration or statement, in which case it simply causes
6610       --  the exception to be raised (i.e. it is equivalent to a raise
6611       --  statement that raises the corresponding exception). This use
6612       --  is distinguished by the fact that the Etype in this case is
6613       --  Standard_Void_Type, In the subexpression case, the Etype is the
6614       --  same as the type of the subexpression which it replaces.
6615
6616       --  If Condition is empty, then the raise is unconditional. If the
6617       --  Condition field is non-empty, it is a boolean expression which
6618       --  is first evaluated, and the exception is raised only if the
6619       --  value of the expression is True. In the unconditional case, the
6620       --  creation of this node is usually accompanied by a warning message
6621       --  error. The creation of this node will usually be accompanied by a
6622       --  message (unless it appears within the right operand of a short
6623       --  circuit form whose left argument is static and decisively
6624       --  eliminates elaboration of the raise operation. The condition field
6625       --  can ONLY be present when the node is used as a statement form, it
6626       --  may NOT be present in the case where the node appears within an
6627       --  expression.
6628
6629       --  The exception is generated with a message that contains the
6630       --  file name and line number, and then appended text. The Reason
6631       --  code shows the text to be added. The Reason code is an element
6632       --  of the type Types.RT_Exception_Code, and indicates both the
6633       --  message to be added, and the exception to be raised (which must
6634       --  match the node type). The value is stored by storing a Uint which
6635       --  is the Pos value of the enumeration element in this type.
6636
6637       --  Gigi restriction: This expander ensures that the type of the
6638       --  Condition field is always Standard.Boolean, even if the type
6639       --  in the source is some non-standard boolean type.
6640
6641       --  Sprint syntax: [xxx_error "msg"]
6642       --             or: [xxx_error when condition "msg"]
6643
6644       --  N_Raise_Constraint_Error
6645       --  Sloc references related construct
6646       --  Condition (Node1) (set to Empty if no condition)
6647       --  Reason (Uint3)
6648       --  plus fields for expression
6649
6650       --  N_Raise_Program_Error
6651       --  Sloc references related construct
6652       --  Condition (Node1) (set to Empty if no condition)
6653       --  Reason (Uint3)
6654       --  plus fields for expression
6655
6656       --  N_Raise_Storage_Error
6657       --  Sloc references related construct
6658       --  Condition (Node1) (set to Empty if no condition)
6659       --  Reason (Uint3)
6660       --  plus fields for expression
6661
6662       --  Note: Sloc is copied from the expression generating the exception.
6663       --  In the case where a debug source file is generated, the Sloc for
6664       --  this node points to the left bracket in the Sprint file output.
6665
6666       --  Note: the back end may be required to translate these nodes into
6667       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6668
6669       ---------------------------------------------
6670       -- Optimization of Exception Raise to Goto --
6671       ---------------------------------------------
6672
6673       --  In some cases, the front end will determine that any exception raised
6674       --  by the back end for a certain exception should be transformed into a
6675       --  goto statement.
6676
6677       --  There are three kinds of exceptions raised by the back end (note that
6678       --  for this purpose we consider gigi to be part of the back end in the
6679       --  gcc case):
6680
6681       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
6682       --     2. Exceptions from checks triggered by Do_xxx_Check flags
6683       --     3. Other cases not specifically marked by the front end
6684
6685       --  Normally all such exceptions are translated into calls to the proper
6686       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
6687       --  and the exception message.
6688
6689       --  The front end may determine that for a particular sequence of code,
6690       --  exceptions in any of these three categories for a particular builtin
6691       --  exception should result in a goto, rather than a call to Rcheck_xx.
6692       --  The exact sequence to be generated is:
6693
6694       --      Local_Raise (exception'Identity);
6695       --      goto Label
6696
6697       --  The front end marks such a sequence of code by bracketing it with
6698       --  push and pop nodes:
6699
6700       --       N_Push_xxx_Label (referencing the label)
6701       --       ...
6702       --       (code where transformation is expected for exception xxx)
6703       --       ...
6704       --       N_Pop_xxx_Label
6705
6706       --  The use of push/pop reflects the fact that such regions can properly
6707       --  nest, and one special case is a subregion in which no transformation
6708       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6709       --  Exception_Label field is Empty.
6710
6711       --  N_Push_Constraint_Error_Label
6712       --  Sloc references first statement in region covered
6713       --  Exception_Label (Node5-Sem)
6714
6715       --  N_Push_Program_Error_Label
6716       --  Sloc references first statement in region covered
6717       --  Exception_Label (Node5-Sem)
6718
6719       --  N_Push_Storage_Error_Label
6720       --  Sloc references first statement in region covered
6721       --  Exception_Label (Node5-Sem)
6722
6723       --  N_Pop_Constraint_Error_Label
6724       --  Sloc references last statement in region covered
6725
6726       --  N_Pop_Program_Error_Label
6727       --  Sloc references last statement in region covered
6728
6729       --  N_Pop_Storage_Error_Label
6730       --  Sloc references last statement in region covered
6731
6732       ---------------
6733       -- Reference --
6734       ---------------
6735
6736       --  For a number of purposes, we need to construct references to objects.
6737       --  These references are subsequently treated as normal access values.
6738       --  An example is the construction of the parameter block passed to a
6739       --  task entry. The N_Reference node is provided for this purpose. It is
6740       --  similar in effect to the use of the Unrestricted_Access attribute,
6741       --  and like Unrestricted_Access can be applied to objects which would
6742       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6743       --  objects which are not aliased, and slices). In addition it can be
6744       --  applied to composite type values as well as objects, including string
6745       --  values and aggregates.
6746
6747       --  Note: we use the Prefix field for this expression so that the
6748       --  resulting node can be treated using common code with the attribute
6749       --  nodes for the 'Access and related attributes. Logically it would make
6750       --  more sense to call it an Expression field, but then we would have to
6751       --  special case the treatment of the N_Reference node.
6752
6753       --  Sprint syntax: prefix'reference
6754
6755       --  N_Reference
6756       --  Sloc is copied from the expression
6757       --  Prefix (Node3)
6758       --  plus fields for expression
6759
6760       --  Note: in the case where a debug source file is generated, the Sloc
6761       --  for this node points to the quote in the Sprint file output.
6762
6763       ---------------------
6764       -- Subprogram_Info --
6765       ---------------------
6766
6767       --  This node generates the appropriate Subprogram_Info value for a
6768       --  given procedure. See Ada.Exceptions for further details
6769
6770       --  Sprint syntax: subprog'subprogram_info
6771
6772       --  N_Subprogram_Info
6773       --  Sloc points to the entity for the procedure
6774       --  Identifier (Node1) identifier referencing the procedure
6775       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6776
6777       --  Note: in the case where a debug source file is generated, the Sloc
6778       --  for this node points to the quote in the Sprint file output.
6779
6780       --------------------------
6781       -- Unchecked Expression --
6782       --------------------------
6783
6784       --  An unchecked expression is one that must be analyzed and resolved
6785       --  with all checks off, regardless of the current setting of scope
6786       --  suppress flags.
6787
6788       --  Sprint syntax: `(expression)
6789
6790       --  Note: this node is always removed from the tree (and replaced by
6791       --  its constituent expression) on completion of analysis, so it only
6792       --  appears in intermediate trees, and will never be seen by Gigi.
6793
6794       --  N_Unchecked_Expression
6795       --  Sloc is a copy of the Sloc of the expression
6796       --  Expression (Node3)
6797       --  plus fields for expression
6798
6799       --  Note: in the case where a debug source file is generated, the Sloc
6800       --  for this node points to the back quote in the Sprint file output.
6801
6802       -------------------------------
6803       -- Unchecked Type Conversion --
6804       -------------------------------
6805
6806       --  An unchecked type conversion node represents the semantic action
6807       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6808       --  It is generated as a result of actual use of Unchecked_Conversion
6809       --  and also the expander generates unchecked type conversion nodes
6810       --  directly for expansion of complex semantic actions.
6811
6812       --  Note: an unchecked type conversion is a variable as far as the
6813       --  semantics are concerned, which is convenient for the expander.
6814       --  This does not change what Ada source programs are legal, since
6815       --  clearly a function call to an instantiation of Unchecked_Conversion
6816       --  is not a variable in any case.
6817
6818       --  Sprint syntax: subtype-mark!(expression)
6819
6820       --  N_Unchecked_Type_Conversion
6821       --  Sloc points to related node in source
6822       --  Subtype_Mark (Node4)
6823       --  Expression (Node3)
6824       --  Kill_Range_Check (Flag11-Sem)
6825       --  No_Truncation (Flag17-Sem)
6826       --  plus fields for expression
6827
6828       --  Note: in the case where a debug source file is generated, the Sloc
6829       --  for this node points to the exclamation in the Sprint file output.
6830
6831       -----------------------------------
6832       -- Validate_Unchecked_Conversion --
6833       -----------------------------------
6834
6835       --  The front end does most of the validation of unchecked conversion,
6836       --  including checking sizes (this is done after the back end is called
6837       --  to take advantage of back-annotation of calculated sizes).
6838
6839       --  The front end also deals with specific cases that are not allowed
6840       --  e.g. involving unconstrained array types.
6841
6842       --  For the case of the standard gigi backend, this means that all
6843       --  checks are done in the front-end.
6844
6845       --  However, in the case of specialized back-ends, notably the JVM
6846       --  backend for JGNAT, additional requirements and restrictions apply
6847       --  to unchecked conversion, and these are most conveniently performed
6848       --  in the specialized back-end.
6849
6850       --  To accommodate this requirement, for such back ends, the following
6851       --  special node is generated recording an unchecked conversion that
6852       --  needs to be validated. The back end should post an appropriate
6853       --  error message if the unchecked conversion is invalid or warrants
6854       --  a special warning message.
6855
6856       --  Source_Type and Target_Type point to the entities for the two
6857       --  types involved in the unchecked conversion instantiation that
6858       --  is to be validated.
6859
6860       --  Sprint syntax: validate Unchecked_Conversion (source, target);
6861
6862       --  N_Validate_Unchecked_Conversion
6863       --  Sloc points to instantiation (location for warning message)
6864       --  Source_Type (Node1-Sem)
6865       --  Target_Type (Node2-Sem)
6866
6867       --  Note: in the case where a debug source file is generated, the Sloc
6868       --  for this node points to the VALIDATE keyword in the file output.
6869
6870    -----------
6871    -- Empty --
6872    -----------
6873
6874    --  Used as the contents of the Nkind field of the dummy Empty node
6875    --  and in some other situations to indicate an uninitialized value.
6876
6877    --  N_Empty
6878    --  Chars (Name1) is set to No_Name
6879
6880    -----------
6881    -- Error --
6882    -----------
6883
6884    --  Used as the contents of the Nkind field of the dummy Error node.
6885    --  Has an Etype field, which gets set to Any_Type later on, to help
6886    --  error recovery (Error_Posted is also set in the Error node).
6887
6888    --  N_Error
6889    --  Chars (Name1) is set to Error_Name
6890    --  Etype (Node5-Sem)
6891
6892    --------------------------
6893    -- Node Type Definition --
6894    --------------------------
6895
6896    --  The following is the definition of the Node_Kind type. As previously
6897    --  discussed, this is separated off to allow rearrangement of the order
6898    --  to facilitate definition of subtype ranges. The comments show the
6899    --  subtype classes which apply to each set of node kinds. The first
6900    --  entry in the comment characterizes the following list of nodes.
6901
6902    type Node_Kind is (
6903       N_Unused_At_Start,
6904
6905       --  N_Representation_Clause
6906
6907       N_At_Clause,
6908       N_Component_Clause,
6909       N_Enumeration_Representation_Clause,
6910       N_Mod_Clause,
6911       N_Record_Representation_Clause,
6912
6913       --  N_Representation_Clause, N_Has_Chars
6914
6915       N_Attribute_Definition_Clause,
6916
6917       --  N_Has_Chars
6918
6919       N_Empty,
6920       N_Pragma_Argument_Association,
6921
6922       --  N_Has_Etype
6923
6924       N_Error,
6925
6926       --  N_Entity, N_Has_Etype, N_Has_Chars
6927
6928       N_Defining_Character_Literal,
6929       N_Defining_Identifier,
6930       N_Defining_Operator_Symbol,
6931
6932       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6933
6934       N_Expanded_Name,
6935
6936       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6937       --  N_Has_Chars, N_Has_Entity
6938
6939       N_Identifier,
6940       N_Operator_Symbol,
6941
6942       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6943       --  N_Has_Chars, N_Has_Entity
6944
6945       N_Character_Literal,
6946
6947       --  N_Binary_Op, N_Op, N_Subexpr,
6948       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
6949
6950       N_Op_Add,
6951       N_Op_Concat,
6952       N_Op_Expon,
6953       N_Op_Subtract,
6954
6955       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6956       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6957
6958       N_Op_Divide,
6959       N_Op_Mod,
6960       N_Op_Multiply,
6961       N_Op_Rem,
6962
6963       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6964       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6965
6966       N_Op_And,
6967
6968       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6969       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6970
6971       N_Op_Eq,
6972       N_Op_Ge,
6973       N_Op_Gt,
6974       N_Op_Le,
6975       N_Op_Lt,
6976       N_Op_Ne,
6977
6978       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6979       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6980
6981       N_Op_Or,
6982       N_Op_Xor,
6983
6984       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6985       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
6986
6987       N_Op_Rotate_Left,
6988       N_Op_Rotate_Right,
6989       N_Op_Shift_Left,
6990       N_Op_Shift_Right,
6991       N_Op_Shift_Right_Arithmetic,
6992
6993       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6994       --  N_Has_Chars, N_Has_Entity
6995
6996       N_Op_Abs,
6997       N_Op_Minus,
6998       N_Op_Not,
6999       N_Op_Plus,
7000
7001       --  N_Subexpr, N_Has_Etype, N_Has_Entity
7002
7003       N_Attribute_Reference,
7004
7005       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7006
7007       N_In,
7008       N_Not_In,
7009
7010       --  N_Subexpr, N_Has_Etype
7011
7012       N_And_Then,
7013       N_Conditional_Expression,
7014       N_Explicit_Dereference,
7015       N_Function_Call,
7016       N_Indexed_Component,
7017       N_Integer_Literal,
7018       N_Null,
7019       N_Or_Else,
7020       N_Procedure_Call_Statement,
7021       N_Qualified_Expression,
7022
7023       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7024
7025       N_Raise_Constraint_Error,
7026       N_Raise_Program_Error,
7027       N_Raise_Storage_Error,
7028
7029       --  N_Subexpr, N_Has_Etype
7030
7031       N_Aggregate,
7032       N_Allocator,
7033       N_Extension_Aggregate,
7034       N_Range,
7035       N_Real_Literal,
7036       N_Reference,
7037       N_Selected_Component,
7038       N_Slice,
7039       N_String_Literal,
7040       N_Subprogram_Info,
7041       N_Type_Conversion,
7042       N_Unchecked_Expression,
7043       N_Unchecked_Type_Conversion,
7044
7045       --  N_Has_Etype
7046
7047       N_Subtype_Indication,
7048
7049       --  N_Declaration
7050
7051       N_Component_Declaration,
7052       N_Entry_Declaration,
7053       N_Formal_Object_Declaration,
7054       N_Formal_Type_Declaration,
7055       N_Full_Type_Declaration,
7056       N_Incomplete_Type_Declaration,
7057       N_Loop_Parameter_Specification,
7058       N_Object_Declaration,
7059       N_Protected_Type_Declaration,
7060       N_Private_Extension_Declaration,
7061       N_Private_Type_Declaration,
7062       N_Subtype_Declaration,
7063
7064       --  N_Subprogram_Specification, N_Declaration
7065
7066       N_Function_Specification,
7067       N_Procedure_Specification,
7068
7069       --  N_Access_To_Subprogram_Definition
7070
7071       N_Access_Function_Definition,
7072       N_Access_Procedure_Definition,
7073
7074       --  N_Later_Decl_Item
7075
7076       N_Task_Type_Declaration,
7077
7078       --  N_Body_Stub, N_Later_Decl_Item
7079
7080       N_Package_Body_Stub,
7081       N_Protected_Body_Stub,
7082       N_Subprogram_Body_Stub,
7083       N_Task_Body_Stub,
7084
7085       --  N_Generic_Instantiation, N_Later_Decl_Item
7086       --  N_Subprogram_Instantiation
7087
7088       N_Function_Instantiation,
7089       N_Procedure_Instantiation,
7090
7091       --  N_Generic_Instantiation, N_Later_Decl_Item
7092
7093       N_Package_Instantiation,
7094
7095       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7096
7097       N_Package_Body,
7098       N_Subprogram_Body,
7099
7100       --  N_Later_Decl_Item, N_Proper_Body
7101
7102       N_Protected_Body,
7103       N_Task_Body,
7104
7105       --  N_Later_Decl_Item
7106
7107       N_Implicit_Label_Declaration,
7108       N_Package_Declaration,
7109       N_Single_Task_Declaration,
7110       N_Subprogram_Declaration,
7111       N_Use_Package_Clause,
7112
7113       --  N_Generic_Declaration, N_Later_Decl_Item
7114
7115       N_Generic_Package_Declaration,
7116       N_Generic_Subprogram_Declaration,
7117
7118       --  N_Array_Type_Definition
7119
7120       N_Constrained_Array_Definition,
7121       N_Unconstrained_Array_Definition,
7122
7123       --  N_Renaming_Declaration
7124
7125       N_Exception_Renaming_Declaration,
7126       N_Object_Renaming_Declaration,
7127       N_Package_Renaming_Declaration,
7128       N_Subprogram_Renaming_Declaration,
7129
7130       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7131
7132       N_Generic_Function_Renaming_Declaration,
7133       N_Generic_Package_Renaming_Declaration,
7134       N_Generic_Procedure_Renaming_Declaration,
7135
7136       --  N_Statement_Other_Than_Procedure_Call
7137
7138       N_Abort_Statement,
7139       N_Accept_Statement,
7140       N_Assignment_Statement,
7141       N_Asynchronous_Select,
7142       N_Block_Statement,
7143       N_Case_Statement,
7144       N_Code_Statement,
7145       N_Conditional_Entry_Call,
7146
7147       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7148
7149       N_Delay_Relative_Statement,
7150       N_Delay_Until_Statement,
7151
7152       --  N_Statement_Other_Than_Procedure_Call
7153
7154       N_Entry_Call_Statement,
7155       N_Free_Statement,
7156       N_Goto_Statement,
7157       N_Loop_Statement,
7158       N_Null_Statement,
7159       N_Raise_Statement,
7160       N_Requeue_Statement,
7161       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7162       N_Extended_Return_Statement,
7163       N_Selective_Accept,
7164       N_Timed_Entry_Call,
7165
7166       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7167
7168       N_Exit_Statement,
7169       N_If_Statement,
7170
7171       --  N_Has_Condition
7172
7173       N_Accept_Alternative,
7174       N_Delay_Alternative,
7175       N_Elsif_Part,
7176       N_Entry_Body_Formal_Part,
7177       N_Iteration_Scheme,
7178       N_Terminate_Alternative,
7179
7180       --  N_Formal_Subprogram_Declaration
7181
7182       N_Formal_Abstract_Subprogram_Declaration,
7183       N_Formal_Concrete_Subprogram_Declaration,
7184
7185       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7186
7187       N_Push_Constraint_Error_Label,
7188       N_Push_Program_Error_Label,
7189       N_Push_Storage_Error_Label,
7190
7191       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7192
7193       N_Pop_Constraint_Error_Label,
7194       N_Pop_Program_Error_Label,
7195       N_Pop_Storage_Error_Label,
7196
7197       --  Other nodes (not part of any subtype class)
7198
7199       N_Abortable_Part,
7200       N_Abstract_Subprogram_Declaration,
7201       N_Access_Definition,
7202       N_Access_To_Object_Definition,
7203       N_Case_Statement_Alternative,
7204       N_Compilation_Unit,
7205       N_Compilation_Unit_Aux,
7206       N_Component_Association,
7207       N_Component_Definition,
7208       N_Component_List,
7209       N_Derived_Type_Definition,
7210       N_Decimal_Fixed_Point_Definition,
7211       N_Defining_Program_Unit_Name,
7212       N_Delta_Constraint,
7213       N_Designator,
7214       N_Digits_Constraint,
7215       N_Discriminant_Association,
7216       N_Discriminant_Specification,
7217       N_Enumeration_Type_Definition,
7218       N_Entry_Body,
7219       N_Entry_Call_Alternative,
7220       N_Entry_Index_Specification,
7221       N_Exception_Declaration,
7222       N_Exception_Handler,
7223       N_Floating_Point_Definition,
7224       N_Formal_Decimal_Fixed_Point_Definition,
7225       N_Formal_Derived_Type_Definition,
7226       N_Formal_Discrete_Type_Definition,
7227       N_Formal_Floating_Point_Definition,
7228       N_Formal_Modular_Type_Definition,
7229       N_Formal_Ordinary_Fixed_Point_Definition,
7230       N_Formal_Package_Declaration,
7231       N_Formal_Private_Type_Definition,
7232       N_Formal_Signed_Integer_Type_Definition,
7233       N_Freeze_Entity,
7234       N_Generic_Association,
7235       N_Handled_Sequence_Of_Statements,
7236       N_Index_Or_Discriminant_Constraint,
7237       N_Itype_Reference,
7238       N_Label,
7239       N_Modular_Type_Definition,
7240       N_Number_Declaration,
7241       N_Ordinary_Fixed_Point_Definition,
7242       N_Others_Choice,
7243       N_Package_Specification,
7244       N_Parameter_Association,
7245       N_Parameter_Specification,
7246       N_Pragma,
7247       N_Protected_Definition,
7248       N_Range_Constraint,
7249       N_Real_Range_Specification,
7250       N_Record_Definition,
7251       N_Signed_Integer_Type_Definition,
7252       N_Single_Protected_Declaration,
7253       N_Subunit,
7254       N_Task_Definition,
7255       N_Triggering_Alternative,
7256       N_Use_Type_Clause,
7257       N_Validate_Unchecked_Conversion,
7258       N_Variant,
7259       N_Variant_Part,
7260       N_With_Clause,
7261       N_Unused_At_End);
7262
7263    for Node_Kind'Size use 8;
7264    --  The data structures in Atree assume this!
7265
7266    ----------------------------
7267    -- Node Class Definitions --
7268    ----------------------------
7269
7270    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7271      N_Access_Function_Definition ..
7272      N_Access_Procedure_Definition;
7273
7274    subtype N_Array_Type_Definition is Node_Kind range
7275      N_Constrained_Array_Definition ..
7276      N_Unconstrained_Array_Definition;
7277
7278    subtype N_Binary_Op is Node_Kind range
7279      N_Op_Add ..
7280      N_Op_Shift_Right_Arithmetic;
7281
7282    subtype N_Body_Stub is Node_Kind range
7283      N_Package_Body_Stub ..
7284      N_Task_Body_Stub;
7285
7286    subtype N_Declaration is Node_Kind range
7287      N_Component_Declaration ..
7288      N_Procedure_Specification;
7289    --  Note: this includes all constructs normally thought of as declarations
7290    --  except those which are separately grouped as later declarations.
7291
7292    subtype N_Delay_Statement is Node_Kind range
7293       N_Delay_Relative_Statement ..
7294       N_Delay_Until_Statement;
7295
7296    subtype N_Direct_Name is Node_Kind range
7297      N_Identifier ..
7298      N_Character_Literal;
7299
7300    subtype N_Entity is Node_Kind range
7301      N_Defining_Character_Literal ..
7302      N_Defining_Operator_Symbol;
7303
7304    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7305      N_Formal_Abstract_Subprogram_Declaration ..
7306      N_Formal_Concrete_Subprogram_Declaration;
7307
7308    subtype N_Generic_Declaration is Node_Kind range
7309      N_Generic_Package_Declaration ..
7310      N_Generic_Subprogram_Declaration;
7311
7312    subtype N_Generic_Instantiation is Node_Kind range
7313      N_Function_Instantiation ..
7314      N_Package_Instantiation;
7315
7316    subtype N_Generic_Renaming_Declaration is Node_Kind range
7317      N_Generic_Function_Renaming_Declaration ..
7318      N_Generic_Procedure_Renaming_Declaration;
7319
7320    subtype N_Has_Chars is Node_Kind range
7321      N_Attribute_Definition_Clause ..
7322      N_Op_Plus;
7323
7324    subtype N_Has_Entity is Node_Kind range
7325      N_Expanded_Name ..
7326      N_Attribute_Reference;
7327    --  Nodes that have Entity fields
7328    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
7329
7330    subtype N_Has_Etype is Node_Kind range
7331      N_Error ..
7332      N_Subtype_Indication;
7333
7334    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7335       N_Op_Divide ..
7336       N_Op_Rem;
7337
7338    subtype N_Multiplying_Operator is Node_Kind range
7339       N_Op_Divide ..
7340       N_Op_Rem;
7341
7342    subtype N_Later_Decl_Item is Node_Kind range
7343      N_Task_Type_Declaration ..
7344      N_Generic_Subprogram_Declaration;
7345    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7346    --  includes only those items which can appear as later declarative
7347    --  items. This also includes N_Implicit_Label_Declaration which is
7348    --  not specifically in the grammar but may appear as a valid later
7349    --  declarative items. It does NOT include N_Pragma which can also
7350    --  appear among later declarative items. It does however include
7351    --  N_Protected_Body, which is a bit peculiar, but harmless since
7352    --  this cannot appear in Ada 83 mode anyway.
7353
7354    subtype N_Membership_Test is Node_Kind range
7355       N_In ..
7356       N_Not_In;
7357
7358    subtype N_Op is Node_Kind range
7359      N_Op_Add ..
7360      N_Op_Plus;
7361
7362    subtype N_Op_Boolean is Node_Kind range
7363      N_Op_And ..
7364      N_Op_Xor;
7365    --  Binary operators which take operands of a boolean type, and yield
7366    --  a result of a boolean type.
7367
7368    subtype N_Op_Compare is Node_Kind range
7369      N_Op_Eq ..
7370      N_Op_Ne;
7371
7372    subtype N_Op_Shift is Node_Kind range
7373      N_Op_Rotate_Left ..
7374      N_Op_Shift_Right_Arithmetic;
7375
7376    subtype N_Proper_Body is Node_Kind range
7377      N_Package_Body ..
7378      N_Task_Body;
7379
7380    subtype N_Push_xxx_Label is Node_Kind range
7381      N_Push_Constraint_Error_Label ..
7382      N_Push_Storage_Error_Label;
7383
7384    subtype N_Pop_xxx_Label is Node_Kind range
7385      N_Pop_Constraint_Error_Label ..
7386      N_Pop_Storage_Error_Label;
7387
7388    subtype N_Push_Pop_xxx_Label is Node_Kind range
7389      N_Push_Constraint_Error_Label ..
7390      N_Pop_Storage_Error_Label;
7391
7392    subtype N_Raise_xxx_Error is Node_Kind range
7393      N_Raise_Constraint_Error ..
7394      N_Raise_Storage_Error;
7395
7396    subtype N_Renaming_Declaration is Node_Kind range
7397      N_Exception_Renaming_Declaration ..
7398      N_Generic_Procedure_Renaming_Declaration;
7399
7400    subtype N_Representation_Clause is Node_Kind range
7401      N_At_Clause ..
7402      N_Attribute_Definition_Clause;
7403
7404    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7405      N_Abort_Statement ..
7406      N_If_Statement;
7407    --  Note that this includes all statement types except for the cases of the
7408    --  N_Procedure_Call_Statement which is considered to be a subexpression
7409    --  (since overloading is possible, so it needs to go through the normal
7410    --  overloading resolution for expressions).
7411
7412    subtype N_Subprogram_Instantiation is Node_Kind range
7413      N_Function_Instantiation ..
7414      N_Procedure_Instantiation;
7415
7416    subtype N_Has_Condition is Node_Kind range
7417      N_Exit_Statement ..
7418      N_Terminate_Alternative;
7419    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7420
7421    subtype N_Subexpr is Node_Kind range
7422      N_Expanded_Name ..
7423      N_Unchecked_Type_Conversion;
7424    --  Nodes with expression fields
7425
7426    subtype N_Subprogram_Specification is Node_Kind range
7427      N_Function_Specification ..
7428      N_Procedure_Specification;
7429
7430    subtype N_Unary_Op is Node_Kind range
7431      N_Op_Abs ..
7432      N_Op_Plus;
7433
7434    subtype N_Unit_Body is Node_Kind range
7435      N_Package_Body ..
7436        N_Subprogram_Body;
7437
7438    ---------------------------
7439    -- Node Access Functions --
7440    ---------------------------
7441
7442    --  The following functions return the contents of the indicated field of
7443    --  the node referenced by the argument, which is a Node_Id. They provide
7444    --  logical access to fields in the node which could be accessed using the
7445    --  Atree.Unchecked_Access package, but the idea is always to use these
7446    --  higher level routines which preserve strong typing. In debug mode,
7447    --  these routines check that they are being applied to an appropriate
7448    --  node, as well as checking that the node is in range.
7449
7450    function ABE_Is_Certain
7451      (N : Node_Id) return Boolean;    -- Flag18
7452
7453    function Abort_Present
7454      (N : Node_Id) return Boolean;    -- Flag15
7455
7456    function Abortable_Part
7457      (N : Node_Id) return Node_Id;    -- Node2
7458
7459    function Abstract_Present
7460      (N : Node_Id) return Boolean;    -- Flag4
7461
7462    function Accept_Handler_Records
7463      (N : Node_Id) return List_Id;    -- List5
7464
7465    function Accept_Statement
7466      (N : Node_Id) return Node_Id;    -- Node2
7467
7468    function Access_Definition
7469      (N : Node_Id) return Node_Id;    -- Node3
7470
7471    function Access_To_Subprogram_Definition
7472      (N : Node_Id) return Node_Id;    -- Node3
7473
7474    function Access_Types_To_Process
7475      (N : Node_Id) return Elist_Id;   -- Elist2
7476
7477    function Actions
7478      (N : Node_Id) return List_Id;    -- List1
7479
7480    function Activation_Chain_Entity
7481      (N : Node_Id) return Node_Id;    -- Node3
7482
7483    function Acts_As_Spec
7484      (N : Node_Id) return Boolean;    -- Flag4
7485
7486    function Actual_Designated_Subtype
7487      (N : Node_Id) return Node_Id;    -- Node4
7488
7489    function Address_Warning_Posted
7490      (N : Node_Id) return Boolean;    -- Flag18
7491
7492    function Aggregate_Bounds
7493      (N : Node_Id) return Node_Id;    -- Node3
7494
7495    function Aliased_Present
7496      (N : Node_Id) return Boolean;    -- Flag4
7497
7498    function All_Others
7499      (N : Node_Id) return Boolean;    -- Flag11
7500
7501    function All_Present
7502      (N : Node_Id) return Boolean;    -- Flag15
7503
7504    function Alternatives
7505      (N : Node_Id) return List_Id;    -- List4
7506
7507    function Ancestor_Part
7508      (N : Node_Id) return Node_Id;    -- Node3
7509
7510    function Array_Aggregate
7511      (N : Node_Id) return Node_Id;    -- Node3
7512
7513    function Assignment_OK
7514      (N : Node_Id) return Boolean;    -- Flag15
7515
7516    function Associated_Node
7517      (N : Node_Id) return Node_Id;    -- Node4
7518
7519    function At_End_Proc
7520      (N : Node_Id) return Node_Id;    -- Node1
7521
7522    function Attribute_Name
7523      (N : Node_Id) return Name_Id;    -- Name2
7524
7525    function Aux_Decls_Node
7526      (N : Node_Id) return Node_Id;    -- Node5
7527
7528    function Backwards_OK
7529      (N : Node_Id) return Boolean;    -- Flag6
7530
7531    function Bad_Is_Detected
7532      (N : Node_Id) return Boolean;    -- Flag15
7533
7534    function By_Ref
7535      (N : Node_Id) return Boolean;    -- Flag5
7536
7537    function Body_Required
7538      (N : Node_Id) return Boolean;    -- Flag13
7539
7540    function Body_To_Inline
7541      (N : Node_Id) return Node_Id;    -- Node3
7542
7543    function Box_Present
7544      (N : Node_Id) return Boolean;    -- Flag15
7545
7546    function Char_Literal_Value
7547      (N : Node_Id) return Uint;       -- Uint2
7548
7549    function Chars
7550      (N : Node_Id) return Name_Id;    -- Name1
7551
7552    function Check_Address_Alignment
7553      (N : Node_Id) return Boolean;    -- Flag11
7554
7555    function Choice_Parameter
7556      (N : Node_Id) return Node_Id;    -- Node2
7557
7558    function Choices
7559      (N : Node_Id) return List_Id;    -- List1
7560
7561    function Coextensions
7562       (N : Node_Id) return Elist_Id;  -- Elist4
7563
7564    function Comes_From_Extended_Return_Statement
7565      (N : Node_Id) return Boolean;    -- Flag18
7566
7567    function Compile_Time_Known_Aggregate
7568      (N : Node_Id) return Boolean;    -- Flag18
7569
7570    function Component_Associations
7571      (N : Node_Id) return List_Id;    -- List2
7572
7573    function Component_Clauses
7574      (N : Node_Id) return List_Id;    -- List3
7575
7576    function Component_Definition
7577      (N : Node_Id) return Node_Id;    -- Node4
7578
7579    function Component_Items
7580      (N : Node_Id) return List_Id;    -- List3
7581
7582    function Component_List
7583      (N : Node_Id) return Node_Id;    -- Node1
7584
7585    function Component_Name
7586      (N : Node_Id) return Node_Id;    -- Node1
7587
7588    function Condition
7589      (N : Node_Id) return Node_Id;    -- Node1
7590
7591    function Condition_Actions
7592      (N : Node_Id) return List_Id;    -- List3
7593
7594    function Config_Pragmas
7595      (N : Node_Id) return List_Id;    -- List4
7596
7597    function Constant_Present
7598      (N : Node_Id) return Boolean;    -- Flag17
7599
7600    function Constraint
7601      (N : Node_Id) return Node_Id;    -- Node3
7602
7603    function Constraints
7604      (N : Node_Id) return List_Id;    -- List1
7605
7606    function Context_Installed
7607      (N : Node_Id) return Boolean;    -- Flag13
7608
7609    function Context_Items
7610      (N : Node_Id) return List_Id;    -- List1
7611
7612    function Controlling_Argument
7613      (N : Node_Id) return Node_Id;    -- Node1
7614
7615    function Conversion_OK
7616      (N : Node_Id) return Boolean;    -- Flag14
7617
7618    function Corresponding_Body
7619      (N : Node_Id) return Node_Id;    -- Node5
7620
7621    function Corresponding_Formal_Spec
7622      (N : Node_Id) return Node_Id;    -- Node3
7623
7624    function Corresponding_Generic_Association
7625      (N : Node_Id) return Node_Id;    -- Node5
7626
7627    function Corresponding_Integer_Value
7628      (N : Node_Id) return Uint;       -- Uint4
7629
7630    function Corresponding_Spec
7631      (N : Node_Id) return Node_Id;    -- Node5
7632
7633    function Corresponding_Stub
7634      (N : Node_Id) return Node_Id;    -- Node3
7635
7636    function Dcheck_Function
7637      (N : Node_Id) return Entity_Id;  -- Node5
7638
7639    function Debug_Statement
7640      (N : Node_Id) return Node_Id;    -- Node3
7641
7642    function Declarations
7643      (N : Node_Id) return List_Id;    -- List2
7644
7645    function Default_Expression
7646      (N : Node_Id) return Node_Id;    -- Node5
7647
7648    function Default_Name
7649      (N : Node_Id) return Node_Id;    -- Node2
7650
7651    function Defining_Identifier
7652      (N : Node_Id) return Entity_Id;  -- Node1
7653
7654    function Defining_Unit_Name
7655      (N : Node_Id) return Node_Id;    -- Node1
7656
7657    function Delay_Alternative
7658      (N : Node_Id) return Node_Id;    -- Node4
7659
7660    function Delay_Statement
7661      (N : Node_Id) return Node_Id;    -- Node2
7662
7663    function Delta_Expression
7664      (N : Node_Id) return Node_Id;    -- Node3
7665
7666    function Digits_Expression
7667      (N : Node_Id) return Node_Id;    -- Node2
7668
7669    function Discr_Check_Funcs_Built
7670      (N : Node_Id) return Boolean;    -- Flag11
7671
7672    function Discrete_Choices
7673      (N : Node_Id) return List_Id;    -- List4
7674
7675    function Discrete_Range
7676      (N : Node_Id) return Node_Id;    -- Node4
7677
7678    function Discrete_Subtype_Definition
7679      (N : Node_Id) return Node_Id;    -- Node4
7680
7681    function Discrete_Subtype_Definitions
7682      (N : Node_Id) return List_Id;    -- List2
7683
7684    function Discriminant_Specifications
7685      (N : Node_Id) return List_Id;    -- List4
7686
7687    function Discriminant_Type
7688      (N : Node_Id) return Node_Id;    -- Node5
7689
7690    function Do_Accessibility_Check
7691      (N : Node_Id) return Boolean;    -- Flag13
7692
7693    function Do_Discriminant_Check
7694      (N : Node_Id) return Boolean;    -- Flag13
7695
7696    function Do_Division_Check
7697      (N : Node_Id) return Boolean;    -- Flag13
7698
7699    function Do_Length_Check
7700      (N : Node_Id) return Boolean;    -- Flag4
7701
7702    function Do_Overflow_Check
7703      (N : Node_Id) return Boolean;    -- Flag17
7704
7705    function Do_Range_Check
7706      (N : Node_Id) return Boolean;    -- Flag9
7707
7708    function Do_Storage_Check
7709      (N : Node_Id) return Boolean;    -- Flag17
7710
7711    function Do_Tag_Check
7712      (N : Node_Id) return Boolean;    -- Flag13
7713
7714    function Elaborate_All_Desirable
7715      (N : Node_Id) return Boolean;    -- Flag9
7716
7717    function Elaborate_All_Present
7718      (N : Node_Id) return Boolean;    -- Flag14
7719
7720    function Elaborate_Desirable
7721      (N : Node_Id) return Boolean;    -- Flag11
7722
7723    function Elaborate_Present
7724      (N : Node_Id) return Boolean;    -- Flag4
7725
7726    function Elaboration_Boolean
7727      (N : Node_Id) return Node_Id;    -- Node2
7728
7729    function Else_Actions
7730      (N : Node_Id) return List_Id;    -- List3
7731
7732    function Else_Statements
7733      (N : Node_Id) return List_Id;    -- List4
7734
7735    function Elsif_Parts
7736      (N : Node_Id) return List_Id;    -- List3
7737
7738    function Enclosing_Variant
7739      (N : Node_Id) return Node_Id;    -- Node2
7740
7741    function End_Label
7742      (N : Node_Id) return Node_Id;    -- Node4
7743
7744    function End_Span
7745      (N : Node_Id) return Uint;       -- Uint5
7746
7747    function Entity
7748      (N : Node_Id) return Node_Id;    -- Node4
7749
7750    function Entity_Or_Associated_Node
7751      (N : Node_Id) return Node_Id;    -- Node4
7752
7753    function Entry_Body_Formal_Part
7754      (N : Node_Id) return Node_Id;    -- Node5
7755
7756    function Entry_Call_Alternative
7757      (N : Node_Id) return Node_Id;    -- Node1
7758
7759    function Entry_Call_Statement
7760      (N : Node_Id) return Node_Id;    -- Node1
7761
7762    function Entry_Direct_Name
7763      (N : Node_Id) return Node_Id;    -- Node1
7764
7765    function Entry_Index
7766      (N : Node_Id) return Node_Id;    -- Node5
7767
7768    function Entry_Index_Specification
7769      (N : Node_Id) return Node_Id;    -- Node4
7770
7771    function Etype
7772      (N : Node_Id) return Node_Id;    -- Node5
7773
7774    function Exception_Choices
7775      (N : Node_Id) return List_Id;    -- List4
7776
7777    function Exception_Handlers
7778      (N : Node_Id) return List_Id;    -- List5
7779
7780    function Exception_Junk
7781      (N : Node_Id) return Boolean;    -- Flag8
7782
7783    function Exception_Label
7784      (N : Node_Id) return Node_Id;    -- Node5
7785
7786    function Explicit_Actual_Parameter
7787      (N : Node_Id) return Node_Id;    -- Node3
7788
7789    function Expansion_Delayed
7790      (N : Node_Id) return Boolean;    -- Flag11
7791
7792    function Explicit_Generic_Actual_Parameter
7793      (N : Node_Id) return Node_Id;    -- Node1
7794
7795    function Expression
7796      (N : Node_Id) return Node_Id;    -- Node3
7797
7798    function Expressions
7799      (N : Node_Id) return List_Id;    -- List1
7800
7801    function First_Bit
7802      (N : Node_Id) return Node_Id;    -- Node3
7803
7804    function First_Inlined_Subprogram
7805      (N : Node_Id) return Entity_Id;  -- Node3
7806
7807    function First_Name
7808      (N : Node_Id) return Boolean;    -- Flag5
7809
7810    function First_Named_Actual
7811      (N : Node_Id) return Node_Id;    -- Node4
7812
7813    function First_Real_Statement
7814      (N : Node_Id) return Node_Id;    -- Node2
7815
7816    function First_Subtype_Link
7817      (N : Node_Id) return Entity_Id;  -- Node5
7818
7819    function Float_Truncate
7820      (N : Node_Id) return Boolean;    -- Flag11
7821
7822    function Formal_Type_Definition
7823      (N : Node_Id) return Node_Id;    -- Node3
7824
7825    function Forwards_OK
7826      (N : Node_Id) return Boolean;    -- Flag5
7827
7828    function From_At_End
7829      (N : Node_Id) return Boolean;    -- Flag4
7830
7831    function From_At_Mod
7832      (N : Node_Id) return Boolean;    -- Flag4
7833
7834    function From_Default
7835      (N : Node_Id) return Boolean;    -- Flag6
7836
7837    function Generic_Associations
7838      (N : Node_Id) return List_Id;    -- List3
7839
7840    function Generic_Formal_Declarations
7841      (N : Node_Id) return List_Id;    -- List2
7842
7843    function Generic_Parent
7844      (N : Node_Id) return Node_Id;    -- Node5
7845
7846    function Generic_Parent_Type
7847      (N : Node_Id) return Node_Id;    -- Node4
7848
7849    function Handled_Statement_Sequence
7850      (N : Node_Id) return Node_Id;    -- Node4
7851
7852    function Handler_List_Entry
7853      (N : Node_Id) return Node_Id;    -- Node2
7854
7855    function Has_Created_Identifier
7856      (N : Node_Id) return Boolean;    -- Flag15
7857
7858    function Has_Dynamic_Length_Check
7859      (N : Node_Id) return Boolean;    -- Flag10
7860
7861    function Has_Dynamic_Range_Check
7862      (N : Node_Id) return Boolean;    -- Flag12
7863
7864    function Has_Init_Expression
7865      (N : Node_Id) return Boolean;    -- Flag14
7866
7867    function Has_Local_Raise
7868      (N : Node_Id) return Boolean;    -- Flag8
7869
7870    function Has_No_Elaboration_Code
7871      (N : Node_Id) return Boolean;    -- Flag17
7872
7873    function Has_Priority_Pragma
7874      (N : Node_Id) return Boolean;    -- Flag6
7875
7876    function Has_Private_View
7877      (N : Node_Id) return Boolean;    -- Flag11
7878
7879    function Has_Relative_Deadline_Pragma
7880      (N : Node_Id) return Boolean;    -- Flag9
7881
7882    function Has_Self_Reference
7883      (N : Node_Id) return Boolean;    -- Flag13
7884
7885    function Has_Storage_Size_Pragma
7886      (N : Node_Id) return Boolean;    -- Flag5
7887
7888    function Has_Task_Info_Pragma
7889      (N : Node_Id) return Boolean;    -- Flag7
7890
7891    function Has_Task_Name_Pragma
7892      (N : Node_Id) return Boolean;    -- Flag8
7893
7894    function Has_Wide_Character
7895      (N : Node_Id) return Boolean;    -- Flag11
7896
7897    function Hidden_By_Use_Clause
7898      (N : Node_Id) return Elist_Id;   -- Elist4
7899
7900    function High_Bound
7901      (N : Node_Id) return Node_Id;    -- Node2
7902
7903    function Identifier
7904      (N : Node_Id) return Node_Id;    -- Node1
7905
7906    function Interface_List
7907      (N : Node_Id) return List_Id;    -- List2
7908
7909    function Interface_Present
7910      (N : Node_Id) return Boolean;    -- Flag16
7911
7912    function Implicit_With
7913      (N : Node_Id) return Boolean;    -- Flag16
7914
7915    function In_Present
7916      (N : Node_Id) return Boolean;    -- Flag15
7917
7918    function Includes_Infinities
7919      (N : Node_Id) return Boolean;    -- Flag11
7920
7921    function Instance_Spec
7922      (N : Node_Id) return Node_Id;    -- Node5
7923
7924    function Intval
7925      (N : Node_Id) return Uint;       -- Uint3
7926
7927    function Is_Asynchronous_Call_Block
7928      (N : Node_Id) return Boolean;    -- Flag7
7929
7930    function Is_Component_Left_Opnd
7931      (N : Node_Id) return Boolean;    -- Flag13
7932
7933    function Is_Component_Right_Opnd
7934      (N : Node_Id) return Boolean;    -- Flag14
7935
7936    function Is_Controlling_Actual
7937      (N : Node_Id) return Boolean;    -- Flag16
7938
7939    function Is_Dynamic_Coextension
7940      (N : Node_Id) return Boolean;    -- Flag18
7941
7942    function Is_Entry_Barrier_Function
7943      (N : Node_Id) return Boolean;    -- Flag8
7944
7945    function Is_Expanded_Build_In_Place_Call
7946      (N : Node_Id) return Boolean;    -- Flag11
7947
7948    function Is_Folded_In_Parser
7949      (N : Node_Id) return Boolean;    -- Flag4
7950
7951    function Is_In_Discriminant_Check
7952      (N : Node_Id) return Boolean;    -- Flag11
7953
7954    function Is_Machine_Number
7955      (N : Node_Id) return Boolean;    -- Flag11
7956
7957    function Is_Null_Loop
7958      (N : Node_Id) return Boolean;    -- Flag16
7959
7960    function Is_Overloaded
7961      (N : Node_Id) return Boolean;    -- Flag5
7962
7963    function Is_Power_Of_2_For_Shift
7964      (N : Node_Id) return Boolean;    -- Flag13
7965
7966    function Is_Protected_Subprogram_Body
7967      (N : Node_Id) return Boolean;    -- Flag7
7968
7969    function Is_Static_Coextension
7970      (N : Node_Id) return Boolean;    -- Flag14
7971
7972    function Is_Static_Expression
7973      (N : Node_Id) return Boolean;    -- Flag6
7974
7975    function Is_Subprogram_Descriptor
7976      (N : Node_Id) return Boolean;    -- Flag16
7977
7978    function Is_Task_Allocation_Block
7979      (N : Node_Id) return Boolean;    -- Flag6
7980
7981    function Is_Task_Master
7982      (N : Node_Id) return Boolean;    -- Flag5
7983
7984    function Iteration_Scheme
7985      (N : Node_Id) return Node_Id;    -- Node2
7986
7987    function Itype
7988      (N : Node_Id) return Entity_Id;  -- Node1
7989
7990    function Kill_Range_Check
7991      (N : Node_Id) return Boolean;    -- Flag11
7992
7993    function Label_Construct
7994      (N : Node_Id) return Node_Id;    -- Node2
7995
7996    function Left_Opnd
7997      (N : Node_Id) return Node_Id;    -- Node2
7998
7999    function Last_Bit
8000      (N : Node_Id) return Node_Id;    -- Node4
8001
8002    function Last_Name
8003      (N : Node_Id) return Boolean;    -- Flag6
8004
8005    function Library_Unit
8006      (N : Node_Id) return Node_Id;    -- Node4
8007
8008    function Limited_View_Installed
8009      (N : Node_Id) return Boolean;    -- Flag18
8010
8011    function Limited_Present
8012      (N : Node_Id) return Boolean;    -- Flag17
8013
8014    function Literals
8015      (N : Node_Id) return List_Id;    -- List1
8016
8017    function Local_Raise_Not_OK
8018      (N : Node_Id) return Boolean;    -- Flag7
8019
8020    function Local_Raise_Statements
8021      (N : Node_Id) return Elist_Id;   -- Elist1
8022
8023    function Loop_Actions
8024      (N : Node_Id) return List_Id;    -- List2
8025
8026    function Loop_Parameter_Specification
8027      (N : Node_Id) return Node_Id;    -- Node4
8028
8029    function Low_Bound
8030      (N : Node_Id) return Node_Id;    -- Node1
8031
8032    function Mod_Clause
8033      (N : Node_Id) return Node_Id;    -- Node2
8034
8035    function More_Ids
8036      (N : Node_Id) return Boolean;    -- Flag5
8037
8038    function Must_Be_Byte_Aligned
8039      (N : Node_Id) return Boolean;    -- Flag14
8040
8041    function Must_Not_Freeze
8042      (N : Node_Id) return Boolean;    -- Flag8
8043
8044    function Must_Not_Override
8045      (N : Node_Id) return Boolean;    -- Flag15
8046
8047    function Must_Override
8048      (N : Node_Id) return Boolean;    -- Flag14
8049
8050    function Name
8051      (N : Node_Id) return Node_Id;    -- Node2
8052
8053    function Names
8054      (N : Node_Id) return List_Id;    -- List2
8055
8056    function Next_Entity
8057      (N : Node_Id) return Node_Id;    -- Node2
8058
8059    function Next_Named_Actual
8060      (N : Node_Id) return Node_Id;    -- Node4
8061
8062    function Next_Pragma
8063      (N : Node_Id) return Node_Id;    -- Node1
8064
8065    function Next_Rep_Item
8066      (N : Node_Id) return Node_Id;    -- Node5
8067
8068    function Next_Use_Clause
8069      (N : Node_Id) return Node_Id;    -- Node3
8070
8071    function No_Ctrl_Actions
8072      (N : Node_Id) return Boolean;    -- Flag7
8073
8074    function No_Elaboration_Check
8075      (N : Node_Id) return Boolean;    -- Flag14
8076
8077    function No_Entities_Ref_In_Spec
8078      (N : Node_Id) return Boolean;    -- Flag8
8079
8080    function No_Initialization
8081      (N : Node_Id) return Boolean;    -- Flag13
8082
8083    function No_Truncation
8084      (N : Node_Id) return Boolean;    -- Flag17
8085
8086    function Null_Present
8087      (N : Node_Id) return Boolean;    -- Flag13
8088
8089    function Null_Exclusion_Present
8090      (N : Node_Id) return Boolean;    -- Flag11
8091
8092    function Null_Exclusion_In_Return_Present
8093      (N : Node_Id) return Boolean;    -- Flag14
8094
8095    function Null_Record_Present
8096      (N : Node_Id) return Boolean;    -- Flag17
8097
8098    function Object_Definition
8099      (N : Node_Id) return Node_Id;    -- Node4
8100
8101    function Original_Discriminant
8102      (N : Node_Id) return Node_Id;    -- Node2
8103
8104    function Original_Entity
8105      (N : Node_Id) return Entity_Id;  -- Node2
8106
8107    function Others_Discrete_Choices
8108      (N : Node_Id) return List_Id;    -- List1
8109
8110    function Out_Present
8111      (N : Node_Id) return Boolean;    -- Flag17
8112
8113    function Parameter_Associations
8114      (N : Node_Id) return List_Id;    -- List3
8115
8116    function Parameter_List_Truncated
8117      (N : Node_Id) return Boolean;    -- Flag17
8118
8119    function Parameter_Specifications
8120      (N : Node_Id) return List_Id;    -- List3
8121
8122    function Parameter_Type
8123      (N : Node_Id) return Node_Id;    -- Node2
8124
8125    function Parent_Spec
8126      (N : Node_Id) return Node_Id;    -- Node4
8127
8128    function PPC_Enabled
8129      (N : Node_Id) return Boolean;    -- Flag5
8130
8131    function Position
8132      (N : Node_Id) return Node_Id;    -- Node2
8133
8134    function Pragma_Argument_Associations
8135      (N : Node_Id) return List_Id;    -- List2
8136
8137    function Pragma_Identifier
8138      (N : Node_Id) return Node_Id;    -- Node4
8139
8140    function Pragmas_After
8141      (N : Node_Id) return List_Id;    -- List5
8142
8143    function Pragmas_Before
8144      (N : Node_Id) return List_Id;    -- List4
8145
8146    function Prefix
8147      (N : Node_Id) return Node_Id;    -- Node3
8148
8149    function Present_Expr
8150      (N : Node_Id) return Uint;       -- Uint3
8151
8152    function Prev_Ids
8153      (N : Node_Id) return Boolean;    -- Flag6
8154
8155    function Print_In_Hex
8156      (N : Node_Id) return Boolean;    -- Flag13
8157
8158    function Private_Declarations
8159      (N : Node_Id) return List_Id;    -- List3
8160
8161    function Private_Present
8162      (N : Node_Id) return Boolean;    -- Flag15
8163
8164    function Procedure_To_Call
8165      (N : Node_Id) return Node_Id;    -- Node2
8166
8167    function Proper_Body
8168      (N : Node_Id) return Node_Id;    -- Node1
8169
8170    function Protected_Definition
8171      (N : Node_Id) return Node_Id;    -- Node3
8172
8173    function Protected_Present
8174      (N : Node_Id) return Boolean;    -- Flag6
8175
8176    function Raises_Constraint_Error
8177      (N : Node_Id) return Boolean;    -- Flag7
8178
8179    function Range_Constraint
8180      (N : Node_Id) return Node_Id;    -- Node4
8181
8182    function Range_Expression
8183      (N : Node_Id) return Node_Id;    -- Node4
8184
8185    function Real_Range_Specification
8186      (N : Node_Id) return Node_Id;    -- Node4
8187
8188    function Realval
8189      (N : Node_Id) return Ureal;      -- Ureal3
8190
8191    function Reason
8192      (N : Node_Id) return Uint;       -- Uint3
8193
8194    function Record_Extension_Part
8195      (N : Node_Id) return Node_Id;    -- Node3
8196
8197    function Redundant_Use
8198      (N : Node_Id) return Boolean;    -- Flag13
8199
8200    function Renaming_Exception
8201      (N : Node_Id) return Node_Id;    -- Node2
8202
8203    function Result_Definition
8204      (N : Node_Id) return Node_Id;    -- Node4
8205
8206    function Return_Object_Declarations
8207      (N : Node_Id) return List_Id;    -- List3
8208
8209    function Return_Statement_Entity
8210      (N : Node_Id) return Node_Id;    -- Node5
8211
8212    function Reverse_Present
8213      (N : Node_Id) return Boolean;    -- Flag15
8214
8215    function Right_Opnd
8216      (N : Node_Id) return Node_Id;    -- Node3
8217
8218    function Rounded_Result
8219      (N : Node_Id) return Boolean;    -- Flag18
8220
8221    function Scope
8222      (N : Node_Id) return Node_Id;    -- Node3
8223
8224    function Select_Alternatives
8225      (N : Node_Id) return List_Id;    -- List1
8226
8227    function Selector_Name
8228      (N : Node_Id) return Node_Id;    -- Node2
8229
8230    function Selector_Names
8231      (N : Node_Id) return List_Id;    -- List1
8232
8233    function Shift_Count_OK
8234      (N : Node_Id) return Boolean;    -- Flag4
8235
8236    function Source_Type
8237      (N : Node_Id) return Entity_Id;  -- Node1
8238
8239    function Specification
8240      (N : Node_Id) return Node_Id;    -- Node1
8241
8242    function Statements
8243      (N : Node_Id) return List_Id;    -- List3
8244
8245    function Static_Processing_OK
8246      (N : Node_Id) return Boolean;    -- Flag4
8247
8248    function Storage_Pool
8249      (N : Node_Id) return Node_Id;    -- Node1
8250
8251    function Strval
8252      (N : Node_Id) return String_Id;  -- Str3
8253
8254    function Subtype_Indication
8255      (N : Node_Id) return Node_Id;    -- Node5
8256
8257    function Subtype_Mark
8258      (N : Node_Id) return Node_Id;    -- Node4
8259
8260    function Subtype_Marks
8261      (N : Node_Id) return List_Id;    -- List2
8262
8263    function Suppress_Loop_Warnings
8264      (N : Node_Id) return Boolean;    -- Flag17
8265
8266    function Synchronized_Present
8267      (N : Node_Id) return Boolean;    -- Flag7
8268
8269    function Tagged_Present
8270      (N : Node_Id) return Boolean;    -- Flag15
8271
8272    function Target_Type
8273      (N : Node_Id) return Entity_Id;  -- Node2
8274
8275    function Task_Definition
8276      (N : Node_Id) return Node_Id;    -- Node3
8277
8278    function Task_Present
8279      (N : Node_Id) return Boolean;    -- Flag5
8280
8281    function Then_Actions
8282      (N : Node_Id) return List_Id;    -- List2
8283
8284    function Then_Statements
8285      (N : Node_Id) return List_Id;    -- List2
8286
8287    function Treat_Fixed_As_Integer
8288      (N : Node_Id) return Boolean;    -- Flag14
8289
8290    function Triggering_Alternative
8291      (N : Node_Id) return Node_Id;    -- Node1
8292
8293    function Triggering_Statement
8294      (N : Node_Id) return Node_Id;    -- Node1
8295
8296    function TSS_Elist
8297      (N : Node_Id) return Elist_Id;   -- Elist3
8298
8299    function Type_Definition
8300      (N : Node_Id) return Node_Id;    -- Node3
8301
8302    function Unit
8303      (N : Node_Id) return Node_Id;    -- Node2
8304
8305    function Unknown_Discriminants_Present
8306      (N : Node_Id) return Boolean;    -- Flag13
8307
8308    function Unreferenced_In_Spec
8309      (N : Node_Id) return Boolean;    -- Flag7
8310
8311    function Variant_Part
8312      (N : Node_Id) return Node_Id;    -- Node4
8313
8314    function Variants
8315      (N : Node_Id) return List_Id;    -- List1
8316
8317    function Visible_Declarations
8318      (N : Node_Id) return List_Id;    -- List2
8319
8320    function Was_Originally_Stub
8321      (N : Node_Id) return Boolean;    -- Flag13
8322
8323    function Zero_Cost_Handling
8324      (N : Node_Id) return Boolean;    -- Flag5
8325
8326    --  End functions (note used by xsinfo utility program to end processing)
8327
8328    ----------------------------
8329    -- Node Update Procedures --
8330    ----------------------------
8331
8332    --  These are the corresponding node update routines, which again provide
8333    --  a high level logical access with type checking. In addition to setting
8334    --  the indicated field of the node N to the given Val, in the case of
8335    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8336    --  point back to node N. This automates the setting of the parent pointer.
8337
8338    procedure Set_ABE_Is_Certain
8339      (N : Node_Id; Val : Boolean := True);    -- Flag18
8340
8341    procedure Set_Abort_Present
8342      (N : Node_Id; Val : Boolean := True);    -- Flag15
8343
8344    procedure Set_Abortable_Part
8345      (N : Node_Id; Val : Node_Id);            -- Node2
8346
8347    procedure Set_Abstract_Present
8348      (N : Node_Id; Val : Boolean := True);    -- Flag4
8349
8350    procedure Set_Accept_Handler_Records
8351      (N : Node_Id; Val : List_Id);            -- List5
8352
8353    procedure Set_Accept_Statement
8354      (N : Node_Id; Val : Node_Id);            -- Node2
8355
8356    procedure Set_Access_Definition
8357      (N : Node_Id; Val : Node_Id);            -- Node3
8358
8359    procedure Set_Access_To_Subprogram_Definition
8360      (N : Node_Id; Val : Node_Id);            -- Node3
8361
8362    procedure Set_Access_Types_To_Process
8363      (N : Node_Id; Val : Elist_Id);           -- Elist2
8364
8365    procedure Set_Actions
8366      (N : Node_Id; Val : List_Id);            -- List1
8367
8368    procedure Set_Activation_Chain_Entity
8369      (N : Node_Id; Val : Node_Id);            -- Node3
8370
8371    procedure Set_Acts_As_Spec
8372      (N : Node_Id; Val : Boolean := True);    -- Flag4
8373
8374    procedure Set_Actual_Designated_Subtype
8375      (N : Node_Id; Val : Node_Id);            -- Node4
8376
8377    procedure Set_Address_Warning_Posted
8378      (N : Node_Id; Val : Boolean := True);    -- Flag18
8379
8380    procedure Set_Aggregate_Bounds
8381      (N : Node_Id; Val : Node_Id);            -- Node3
8382
8383    procedure Set_Aliased_Present
8384      (N : Node_Id; Val : Boolean := True);    -- Flag4
8385
8386    procedure Set_All_Others
8387      (N : Node_Id; Val : Boolean := True);    -- Flag11
8388
8389    procedure Set_All_Present
8390      (N : Node_Id; Val : Boolean := True);    -- Flag15
8391
8392    procedure Set_Alternatives
8393      (N : Node_Id; Val : List_Id);            -- List4
8394
8395    procedure Set_Ancestor_Part
8396      (N : Node_Id; Val : Node_Id);            -- Node3
8397
8398    procedure Set_Array_Aggregate
8399      (N : Node_Id; Val : Node_Id);            -- Node3
8400
8401    procedure Set_Assignment_OK
8402      (N : Node_Id; Val : Boolean := True);    -- Flag15
8403
8404    procedure Set_Associated_Node
8405      (N : Node_Id; Val : Node_Id);            -- Node4
8406
8407    procedure Set_Attribute_Name
8408      (N : Node_Id; Val : Name_Id);            -- Name2
8409
8410    procedure Set_At_End_Proc
8411      (N : Node_Id; Val : Node_Id);            -- Node1
8412
8413    procedure Set_Aux_Decls_Node
8414      (N : Node_Id; Val : Node_Id);            -- Node5
8415
8416    procedure Set_Backwards_OK
8417      (N : Node_Id; Val : Boolean := True);    -- Flag6
8418
8419    procedure Set_Bad_Is_Detected
8420      (N : Node_Id; Val : Boolean := True);    -- Flag15
8421
8422    procedure Set_Body_Required
8423      (N : Node_Id; Val : Boolean := True);    -- Flag13
8424
8425    procedure Set_Body_To_Inline
8426      (N : Node_Id; Val : Node_Id);            -- Node3
8427
8428    procedure Set_Box_Present
8429      (N : Node_Id; Val : Boolean := True);    -- Flag15
8430
8431    procedure Set_By_Ref
8432      (N : Node_Id; Val : Boolean := True);    -- Flag5
8433
8434    procedure Set_Char_Literal_Value
8435      (N : Node_Id; Val : Uint);               -- Uint2
8436
8437    procedure Set_Chars
8438      (N : Node_Id; Val : Name_Id);            -- Name1
8439
8440    procedure Set_Check_Address_Alignment
8441      (N : Node_Id; Val : Boolean := True);    -- Flag11
8442
8443    procedure Set_Choice_Parameter
8444      (N : Node_Id; Val : Node_Id);            -- Node2
8445
8446    procedure Set_Coextensions
8447      (N : Node_Id; Val : Elist_Id);           -- Elist4
8448
8449    procedure Set_Choices
8450      (N : Node_Id; Val : List_Id);            -- List1
8451
8452    procedure Set_Comes_From_Extended_Return_Statement
8453      (N : Node_Id; Val : Boolean := True);    -- Flag18
8454
8455    procedure Set_Compile_Time_Known_Aggregate
8456      (N : Node_Id; Val : Boolean := True);    -- Flag18
8457
8458    procedure Set_Component_Associations
8459      (N : Node_Id; Val : List_Id);            -- List2
8460
8461    procedure Set_Component_Clauses
8462      (N : Node_Id; Val : List_Id);            -- List3
8463
8464    procedure Set_Component_Definition
8465      (N : Node_Id; Val : Node_Id);            -- Node4
8466
8467    procedure Set_Component_Items
8468      (N : Node_Id; Val : List_Id);            -- List3
8469
8470    procedure Set_Component_List
8471      (N : Node_Id; Val : Node_Id);            -- Node1
8472
8473    procedure Set_Component_Name
8474      (N : Node_Id; Val : Node_Id);            -- Node1
8475
8476    procedure Set_Condition
8477      (N : Node_Id; Val : Node_Id);            -- Node1
8478
8479    procedure Set_Condition_Actions
8480      (N : Node_Id; Val : List_Id);            -- List3
8481
8482    procedure Set_Config_Pragmas
8483      (N : Node_Id; Val : List_Id);            -- List4
8484
8485    procedure Set_Constant_Present
8486      (N : Node_Id; Val : Boolean := True);    -- Flag17
8487
8488    procedure Set_Constraint
8489      (N : Node_Id; Val : Node_Id);            -- Node3
8490
8491    procedure Set_Constraints
8492      (N : Node_Id; Val : List_Id);            -- List1
8493
8494    procedure Set_Context_Installed
8495      (N : Node_Id; Val : Boolean := True);    -- Flag13
8496
8497    procedure Set_Context_Items
8498      (N : Node_Id; Val : List_Id);            -- List1
8499
8500    procedure Set_Controlling_Argument
8501      (N : Node_Id; Val : Node_Id);            -- Node1
8502
8503    procedure Set_Conversion_OK
8504      (N : Node_Id; Val : Boolean := True);    -- Flag14
8505
8506    procedure Set_Corresponding_Body
8507      (N : Node_Id; Val : Node_Id);            -- Node5
8508
8509    procedure Set_Corresponding_Formal_Spec
8510      (N : Node_Id; Val : Node_Id);            -- Node3
8511
8512    procedure Set_Corresponding_Generic_Association
8513      (N : Node_Id; Val : Node_Id);            -- Node5
8514
8515    procedure Set_Corresponding_Integer_Value
8516      (N : Node_Id; Val : Uint);               -- Uint4
8517
8518    procedure Set_Corresponding_Spec
8519      (N : Node_Id; Val : Node_Id);            -- Node5
8520
8521    procedure Set_Corresponding_Stub
8522      (N : Node_Id; Val : Node_Id);            -- Node3
8523
8524    procedure Set_Dcheck_Function
8525      (N : Node_Id; Val : Entity_Id);          -- Node5
8526
8527    procedure Set_Debug_Statement
8528      (N : Node_Id; Val : Node_Id);            -- Node3
8529
8530    procedure Set_Declarations
8531      (N : Node_Id; Val : List_Id);            -- List2
8532
8533    procedure Set_Default_Expression
8534      (N : Node_Id; Val : Node_Id);            -- Node5
8535
8536    procedure Set_Default_Name
8537      (N : Node_Id; Val : Node_Id);            -- Node2
8538
8539    procedure Set_Defining_Identifier
8540      (N : Node_Id; Val : Entity_Id);          -- Node1
8541
8542    procedure Set_Defining_Unit_Name
8543      (N : Node_Id; Val : Node_Id);            -- Node1
8544
8545    procedure Set_Delay_Alternative
8546      (N : Node_Id; Val : Node_Id);            -- Node4
8547
8548    procedure Set_Delay_Statement
8549      (N : Node_Id; Val : Node_Id);            -- Node2
8550
8551    procedure Set_Delta_Expression
8552      (N : Node_Id; Val : Node_Id);            -- Node3
8553
8554    procedure Set_Digits_Expression
8555      (N : Node_Id; Val : Node_Id);            -- Node2
8556
8557    procedure Set_Discr_Check_Funcs_Built
8558      (N : Node_Id; Val : Boolean := True);    -- Flag11
8559
8560    procedure Set_Discrete_Choices
8561      (N : Node_Id; Val : List_Id);            -- List4
8562
8563    procedure Set_Discrete_Range
8564      (N : Node_Id; Val : Node_Id);            -- Node4
8565
8566    procedure Set_Discrete_Subtype_Definition
8567      (N : Node_Id; Val : Node_Id);            -- Node4
8568
8569    procedure Set_Discrete_Subtype_Definitions
8570      (N : Node_Id; Val : List_Id);            -- List2
8571
8572    procedure Set_Discriminant_Specifications
8573      (N : Node_Id; Val : List_Id);            -- List4
8574
8575    procedure Set_Discriminant_Type
8576      (N : Node_Id; Val : Node_Id);            -- Node5
8577
8578    procedure Set_Do_Accessibility_Check
8579      (N : Node_Id; Val : Boolean := True);    -- Flag13
8580
8581    procedure Set_Do_Discriminant_Check
8582      (N : Node_Id; Val : Boolean := True);    -- Flag13
8583
8584    procedure Set_Do_Division_Check
8585      (N : Node_Id; Val : Boolean := True);    -- Flag13
8586
8587    procedure Set_Do_Length_Check
8588      (N : Node_Id; Val : Boolean := True);    -- Flag4
8589
8590    procedure Set_Do_Overflow_Check
8591      (N : Node_Id; Val : Boolean := True);    -- Flag17
8592
8593    procedure Set_Do_Range_Check
8594      (N : Node_Id; Val : Boolean := True);    -- Flag9
8595
8596    procedure Set_Do_Storage_Check
8597      (N : Node_Id; Val : Boolean := True);    -- Flag17
8598
8599    procedure Set_Do_Tag_Check
8600      (N : Node_Id; Val : Boolean := True);    -- Flag13
8601
8602    procedure Set_Elaborate_All_Desirable
8603      (N : Node_Id; Val : Boolean := True);    -- Flag9
8604
8605    procedure Set_Elaborate_All_Present
8606      (N : Node_Id; Val : Boolean := True);    -- Flag14
8607
8608    procedure Set_Elaborate_Desirable
8609      (N : Node_Id; Val : Boolean := True);    -- Flag11
8610
8611    procedure Set_Elaborate_Present
8612      (N : Node_Id; Val : Boolean := True);    -- Flag4
8613
8614    procedure Set_Elaboration_Boolean
8615      (N : Node_Id; Val : Node_Id);            -- Node2
8616
8617    procedure Set_Else_Actions
8618      (N : Node_Id; Val : List_Id);            -- List3
8619
8620    procedure Set_Else_Statements
8621      (N : Node_Id; Val : List_Id);            -- List4
8622
8623    procedure Set_Elsif_Parts
8624      (N : Node_Id; Val : List_Id);            -- List3
8625
8626    procedure Set_Enclosing_Variant
8627      (N : Node_Id; Val : Node_Id);            -- Node2
8628
8629    procedure Set_End_Label
8630      (N : Node_Id; Val : Node_Id);            -- Node4
8631
8632    procedure Set_End_Span
8633      (N : Node_Id; Val : Uint);               -- Uint5
8634
8635    procedure Set_Entity
8636      (N : Node_Id; Val : Node_Id);            -- Node4
8637
8638    procedure Set_Entry_Body_Formal_Part
8639      (N : Node_Id; Val : Node_Id);            -- Node5
8640
8641    procedure Set_Entry_Call_Alternative
8642      (N : Node_Id; Val : Node_Id);            -- Node1
8643
8644    procedure Set_Entry_Call_Statement
8645      (N : Node_Id; Val : Node_Id);            -- Node1
8646
8647    procedure Set_Entry_Direct_Name
8648      (N : Node_Id; Val : Node_Id);            -- Node1
8649
8650    procedure Set_Entry_Index
8651      (N : Node_Id; Val : Node_Id);            -- Node5
8652
8653    procedure Set_Entry_Index_Specification
8654      (N : Node_Id; Val : Node_Id);            -- Node4
8655
8656    procedure Set_Etype
8657      (N : Node_Id; Val : Node_Id);            -- Node5
8658
8659    procedure Set_Exception_Choices
8660      (N : Node_Id; Val : List_Id);            -- List4
8661
8662    procedure Set_Exception_Handlers
8663      (N : Node_Id; Val : List_Id);            -- List5
8664
8665    procedure Set_Exception_Junk
8666      (N : Node_Id; Val : Boolean := True);    -- Flag8
8667
8668    procedure Set_Exception_Label
8669      (N : Node_Id; Val : Node_Id);            -- Node5
8670
8671    procedure Set_Expansion_Delayed
8672      (N : Node_Id; Val : Boolean := True);    -- Flag11
8673
8674    procedure Set_Explicit_Actual_Parameter
8675      (N : Node_Id; Val : Node_Id);            -- Node3
8676
8677    procedure Set_Explicit_Generic_Actual_Parameter
8678      (N : Node_Id; Val : Node_Id);            -- Node1
8679
8680    procedure Set_Expression
8681      (N : Node_Id; Val : Node_Id);            -- Node3
8682
8683    procedure Set_Expressions
8684      (N : Node_Id; Val : List_Id);            -- List1
8685
8686    procedure Set_First_Bit
8687      (N : Node_Id; Val : Node_Id);            -- Node3
8688
8689    procedure Set_First_Inlined_Subprogram
8690      (N : Node_Id; Val : Entity_Id);          -- Node3
8691
8692    procedure Set_First_Name
8693      (N : Node_Id; Val : Boolean := True);    -- Flag5
8694
8695    procedure Set_First_Named_Actual
8696      (N : Node_Id; Val : Node_Id);            -- Node4
8697
8698    procedure Set_First_Real_Statement
8699      (N : Node_Id; Val : Node_Id);            -- Node2
8700
8701    procedure Set_First_Subtype_Link
8702      (N : Node_Id; Val : Entity_Id);          -- Node5
8703
8704    procedure Set_Float_Truncate
8705      (N : Node_Id; Val : Boolean := True);    -- Flag11
8706
8707    procedure Set_Formal_Type_Definition
8708      (N : Node_Id; Val : Node_Id);            -- Node3
8709
8710    procedure Set_Forwards_OK
8711      (N : Node_Id; Val : Boolean := True);    -- Flag5
8712
8713    procedure Set_From_At_Mod
8714      (N : Node_Id; Val : Boolean := True);    -- Flag4
8715
8716    procedure Set_From_At_End
8717      (N : Node_Id; Val : Boolean := True);    -- Flag4
8718
8719    procedure Set_From_Default
8720      (N : Node_Id; Val : Boolean := True);    -- Flag6
8721
8722    procedure Set_Generic_Associations
8723      (N : Node_Id; Val : List_Id);            -- List3
8724
8725    procedure Set_Generic_Formal_Declarations
8726      (N : Node_Id; Val : List_Id);            -- List2
8727
8728    procedure Set_Generic_Parent
8729      (N : Node_Id; Val : Node_Id);            -- Node5
8730
8731    procedure Set_Generic_Parent_Type
8732      (N : Node_Id; Val : Node_Id);            -- Node4
8733
8734    procedure Set_Handled_Statement_Sequence
8735      (N : Node_Id; Val : Node_Id);            -- Node4
8736
8737    procedure Set_Handler_List_Entry
8738      (N : Node_Id; Val : Node_Id);            -- Node2
8739
8740    procedure Set_Has_Created_Identifier
8741      (N : Node_Id; Val : Boolean := True);    -- Flag15
8742
8743    procedure Set_Has_Dynamic_Length_Check
8744      (N : Node_Id; Val : Boolean := True);    -- Flag10
8745
8746    procedure Set_Has_Dynamic_Range_Check
8747      (N : Node_Id; Val : Boolean := True);    -- Flag12
8748
8749    procedure Set_Has_Init_Expression
8750      (N : Node_Id; Val : Boolean := True);    -- Flag14
8751
8752    procedure Set_Has_Local_Raise
8753      (N : Node_Id; Val : Boolean := True);    -- Flag8
8754
8755    procedure Set_Has_No_Elaboration_Code
8756      (N : Node_Id; Val : Boolean := True);    -- Flag17
8757
8758    procedure Set_Has_Priority_Pragma
8759      (N : Node_Id; Val : Boolean := True);    -- Flag6
8760
8761    procedure Set_Has_Private_View
8762      (N : Node_Id; Val : Boolean := True);    -- Flag11
8763
8764    procedure Set_Has_Relative_Deadline_Pragma
8765      (N : Node_Id; Val : Boolean := True);    -- Flag9
8766
8767    procedure Set_Has_Self_Reference
8768      (N : Node_Id; Val : Boolean := True);    -- Flag13
8769
8770    procedure Set_Has_Storage_Size_Pragma
8771      (N : Node_Id; Val : Boolean := True);    -- Flag5
8772
8773    procedure Set_Has_Task_Info_Pragma
8774      (N : Node_Id; Val : Boolean := True);    -- Flag7
8775
8776    procedure Set_Has_Task_Name_Pragma
8777      (N : Node_Id; Val : Boolean := True);    -- Flag8
8778
8779    procedure Set_Has_Wide_Character
8780      (N : Node_Id; Val : Boolean := True);    -- Flag11
8781
8782    procedure Set_Hidden_By_Use_Clause
8783      (N : Node_Id; Val : Elist_Id);           -- Elist4
8784
8785    procedure Set_High_Bound
8786      (N : Node_Id; Val : Node_Id);            -- Node2
8787
8788    procedure Set_Identifier
8789      (N : Node_Id; Val : Node_Id);            -- Node1
8790
8791    procedure Set_Interface_List
8792      (N : Node_Id; Val : List_Id);            -- List2
8793
8794    procedure Set_Interface_Present
8795      (N : Node_Id; Val : Boolean := True);    -- Flag16
8796
8797    procedure Set_Implicit_With
8798      (N : Node_Id; Val : Boolean := True);    -- Flag16
8799
8800    procedure Set_In_Present
8801      (N : Node_Id; Val : Boolean := True);    -- Flag15
8802
8803    procedure Set_Includes_Infinities
8804      (N : Node_Id; Val : Boolean := True);    -- Flag11
8805
8806    procedure Set_Instance_Spec
8807      (N : Node_Id; Val : Node_Id);            -- Node5
8808
8809    procedure Set_Intval
8810      (N : Node_Id; Val : Uint);               -- Uint3
8811
8812    procedure Set_Is_Asynchronous_Call_Block
8813      (N : Node_Id; Val : Boolean := True);    -- Flag7
8814
8815    procedure Set_Is_Component_Left_Opnd
8816      (N : Node_Id; Val : Boolean := True);    -- Flag13
8817
8818    procedure Set_Is_Component_Right_Opnd
8819      (N : Node_Id; Val : Boolean := True);    -- Flag14
8820
8821    procedure Set_Is_Controlling_Actual
8822      (N : Node_Id; Val : Boolean := True);    -- Flag16
8823
8824    procedure Set_Is_Dynamic_Coextension
8825      (N : Node_Id; Val : Boolean := True);    -- Flag18
8826
8827    procedure Set_Is_Entry_Barrier_Function
8828      (N : Node_Id; Val : Boolean := True);    -- Flag8
8829
8830    procedure Set_Is_Expanded_Build_In_Place_Call
8831      (N : Node_Id; Val : Boolean := True);    -- Flag11
8832
8833    procedure Set_Is_Folded_In_Parser
8834      (N : Node_Id; Val : Boolean := True);    -- Flag4
8835
8836    procedure Set_Is_In_Discriminant_Check
8837      (N : Node_Id; Val : Boolean := True);    -- Flag11
8838
8839    procedure Set_Is_Machine_Number
8840      (N : Node_Id; Val : Boolean := True);    -- Flag11
8841
8842    procedure Set_Is_Null_Loop
8843      (N : Node_Id; Val : Boolean := True);    -- Flag16
8844
8845    procedure Set_Is_Overloaded
8846      (N : Node_Id; Val : Boolean := True);    -- Flag5
8847
8848    procedure Set_Is_Power_Of_2_For_Shift
8849      (N : Node_Id; Val : Boolean := True);    -- Flag13
8850
8851    procedure Set_Is_Protected_Subprogram_Body
8852      (N : Node_Id; Val : Boolean := True);    -- Flag7
8853
8854    procedure Set_Is_Static_Coextension
8855      (N : Node_Id; Val : Boolean := True);    -- Flag14
8856
8857    procedure Set_Is_Static_Expression
8858      (N : Node_Id; Val : Boolean := True);    -- Flag6
8859
8860    procedure Set_Is_Subprogram_Descriptor
8861      (N : Node_Id; Val : Boolean := True);    -- Flag16
8862
8863    procedure Set_Is_Task_Allocation_Block
8864      (N : Node_Id; Val : Boolean := True);    -- Flag6
8865
8866    procedure Set_Is_Task_Master
8867      (N : Node_Id; Val : Boolean := True);    -- Flag5
8868
8869    procedure Set_Iteration_Scheme
8870      (N : Node_Id; Val : Node_Id);            -- Node2
8871
8872    procedure Set_Itype
8873      (N : Node_Id; Val : Entity_Id);          -- Node1
8874
8875    procedure Set_Kill_Range_Check
8876      (N : Node_Id; Val : Boolean := True);    -- Flag11
8877
8878    procedure Set_Last_Bit
8879      (N : Node_Id; Val : Node_Id);            -- Node4
8880
8881    procedure Set_Last_Name
8882      (N : Node_Id; Val : Boolean := True);    -- Flag6
8883
8884    procedure Set_Library_Unit
8885      (N : Node_Id; Val : Node_Id);            -- Node4
8886
8887    procedure Set_Label_Construct
8888      (N : Node_Id; Val : Node_Id);            -- Node2
8889
8890    procedure Set_Left_Opnd
8891      (N : Node_Id; Val : Node_Id);            -- Node2
8892
8893    procedure Set_Limited_View_Installed
8894      (N : Node_Id; Val : Boolean := True);    -- Flag18
8895
8896    procedure Set_Limited_Present
8897      (N : Node_Id; Val : Boolean := True);    -- Flag17
8898
8899    procedure Set_Literals
8900      (N : Node_Id; Val : List_Id);            -- List1
8901
8902    procedure Set_Local_Raise_Not_OK
8903      (N : Node_Id; Val : Boolean := True);    -- Flag7
8904
8905    procedure Set_Local_Raise_Statements
8906      (N : Node_Id; Val : Elist_Id);           -- Elist1
8907
8908    procedure Set_Loop_Actions
8909      (N : Node_Id; Val : List_Id);            -- List2
8910
8911    procedure Set_Loop_Parameter_Specification
8912      (N : Node_Id; Val : Node_Id);            -- Node4
8913
8914    procedure Set_Low_Bound
8915      (N : Node_Id; Val : Node_Id);            -- Node1
8916
8917    procedure Set_Mod_Clause
8918      (N : Node_Id; Val : Node_Id);            -- Node2
8919
8920    procedure Set_More_Ids
8921      (N : Node_Id; Val : Boolean := True);    -- Flag5
8922
8923    procedure Set_Must_Be_Byte_Aligned
8924      (N : Node_Id; Val : Boolean := True);    -- Flag14
8925
8926    procedure Set_Must_Not_Freeze
8927      (N : Node_Id; Val : Boolean := True);    -- Flag8
8928
8929    procedure Set_Must_Not_Override
8930      (N : Node_Id; Val : Boolean := True);    -- Flag15
8931
8932    procedure Set_Must_Override
8933      (N : Node_Id; Val : Boolean := True);    -- Flag14
8934
8935    procedure Set_Name
8936      (N : Node_Id; Val : Node_Id);            -- Node2
8937
8938    procedure Set_Names
8939      (N : Node_Id; Val : List_Id);            -- List2
8940
8941    procedure Set_Next_Entity
8942      (N : Node_Id; Val : Node_Id);            -- Node2
8943
8944    procedure Set_Next_Named_Actual
8945      (N : Node_Id; Val : Node_Id);            -- Node4
8946
8947    procedure Set_Next_Pragma
8948      (N : Node_Id; Val : Node_Id);            -- Node1
8949
8950    procedure Set_Next_Rep_Item
8951      (N : Node_Id; Val : Node_Id);            -- Node5
8952
8953    procedure Set_Next_Use_Clause
8954      (N : Node_Id; Val : Node_Id);            -- Node3
8955
8956    procedure Set_No_Ctrl_Actions
8957      (N : Node_Id; Val : Boolean := True);    -- Flag7
8958
8959    procedure Set_No_Elaboration_Check
8960      (N : Node_Id; Val : Boolean := True);    -- Flag14
8961
8962    procedure Set_No_Entities_Ref_In_Spec
8963      (N : Node_Id; Val : Boolean := True);    -- Flag8
8964
8965    procedure Set_No_Initialization
8966      (N : Node_Id; Val : Boolean := True);    -- Flag13
8967
8968    procedure Set_No_Truncation
8969      (N : Node_Id; Val : Boolean := True);    -- Flag17
8970
8971    procedure Set_Null_Present
8972      (N : Node_Id; Val : Boolean := True);    -- Flag13
8973
8974    procedure Set_Null_Exclusion_Present
8975      (N : Node_Id; Val : Boolean := True);    -- Flag11
8976
8977    procedure Set_Null_Exclusion_In_Return_Present
8978      (N : Node_Id; Val : Boolean := True);    -- Flag14
8979
8980    procedure Set_Null_Record_Present
8981      (N : Node_Id; Val : Boolean := True);    -- Flag17
8982
8983    procedure Set_Object_Definition
8984      (N : Node_Id; Val : Node_Id);            -- Node4
8985
8986    procedure Set_Original_Discriminant
8987      (N : Node_Id; Val : Node_Id);            -- Node2
8988
8989    procedure Set_Original_Entity
8990      (N : Node_Id; Val : Entity_Id);          -- Node2
8991
8992    procedure Set_Others_Discrete_Choices
8993      (N : Node_Id; Val : List_Id);            -- List1
8994
8995    procedure Set_Out_Present
8996      (N : Node_Id; Val : Boolean := True);    -- Flag17
8997
8998    procedure Set_Parameter_Associations
8999      (N : Node_Id; Val : List_Id);            -- List3
9000
9001    procedure Set_Parameter_List_Truncated
9002      (N : Node_Id; Val : Boolean := True);    -- Flag17
9003
9004    procedure Set_Parameter_Specifications
9005      (N : Node_Id; Val : List_Id);            -- List3
9006
9007    procedure Set_Parameter_Type
9008      (N : Node_Id; Val : Node_Id);            -- Node2
9009
9010    procedure Set_Parent_Spec
9011      (N : Node_Id; Val : Node_Id);            -- Node4
9012
9013    procedure Set_PPC_Enabled
9014      (N : Node_Id; Val : Boolean := True);    -- Flag5
9015
9016    procedure Set_Position
9017      (N : Node_Id; Val : Node_Id);            -- Node2
9018
9019    procedure Set_Pragma_Argument_Associations
9020      (N : Node_Id; Val : List_Id);            -- List2
9021
9022    procedure Set_Pragma_Identifier
9023      (N : Node_Id; Val : Node_Id);            -- Node4
9024
9025    procedure Set_Pragmas_After
9026      (N : Node_Id; Val : List_Id);            -- List5
9027
9028    procedure Set_Pragmas_Before
9029      (N : Node_Id; Val : List_Id);            -- List4
9030
9031    procedure Set_Prefix
9032      (N : Node_Id; Val : Node_Id);            -- Node3
9033
9034    procedure Set_Present_Expr
9035      (N : Node_Id; Val : Uint);               -- Uint3
9036
9037    procedure Set_Prev_Ids
9038      (N : Node_Id; Val : Boolean := True);    -- Flag6
9039
9040    procedure Set_Print_In_Hex
9041      (N : Node_Id; Val : Boolean := True);    -- Flag13
9042
9043    procedure Set_Private_Declarations
9044      (N : Node_Id; Val : List_Id);            -- List3
9045
9046    procedure Set_Private_Present
9047      (N : Node_Id; Val : Boolean := True);    -- Flag15
9048
9049    procedure Set_Procedure_To_Call
9050      (N : Node_Id; Val : Node_Id);            -- Node2
9051
9052    procedure Set_Proper_Body
9053      (N : Node_Id; Val : Node_Id);            -- Node1
9054
9055    procedure Set_Protected_Definition
9056      (N : Node_Id; Val : Node_Id);            -- Node3
9057
9058    procedure Set_Protected_Present
9059      (N : Node_Id; Val : Boolean := True);    -- Flag6
9060
9061    procedure Set_Raises_Constraint_Error
9062      (N : Node_Id; Val : Boolean := True);    -- Flag7
9063
9064    procedure Set_Range_Constraint
9065      (N : Node_Id; Val : Node_Id);            -- Node4
9066
9067    procedure Set_Range_Expression
9068      (N : Node_Id; Val : Node_Id);            -- Node4
9069
9070    procedure Set_Real_Range_Specification
9071      (N : Node_Id; Val : Node_Id);            -- Node4
9072
9073    procedure Set_Realval
9074      (N : Node_Id; Val : Ureal);              -- Ureal3
9075
9076    procedure Set_Reason
9077      (N : Node_Id; Val : Uint);               -- Uint3
9078
9079    procedure Set_Record_Extension_Part
9080      (N : Node_Id; Val : Node_Id);            -- Node3
9081
9082    procedure Set_Redundant_Use
9083      (N : Node_Id; Val : Boolean := True);    -- Flag13
9084
9085    procedure Set_Renaming_Exception
9086      (N : Node_Id; Val : Node_Id);            -- Node2
9087
9088    procedure Set_Result_Definition
9089      (N : Node_Id; Val : Node_Id);            -- Node4
9090
9091    procedure Set_Return_Object_Declarations
9092      (N : Node_Id; Val : List_Id);            -- List3
9093
9094    procedure Set_Return_Statement_Entity
9095      (N : Node_Id; Val : Node_Id);            -- Node5
9096
9097    procedure Set_Reverse_Present
9098      (N : Node_Id; Val : Boolean := True);    -- Flag15
9099
9100    procedure Set_Right_Opnd
9101      (N : Node_Id; Val : Node_Id);            -- Node3
9102
9103    procedure Set_Rounded_Result
9104      (N : Node_Id; Val : Boolean := True);    -- Flag18
9105
9106    procedure Set_Scope
9107      (N : Node_Id; Val : Node_Id);            -- Node3
9108
9109    procedure Set_Select_Alternatives
9110      (N : Node_Id; Val : List_Id);            -- List1
9111
9112    procedure Set_Selector_Name
9113      (N : Node_Id; Val : Node_Id);            -- Node2
9114
9115    procedure Set_Selector_Names
9116      (N : Node_Id; Val : List_Id);            -- List1
9117
9118    procedure Set_Shift_Count_OK
9119      (N : Node_Id; Val : Boolean := True);    -- Flag4
9120
9121    procedure Set_Source_Type
9122      (N : Node_Id; Val : Entity_Id);          -- Node1
9123
9124    procedure Set_Specification
9125      (N : Node_Id; Val : Node_Id);            -- Node1
9126
9127    procedure Set_Statements
9128      (N : Node_Id; Val : List_Id);            -- List3
9129
9130    procedure Set_Static_Processing_OK
9131      (N : Node_Id; Val : Boolean);            -- Flag4
9132
9133    procedure Set_Storage_Pool
9134      (N : Node_Id; Val : Node_Id);            -- Node1
9135
9136    procedure Set_Strval
9137      (N : Node_Id; Val : String_Id);          -- Str3
9138
9139    procedure Set_Subtype_Indication
9140      (N : Node_Id; Val : Node_Id);            -- Node5
9141
9142    procedure Set_Subtype_Mark
9143      (N : Node_Id; Val : Node_Id);            -- Node4
9144
9145    procedure Set_Subtype_Marks
9146      (N : Node_Id; Val : List_Id);            -- List2
9147
9148    procedure Set_Suppress_Loop_Warnings
9149      (N : Node_Id; Val : Boolean := True);    -- Flag17
9150
9151    procedure Set_Synchronized_Present
9152      (N : Node_Id; Val : Boolean := True);    -- Flag7
9153
9154    procedure Set_Tagged_Present
9155      (N : Node_Id; Val : Boolean := True);    -- Flag15
9156
9157    procedure Set_Target_Type
9158      (N : Node_Id; Val : Entity_Id);          -- Node2
9159
9160    procedure Set_Task_Definition
9161      (N : Node_Id; Val : Node_Id);            -- Node3
9162
9163    procedure Set_Task_Present
9164      (N : Node_Id; Val : Boolean := True);    -- Flag5
9165
9166    procedure Set_Then_Actions
9167      (N : Node_Id; Val : List_Id);            -- List2
9168
9169    procedure Set_Then_Statements
9170      (N : Node_Id; Val : List_Id);            -- List2
9171
9172    procedure Set_Treat_Fixed_As_Integer
9173      (N : Node_Id; Val : Boolean := True);    -- Flag14
9174
9175    procedure Set_Triggering_Alternative
9176      (N : Node_Id; Val : Node_Id);            -- Node1
9177
9178    procedure Set_Triggering_Statement
9179      (N : Node_Id; Val : Node_Id);            -- Node1
9180
9181    procedure Set_TSS_Elist
9182      (N : Node_Id; Val : Elist_Id);           -- Elist3
9183
9184    procedure Set_Type_Definition
9185      (N : Node_Id; Val : Node_Id);            -- Node3
9186
9187    procedure Set_Unit
9188      (N : Node_Id; Val : Node_Id);            -- Node2
9189
9190    procedure Set_Unknown_Discriminants_Present
9191      (N : Node_Id; Val : Boolean := True);    -- Flag13
9192
9193    procedure Set_Unreferenced_In_Spec
9194      (N : Node_Id; Val : Boolean := True);    -- Flag7
9195
9196    procedure Set_Variant_Part
9197      (N : Node_Id; Val : Node_Id);            -- Node4
9198
9199    procedure Set_Variants
9200      (N : Node_Id; Val : List_Id);            -- List1
9201
9202    procedure Set_Visible_Declarations
9203      (N : Node_Id; Val : List_Id);            -- List2
9204
9205    procedure Set_Was_Originally_Stub
9206      (N : Node_Id; Val : Boolean := True);    -- Flag13
9207
9208    procedure Set_Zero_Cost_Handling
9209      (N : Node_Id; Val : Boolean := True);    -- Flag5
9210
9211    -------------------------
9212    -- Iterator Procedures --
9213    -------------------------
9214
9215    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9216
9217    procedure Next_Entity       (N : in out Node_Id);
9218    procedure Next_Named_Actual (N : in out Node_Id);
9219    procedure Next_Rep_Item     (N : in out Node_Id);
9220    procedure Next_Use_Clause   (N : in out Node_Id);
9221
9222    --------------------------------------
9223    -- Logical Access to End_Span Field --
9224    --------------------------------------
9225
9226    function End_Location (N : Node_Id) return Source_Ptr;
9227    --  N is an N_If_Statement or N_Case_Statement node, and this
9228    --  function returns the location of the IF token in the END IF
9229    --  sequence by translating the value of the End_Span field.
9230
9231    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9232    --  N is an N_If_Statement or N_Case_Statement node. This procedure
9233    --  sets the End_Span field to correspond to the given value S. In
9234    --  other words, End_Span is set to the difference between S and
9235    --  Sloc (N), the starting location.
9236
9237    --------------------------------
9238    -- Node_Kind Membership Tests --
9239    --------------------------------
9240
9241    --  The following functions allow a convenient notation for testing whether
9242    --  a Node_Kind value matches any one of a list of possible values. In each
9243    --  case True is returned if the given T argument is equal to any of the V
9244    --  arguments. Note that there is a similar set of functions defined in
9245    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
9246
9247    function Nkind_In
9248      (T  : Node_Kind;
9249       V1 : Node_Kind;
9250       V2 : Node_Kind) return Boolean;
9251
9252    function Nkind_In
9253      (T  : Node_Kind;
9254       V1 : Node_Kind;
9255       V2 : Node_Kind;
9256       V3 : Node_Kind) return Boolean;
9257
9258    function Nkind_In
9259      (T  : Node_Kind;
9260       V1 : Node_Kind;
9261       V2 : Node_Kind;
9262       V3 : Node_Kind;
9263       V4 : Node_Kind) return Boolean;
9264
9265    function Nkind_In
9266      (T  : Node_Kind;
9267       V1 : Node_Kind;
9268       V2 : Node_Kind;
9269       V3 : Node_Kind;
9270       V4 : Node_Kind;
9271       V5 : Node_Kind) return Boolean;
9272
9273    function Nkind_In
9274      (T  : Node_Kind;
9275       V1 : Node_Kind;
9276       V2 : Node_Kind;
9277       V3 : Node_Kind;
9278       V4 : Node_Kind;
9279       V5 : Node_Kind;
9280       V6 : Node_Kind) return Boolean;
9281
9282    function Nkind_In
9283      (T  : Node_Kind;
9284       V1 : Node_Kind;
9285       V2 : Node_Kind;
9286       V3 : Node_Kind;
9287       V4 : Node_Kind;
9288       V5 : Node_Kind;
9289       V6 : Node_Kind;
9290       V7 : Node_Kind) return Boolean;
9291
9292    function Nkind_In
9293      (T  : Node_Kind;
9294       V1 : Node_Kind;
9295       V2 : Node_Kind;
9296       V3 : Node_Kind;
9297       V4 : Node_Kind;
9298       V5 : Node_Kind;
9299       V6 : Node_Kind;
9300       V7 : Node_Kind;
9301       V8 : Node_Kind) return Boolean;
9302
9303    pragma Inline (Nkind_In);
9304    --  Inline all above functions
9305
9306    -----------------------
9307    -- Utility Functions --
9308    -----------------------
9309
9310    function Pragma_Name (N : Node_Id) return Name_Id;
9311    pragma Inline (Pragma_Name);
9312    --  Convenient function to obtain Chars field of Pragma_Identifier
9313
9314    -----------------------------
9315    -- Syntactic Parent Tables --
9316    -----------------------------
9317
9318    --  These tables show for each node, and for each of the five fields,
9319    --  whether the corresponding field is syntactic (True) or semantic (False).
9320    --  Unused entries are also set to False.
9321
9322    subtype Field_Num is Natural range 1 .. 5;
9323
9324    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9325
9326    --  Following entries can be built automatically from the sinfo sources
9327    --  using the makeisf utility (currently this program is in spitbol).
9328
9329      N_Identifier =>
9330        (1 => True,    --  Chars (Name1)
9331         2 => False,   --  Original_Discriminant (Node2-Sem)
9332         3 => False,   --  unused
9333         4 => False,   --  Entity (Node4-Sem)
9334         5 => False),  --  Etype (Node5-Sem)
9335
9336      N_Integer_Literal =>
9337        (1 => False,   --  unused
9338         2 => False,   --  Original_Entity (Node2-Sem)
9339         3 => True,    --  Intval (Uint3)
9340         4 => False,   --  unused
9341         5 => False),  --  Etype (Node5-Sem)
9342
9343      N_Real_Literal =>
9344        (1 => False,   --  unused
9345         2 => False,   --  Original_Entity (Node2-Sem)
9346         3 => True,    --  Realval (Ureal3)
9347         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9348         5 => False),  --  Etype (Node5-Sem)
9349
9350      N_Character_Literal =>
9351        (1 => True,    --  Chars (Name1)
9352         2 => True,    --  Char_Literal_Value (Uint2)
9353         3 => False,   --  unused
9354         4 => False,   --  Entity (Node4-Sem)
9355         5 => False),  --  Etype (Node5-Sem)
9356
9357      N_String_Literal =>
9358        (1 => False,   --  unused
9359         2 => False,   --  unused
9360         3 => True,    --  Strval (Str3)
9361         4 => False,   --  unused
9362         5 => False),  --  Etype (Node5-Sem)
9363
9364      N_Pragma =>
9365        (1 => False,   --  Next_Pragma (Node1-Sem)
9366         2 => True,    --  Pragma_Argument_Associations (List2)
9367         3 => True,    --  Debug_Statement (Node3)
9368         4 => True,    --  Pragma_Identifier (Node4)
9369         5 => False),  --  Next_Rep_Item (Node5-Sem)
9370
9371      N_Pragma_Argument_Association =>
9372        (1 => True,    --  Chars (Name1)
9373         2 => False,   --  unused
9374         3 => True,    --  Expression (Node3)
9375         4 => False,   --  unused
9376         5 => False),  --  unused
9377
9378      N_Defining_Identifier =>
9379        (1 => True,    --  Chars (Name1)
9380         2 => False,   --  Next_Entity (Node2-Sem)
9381         3 => False,   --  Scope (Node3-Sem)
9382         4 => False,   --  unused
9383         5 => False),  --  Etype (Node5-Sem)
9384
9385      N_Full_Type_Declaration =>
9386        (1 => True,    --  Defining_Identifier (Node1)
9387         2 => False,   --  unused
9388         3 => True,    --  Type_Definition (Node3)
9389         4 => True,    --  Discriminant_Specifications (List4)
9390         5 => False),  --  unused
9391
9392      N_Subtype_Declaration =>
9393        (1 => True,    --  Defining_Identifier (Node1)
9394         2 => False,   --  unused
9395         3 => False,   --  unused
9396         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9397         5 => True),   --  Subtype_Indication (Node5)
9398
9399      N_Subtype_Indication =>
9400        (1 => False,   --  unused
9401         2 => False,   --  unused
9402         3 => True,    --  Constraint (Node3)
9403         4 => True,    --  Subtype_Mark (Node4)
9404         5 => False),  --  Etype (Node5-Sem)
9405
9406      N_Object_Declaration =>
9407        (1 => True,    --  Defining_Identifier (Node1)
9408         2 => False,   --  Handler_List_Entry (Node2-Sem)
9409         3 => True,    --  Expression (Node3)
9410         4 => True,    --  Object_Definition (Node4)
9411         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9412
9413      N_Number_Declaration =>
9414        (1 => True,    --  Defining_Identifier (Node1)
9415         2 => False,   --  unused
9416         3 => True,    --  Expression (Node3)
9417         4 => False,   --  unused
9418         5 => False),  --  unused
9419
9420      N_Derived_Type_Definition =>
9421        (1 => False,   --  unused
9422         2 => True,    --  Interface_List (List2)
9423         3 => True,    --  Record_Extension_Part (Node3)
9424         4 => False,   --  unused
9425         5 => True),   --  Subtype_Indication (Node5)
9426
9427      N_Range_Constraint =>
9428        (1 => False,   --  unused
9429         2 => False,   --  unused
9430         3 => False,   --  unused
9431         4 => True,    --  Range_Expression (Node4)
9432         5 => False),  --  unused
9433
9434      N_Range =>
9435        (1 => True,    --  Low_Bound (Node1)
9436         2 => True,    --  High_Bound (Node2)
9437         3 => False,   --  unused
9438         4 => False,   --  unused
9439         5 => False),  --  Etype (Node5-Sem)
9440
9441      N_Enumeration_Type_Definition =>
9442        (1 => True,    --  Literals (List1)
9443         2 => False,   --  unused
9444         3 => False,   --  unused
9445         4 => True,    --  End_Label (Node4)
9446         5 => False),  --  unused
9447
9448      N_Defining_Character_Literal =>
9449        (1 => True,    --  Chars (Name1)
9450         2 => False,   --  Next_Entity (Node2-Sem)
9451         3 => False,   --  Scope (Node3-Sem)
9452         4 => False,   --  unused
9453         5 => False),  --  Etype (Node5-Sem)
9454
9455      N_Signed_Integer_Type_Definition =>
9456        (1 => True,    --  Low_Bound (Node1)
9457         2 => True,    --  High_Bound (Node2)
9458         3 => False,   --  unused
9459         4 => False,   --  unused
9460         5 => False),  --  unused
9461
9462      N_Modular_Type_Definition =>
9463        (1 => False,   --  unused
9464         2 => False,   --  unused
9465         3 => True,    --  Expression (Node3)
9466         4 => False,   --  unused
9467         5 => False),  --  unused
9468
9469      N_Floating_Point_Definition =>
9470        (1 => False,   --  unused
9471         2 => True,    --  Digits_Expression (Node2)
9472         3 => False,   --  unused
9473         4 => True,    --  Real_Range_Specification (Node4)
9474         5 => False),  --  unused
9475
9476      N_Real_Range_Specification =>
9477        (1 => True,    --  Low_Bound (Node1)
9478         2 => True,    --  High_Bound (Node2)
9479         3 => False,   --  unused
9480         4 => False,   --  unused
9481         5 => False),  --  unused
9482
9483      N_Ordinary_Fixed_Point_Definition =>
9484        (1 => False,   --  unused
9485         2 => False,   --  unused
9486         3 => True,    --  Delta_Expression (Node3)
9487         4 => True,    --  Real_Range_Specification (Node4)
9488         5 => False),  --  unused
9489
9490      N_Decimal_Fixed_Point_Definition =>
9491        (1 => False,   --  unused
9492         2 => True,    --  Digits_Expression (Node2)
9493         3 => True,    --  Delta_Expression (Node3)
9494         4 => True,    --  Real_Range_Specification (Node4)
9495         5 => False),  --  unused
9496
9497      N_Digits_Constraint =>
9498        (1 => False,   --  unused
9499         2 => True,    --  Digits_Expression (Node2)
9500         3 => False,   --  unused
9501         4 => True,    --  Range_Constraint (Node4)
9502         5 => False),  --  unused
9503
9504      N_Unconstrained_Array_Definition =>
9505        (1 => False,   --  unused
9506         2 => True,    --  Subtype_Marks (List2)
9507         3 => False,   --  unused
9508         4 => True,    --  Component_Definition (Node4)
9509         5 => False),  --  unused
9510
9511      N_Constrained_Array_Definition =>
9512        (1 => False,   --  unused
9513         2 => True,    --  Discrete_Subtype_Definitions (List2)
9514         3 => False,   --  unused
9515         4 => True,    --  Component_Definition (Node4)
9516         5 => False),  --  unused
9517
9518      N_Component_Definition =>
9519        (1 => False,   --  unused
9520         2 => False,   --  unused
9521         3 => True,    --  Access_Definition (Node3)
9522         4 => False,   --  unused
9523         5 => True),   --  Subtype_Indication (Node5)
9524
9525      N_Discriminant_Specification =>
9526        (1 => True,    --  Defining_Identifier (Node1)
9527         2 => False,   --  unused
9528         3 => True,    --  Expression (Node3)
9529         4 => False,   --  unused
9530         5 => True),   --  Discriminant_Type (Node5)
9531
9532      N_Index_Or_Discriminant_Constraint =>
9533        (1 => True,    --  Constraints (List1)
9534         2 => False,   --  unused
9535         3 => False,   --  unused
9536         4 => False,   --  unused
9537         5 => False),  --  unused
9538
9539      N_Discriminant_Association =>
9540        (1 => True,    --  Selector_Names (List1)
9541         2 => False,   --  unused
9542         3 => True,    --  Expression (Node3)
9543         4 => False,   --  unused
9544         5 => False),  --  unused
9545
9546      N_Record_Definition =>
9547        (1 => True,    --  Component_List (Node1)
9548         2 => True,    --  Interface_List (List2)
9549         3 => False,   --  unused
9550         4 => True,    --  End_Label (Node4)
9551         5 => False),  --  unused
9552
9553      N_Component_List =>
9554        (1 => False,   --  unused
9555         2 => False,   --  unused
9556         3 => True,    --  Component_Items (List3)
9557         4 => True,    --  Variant_Part (Node4)
9558         5 => False),  --  unused
9559
9560      N_Component_Declaration =>
9561        (1 => True,    --  Defining_Identifier (Node1)
9562         2 => False,   --  unused
9563         3 => True,    --  Expression (Node3)
9564         4 => True,    --  Component_Definition (Node4)
9565         5 => False),  --  unused
9566
9567      N_Variant_Part =>
9568        (1 => True,    --  Variants (List1)
9569         2 => True,    --  Name (Node2)
9570         3 => False,   --  unused
9571         4 => False,   --  unused
9572         5 => False),  --  unused
9573
9574      N_Variant =>
9575        (1 => True,    --  Component_List (Node1)
9576         2 => False,   --  Enclosing_Variant (Node2-Sem)
9577         3 => False,   --  Present_Expr (Uint3-Sem)
9578         4 => True,    --  Discrete_Choices (List4)
9579         5 => False),  --  Dcheck_Function (Node5-Sem)
9580
9581      N_Others_Choice =>
9582        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
9583         2 => False,   --  unused
9584         3 => False,   --  unused
9585         4 => False,   --  unused
9586         5 => False),  --  unused
9587
9588      N_Access_To_Object_Definition =>
9589        (1 => False,   --  unused
9590         2 => False,   --  unused
9591         3 => False,   --  unused
9592         4 => False,   --  unused
9593         5 => True),   --  Subtype_Indication (Node5)
9594
9595      N_Access_Function_Definition =>
9596        (1 => False,   --  unused
9597         2 => False,   --  unused
9598         3 => True,    --  Parameter_Specifications (List3)
9599         4 => True,    --  Result_Definition (Node4)
9600         5 => False),  --  unused
9601
9602      N_Access_Procedure_Definition =>
9603        (1 => False,   --  unused
9604         2 => False,   --  unused
9605         3 => True,    --  Parameter_Specifications (List3)
9606         4 => False,   --  unused
9607         5 => False),  --  unused
9608
9609      N_Access_Definition =>
9610        (1 => False,   --  unused
9611         2 => False,   --  unused
9612         3 => True,    --  Access_To_Subprogram_Definition (Node3)
9613         4 => True,    --  Subtype_Mark (Node4)
9614         5 => False),  --  unused
9615
9616      N_Incomplete_Type_Declaration =>
9617        (1 => True,    --  Defining_Identifier (Node1)
9618         2 => False,   --  unused
9619         3 => False,   --  unused
9620         4 => True,    --  Discriminant_Specifications (List4)
9621         5 => False),  --  unused
9622
9623      N_Explicit_Dereference =>
9624        (1 => False,   --  unused
9625         2 => False,   --  unused
9626         3 => True,    --  Prefix (Node3)
9627         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
9628         5 => False),  --  Etype (Node5-Sem)
9629
9630      N_Indexed_Component =>
9631        (1 => True,    --  Expressions (List1)
9632         2 => False,   --  unused
9633         3 => True,    --  Prefix (Node3)
9634         4 => False,   --  unused
9635         5 => False),  --  Etype (Node5-Sem)
9636
9637      N_Slice =>
9638        (1 => False,   --  unused
9639         2 => False,   --  unused
9640         3 => True,    --  Prefix (Node3)
9641         4 => True,    --  Discrete_Range (Node4)
9642         5 => False),  --  Etype (Node5-Sem)
9643
9644      N_Selected_Component =>
9645        (1 => False,   --  unused
9646         2 => True,    --  Selector_Name (Node2)
9647         3 => True,    --  Prefix (Node3)
9648         4 => False,   --  unused
9649         5 => False),  --  Etype (Node5-Sem)
9650
9651      N_Attribute_Reference =>
9652        (1 => True,    --  Expressions (List1)
9653         2 => True,    --  Attribute_Name (Name2)
9654         3 => True,    --  Prefix (Node3)
9655         4 => False,   --  Entity (Node4-Sem)
9656         5 => False),  --  Etype (Node5-Sem)
9657
9658      N_Aggregate =>
9659        (1 => True,    --  Expressions (List1)
9660         2 => True,    --  Component_Associations (List2)
9661         3 => False,   --  Aggregate_Bounds (Node3-Sem)
9662         4 => False,   --  unused
9663         5 => False),  --  Etype (Node5-Sem)
9664
9665      N_Component_Association =>
9666        (1 => True,    --  Choices (List1)
9667         2 => False,   --  Loop_Actions (List2-Sem)
9668         3 => True,    --  Expression (Node3)
9669         4 => False,   --  unused
9670         5 => False),  --  unused
9671
9672      N_Extension_Aggregate =>
9673        (1 => True,    --  Expressions (List1)
9674         2 => True,    --  Component_Associations (List2)
9675         3 => True,    --  Ancestor_Part (Node3)
9676         4 => False,   --  unused
9677         5 => False),  --  Etype (Node5-Sem)
9678
9679      N_Null =>
9680        (1 => False,   --  unused
9681         2 => False,   --  unused
9682         3 => False,   --  unused
9683         4 => False,   --  unused
9684         5 => False),  --  Etype (Node5-Sem)
9685
9686      N_And_Then =>
9687        (1 => False,   --  Actions (List1-Sem)
9688         2 => True,    --  Left_Opnd (Node2)
9689         3 => True,    --  Right_Opnd (Node3)
9690         4 => False,   --  unused
9691         5 => False),  --  Etype (Node5-Sem)
9692
9693      N_Or_Else =>
9694        (1 => False,   --  Actions (List1-Sem)
9695         2 => True,    --  Left_Opnd (Node2)
9696         3 => True,    --  Right_Opnd (Node3)
9697         4 => False,   --  unused
9698         5 => False),  --  Etype (Node5-Sem)
9699
9700      N_In =>
9701        (1 => False,   --  unused
9702         2 => True,    --  Left_Opnd (Node2)
9703         3 => True,    --  Right_Opnd (Node3)
9704         4 => False,   --  unused
9705         5 => False),  --  Etype (Node5-Sem)
9706
9707      N_Not_In =>
9708        (1 => False,   --  unused
9709         2 => True,    --  Left_Opnd (Node2)
9710         3 => True,    --  Right_Opnd (Node3)
9711         4 => False,   --  unused
9712         5 => False),  --  Etype (Node5-Sem)
9713
9714      N_Op_And =>
9715        (1 => True,    --  Chars (Name1)
9716         2 => True,    --  Left_Opnd (Node2)
9717         3 => True,    --  Right_Opnd (Node3)
9718         4 => False,   --  Entity (Node4-Sem)
9719         5 => False),  --  Etype (Node5-Sem)
9720
9721      N_Op_Or =>
9722        (1 => True,    --  Chars (Name1)
9723         2 => True,    --  Left_Opnd (Node2)
9724         3 => True,    --  Right_Opnd (Node3)
9725         4 => False,   --  Entity (Node4-Sem)
9726         5 => False),  --  Etype (Node5-Sem)
9727
9728      N_Op_Xor =>
9729        (1 => True,    --  Chars (Name1)
9730         2 => True,    --  Left_Opnd (Node2)
9731         3 => True,    --  Right_Opnd (Node3)
9732         4 => False,   --  Entity (Node4-Sem)
9733         5 => False),  --  Etype (Node5-Sem)
9734
9735      N_Op_Eq =>
9736        (1 => True,    --  Chars (Name1)
9737         2 => True,    --  Left_Opnd (Node2)
9738         3 => True,    --  Right_Opnd (Node3)
9739         4 => False,   --  Entity (Node4-Sem)
9740         5 => False),  --  Etype (Node5-Sem)
9741
9742      N_Op_Ne =>
9743        (1 => True,    --  Chars (Name1)
9744         2 => True,    --  Left_Opnd (Node2)
9745         3 => True,    --  Right_Opnd (Node3)
9746         4 => False,   --  Entity (Node4-Sem)
9747         5 => False),  --  Etype (Node5-Sem)
9748
9749      N_Op_Lt =>
9750        (1 => True,    --  Chars (Name1)
9751         2 => True,    --  Left_Opnd (Node2)
9752         3 => True,    --  Right_Opnd (Node3)
9753         4 => False,   --  Entity (Node4-Sem)
9754         5 => False),  --  Etype (Node5-Sem)
9755
9756      N_Op_Le =>
9757        (1 => True,    --  Chars (Name1)
9758         2 => True,    --  Left_Opnd (Node2)
9759         3 => True,    --  Right_Opnd (Node3)
9760         4 => False,   --  Entity (Node4-Sem)
9761         5 => False),  --  Etype (Node5-Sem)
9762
9763      N_Op_Gt =>
9764        (1 => True,    --  Chars (Name1)
9765         2 => True,    --  Left_Opnd (Node2)
9766         3 => True,    --  Right_Opnd (Node3)
9767         4 => False,   --  Entity (Node4-Sem)
9768         5 => False),  --  Etype (Node5-Sem)
9769
9770      N_Op_Ge =>
9771        (1 => True,    --  Chars (Name1)
9772         2 => True,    --  Left_Opnd (Node2)
9773         3 => True,    --  Right_Opnd (Node3)
9774         4 => False,   --  Entity (Node4-Sem)
9775         5 => False),  --  Etype (Node5-Sem)
9776
9777      N_Op_Add =>
9778        (1 => True,    --  Chars (Name1)
9779         2 => True,    --  Left_Opnd (Node2)
9780         3 => True,    --  Right_Opnd (Node3)
9781         4 => False,   --  Entity (Node4-Sem)
9782         5 => False),  --  Etype (Node5-Sem)
9783
9784      N_Op_Subtract =>
9785        (1 => True,    --  Chars (Name1)
9786         2 => True,    --  Left_Opnd (Node2)
9787         3 => True,    --  Right_Opnd (Node3)
9788         4 => False,   --  Entity (Node4-Sem)
9789         5 => False),  --  Etype (Node5-Sem)
9790
9791      N_Op_Concat =>
9792        (1 => True,    --  Chars (Name1)
9793         2 => True,    --  Left_Opnd (Node2)
9794         3 => True,    --  Right_Opnd (Node3)
9795         4 => False,   --  Entity (Node4-Sem)
9796         5 => False),  --  Etype (Node5-Sem)
9797
9798      N_Op_Multiply =>
9799        (1 => True,    --  Chars (Name1)
9800         2 => True,    --  Left_Opnd (Node2)
9801         3 => True,    --  Right_Opnd (Node3)
9802         4 => False,   --  Entity (Node4-Sem)
9803         5 => False),  --  Etype (Node5-Sem)
9804
9805      N_Op_Divide =>
9806        (1 => True,    --  Chars (Name1)
9807         2 => True,    --  Left_Opnd (Node2)
9808         3 => True,    --  Right_Opnd (Node3)
9809         4 => False,   --  Entity (Node4-Sem)
9810         5 => False),  --  Etype (Node5-Sem)
9811
9812      N_Op_Mod =>
9813        (1 => True,    --  Chars (Name1)
9814         2 => True,    --  Left_Opnd (Node2)
9815         3 => True,    --  Right_Opnd (Node3)
9816         4 => False,   --  Entity (Node4-Sem)
9817         5 => False),  --  Etype (Node5-Sem)
9818
9819      N_Op_Rem =>
9820        (1 => True,    --  Chars (Name1)
9821         2 => True,    --  Left_Opnd (Node2)
9822         3 => True,    --  Right_Opnd (Node3)
9823         4 => False,   --  Entity (Node4-Sem)
9824         5 => False),  --  Etype (Node5-Sem)
9825
9826      N_Op_Expon =>
9827        (1 => True,    --  Chars (Name1)
9828         2 => True,    --  Left_Opnd (Node2)
9829         3 => True,    --  Right_Opnd (Node3)
9830         4 => False,   --  Entity (Node4-Sem)
9831         5 => False),  --  Etype (Node5-Sem)
9832
9833      N_Op_Plus =>
9834        (1 => True,    --  Chars (Name1)
9835         2 => False,   --  unused
9836         3 => True,    --  Right_Opnd (Node3)
9837         4 => False,   --  Entity (Node4-Sem)
9838         5 => False),  --  Etype (Node5-Sem)
9839
9840      N_Op_Minus =>
9841        (1 => True,    --  Chars (Name1)
9842         2 => False,   --  unused
9843         3 => True,    --  Right_Opnd (Node3)
9844         4 => False,   --  Entity (Node4-Sem)
9845         5 => False),  --  Etype (Node5-Sem)
9846
9847      N_Op_Abs =>
9848        (1 => True,    --  Chars (Name1)
9849         2 => False,   --  unused
9850         3 => True,    --  Right_Opnd (Node3)
9851         4 => False,   --  Entity (Node4-Sem)
9852         5 => False),  --  Etype (Node5-Sem)
9853
9854      N_Op_Not =>
9855        (1 => True,    --  Chars (Name1)
9856         2 => False,   --  unused
9857         3 => True,    --  Right_Opnd (Node3)
9858         4 => False,   --  Entity (Node4-Sem)
9859         5 => False),  --  Etype (Node5-Sem)
9860
9861      N_Type_Conversion =>
9862        (1 => False,   --  unused
9863         2 => False,   --  unused
9864         3 => True,    --  Expression (Node3)
9865         4 => True,    --  Subtype_Mark (Node4)
9866         5 => False),  --  Etype (Node5-Sem)
9867
9868      N_Qualified_Expression =>
9869        (1 => False,   --  unused
9870         2 => False,   --  unused
9871         3 => True,    --  Expression (Node3)
9872         4 => True,    --  Subtype_Mark (Node4)
9873         5 => False),  --  Etype (Node5-Sem)
9874
9875      N_Allocator =>
9876        (1 => False,   --  Storage_Pool (Node1-Sem)
9877         2 => False,   --  Procedure_To_Call (Node2-Sem)
9878         3 => True,    --  Expression (Node3)
9879         4 => False,   --  Coextensions (Elist4-Sem)
9880         5 => False),  --  Etype (Node5-Sem)
9881
9882      N_Null_Statement =>
9883        (1 => False,   --  unused
9884         2 => False,   --  unused
9885         3 => False,   --  unused
9886         4 => False,   --  unused
9887         5 => False),  --  unused
9888
9889      N_Label =>
9890        (1 => True,    --  Identifier (Node1)
9891         2 => False,   --  unused
9892         3 => False,   --  unused
9893         4 => False,   --  unused
9894         5 => False),  --  unused
9895
9896      N_Assignment_Statement =>
9897        (1 => False,   --  unused
9898         2 => True,    --  Name (Node2)
9899         3 => True,    --  Expression (Node3)
9900         4 => False,   --  unused
9901         5 => False),  --  unused
9902
9903      N_If_Statement =>
9904        (1 => True,    --  Condition (Node1)
9905         2 => True,    --  Then_Statements (List2)
9906         3 => True,    --  Elsif_Parts (List3)
9907         4 => True,    --  Else_Statements (List4)
9908         5 => True),   --  End_Span (Uint5)
9909
9910      N_Elsif_Part =>
9911        (1 => True,    --  Condition (Node1)
9912         2 => True,    --  Then_Statements (List2)
9913         3 => False,   --  Condition_Actions (List3-Sem)
9914         4 => False,   --  unused
9915         5 => False),  --  unused
9916
9917      N_Case_Statement =>
9918        (1 => False,   --  unused
9919         2 => False,   --  unused
9920         3 => True,    --  Expression (Node3)
9921         4 => True,    --  Alternatives (List4)
9922         5 => True),   --  End_Span (Uint5)
9923
9924      N_Case_Statement_Alternative =>
9925        (1 => False,   --  unused
9926         2 => False,   --  unused
9927         3 => True,    --  Statements (List3)
9928         4 => True,    --  Discrete_Choices (List4)
9929         5 => False),  --  unused
9930
9931      N_Loop_Statement =>
9932        (1 => True,    --  Identifier (Node1)
9933         2 => True,    --  Iteration_Scheme (Node2)
9934         3 => True,    --  Statements (List3)
9935         4 => True,    --  End_Label (Node4)
9936         5 => False),  --  unused
9937
9938      N_Iteration_Scheme =>
9939        (1 => True,    --  Condition (Node1)
9940         2 => False,   --  unused
9941         3 => False,   --  Condition_Actions (List3-Sem)
9942         4 => True,    --  Loop_Parameter_Specification (Node4)
9943         5 => False),  --  unused
9944
9945      N_Loop_Parameter_Specification =>
9946        (1 => True,    --  Defining_Identifier (Node1)
9947         2 => False,   --  unused
9948         3 => False,   --  unused
9949         4 => True,    --  Discrete_Subtype_Definition (Node4)
9950         5 => False),  --  unused
9951
9952      N_Block_Statement =>
9953        (1 => True,    --  Identifier (Node1)
9954         2 => True,    --  Declarations (List2)
9955         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
9956         4 => True,    --  Handled_Statement_Sequence (Node4)
9957         5 => False),  --  unused
9958
9959      N_Exit_Statement =>
9960        (1 => True,    --  Condition (Node1)
9961         2 => True,    --  Name (Node2)
9962         3 => False,   --  unused
9963         4 => False,   --  unused
9964         5 => False),  --  unused
9965
9966      N_Goto_Statement =>
9967        (1 => False,   --  unused
9968         2 => True,    --  Name (Node2)
9969         3 => False,   --  unused
9970         4 => False,   --  unused
9971         5 => False),  --  unused
9972
9973      N_Subprogram_Declaration =>
9974        (1 => True,    --  Specification (Node1)
9975         2 => False,   --  unused
9976         3 => False,   --  Body_To_Inline (Node3-Sem)
9977         4 => False,   --  Parent_Spec (Node4-Sem)
9978         5 => False),  --  Corresponding_Body (Node5-Sem)
9979
9980      N_Abstract_Subprogram_Declaration =>
9981        (1 => True,    --  Specification (Node1)
9982         2 => False,   --  unused
9983         3 => False,   --  unused
9984         4 => False,   --  unused
9985         5 => False),  --  unused
9986
9987      N_Function_Specification =>
9988        (1 => True,    --  Defining_Unit_Name (Node1)
9989         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9990         3 => True,    --  Parameter_Specifications (List3)
9991         4 => True,    --  Result_Definition (Node4)
9992         5 => False),  --  Generic_Parent (Node5-Sem)
9993
9994      N_Procedure_Specification =>
9995        (1 => True,    --  Defining_Unit_Name (Node1)
9996         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9997         3 => True,    --  Parameter_Specifications (List3)
9998         4 => False,   --  unused
9999         5 => False),  --  Generic_Parent (Node5-Sem)
10000
10001      N_Designator =>
10002        (1 => True,    --  Identifier (Node1)
10003         2 => True,    --  Name (Node2)
10004         3 => False,   --  unused
10005         4 => False,   --  unused
10006         5 => False),  --  unused
10007
10008      N_Defining_Program_Unit_Name =>
10009        (1 => True,    --  Defining_Identifier (Node1)
10010         2 => True,    --  Name (Node2)
10011         3 => False,   --  unused
10012         4 => False,   --  unused
10013         5 => False),  --  unused
10014
10015      N_Operator_Symbol =>
10016        (1 => True,    --  Chars (Name1)
10017         2 => False,   --  unused
10018         3 => True,    --  Strval (Str3)
10019         4 => False,   --  Entity (Node4-Sem)
10020         5 => False),  --  Etype (Node5-Sem)
10021
10022      N_Defining_Operator_Symbol =>
10023        (1 => True,    --  Chars (Name1)
10024         2 => False,   --  Next_Entity (Node2-Sem)
10025         3 => False,   --  Scope (Node3-Sem)
10026         4 => False,   --  unused
10027         5 => False),  --  Etype (Node5-Sem)
10028
10029      N_Parameter_Specification =>
10030        (1 => True,    --  Defining_Identifier (Node1)
10031         2 => True,    --  Parameter_Type (Node2)
10032         3 => True,    --  Expression (Node3)
10033         4 => False,   --  unused
10034         5 => False),  --  Default_Expression (Node5-Sem)
10035
10036      N_Subprogram_Body =>
10037        (1 => True,    --  Specification (Node1)
10038         2 => True,    --  Declarations (List2)
10039         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10040         4 => True,    --  Handled_Statement_Sequence (Node4)
10041         5 => False),  --  Corresponding_Spec (Node5-Sem)
10042
10043      N_Procedure_Call_Statement =>
10044        (1 => False,   --  Controlling_Argument (Node1-Sem)
10045         2 => True,    --  Name (Node2)
10046         3 => True,    --  Parameter_Associations (List3)
10047         4 => False,   --  First_Named_Actual (Node4-Sem)
10048         5 => False),  --  Etype (Node5-Sem)
10049
10050      N_Function_Call =>
10051        (1 => False,   --  Controlling_Argument (Node1-Sem)
10052         2 => True,    --  Name (Node2)
10053         3 => True,    --  Parameter_Associations (List3)
10054         4 => False,   --  First_Named_Actual (Node4-Sem)
10055         5 => False),  --  Etype (Node5-Sem)
10056
10057      N_Parameter_Association =>
10058        (1 => False,   --  unused
10059         2 => True,    --  Selector_Name (Node2)
10060         3 => True,    --  Explicit_Actual_Parameter (Node3)
10061         4 => False,   --  Next_Named_Actual (Node4-Sem)
10062         5 => False),  --  unused
10063
10064      N_Return_Statement =>
10065        (1 => False,   --  Storage_Pool (Node1-Sem)
10066         2 => False,   --  Procedure_To_Call (Node2-Sem)
10067         3 => True,    --  Expression (Node3)
10068         4 => False,   --  unused
10069         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10070
10071      N_Extended_Return_Statement =>
10072        (1 => False,   --  Storage_Pool (Node1-Sem)
10073         2 => False,   --  Procedure_To_Call (Node2-Sem)
10074         3 => True,    --  Return_Object_Declarations (List3)
10075         4 => True,    --  Handled_Statement_Sequence (Node4)
10076         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10077
10078      N_Package_Declaration =>
10079        (1 => True,    --  Specification (Node1)
10080         2 => False,   --  unused
10081         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10082         4 => False,   --  Parent_Spec (Node4-Sem)
10083         5 => False),  --  Corresponding_Body (Node5-Sem)
10084
10085      N_Package_Specification =>
10086        (1 => True,    --  Defining_Unit_Name (Node1)
10087         2 => True,    --  Visible_Declarations (List2)
10088         3 => True,    --  Private_Declarations (List3)
10089         4 => True,    --  End_Label (Node4)
10090         5 => False),  --  Generic_Parent (Node5-Sem)
10091
10092      N_Package_Body =>
10093        (1 => True,    --  Defining_Unit_Name (Node1)
10094         2 => True,    --  Declarations (List2)
10095         3 => False,   --  unused
10096         4 => True,    --  Handled_Statement_Sequence (Node4)
10097         5 => False),  --  Corresponding_Spec (Node5-Sem)
10098
10099      N_Private_Type_Declaration =>
10100        (1 => True,    --  Defining_Identifier (Node1)
10101         2 => False,   --  unused
10102         3 => False,   --  unused
10103         4 => True,    --  Discriminant_Specifications (List4)
10104         5 => False),  --  unused
10105
10106      N_Private_Extension_Declaration =>
10107        (1 => True,    --  Defining_Identifier (Node1)
10108         2 => True,    --  Interface_List (List2)
10109         3 => False,   --  unused
10110         4 => True,    --  Discriminant_Specifications (List4)
10111         5 => True),   --  Subtype_Indication (Node5)
10112
10113      N_Use_Package_Clause =>
10114        (1 => False,   --  unused
10115         2 => True,    --  Names (List2)
10116         3 => False,   --  Next_Use_Clause (Node3-Sem)
10117         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10118         5 => False),  --  unused
10119
10120      N_Use_Type_Clause =>
10121        (1 => False,   --  unused
10122         2 => True,    --  Subtype_Marks (List2)
10123         3 => False,   --  Next_Use_Clause (Node3-Sem)
10124         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10125         5 => False),  --  unused
10126
10127      N_Object_Renaming_Declaration =>
10128        (1 => True,    --  Defining_Identifier (Node1)
10129         2 => True,    --  Name (Node2)
10130         3 => True,    --  Access_Definition (Node3)
10131         4 => True,    --  Subtype_Mark (Node4)
10132         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10133
10134      N_Exception_Renaming_Declaration =>
10135        (1 => True,    --  Defining_Identifier (Node1)
10136         2 => True,    --  Name (Node2)
10137         3 => False,   --  unused
10138         4 => False,   --  unused
10139         5 => False),  --  unused
10140
10141      N_Package_Renaming_Declaration =>
10142        (1 => True,    --  Defining_Unit_Name (Node1)
10143         2 => True,    --  Name (Node2)
10144         3 => False,   --  unused
10145         4 => False,   --  Parent_Spec (Node4-Sem)
10146         5 => False),  --  unused
10147
10148      N_Subprogram_Renaming_Declaration =>
10149        (1 => True,    --  Specification (Node1)
10150         2 => True,    --  Name (Node2)
10151         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10152         4 => False,   --  Parent_Spec (Node4-Sem)
10153         5 => False),  --  Corresponding_Spec (Node5-Sem)
10154
10155      N_Generic_Package_Renaming_Declaration =>
10156        (1 => True,    --  Defining_Unit_Name (Node1)
10157         2 => True,    --  Name (Node2)
10158         3 => False,   --  unused
10159         4 => False,   --  Parent_Spec (Node4-Sem)
10160         5 => False),  --  unused
10161
10162      N_Generic_Procedure_Renaming_Declaration =>
10163        (1 => True,    --  Defining_Unit_Name (Node1)
10164         2 => True,    --  Name (Node2)
10165         3 => False,   --  unused
10166         4 => False,   --  Parent_Spec (Node4-Sem)
10167         5 => False),  --  unused
10168
10169      N_Generic_Function_Renaming_Declaration =>
10170        (1 => True,    --  Defining_Unit_Name (Node1)
10171         2 => True,    --  Name (Node2)
10172         3 => False,   --  unused
10173         4 => False,   --  Parent_Spec (Node4-Sem)
10174         5 => False),  --  unused
10175
10176      N_Task_Type_Declaration =>
10177        (1 => True,    --  Defining_Identifier (Node1)
10178         2 => True,    --  Interface_List (List2)
10179         3 => True,    --  Task_Definition (Node3)
10180         4 => True,    --  Discriminant_Specifications (List4)
10181         5 => False),  --  Corresponding_Body (Node5-Sem)
10182
10183      N_Single_Task_Declaration =>
10184        (1 => True,    --  Defining_Identifier (Node1)
10185         2 => True,    --  Interface_List (List2)
10186         3 => True,    --  Task_Definition (Node3)
10187         4 => False,   --  unused
10188         5 => False),  --  unused
10189
10190      N_Task_Definition =>
10191        (1 => False,   --  unused
10192         2 => True,    --  Visible_Declarations (List2)
10193         3 => True,    --  Private_Declarations (List3)
10194         4 => True,    --  End_Label (Node4)
10195         5 => False),  --  unused
10196
10197      N_Task_Body =>
10198        (1 => True,    --  Defining_Identifier (Node1)
10199         2 => True,    --  Declarations (List2)
10200         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10201         4 => True,    --  Handled_Statement_Sequence (Node4)
10202         5 => False),  --  Corresponding_Spec (Node5-Sem)
10203
10204      N_Protected_Type_Declaration =>
10205        (1 => True,    --  Defining_Identifier (Node1)
10206         2 => True,    --  Interface_List (List2)
10207         3 => True,    --  Protected_Definition (Node3)
10208         4 => True,    --  Discriminant_Specifications (List4)
10209         5 => False),  --  Corresponding_Body (Node5-Sem)
10210
10211      N_Single_Protected_Declaration =>
10212        (1 => True,    --  Defining_Identifier (Node1)
10213         2 => True,    --  Interface_List (List2)
10214         3 => True,    --  Protected_Definition (Node3)
10215         4 => False,   --  unused
10216         5 => False),  --  unused
10217
10218      N_Protected_Definition =>
10219        (1 => False,   --  unused
10220         2 => True,    --  Visible_Declarations (List2)
10221         3 => True,    --  Private_Declarations (List3)
10222         4 => True,    --  End_Label (Node4)
10223         5 => False),  --  unused
10224
10225      N_Protected_Body =>
10226        (1 => True,    --  Defining_Identifier (Node1)
10227         2 => True,    --  Declarations (List2)
10228         3 => False,   --  unused
10229         4 => True,    --  End_Label (Node4)
10230         5 => False),  --  Corresponding_Spec (Node5-Sem)
10231
10232      N_Entry_Declaration =>
10233        (1 => True,    --  Defining_Identifier (Node1)
10234         2 => False,   --  unused
10235         3 => True,    --  Parameter_Specifications (List3)
10236         4 => True,    --  Discrete_Subtype_Definition (Node4)
10237         5 => False),  --  Corresponding_Body (Node5-Sem)
10238
10239      N_Accept_Statement =>
10240        (1 => True,    --  Entry_Direct_Name (Node1)
10241         2 => True,    --  Declarations (List2)
10242         3 => True,    --  Parameter_Specifications (List3)
10243         4 => True,    --  Handled_Statement_Sequence (Node4)
10244         5 => True),   --  Entry_Index (Node5)
10245
10246      N_Entry_Body =>
10247        (1 => True,    --  Defining_Identifier (Node1)
10248         2 => True,    --  Declarations (List2)
10249         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10250         4 => True,    --  Handled_Statement_Sequence (Node4)
10251         5 => True),   --  Entry_Body_Formal_Part (Node5)
10252
10253      N_Entry_Body_Formal_Part =>
10254        (1 => True,    --  Condition (Node1)
10255         2 => False,   --  unused
10256         3 => True,    --  Parameter_Specifications (List3)
10257         4 => True,    --  Entry_Index_Specification (Node4)
10258         5 => False),  --  unused
10259
10260      N_Entry_Index_Specification =>
10261        (1 => True,    --  Defining_Identifier (Node1)
10262         2 => False,   --  unused
10263         3 => False,   --  unused
10264         4 => True,    --  Discrete_Subtype_Definition (Node4)
10265         5 => False),  --  unused
10266
10267      N_Entry_Call_Statement =>
10268        (1 => False,   --  unused
10269         2 => True,    --  Name (Node2)
10270         3 => True,    --  Parameter_Associations (List3)
10271         4 => False,   --  First_Named_Actual (Node4-Sem)
10272         5 => False),  --  unused
10273
10274      N_Requeue_Statement =>
10275        (1 => False,   --  unused
10276         2 => True,    --  Name (Node2)
10277         3 => False,   --  unused
10278         4 => False,   --  unused
10279         5 => False),  --  unused
10280
10281      N_Delay_Until_Statement =>
10282        (1 => False,   --  unused
10283         2 => False,   --  unused
10284         3 => True,    --  Expression (Node3)
10285         4 => False,   --  unused
10286         5 => False),  --  unused
10287
10288      N_Delay_Relative_Statement =>
10289        (1 => False,   --  unused
10290         2 => False,   --  unused
10291         3 => True,    --  Expression (Node3)
10292         4 => False,   --  unused
10293         5 => False),  --  unused
10294
10295      N_Selective_Accept =>
10296        (1 => True,    --  Select_Alternatives (List1)
10297         2 => False,   --  unused
10298         3 => False,   --  unused
10299         4 => True,    --  Else_Statements (List4)
10300         5 => False),  --  unused
10301
10302      N_Accept_Alternative =>
10303        (1 => True,    --  Condition (Node1)
10304         2 => True,    --  Accept_Statement (Node2)
10305         3 => True,    --  Statements (List3)
10306         4 => True,    --  Pragmas_Before (List4)
10307         5 => False),  --  Accept_Handler_Records (List5-Sem)
10308
10309      N_Delay_Alternative =>
10310        (1 => True,    --  Condition (Node1)
10311         2 => True,    --  Delay_Statement (Node2)
10312         3 => True,    --  Statements (List3)
10313         4 => True,    --  Pragmas_Before (List4)
10314         5 => False),  --  unused
10315
10316      N_Terminate_Alternative =>
10317        (1 => True,    --  Condition (Node1)
10318         2 => False,   --  unused
10319         3 => False,   --  unused
10320         4 => True,    --  Pragmas_Before (List4)
10321         5 => True),   --  Pragmas_After (List5)
10322
10323      N_Timed_Entry_Call =>
10324        (1 => True,    --  Entry_Call_Alternative (Node1)
10325         2 => False,   --  unused
10326         3 => False,   --  unused
10327         4 => True,    --  Delay_Alternative (Node4)
10328         5 => False),  --  unused
10329
10330      N_Entry_Call_Alternative =>
10331        (1 => True,    --  Entry_Call_Statement (Node1)
10332         2 => False,   --  unused
10333         3 => True,    --  Statements (List3)
10334         4 => True,    --  Pragmas_Before (List4)
10335         5 => False),  --  unused
10336
10337      N_Conditional_Entry_Call =>
10338        (1 => True,    --  Entry_Call_Alternative (Node1)
10339         2 => False,   --  unused
10340         3 => False,   --  unused
10341         4 => True,    --  Else_Statements (List4)
10342         5 => False),  --  unused
10343
10344      N_Asynchronous_Select =>
10345        (1 => True,    --  Triggering_Alternative (Node1)
10346         2 => True,    --  Abortable_Part (Node2)
10347         3 => False,   --  unused
10348         4 => False,   --  unused
10349         5 => False),  --  unused
10350
10351      N_Triggering_Alternative =>
10352        (1 => True,    --  Triggering_Statement (Node1)
10353         2 => False,   --  unused
10354         3 => True,    --  Statements (List3)
10355         4 => True,    --  Pragmas_Before (List4)
10356         5 => False),  --  unused
10357
10358      N_Abortable_Part =>
10359        (1 => False,   --  unused
10360         2 => False,   --  unused
10361         3 => True,    --  Statements (List3)
10362         4 => False,   --  unused
10363         5 => False),  --  unused
10364
10365      N_Abort_Statement =>
10366        (1 => False,   --  unused
10367         2 => True,    --  Names (List2)
10368         3 => False,   --  unused
10369         4 => False,   --  unused
10370         5 => False),  --  unused
10371
10372      N_Compilation_Unit =>
10373        (1 => True,    --  Context_Items (List1)
10374         2 => True,    --  Unit (Node2)
10375         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10376         4 => False,   --  Library_Unit (Node4-Sem)
10377         5 => True),   --  Aux_Decls_Node (Node5)
10378
10379      N_Compilation_Unit_Aux =>
10380        (1 => True,    --  Actions (List1)
10381         2 => True,    --  Declarations (List2)
10382         3 => False,   --  unused
10383         4 => True,    --  Config_Pragmas (List4)
10384         5 => True),   --  Pragmas_After (List5)
10385
10386      N_With_Clause =>
10387        (1 => False,   --  unused
10388         2 => True,    --  Name (Node2)
10389         3 => False,   --  unused
10390         4 => False,   --  Library_Unit (Node4-Sem)
10391         5 => False),  --  Corresponding_Spec (Node5-Sem)
10392
10393      N_Subprogram_Body_Stub =>
10394        (1 => True,    --  Specification (Node1)
10395         2 => False,   --  unused
10396         3 => False,   --  unused
10397         4 => False,   --  Library_Unit (Node4-Sem)
10398         5 => False),  --  Corresponding_Body (Node5-Sem)
10399
10400      N_Package_Body_Stub =>
10401        (1 => True,    --  Defining_Identifier (Node1)
10402         2 => False,   --  unused
10403         3 => False,   --  unused
10404         4 => False,   --  Library_Unit (Node4-Sem)
10405         5 => False),  --  Corresponding_Body (Node5-Sem)
10406
10407      N_Task_Body_Stub =>
10408        (1 => True,    --  Defining_Identifier (Node1)
10409         2 => False,   --  unused
10410         3 => False,   --  unused
10411         4 => False,   --  Library_Unit (Node4-Sem)
10412         5 => False),  --  Corresponding_Body (Node5-Sem)
10413
10414      N_Protected_Body_Stub =>
10415        (1 => True,    --  Defining_Identifier (Node1)
10416         2 => False,   --  unused
10417         3 => False,   --  unused
10418         4 => False,   --  Library_Unit (Node4-Sem)
10419         5 => False),  --  Corresponding_Body (Node5-Sem)
10420
10421      N_Subunit =>
10422        (1 => True,    --  Proper_Body (Node1)
10423         2 => True,    --  Name (Node2)
10424         3 => False,   --  Corresponding_Stub (Node3-Sem)
10425         4 => False,   --  unused
10426         5 => False),  --  unused
10427
10428      N_Exception_Declaration =>
10429        (1 => True,    --  Defining_Identifier (Node1)
10430         2 => False,   --  unused
10431         3 => False,   --  Expression (Node3-Sem)
10432         4 => False,   --  unused
10433         5 => False),  --  unused
10434
10435      N_Handled_Sequence_Of_Statements =>
10436        (1 => True,    --  At_End_Proc (Node1)
10437         2 => False,   --  First_Real_Statement (Node2-Sem)
10438         3 => True,    --  Statements (List3)
10439         4 => True,    --  End_Label (Node4)
10440         5 => True),   --  Exception_Handlers (List5)
10441
10442      N_Exception_Handler =>
10443        (1 => False,   --  Local_Raise_Statements (Elist1)
10444         2 => True,    --  Choice_Parameter (Node2)
10445         3 => True,    --  Statements (List3)
10446         4 => True,    --  Exception_Choices (List4)
10447         5 => False),  --  Exception_Label (Node5)
10448
10449      N_Raise_Statement =>
10450        (1 => False,   --  unused
10451         2 => True,    --  Name (Node2)
10452         3 => True,    --  Expression (Node3)
10453         4 => False,   --  unused
10454         5 => False),  --  unused
10455
10456      N_Generic_Subprogram_Declaration =>
10457        (1 => True,    --  Specification (Node1)
10458         2 => True,    --  Generic_Formal_Declarations (List2)
10459         3 => False,   --  unused
10460         4 => False,   --  Parent_Spec (Node4-Sem)
10461         5 => False),  --  Corresponding_Body (Node5-Sem)
10462
10463      N_Generic_Package_Declaration =>
10464        (1 => True,    --  Specification (Node1)
10465         2 => True,    --  Generic_Formal_Declarations (List2)
10466         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10467         4 => False,   --  Parent_Spec (Node4-Sem)
10468         5 => False),  --  Corresponding_Body (Node5-Sem)
10469
10470      N_Package_Instantiation =>
10471        (1 => True,    --  Defining_Unit_Name (Node1)
10472         2 => True,    --  Name (Node2)
10473         3 => True,    --  Generic_Associations (List3)
10474         4 => False,   --  Parent_Spec (Node4-Sem)
10475         5 => False),  --  Instance_Spec (Node5-Sem)
10476
10477      N_Procedure_Instantiation =>
10478        (1 => True,    --  Defining_Unit_Name (Node1)
10479         2 => True,    --  Name (Node2)
10480         3 => True,    --  Generic_Associations (List3)
10481         4 => False,   --  Parent_Spec (Node4-Sem)
10482         5 => False),  --  Instance_Spec (Node5-Sem)
10483
10484      N_Function_Instantiation =>
10485        (1 => True,    --  Defining_Unit_Name (Node1)
10486         2 => True,    --  Name (Node2)
10487         3 => True,    --  Generic_Associations (List3)
10488         4 => False,   --  Parent_Spec (Node4-Sem)
10489         5 => False),  --  Instance_Spec (Node5-Sem)
10490
10491      N_Generic_Association =>
10492        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
10493         2 => True,    --  Selector_Name (Node2)
10494         3 => False,   --  unused
10495         4 => False,   --  unused
10496         5 => False),  --  unused
10497
10498      N_Formal_Object_Declaration =>
10499        (1 => True,    --  Defining_Identifier (Node1)
10500         2 => False,   --  unused
10501         3 => True,    --  Access_Definition (Node3)
10502         4 => True,    --  Subtype_Mark (Node4)
10503         5 => True),   --  Default_Expression (Node5)
10504
10505      N_Formal_Type_Declaration =>
10506        (1 => True,    --  Defining_Identifier (Node1)
10507         2 => False,   --  unused
10508         3 => True,    --  Formal_Type_Definition (Node3)
10509         4 => True,    --  Discriminant_Specifications (List4)
10510         5 => False),  --  unused
10511
10512      N_Formal_Private_Type_Definition =>
10513        (1 => False,   --  unused
10514         2 => False,   --  unused
10515         3 => False,   --  unused
10516         4 => False,   --  unused
10517         5 => False),  --  unused
10518
10519      N_Formal_Derived_Type_Definition =>
10520        (1 => False,   --  unused
10521         2 => True,    --  Interface_List (List2)
10522         3 => False,   --  unused
10523         4 => True,    --  Subtype_Mark (Node4)
10524         5 => False),  --  unused
10525
10526      N_Formal_Discrete_Type_Definition =>
10527        (1 => False,   --  unused
10528         2 => False,   --  unused
10529         3 => False,   --  unused
10530         4 => False,   --  unused
10531         5 => False),  --  unused
10532
10533      N_Formal_Signed_Integer_Type_Definition =>
10534        (1 => False,   --  unused
10535         2 => False,   --  unused
10536         3 => False,   --  unused
10537         4 => False,   --  unused
10538         5 => False),  --  unused
10539
10540      N_Formal_Modular_Type_Definition =>
10541        (1 => False,   --  unused
10542         2 => False,   --  unused
10543         3 => False,   --  unused
10544         4 => False,   --  unused
10545         5 => False),  --  unused
10546
10547      N_Formal_Floating_Point_Definition =>
10548        (1 => False,   --  unused
10549         2 => False,   --  unused
10550         3 => False,   --  unused
10551         4 => False,   --  unused
10552         5 => False),  --  unused
10553
10554      N_Formal_Ordinary_Fixed_Point_Definition =>
10555        (1 => False,   --  unused
10556         2 => False,   --  unused
10557         3 => False,   --  unused
10558         4 => False,   --  unused
10559         5 => False),  --  unused
10560
10561      N_Formal_Decimal_Fixed_Point_Definition =>
10562        (1 => False,   --  unused
10563         2 => False,   --  unused
10564         3 => False,   --  unused
10565         4 => False,   --  unused
10566         5 => False),  --  unused
10567
10568      N_Formal_Concrete_Subprogram_Declaration =>
10569        (1 => True,    --  Specification (Node1)
10570         2 => True,    --  Default_Name (Node2)
10571         3 => False,   --  unused
10572         4 => False,   --  unused
10573         5 => False),  --  unused
10574
10575      N_Formal_Abstract_Subprogram_Declaration =>
10576        (1 => True,    --  Specification (Node1)
10577         2 => True,    --  Default_Name (Node2)
10578         3 => False,   --  unused
10579         4 => False,   --  unused
10580         5 => False),  --  unused
10581
10582      N_Formal_Package_Declaration =>
10583        (1 => True,    --  Defining_Identifier (Node1)
10584         2 => True,    --  Name (Node2)
10585         3 => True,    --  Generic_Associations (List3)
10586         4 => False,   --  unused
10587         5 => False),  --  Instance_Spec (Node5-Sem)
10588
10589      N_Attribute_Definition_Clause =>
10590        (1 => True,    --  Chars (Name1)
10591         2 => True,    --  Name (Node2)
10592         3 => True,    --  Expression (Node3)
10593         4 => False,   --  unused
10594         5 => False),  --  Next_Rep_Item (Node5-Sem)
10595
10596      N_Enumeration_Representation_Clause =>
10597        (1 => True,    --  Identifier (Node1)
10598         2 => False,   --  unused
10599         3 => True,    --  Array_Aggregate (Node3)
10600         4 => False,   --  unused
10601         5 => False),  --  Next_Rep_Item (Node5-Sem)
10602
10603      N_Record_Representation_Clause =>
10604        (1 => True,    --  Identifier (Node1)
10605         2 => True,    --  Mod_Clause (Node2)
10606         3 => True,    --  Component_Clauses (List3)
10607         4 => False,   --  unused
10608         5 => False),  --  Next_Rep_Item (Node5-Sem)
10609
10610      N_Component_Clause =>
10611        (1 => True,    --  Component_Name (Node1)
10612         2 => True,    --  Position (Node2)
10613         3 => True,    --  First_Bit (Node3)
10614         4 => True,    --  Last_Bit (Node4)
10615         5 => False),  --  unused
10616
10617      N_Code_Statement =>
10618        (1 => False,   --  unused
10619         2 => False,   --  unused
10620         3 => True,    --  Expression (Node3)
10621         4 => False,   --  unused
10622         5 => False),  --  unused
10623
10624      N_Op_Rotate_Left =>
10625        (1 => True,    --  Chars (Name1)
10626         2 => True,    --  Left_Opnd (Node2)
10627         3 => True,    --  Right_Opnd (Node3)
10628         4 => False,   --  Entity (Node4-Sem)
10629         5 => False),  --  Etype (Node5-Sem)
10630
10631      N_Op_Rotate_Right =>
10632        (1 => True,    --  Chars (Name1)
10633         2 => True,    --  Left_Opnd (Node2)
10634         3 => True,    --  Right_Opnd (Node3)
10635         4 => False,   --  Entity (Node4-Sem)
10636         5 => False),  --  Etype (Node5-Sem)
10637
10638      N_Op_Shift_Left =>
10639        (1 => True,    --  Chars (Name1)
10640         2 => True,    --  Left_Opnd (Node2)
10641         3 => True,    --  Right_Opnd (Node3)
10642         4 => False,   --  Entity (Node4-Sem)
10643         5 => False),  --  Etype (Node5-Sem)
10644
10645      N_Op_Shift_Right_Arithmetic =>
10646        (1 => True,    --  Chars (Name1)
10647         2 => True,    --  Left_Opnd (Node2)
10648         3 => True,    --  Right_Opnd (Node3)
10649         4 => False,   --  Entity (Node4-Sem)
10650         5 => False),  --  Etype (Node5-Sem)
10651
10652      N_Op_Shift_Right =>
10653        (1 => True,    --  Chars (Name1)
10654         2 => True,    --  Left_Opnd (Node2)
10655         3 => True,    --  Right_Opnd (Node3)
10656         4 => False,   --  Entity (Node4-Sem)
10657         5 => False),  --  Etype (Node5-Sem)
10658
10659      N_Delta_Constraint =>
10660        (1 => False,   --  unused
10661         2 => False,   --  unused
10662         3 => True,    --  Delta_Expression (Node3)
10663         4 => True,    --  Range_Constraint (Node4)
10664         5 => False),  --  unused
10665
10666      N_At_Clause =>
10667        (1 => True,    --  Identifier (Node1)
10668         2 => False,   --  unused
10669         3 => True,    --  Expression (Node3)
10670         4 => False,   --  unused
10671         5 => False),  --  unused
10672
10673      N_Mod_Clause =>
10674        (1 => False,   --  unused
10675         2 => False,   --  unused
10676         3 => True,    --  Expression (Node3)
10677         4 => True,    --  Pragmas_Before (List4)
10678         5 => False),  --  unused
10679
10680      N_Conditional_Expression =>
10681        (1 => True,    --  Expressions (List1)
10682         2 => False,   --  Then_Actions (List2-Sem)
10683         3 => False,   --  Else_Actions (List3-Sem)
10684         4 => False,   --  unused
10685         5 => False),  --  Etype (Node5-Sem)
10686
10687      N_Expanded_Name =>
10688        (1 => True,    --  Chars (Name1)
10689         2 => True,    --  Selector_Name (Node2)
10690         3 => True,    --  Prefix (Node3)
10691         4 => False,   --  Entity (Node4-Sem)
10692         5 => False),  --  Etype (Node5-Sem)
10693
10694      N_Free_Statement =>
10695        (1 => False,   --  Storage_Pool (Node1-Sem)
10696         2 => False,   --  Procedure_To_Call (Node2-Sem)
10697         3 => True,    --  Expression (Node3)
10698         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10699         5 => False),  --  unused
10700
10701      N_Freeze_Entity =>
10702        (1 => True,    --  Actions (List1)
10703         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
10704         3 => False,   --  TSS_Elist (Elist3-Sem)
10705         4 => False,   --  Entity (Node4-Sem)
10706         5 => False),  --  First_Subtype_Link (Node5-Sem)
10707
10708      N_Implicit_Label_Declaration =>
10709        (1 => True,    --  Defining_Identifier (Node1)
10710         2 => False,   --  Label_Construct (Node2-Sem)
10711         3 => False,   --  unused
10712         4 => False,   --  unused
10713         5 => False),  --  unused
10714
10715      N_Itype_Reference =>
10716        (1 => False,   --  Itype (Node1-Sem)
10717         2 => False,   --  unused
10718         3 => False,   --  unused
10719         4 => False,   --  unused
10720         5 => False),  --  unused
10721
10722      N_Raise_Constraint_Error =>
10723        (1 => True,    --  Condition (Node1)
10724         2 => False,   --  unused
10725         3 => True,    --  Reason (Uint3)
10726         4 => False,   --  unused
10727         5 => False),  --  Etype (Node5-Sem)
10728
10729      N_Raise_Program_Error =>
10730        (1 => True,    --  Condition (Node1)
10731         2 => False,   --  unused
10732         3 => True,    --  Reason (Uint3)
10733         4 => False,   --  unused
10734         5 => False),  --  Etype (Node5-Sem)
10735
10736      N_Raise_Storage_Error =>
10737        (1 => True,    --  Condition (Node1)
10738         2 => False,   --  unused
10739         3 => True,    --  Reason (Uint3)
10740         4 => False,   --  unused
10741         5 => False),  --  Etype (Node5-Sem)
10742
10743      N_Push_Constraint_Error_Label =>
10744        (1 => False,   --  unused
10745         2 => False,   --  unused
10746         3 => False,   --  unused
10747         4 => False,   --  unused
10748         5 => False),  --  unused
10749
10750      N_Push_Program_Error_Label =>
10751        (1 => False,   --  Exception_Label
10752         2 => False,   --  unused
10753         3 => False,   --  unused
10754         4 => False,   --  unused
10755         5 => False),  --  Exception_Label
10756
10757      N_Push_Storage_Error_Label =>
10758        (1 => False,   --  Exception_Label
10759         2 => False,   --  unused
10760         3 => False,   --  unused
10761         4 => False,   --  unused
10762         5 => False),  --  Exception_Label
10763
10764      N_Pop_Constraint_Error_Label =>
10765        (1 => False,   --  unused
10766         2 => False,   --  unused
10767         3 => False,   --  unused
10768         4 => False,   --  unused
10769         5 => False),  --  unused
10770
10771      N_Pop_Program_Error_Label =>
10772        (1 => False,   --  unused
10773         2 => False,   --  unused
10774         3 => False,   --  unused
10775         4 => False,   --  unused
10776         5 => False),  --  unused
10777
10778      N_Pop_Storage_Error_Label =>
10779        (1 => False,   --  unused
10780         2 => False,   --  unused
10781         3 => False,   --  unused
10782         4 => False,   --  unused
10783         5 => False),  --  unused
10784
10785      N_Reference =>
10786        (1 => False,   --  unused
10787         2 => False,   --  unused
10788         3 => True,    --  Prefix (Node3)
10789         4 => False,   --  unused
10790         5 => False),  --  Etype (Node5-Sem)
10791
10792      N_Subprogram_Info =>
10793        (1 => True,    --  Identifier (Node1)
10794         2 => False,   --  unused
10795         3 => False,   --  unused
10796         4 => False,   --  unused
10797         5 => False),  --  Etype (Node5-Sem)
10798
10799      N_Unchecked_Expression =>
10800        (1 => False,   --  unused
10801         2 => False,   --  unused
10802         3 => True,    --  Expression (Node3)
10803         4 => False,   --  unused
10804         5 => False),  --  Etype (Node5-Sem)
10805
10806      N_Unchecked_Type_Conversion =>
10807        (1 => False,   --  unused
10808         2 => False,   --  unused
10809         3 => True,    --  Expression (Node3)
10810         4 => True,    --  Subtype_Mark (Node4)
10811         5 => False),  --  Etype (Node5-Sem)
10812
10813      N_Validate_Unchecked_Conversion =>
10814        (1 => False,   --  Source_Type (Node1-Sem)
10815         2 => False,   --  Target_Type (Node2-Sem)
10816         3 => False,   --  unused
10817         4 => False,   --  unused
10818         5 => False),  --  unused
10819
10820    --  End of inserted output from makeisf program
10821
10822    --  Entries for Empty, Error and Unused. Even thought these have a Chars
10823    --  field for debugging purposes, they are not really syntactic fields, so
10824    --  we mark all fields as unused.
10825
10826      N_Empty =>
10827        (1 => False,   --  unused
10828         2 => False,   --  unused
10829         3 => False,   --  unused
10830         4 => False,   --  unused
10831         5 => False),  --  unused
10832
10833      N_Error =>
10834        (1 => False,   --  unused
10835         2 => False,   --  unused
10836         3 => False,   --  unused
10837         4 => False,   --  unused
10838         5 => False),  --  unused
10839
10840      N_Unused_At_Start =>
10841        (1 => False,   --  unused
10842         2 => False,   --  unused
10843         3 => False,   --  unused
10844         4 => False,   --  unused
10845         5 => False),  --  unused
10846
10847      N_Unused_At_End =>
10848        (1 => False,   --  unused
10849         2 => False,   --  unused
10850         3 => False,   --  unused
10851         4 => False,   --  unused
10852         5 => False)); --  unused
10853
10854    --------------------
10855    -- Inline Pragmas --
10856    --------------------
10857
10858    pragma Inline (ABE_Is_Certain);
10859    pragma Inline (Abort_Present);
10860    pragma Inline (Abortable_Part);
10861    pragma Inline (Abstract_Present);
10862    pragma Inline (Accept_Handler_Records);
10863    pragma Inline (Accept_Statement);
10864    pragma Inline (Access_Definition);
10865    pragma Inline (Access_To_Subprogram_Definition);
10866    pragma Inline (Access_Types_To_Process);
10867    pragma Inline (Actions);
10868    pragma Inline (Activation_Chain_Entity);
10869    pragma Inline (Acts_As_Spec);
10870    pragma Inline (Actual_Designated_Subtype);
10871    pragma Inline (Address_Warning_Posted);
10872    pragma Inline (Aggregate_Bounds);
10873    pragma Inline (Aliased_Present);
10874    pragma Inline (All_Others);
10875    pragma Inline (All_Present);
10876    pragma Inline (Alternatives);
10877    pragma Inline (Ancestor_Part);
10878    pragma Inline (Array_Aggregate);
10879    pragma Inline (Assignment_OK);
10880    pragma Inline (Associated_Node);
10881    pragma Inline (At_End_Proc);
10882    pragma Inline (Attribute_Name);
10883    pragma Inline (Aux_Decls_Node);
10884    pragma Inline (Backwards_OK);
10885    pragma Inline (Bad_Is_Detected);
10886    pragma Inline (Body_To_Inline);
10887    pragma Inline (Body_Required);
10888    pragma Inline (By_Ref);
10889    pragma Inline (Box_Present);
10890    pragma Inline (Char_Literal_Value);
10891    pragma Inline (Chars);
10892    pragma Inline (Check_Address_Alignment);
10893    pragma Inline (Choice_Parameter);
10894    pragma Inline (Choices);
10895    pragma Inline (Coextensions);
10896    pragma Inline (Comes_From_Extended_Return_Statement);
10897    pragma Inline (Compile_Time_Known_Aggregate);
10898    pragma Inline (Component_Associations);
10899    pragma Inline (Component_Clauses);
10900    pragma Inline (Component_Definition);
10901    pragma Inline (Component_Items);
10902    pragma Inline (Component_List);
10903    pragma Inline (Component_Name);
10904    pragma Inline (Condition);
10905    pragma Inline (Condition_Actions);
10906    pragma Inline (Config_Pragmas);
10907    pragma Inline (Constant_Present);
10908    pragma Inline (Constraint);
10909    pragma Inline (Constraints);
10910    pragma Inline (Context_Installed);
10911    pragma Inline (Context_Items);
10912    pragma Inline (Controlling_Argument);
10913    pragma Inline (Conversion_OK);
10914    pragma Inline (Corresponding_Body);
10915    pragma Inline (Corresponding_Formal_Spec);
10916    pragma Inline (Corresponding_Generic_Association);
10917    pragma Inline (Corresponding_Integer_Value);
10918    pragma Inline (Corresponding_Spec);
10919    pragma Inline (Corresponding_Stub);
10920    pragma Inline (Dcheck_Function);
10921    pragma Inline (Debug_Statement);
10922    pragma Inline (Declarations);
10923    pragma Inline (Default_Expression);
10924    pragma Inline (Default_Name);
10925    pragma Inline (Defining_Identifier);
10926    pragma Inline (Defining_Unit_Name);
10927    pragma Inline (Delay_Alternative);
10928    pragma Inline (Delay_Statement);
10929    pragma Inline (Delta_Expression);
10930    pragma Inline (Digits_Expression);
10931    pragma Inline (Discr_Check_Funcs_Built);
10932    pragma Inline (Discrete_Choices);
10933    pragma Inline (Discrete_Range);
10934    pragma Inline (Discrete_Subtype_Definition);
10935    pragma Inline (Discrete_Subtype_Definitions);
10936    pragma Inline (Discriminant_Specifications);
10937    pragma Inline (Discriminant_Type);
10938    pragma Inline (Do_Accessibility_Check);
10939    pragma Inline (Do_Discriminant_Check);
10940    pragma Inline (Do_Length_Check);
10941    pragma Inline (Do_Division_Check);
10942    pragma Inline (Do_Overflow_Check);
10943    pragma Inline (Do_Range_Check);
10944    pragma Inline (Do_Storage_Check);
10945    pragma Inline (Do_Tag_Check);
10946    pragma Inline (Elaborate_Present);
10947    pragma Inline (Elaborate_All_Desirable);
10948    pragma Inline (Elaborate_All_Present);
10949    pragma Inline (Elaborate_Desirable);
10950    pragma Inline (Elaboration_Boolean);
10951    pragma Inline (Else_Actions);
10952    pragma Inline (Else_Statements);
10953    pragma Inline (Elsif_Parts);
10954    pragma Inline (Enclosing_Variant);
10955    pragma Inline (End_Label);
10956    pragma Inline (End_Span);
10957    pragma Inline (Entity);
10958    pragma Inline (Entity_Or_Associated_Node);
10959    pragma Inline (Entry_Body_Formal_Part);
10960    pragma Inline (Entry_Call_Alternative);
10961    pragma Inline (Entry_Call_Statement);
10962    pragma Inline (Entry_Direct_Name);
10963    pragma Inline (Entry_Index);
10964    pragma Inline (Entry_Index_Specification);
10965    pragma Inline (Etype);
10966    pragma Inline (Exception_Choices);
10967    pragma Inline (Exception_Handlers);
10968    pragma Inline (Exception_Junk);
10969    pragma Inline (Exception_Label);
10970    pragma Inline (Expansion_Delayed);
10971    pragma Inline (Explicit_Actual_Parameter);
10972    pragma Inline (Explicit_Generic_Actual_Parameter);
10973    pragma Inline (Expression);
10974    pragma Inline (Expressions);
10975    pragma Inline (First_Bit);
10976    pragma Inline (First_Inlined_Subprogram);
10977    pragma Inline (First_Name);
10978    pragma Inline (First_Named_Actual);
10979    pragma Inline (First_Real_Statement);
10980    pragma Inline (First_Subtype_Link);
10981    pragma Inline (Float_Truncate);
10982    pragma Inline (Formal_Type_Definition);
10983    pragma Inline (Forwards_OK);
10984    pragma Inline (From_At_End);
10985    pragma Inline (From_At_Mod);
10986    pragma Inline (From_Default);
10987    pragma Inline (Generic_Associations);
10988    pragma Inline (Generic_Formal_Declarations);
10989    pragma Inline (Generic_Parent);
10990    pragma Inline (Generic_Parent_Type);
10991    pragma Inline (Handled_Statement_Sequence);
10992    pragma Inline (Handler_List_Entry);
10993    pragma Inline (Has_Created_Identifier);
10994    pragma Inline (Has_Dynamic_Length_Check);
10995    pragma Inline (Has_Dynamic_Range_Check);
10996    pragma Inline (Has_Init_Expression);
10997    pragma Inline (Has_Local_Raise);
10998    pragma Inline (Has_Self_Reference);
10999    pragma Inline (Has_No_Elaboration_Code);
11000    pragma Inline (Has_Priority_Pragma);
11001    pragma Inline (Has_Private_View);
11002    pragma Inline (Has_Relative_Deadline_Pragma);
11003    pragma Inline (Has_Storage_Size_Pragma);
11004    pragma Inline (Has_Task_Info_Pragma);
11005    pragma Inline (Has_Task_Name_Pragma);
11006    pragma Inline (Has_Wide_Character);
11007    pragma Inline (Hidden_By_Use_Clause);
11008    pragma Inline (High_Bound);
11009    pragma Inline (Identifier);
11010    pragma Inline (Implicit_With);
11011    pragma Inline (Interface_List);
11012    pragma Inline (Interface_Present);
11013    pragma Inline (Includes_Infinities);
11014    pragma Inline (In_Present);
11015    pragma Inline (Instance_Spec);
11016    pragma Inline (Intval);
11017    pragma Inline (Is_Asynchronous_Call_Block);
11018    pragma Inline (Is_Component_Left_Opnd);
11019    pragma Inline (Is_Component_Right_Opnd);
11020    pragma Inline (Is_Controlling_Actual);
11021    pragma Inline (Is_Dynamic_Coextension);
11022    pragma Inline (Is_Entry_Barrier_Function);
11023    pragma Inline (Is_Expanded_Build_In_Place_Call);
11024    pragma Inline (Is_Folded_In_Parser);
11025    pragma Inline (Is_In_Discriminant_Check);
11026    pragma Inline (Is_Machine_Number);
11027    pragma Inline (Is_Null_Loop);
11028    pragma Inline (Is_Overloaded);
11029    pragma Inline (Is_Power_Of_2_For_Shift);
11030    pragma Inline (Is_Protected_Subprogram_Body);
11031    pragma Inline (Is_Static_Coextension);
11032    pragma Inline (Is_Static_Expression);
11033    pragma Inline (Is_Subprogram_Descriptor);
11034    pragma Inline (Is_Task_Allocation_Block);
11035    pragma Inline (Is_Task_Master);
11036    pragma Inline (Iteration_Scheme);
11037    pragma Inline (Itype);
11038    pragma Inline (Kill_Range_Check);
11039    pragma Inline (Last_Bit);
11040    pragma Inline (Last_Name);
11041    pragma Inline (Library_Unit);
11042    pragma Inline (Label_Construct);
11043    pragma Inline (Left_Opnd);
11044    pragma Inline (Limited_View_Installed);
11045    pragma Inline (Limited_Present);
11046    pragma Inline (Literals);
11047    pragma Inline (Local_Raise_Not_OK);
11048    pragma Inline (Local_Raise_Statements);
11049    pragma Inline (Loop_Actions);
11050    pragma Inline (Loop_Parameter_Specification);
11051    pragma Inline (Low_Bound);
11052    pragma Inline (Mod_Clause);
11053    pragma Inline (More_Ids);
11054    pragma Inline (Must_Be_Byte_Aligned);
11055    pragma Inline (Must_Not_Freeze);
11056    pragma Inline (Must_Not_Override);
11057    pragma Inline (Must_Override);
11058    pragma Inline (Name);
11059    pragma Inline (Names);
11060    pragma Inline (Next_Entity);
11061    pragma Inline (Next_Named_Actual);
11062    pragma Inline (Next_Pragma);
11063    pragma Inline (Next_Rep_Item);
11064    pragma Inline (Next_Use_Clause);
11065    pragma Inline (No_Ctrl_Actions);
11066    pragma Inline (No_Elaboration_Check);
11067    pragma Inline (No_Entities_Ref_In_Spec);
11068    pragma Inline (No_Initialization);
11069    pragma Inline (No_Truncation);
11070    pragma Inline (Null_Present);
11071    pragma Inline (Null_Exclusion_Present);
11072    pragma Inline (Null_Exclusion_In_Return_Present);
11073    pragma Inline (Null_Record_Present);
11074    pragma Inline (Object_Definition);
11075    pragma Inline (Original_Discriminant);
11076    pragma Inline (Original_Entity);
11077    pragma Inline (Others_Discrete_Choices);
11078    pragma Inline (Out_Present);
11079    pragma Inline (Parameter_Associations);
11080    pragma Inline (Parameter_Specifications);
11081    pragma Inline (Parameter_List_Truncated);
11082    pragma Inline (Parameter_Type);
11083    pragma Inline (Parent_Spec);
11084    pragma Inline (PPC_Enabled);
11085    pragma Inline (Position);
11086    pragma Inline (Pragma_Argument_Associations);
11087    pragma Inline (Pragma_Identifier);
11088    pragma Inline (Pragmas_After);
11089    pragma Inline (Pragmas_Before);
11090    pragma Inline (Prefix);
11091    pragma Inline (Present_Expr);
11092    pragma Inline (Prev_Ids);
11093    pragma Inline (Print_In_Hex);
11094    pragma Inline (Private_Declarations);
11095    pragma Inline (Private_Present);
11096    pragma Inline (Procedure_To_Call);
11097    pragma Inline (Proper_Body);
11098    pragma Inline (Protected_Definition);
11099    pragma Inline (Protected_Present);
11100    pragma Inline (Raises_Constraint_Error);
11101    pragma Inline (Range_Constraint);
11102    pragma Inline (Range_Expression);
11103    pragma Inline (Real_Range_Specification);
11104    pragma Inline (Realval);
11105    pragma Inline (Reason);
11106    pragma Inline (Record_Extension_Part);
11107    pragma Inline (Redundant_Use);
11108    pragma Inline (Renaming_Exception);
11109    pragma Inline (Result_Definition);
11110    pragma Inline (Return_Object_Declarations);
11111    pragma Inline (Return_Statement_Entity);
11112    pragma Inline (Reverse_Present);
11113    pragma Inline (Right_Opnd);
11114    pragma Inline (Rounded_Result);
11115    pragma Inline (Scope);
11116    pragma Inline (Select_Alternatives);
11117    pragma Inline (Selector_Name);
11118    pragma Inline (Selector_Names);
11119    pragma Inline (Shift_Count_OK);
11120    pragma Inline (Source_Type);
11121    pragma Inline (Specification);
11122    pragma Inline (Statements);
11123    pragma Inline (Static_Processing_OK);
11124    pragma Inline (Storage_Pool);
11125    pragma Inline (Strval);
11126    pragma Inline (Subtype_Indication);
11127    pragma Inline (Subtype_Mark);
11128    pragma Inline (Subtype_Marks);
11129    pragma Inline (Suppress_Loop_Warnings);
11130    pragma Inline (Synchronized_Present);
11131    pragma Inline (Tagged_Present);
11132    pragma Inline (Target_Type);
11133    pragma Inline (Task_Definition);
11134    pragma Inline (Task_Present);
11135    pragma Inline (Then_Actions);
11136    pragma Inline (Then_Statements);
11137    pragma Inline (Triggering_Alternative);
11138    pragma Inline (Triggering_Statement);
11139    pragma Inline (Treat_Fixed_As_Integer);
11140    pragma Inline (TSS_Elist);
11141    pragma Inline (Type_Definition);
11142    pragma Inline (Unit);
11143    pragma Inline (Unknown_Discriminants_Present);
11144    pragma Inline (Unreferenced_In_Spec);
11145    pragma Inline (Variant_Part);
11146    pragma Inline (Variants);
11147    pragma Inline (Visible_Declarations);
11148    pragma Inline (Was_Originally_Stub);
11149    pragma Inline (Zero_Cost_Handling);
11150
11151    pragma Inline (Set_ABE_Is_Certain);
11152    pragma Inline (Set_Abort_Present);
11153    pragma Inline (Set_Abortable_Part);
11154    pragma Inline (Set_Abstract_Present);
11155    pragma Inline (Set_Accept_Handler_Records);
11156    pragma Inline (Set_Accept_Statement);
11157    pragma Inline (Set_Access_Definition);
11158    pragma Inline (Set_Access_To_Subprogram_Definition);
11159    pragma Inline (Set_Access_Types_To_Process);
11160    pragma Inline (Set_Actions);
11161    pragma Inline (Set_Activation_Chain_Entity);
11162    pragma Inline (Set_Acts_As_Spec);
11163    pragma Inline (Set_Actual_Designated_Subtype);
11164    pragma Inline (Set_Address_Warning_Posted);
11165    pragma Inline (Set_Aggregate_Bounds);
11166    pragma Inline (Set_Aliased_Present);
11167    pragma Inline (Set_All_Others);
11168    pragma Inline (Set_All_Present);
11169    pragma Inline (Set_Alternatives);
11170    pragma Inline (Set_Ancestor_Part);
11171    pragma Inline (Set_Array_Aggregate);
11172    pragma Inline (Set_Assignment_OK);
11173    pragma Inline (Set_Associated_Node);
11174    pragma Inline (Set_At_End_Proc);
11175    pragma Inline (Set_Attribute_Name);
11176    pragma Inline (Set_Aux_Decls_Node);
11177    pragma Inline (Set_Backwards_OK);
11178    pragma Inline (Set_Bad_Is_Detected);
11179    pragma Inline (Set_Body_To_Inline);
11180    pragma Inline (Set_Body_Required);
11181    pragma Inline (Set_By_Ref);
11182    pragma Inline (Set_Box_Present);
11183    pragma Inline (Set_Char_Literal_Value);
11184    pragma Inline (Set_Chars);
11185    pragma Inline (Set_Check_Address_Alignment);
11186    pragma Inline (Set_Choice_Parameter);
11187    pragma Inline (Set_Choices);
11188    pragma Inline (Set_Coextensions);
11189    pragma Inline (Set_Comes_From_Extended_Return_Statement);
11190    pragma Inline (Set_Compile_Time_Known_Aggregate);
11191    pragma Inline (Set_Component_Associations);
11192    pragma Inline (Set_Component_Clauses);
11193    pragma Inline (Set_Component_Definition);
11194    pragma Inline (Set_Component_Items);
11195    pragma Inline (Set_Component_List);
11196    pragma Inline (Set_Component_Name);
11197    pragma Inline (Set_Condition);
11198    pragma Inline (Set_Condition_Actions);
11199    pragma Inline (Set_Config_Pragmas);
11200    pragma Inline (Set_Constant_Present);
11201    pragma Inline (Set_Constraint);
11202    pragma Inline (Set_Constraints);
11203    pragma Inline (Set_Context_Installed);
11204    pragma Inline (Set_Context_Items);
11205    pragma Inline (Set_Controlling_Argument);
11206    pragma Inline (Set_Conversion_OK);
11207    pragma Inline (Set_Corresponding_Body);
11208    pragma Inline (Set_Corresponding_Formal_Spec);
11209    pragma Inline (Set_Corresponding_Generic_Association);
11210    pragma Inline (Set_Corresponding_Integer_Value);
11211    pragma Inline (Set_Corresponding_Spec);
11212    pragma Inline (Set_Corresponding_Stub);
11213    pragma Inline (Set_Dcheck_Function);
11214    pragma Inline (Set_Debug_Statement);
11215    pragma Inline (Set_Declarations);
11216    pragma Inline (Set_Default_Expression);
11217    pragma Inline (Set_Default_Name);
11218    pragma Inline (Set_Defining_Identifier);
11219    pragma Inline (Set_Defining_Unit_Name);
11220    pragma Inline (Set_Delay_Alternative);
11221    pragma Inline (Set_Delay_Statement);
11222    pragma Inline (Set_Delta_Expression);
11223    pragma Inline (Set_Digits_Expression);
11224    pragma Inline (Set_Discr_Check_Funcs_Built);
11225    pragma Inline (Set_Discrete_Choices);
11226    pragma Inline (Set_Discrete_Range);
11227    pragma Inline (Set_Discrete_Subtype_Definition);
11228    pragma Inline (Set_Discrete_Subtype_Definitions);
11229    pragma Inline (Set_Discriminant_Specifications);
11230    pragma Inline (Set_Discriminant_Type);
11231    pragma Inline (Set_Do_Accessibility_Check);
11232    pragma Inline (Set_Do_Discriminant_Check);
11233    pragma Inline (Set_Do_Length_Check);
11234    pragma Inline (Set_Do_Division_Check);
11235    pragma Inline (Set_Do_Overflow_Check);
11236    pragma Inline (Set_Do_Range_Check);
11237    pragma Inline (Set_Do_Storage_Check);
11238    pragma Inline (Set_Do_Tag_Check);
11239    pragma Inline (Set_Elaborate_Present);
11240    pragma Inline (Set_Elaborate_All_Desirable);
11241    pragma Inline (Set_Elaborate_All_Present);
11242    pragma Inline (Set_Elaborate_Desirable);
11243    pragma Inline (Set_Elaboration_Boolean);
11244    pragma Inline (Set_Else_Actions);
11245    pragma Inline (Set_Else_Statements);
11246    pragma Inline (Set_Elsif_Parts);
11247    pragma Inline (Set_Enclosing_Variant);
11248    pragma Inline (Set_End_Label);
11249    pragma Inline (Set_End_Span);
11250    pragma Inline (Set_Entity);
11251    pragma Inline (Set_Entry_Body_Formal_Part);
11252    pragma Inline (Set_Entry_Call_Alternative);
11253    pragma Inline (Set_Entry_Call_Statement);
11254    pragma Inline (Set_Entry_Direct_Name);
11255    pragma Inline (Set_Entry_Index);
11256    pragma Inline (Set_Entry_Index_Specification);
11257    pragma Inline (Set_Etype);
11258    pragma Inline (Set_Exception_Choices);
11259    pragma Inline (Set_Exception_Handlers);
11260    pragma Inline (Set_Exception_Junk);
11261    pragma Inline (Set_Exception_Label);
11262    pragma Inline (Set_Expansion_Delayed);
11263    pragma Inline (Set_Explicit_Actual_Parameter);
11264    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11265    pragma Inline (Set_Expression);
11266    pragma Inline (Set_Expressions);
11267    pragma Inline (Set_First_Bit);
11268    pragma Inline (Set_First_Inlined_Subprogram);
11269    pragma Inline (Set_First_Name);
11270    pragma Inline (Set_First_Named_Actual);
11271    pragma Inline (Set_First_Real_Statement);
11272    pragma Inline (Set_First_Subtype_Link);
11273    pragma Inline (Set_Float_Truncate);
11274    pragma Inline (Set_Formal_Type_Definition);
11275    pragma Inline (Set_Forwards_OK);
11276    pragma Inline (Set_From_At_End);
11277    pragma Inline (Set_From_At_Mod);
11278    pragma Inline (Set_From_Default);
11279    pragma Inline (Set_Generic_Associations);
11280    pragma Inline (Set_Generic_Formal_Declarations);
11281    pragma Inline (Set_Generic_Parent);
11282    pragma Inline (Set_Generic_Parent_Type);
11283    pragma Inline (Set_Handled_Statement_Sequence);
11284    pragma Inline (Set_Handler_List_Entry);
11285    pragma Inline (Set_Has_Created_Identifier);
11286    pragma Inline (Set_Has_Dynamic_Length_Check);
11287    pragma Inline (Set_Has_Init_Expression);
11288    pragma Inline (Set_Has_Local_Raise);
11289    pragma Inline (Set_Has_Dynamic_Range_Check);
11290    pragma Inline (Set_Has_No_Elaboration_Code);
11291    pragma Inline (Set_Has_Priority_Pragma);
11292    pragma Inline (Set_Has_Private_View);
11293    pragma Inline (Set_Has_Relative_Deadline_Pragma);
11294    pragma Inline (Set_Has_Storage_Size_Pragma);
11295    pragma Inline (Set_Has_Task_Info_Pragma);
11296    pragma Inline (Set_Has_Task_Name_Pragma);
11297    pragma Inline (Set_Has_Wide_Character);
11298    pragma Inline (Set_Hidden_By_Use_Clause);
11299    pragma Inline (Set_High_Bound);
11300    pragma Inline (Set_Identifier);
11301    pragma Inline (Set_Implicit_With);
11302    pragma Inline (Set_Includes_Infinities);
11303    pragma Inline (Set_Interface_List);
11304    pragma Inline (Set_Interface_Present);
11305    pragma Inline (Set_In_Present);
11306    pragma Inline (Set_Instance_Spec);
11307    pragma Inline (Set_Intval);
11308    pragma Inline (Set_Is_Asynchronous_Call_Block);
11309    pragma Inline (Set_Is_Component_Left_Opnd);
11310    pragma Inline (Set_Is_Component_Right_Opnd);
11311    pragma Inline (Set_Is_Controlling_Actual);
11312    pragma Inline (Set_Is_Dynamic_Coextension);
11313    pragma Inline (Set_Is_Entry_Barrier_Function);
11314    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11315    pragma Inline (Set_Is_Folded_In_Parser);
11316    pragma Inline (Set_Is_In_Discriminant_Check);
11317    pragma Inline (Set_Is_Machine_Number);
11318    pragma Inline (Set_Is_Null_Loop);
11319    pragma Inline (Set_Is_Overloaded);
11320    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11321    pragma Inline (Set_Is_Protected_Subprogram_Body);
11322    pragma Inline (Set_Has_Self_Reference);
11323    pragma Inline (Set_Is_Static_Coextension);
11324    pragma Inline (Set_Is_Static_Expression);
11325    pragma Inline (Set_Is_Subprogram_Descriptor);
11326    pragma Inline (Set_Is_Task_Allocation_Block);
11327    pragma Inline (Set_Is_Task_Master);
11328    pragma Inline (Set_Iteration_Scheme);
11329    pragma Inline (Set_Itype);
11330    pragma Inline (Set_Kill_Range_Check);
11331    pragma Inline (Set_Last_Bit);
11332    pragma Inline (Set_Last_Name);
11333    pragma Inline (Set_Library_Unit);
11334    pragma Inline (Set_Label_Construct);
11335    pragma Inline (Set_Left_Opnd);
11336    pragma Inline (Set_Limited_View_Installed);
11337    pragma Inline (Set_Limited_Present);
11338    pragma Inline (Set_Literals);
11339    pragma Inline (Set_Local_Raise_Not_OK);
11340    pragma Inline (Set_Local_Raise_Statements);
11341    pragma Inline (Set_Loop_Actions);
11342    pragma Inline (Set_Loop_Parameter_Specification);
11343    pragma Inline (Set_Low_Bound);
11344    pragma Inline (Set_Mod_Clause);
11345    pragma Inline (Set_More_Ids);
11346    pragma Inline (Set_Must_Be_Byte_Aligned);
11347    pragma Inline (Set_Must_Not_Freeze);
11348    pragma Inline (Set_Must_Not_Override);
11349    pragma Inline (Set_Must_Override);
11350    pragma Inline (Set_Name);
11351    pragma Inline (Set_Names);
11352    pragma Inline (Set_Next_Entity);
11353    pragma Inline (Set_Next_Named_Actual);
11354    pragma Inline (Set_Next_Pragma);
11355    pragma Inline (Set_Next_Rep_Item);
11356    pragma Inline (Set_Next_Use_Clause);
11357    pragma Inline (Set_No_Ctrl_Actions);
11358    pragma Inline (Set_No_Elaboration_Check);
11359    pragma Inline (Set_No_Entities_Ref_In_Spec);
11360    pragma Inline (Set_No_Initialization);
11361    pragma Inline (Set_No_Truncation);
11362    pragma Inline (Set_Null_Present);
11363    pragma Inline (Set_Null_Exclusion_Present);
11364    pragma Inline (Set_Null_Exclusion_In_Return_Present);
11365    pragma Inline (Set_Null_Record_Present);
11366    pragma Inline (Set_Object_Definition);
11367    pragma Inline (Set_Original_Discriminant);
11368    pragma Inline (Set_Original_Entity);
11369    pragma Inline (Set_Others_Discrete_Choices);
11370    pragma Inline (Set_Out_Present);
11371    pragma Inline (Set_Parameter_Associations);
11372    pragma Inline (Set_Parameter_Specifications);
11373    pragma Inline (Set_Parameter_List_Truncated);
11374    pragma Inline (Set_Parameter_Type);
11375    pragma Inline (Set_Parent_Spec);
11376    pragma Inline (Set_PPC_Enabled);
11377    pragma Inline (Set_Position);
11378    pragma Inline (Set_Pragma_Argument_Associations);
11379    pragma Inline (Set_Pragma_Identifier);
11380    pragma Inline (Set_Pragmas_After);
11381    pragma Inline (Set_Pragmas_Before);
11382    pragma Inline (Set_Prefix);
11383    pragma Inline (Set_Present_Expr);
11384    pragma Inline (Set_Prev_Ids);
11385    pragma Inline (Set_Print_In_Hex);
11386    pragma Inline (Set_Private_Declarations);
11387    pragma Inline (Set_Private_Present);
11388    pragma Inline (Set_Procedure_To_Call);
11389    pragma Inline (Set_Proper_Body);
11390    pragma Inline (Set_Protected_Definition);
11391    pragma Inline (Set_Protected_Present);
11392    pragma Inline (Set_Raises_Constraint_Error);
11393    pragma Inline (Set_Range_Constraint);
11394    pragma Inline (Set_Range_Expression);
11395    pragma Inline (Set_Real_Range_Specification);
11396    pragma Inline (Set_Realval);
11397    pragma Inline (Set_Reason);
11398    pragma Inline (Set_Record_Extension_Part);
11399    pragma Inline (Set_Redundant_Use);
11400    pragma Inline (Set_Renaming_Exception);
11401    pragma Inline (Set_Result_Definition);
11402    pragma Inline (Set_Return_Object_Declarations);
11403    pragma Inline (Set_Reverse_Present);
11404    pragma Inline (Set_Right_Opnd);
11405    pragma Inline (Set_Rounded_Result);
11406    pragma Inline (Set_Scope);
11407    pragma Inline (Set_Select_Alternatives);
11408    pragma Inline (Set_Selector_Name);
11409    pragma Inline (Set_Selector_Names);
11410    pragma Inline (Set_Shift_Count_OK);
11411    pragma Inline (Set_Source_Type);
11412    pragma Inline (Set_Specification);
11413    pragma Inline (Set_Statements);
11414    pragma Inline (Set_Static_Processing_OK);
11415    pragma Inline (Set_Storage_Pool);
11416    pragma Inline (Set_Strval);
11417    pragma Inline (Set_Subtype_Indication);
11418    pragma Inline (Set_Subtype_Mark);
11419    pragma Inline (Set_Subtype_Marks);
11420    pragma Inline (Set_Suppress_Loop_Warnings);
11421    pragma Inline (Set_Synchronized_Present);
11422    pragma Inline (Set_Tagged_Present);
11423    pragma Inline (Set_Target_Type);
11424    pragma Inline (Set_Task_Definition);
11425    pragma Inline (Set_Task_Present);
11426    pragma Inline (Set_Then_Actions);
11427    pragma Inline (Set_Then_Statements);
11428    pragma Inline (Set_Triggering_Alternative);
11429    pragma Inline (Set_Triggering_Statement);
11430    pragma Inline (Set_Treat_Fixed_As_Integer);
11431    pragma Inline (Set_TSS_Elist);
11432    pragma Inline (Set_Type_Definition);
11433    pragma Inline (Set_Unit);
11434    pragma Inline (Set_Unknown_Discriminants_Present);
11435    pragma Inline (Set_Unreferenced_In_Spec);
11436    pragma Inline (Set_Variant_Part);
11437    pragma Inline (Set_Variants);
11438    pragma Inline (Set_Visible_Declarations);
11439    pragma Inline (Set_Was_Originally_Stub);
11440    pragma Inline (Set_Zero_Cost_Handling);
11441
11442    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11443    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11444    --  should refer to N_Simple_Return_Statement.
11445
11446 end Sinfo;