OSDN Git Service

2008-05-20 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-2008, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package defines the structure of the abstract syntax tree. The Tree
35 --  package provides a basic tree structure. Sinfo describes how this structure
36 --  is used to represent the syntax of an Ada program.
37
38 --  The grammar in the RM is followed very closely in the tree
39 --  design, and is repeated as part of this source file.
40
41 --  The tree contains not only the full syntactic representation of the
42 --  program, but also the results of semantic analysis. In particular, the
43 --  nodes for defining identifiers, defining character literals and defining
44 --  operator symbols, collectively referred to as entities, represent what
45 --  would normally be regarded as the symbol table information. In addition a
46 --  number of the tree nodes contain semantic information.
47
48 --  WARNING: Several files are automatically generated from this package.
49 --  See below for details.
50
51 with Namet;  use Namet;
52 with Types;  use Types;
53 with Uintp;  use Uintp;
54 with Urealp; use Urealp;
55
56 package Sinfo is
57
58    ---------------------------------
59    -- Making Changes to This File --
60    ---------------------------------
61
62    --  If changes are made to this file, a number of related steps must be
63    --  carried out to ensure consistency. First, if a field access function is
64    --  added, it appears in seven places:
65
66    --    The documentation associated with the node
67    --    The spec of the access function in sinfo.ads
68    --    The body of the access function in sinfo.adb
69    --    The pragma Inline at the end of sinfo.ads for the access function
70    --    The spec of the set procedure in sinfo.ads
71    --    The body of the set procedure in sinfo.adb
72    --    The pragma Inline at the end of sinfo.ads for the set procedure
73
74    --  The field chosen must be consistent in all places, and, for a node that
75    --  is a subexpression, must not overlap any of the standard expression
76    --  fields.
77
78    --  In addition, if any of the standard expression fields is changed, then
79    --  the utility program which creates the Treeprs spec (in file treeprs.ads)
80    --  must be updated appropriately, since it special cases expression fields.
81
82    --  If a new tree node is added, then the following changes are made
83
84    --    Add it to the documentation in the appropriate place
85    --    Add its fields to this documentation section
86    --    Define it in the appropriate classification in Node_Kind
87    --    In the body (sinfo), add entries to the access functions for all
88    --     its fields (except standard expression fields) to include the new
89    --     node in the checks.
90    --    Add an appropriate section to the case statement in sprint.adb
91    --    Add an appropriate section to the case statement in sem.adb
92    --    Add an appropriate section to the case statement in exp_util.adb
93    --     (Insert_Actions procedure)
94    --    For a subexpression, add an appropriate section to the case
95    --     statement in sem_eval.adb
96    --    For a subexpression, add an appropriate section to the case
97    --     statement in sem_res.adb
98
99    --  Finally, four utility programs must be run:
100
101    --    Run CSinfo to check that you have made the changes consistently. It
102    --     checks most of the rules given above, with clear error messages. This
103    --     utility reads sinfo.ads and sinfo.adb and generates a report to
104    --     standard output.
105
106    --    Run XSinfo to create sinfo.h, the corresponding C header. This
107    --     utility reads sinfo.ads and generates sinfo.h. Note that it does
108    --     not need to read sinfo.adb, since the contents of the body are
109    --     algorithmically determinable from the spec.
110
111    --    Run XTreeprs to create treeprs.ads, an updated version of the module
112    --     that is used to drive the tree print routine. This utility reads (but
113    --     does not modify) treeprs.adt, the template that provides the basic
114    --     structure of the file, and then fills in the data from the comments
115    --     in sinfo.ads.
116
117    --    Run XNmake to create nmake.ads and nmake.adb, the package body and
118    --     spec of the Nmake package which contains functions for constructing
119    --     nodes.
120
121    --  All of the above steps except CSinfo are done automatically by the
122    --  build scripts when you do a full bootstrap.
123
124    --  Note: sometime we could write a utility that actually generated the body
125    --  of sinfo from the spec instead of simply checking it, since, as noted
126    --  above, the contents of the body can be determined from the spec.
127
128    --------------------------------
129    -- Implicit Nodes in the Tree --
130    --------------------------------
131
132    --  Generally the structure of the tree very closely follows the grammar as
133    --  defined in the RM. However, certain nodes are omitted to save space and
134    --  simplify semantic processing. Two general classes of such omitted nodes
135    --  are as follows:
136
137    --   If the only possibilities for a non-terminal are one or more other
138    --   non-terminals (i.e. the rule is a "skinny" rule), then usually the
139    --   corresponding node is omitted from the tree, and the target construct
140    --   appears directly. For example, a real type definition is either
141    --   floating point definition or a fixed point definition. No explicit node
142    --   appears for real type definition. Instead either the floating point
143    --   definition or fixed point definition appears directly.
144
145    --   If a non-terminal corresponds to a list of some other non-terminal
146    --   (possibly with separating punctuation), then usually it is omitted from
147    --   the tree, and a list of components appears instead. For example,
148    --   sequence of statements does not appear explicitly in the tree. Instead
149    --   a list of statements appears directly.
150
151    --  Some additional cases of omitted nodes occur and are documented
152    --  individually. In particular, many nodes are omitted in the tree
153    --  generated for an expression.
154
155    -------------------------------------------
156    -- Handling of Defining Identifier Lists --
157    -------------------------------------------
158
159    --  In several declarative forms in the syntax, lists of defining
160    --  identifiers appear (object declarations, component declarations, number
161    --  declarations etc.)
162
163    --  The semantics of such statements are equivalent to a series of identical
164    --  declarations of single defining identifiers (except that conformance
165    --  checks require the same grouping of identifiers in the parameter case).
166
167    --  To simplify semantic processing, the parser breaks down such multiple
168    --  declaration cases into sequences of single declarations, duplicating
169    --  type and initialization information as required. The flags More_Ids and
170    --  Prev_Ids are used to record the original form of the source in the case
171    --  where the original source used a list of names, More_Ids being set on
172    --  all but the last name and Prev_Ids being set on all but the first name.
173    --  These flags are used to reconstruct the original source (e.g. in the
174    --  Sprint package), and also are included in the conformance checks, but
175    --  otherwise have no semantic significance.
176
177    --  Note: the reason that we use More_Ids and Prev_Ids rather than
178    --  First_Name and Last_Name flags is so that the flags are off in the
179    --  normal one identifier case, which minimizes tree print output.
180
181    -----------------------
182    -- Use of Node Lists --
183    -----------------------
184
185    --  With a few exceptions, if a construction of the form {non-terminal}
186    --  appears in the tree, lists are used in the corresponding tree node (see
187    --  package Nlists for handling of node lists). In this case a field of the
188    --  parent node points to a list of nodes for the non-terminal. The field
189    --  name for such fields has a plural name which always ends in "s". For
190    --  example, a case statement has a field Alternatives pointing to list of
191    --  case statement alternative nodes.
192
193    --  Only fields pointing to lists have names ending in "s", so generally the
194    --  structure is strongly typed, fields not ending in s point to single
195    --  nodes, and fields ending in s point to lists.
196
197    --  The following example shows how a traversal of a list is written. We
198    --  suppose here that Stmt points to a N_Case_Statement node which has a
199    --  list field called Alternatives:
200
201    --   Alt := First (Alternatives (Stmt));
202    --   while Present (Alt) loop
203    --      ..
204    --      -- processing for case statement alternative Alt
205    --      ..
206    --      Alt := Next (Alt);
207    --   end loop;
208
209    --  The Present function tests for Empty, which in this case signals the end
210    --  of the list. First returns Empty immediately if the list is empty.
211    --  Present is defined in Atree, First and Next are defined in Nlists.
212
213    --  The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
214    --  contexts, which is handled as described in the previous section, and
215    --  with {,library_unit_NAME} in the N_With_Clause mode, which is handled
216    --  using the First_Name and Last_Name flags, as further detailed in the
217    --  description of the N_With_Clause node.
218
219    -------------
220    -- Pragmas --
221    -------------
222
223    --  Pragmas can appear in many different context, but are not included in
224    --  the grammar. Still they must appear in the tree, so they can be properly
225    --  processed.
226
227    --  Two approaches are used. In some cases, an extra field is defined in an
228    --  appropriate node that contains a list of pragmas appearing in the
229    --  expected context. For example pragmas can appear before an
230    --  Accept_Alternative in a Selective_Accept_Statement, and these pragmas
231    --  appear in the Pragmas_Before field of the N_Accept_Alternative node.
232
233    --  The other approach is to simply allow pragmas to appear in syntactic
234    --  lists where the grammar (of course) does not include the possibility.
235    --  For example, the Variants field of an N_Variant_Part node points to a
236    --  list that can contain both N_Pragma and N_Variant nodes.
237
238    --  To make processing easier in the latter case, the Nlists package
239    --  provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
240    --  Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
241    --  ignoring all pragmas.
242
243    --  In the case of the variants list, we can either write:
244
245    --      Variant := First (Variants (N));
246    --      while Present (Variant) loop
247    --         ...
248    --         Variant := Next (Variant);
249    --      end loop;
250
251    --  or
252
253    --      Variant := First_Non_Pragma (Variants (N));
254    --      while Present (Variant) loop
255    --         ...
256    --         Variant := Next_Non_Pragma (Variant);
257    --      end loop;
258
259    --  In the first form of the loop, Variant can either be an N_Pragma or an
260    --  N_Variant node. In the second form, Variant can only be N_Variant since
261    --  all pragmas are skipped.
262
263    ---------------------
264    -- Optional Fields --
265    ---------------------
266
267    --  Fields which correspond to a section of the syntax enclosed in square
268    --  brackets are generally omitted (and the corresponding field set to Empty
269    --  for a node, or No_List for a list). The documentation of such fields
270    --  notes these cases. One exception to this rule occurs in the case of
271    --  possibly empty statement sequences (such as the sequence of statements
272    --  in an entry call alternative). Such cases appear in the syntax rules as
273    --  [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
274    --  statement sequences always contain an empty list (not No_List) if no
275    --  statements are present.
276
277    --  Note: the utility program that constructs the body and spec of the Nmake
278    --  package relies on the format of the comments to determine if a field
279    --  should have a default value in the corresponding make routine. The rule
280    --  is that if the first line of the description of the field contains the
281    --  string "(set to xxx if", then a default value of xxx is provided for
282    --  this field in the corresponding Make_yyy routine.
283
284    -----------------------------------
285    -- Note on Body/Spec Terminology --
286    -----------------------------------
287
288    --  In informal discussions about Ada, it is customary to refer to package
289    --  and subprogram specs and bodies. However, this is not technically
290    --  correct, what is normally referred to as a spec or specification is in
291    --  fact a package declaration or subprogram declaration. We are careful in
292    --  GNAT to use the correct terminology and in particular, the full word
293    --  specification is never used as an incorrect substitute for declaration.
294    --  The structure and terminology used in the tree also reflects the grammar
295    --  and thus uses declaration and specification in the technically correct
296    --  manner.
297
298    --  However, there are contexts in which the informal terminology is useful.
299    --  We have the word "body" to refer to the Interp_Etype declared by the
300    --  declaration of a unit body, and in some contexts we need similar term to
301    --  refer to the entity declared by the package or subprogram declaration,
302    --  and simply using declaration can be confusing since the body also has a
303    --  declaration.
304
305    --  An example of such a context is the link between the package body and
306    --  its declaration. With_Declaration is confusing, since the package body
307    --  itself is a declaration.
308
309    --  To deal with this problem, we reserve the informal term Spec, i.e. the
310    --  popular abbreviation used in this context, to refer to the entity
311    --  declared by the package or subprogram declaration. So in the above
312    --  example case, the field in the body is called With_Spec.
313
314    --  Another important context for the use of the word Spec is in error
315    --  messages, where a hyper-correct use of declaration would be confusing to
316    --  a typical Ada programmer, and even for an expert programmer can cause
317    --  confusion since the body has a declaration as well.
318
319    --  So, to summarize:
320
321    --     Declaration    always refers to the syntactic entity that is called
322    --                    a declaration. In particular, subprogram declaration
323    --                    and package declaration are used to describe the
324    --                    syntactic entity that includes the semicolon.
325
326    --     Specification  always refers to the syntactic entity that is called
327    --                    a specification. In particular, the terms procedure
328    --                    specification, function specification, package
329    --                    specification, subprogram specification always refer
330    --                    to the syntactic entity that has no semicolon.
331
332    --     Spec           is an informal term, used to refer to the entity
333    --                    that is declared by a task declaration, protected
334    --                    declaration, generic declaration, subprogram
335    --                    declaration or package declaration.
336
337    --  This convention is followed throughout the GNAT documentation
338    --  both internal and external, and in all error message text.
339
340    ------------------------
341    -- Internal Use Nodes --
342    ------------------------
343
344    --  These are Node_Kind settings used in the internal implementation which
345    --  are not logically part of the specification.
346
347    --  N_Unused_At_Start
348    --  Completely unused entry at the start of the enumeration type. This
349    --  is inserted so that no legitimate value is zero, which helps to get
350    --  better debugging behavior, since zero is a likely uninitialized value).
351
352    --  N_Unused_At_End
353    --  Completely unused entry at the end of the enumeration type. This is
354    --  handy so that arrays with Node_Kind as the index type have an extra
355    --  entry at the end (see for example the use of the Pchar_Pos_Array in
356    --  Treepr, where the extra entry provides the limit value when dealing with
357    --  the last used entry in the array).
358
359    -----------------------------------------
360    -- Note on the settings of Sloc fields --
361    -----------------------------------------
362
363    --  The Sloc field of nodes that come from the source is set by the parser.
364    --  For internal nodes, and nodes generated during expansion the Sloc is
365    --  usually set in the call to the constructor for the node. In general the
366    --  Sloc value chosen for an internal node is the Sloc of the source node
367    --  whose processing is responsible for the expansion. For example, the Sloc
368    --  of an inherited primitive operation is the Sloc of the corresponding
369    --  derived type declaration.
370
371    --  For the nodes of a generic instantiation, the Sloc value is encoded to
372    --  represent both the original Sloc in the generic unit, and the Sloc of
373    --  the instantiation itself. See Sinput.ads for details.
374
375    --  Subprogram instances create two callable entities: one is the visible
376    --  subprogram instance, and the other is an anonymous subprogram nested
377    --  within a wrapper package that contains the renamings for the actuals.
378    --  Both of these entities have the Sloc of the defining entity in the
379    --  instantiation node. This simplifies some ASIS queries.
380
381    -----------------------
382    -- Field Definitions --
383    -----------------------
384
385    --  In the following node definitions, all fields, both syntactic and
386    --  semantic, are documented. The one exception is in the case of entities
387    --  (defining identifiers, character literals and operator symbols), where
388    --  the usage of the fields depends on the entity kind. Entity fields are
389    --  fully documented in the separate package Einfo.
390
391    --  In the node definitions, three common sets of fields are abbreviated to
392    --  save both space in the documentation, and also space in the string
393    --  (defined in Tree_Print_Strings) used to print trees. The following
394    --  abbreviations are used:
395
396    --  Note: the utility program that creates the Treeprs spec (in the file
397    --  xtreeprs.adb) knows about the special fields here, so it must be
398    --  modified if any change is made to these fields.
399
400    --    "plus fields for binary operator"
401    --       Chars                    (Name1)      Name_Id for the operator
402    --       Left_Opnd                (Node2)      left operand expression
403    --       Right_Opnd               (Node3)      right operand expression
404    --       Entity                   (Node4-Sem)  defining entity for operator
405    --       Associated_Node          (Node4-Sem)  for generic processing
406    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
407    --       Has_Private_View         (Flag11-Sem) set in generic units.
408
409    --    "plus fields for unary operator"
410    --       Chars                    (Name1)      Name_Id for the operator
411    --       Right_Opnd               (Node3)      right operand expression
412    --       Entity                   (Node4-Sem)  defining entity for operator
413    --       Associated_Node          (Node4-Sem)  for generic processing
414    --       Do_Overflow_Check        (Flag17-Sem) set if overflow check needed
415    --       Has_Private_View         (Flag11-Sem) set in generic units.
416
417    --    "plus fields for expression"
418    --       Paren_Count                           number of parentheses levels
419    --       Etype                    (Node5-Sem)  type of the expression
420    --       Is_Overloaded            (Flag5-Sem)  >1 type interpretation exists
421    --       Is_Static_Expression     (Flag6-Sem)  set for static expression
422    --       Raises_Constraint_Error  (Flag7-Sem)  evaluation raises CE
423    --       Must_Not_Freeze          (Flag8-Sem)  set if must not freeze
424    --       Do_Range_Check           (Flag9-Sem)  set if a range check needed
425    --       Assignment_OK            (Flag15-Sem) set if modification is OK
426    --       Is_Controlling_Actual    (Flag16-Sem) set for controlling argument
427
428    --  Note: see under (EXPRESSION) for further details on the use of
429    --  the Paren_Count field to record the number of parentheses levels.
430
431    --  Node_Kind is the type used in the Nkind field to indicate the node kind.
432    --  The actual definition of this type is given later (the reason for this
433    --  is that we want the descriptions ordered by logical chapter in the RM,
434    --  but the type definition is reordered to facilitate the definition of
435    --  some subtype ranges. The individual descriptions of the nodes show how
436    --  the various fields are used in each node kind, as well as providing
437    --  logical names for the fields. Functions and procedures are provided for
438    --  accessing and setting these fields using these logical names.
439
440    -----------------------
441    -- Gigi Restrictions --
442    -----------------------
443
444    --  The tree passed to Gigi is more restricted than the general tree form.
445    --  For example, as a result of expansion, most of the tasking nodes can
446    --  never appear. For each node to which either a complete or partial
447    --  restriction applies, a note entitled "Gigi restriction" appears which
448    --  documents the restriction.
449
450    --  Note that most of these restrictions apply only to trees generated when
451    --  code is being generated, since they involved expander actions that
452    --  destroy the tree.
453
454    ------------------------
455    -- Common Flag Fields --
456    ------------------------
457
458    --  The following flag fields appear in all nodes
459
460    --  Analyzed (Flag1)
461    --    This flag is used to indicate that a node (and all its children have
462    --    been analyzed. It is used to avoid reanalysis of a node that has
463    --    already been analyzed, both for efficiency and functional correctness
464    --    reasons.
465
466    --  Comes_From_Source (Flag2)
467    --    This flag is on for any nodes built by the scanner or parser from the
468    --    source program, and off for any nodes built by the analyzer or
469    --    expander. It indicates that a node comes from the original source.
470    --    This flag is defined in Atree.
471
472    --  Error_Posted (Flag3)
473    --    This flag is used to avoid multiple error messages being posted on or
474    --    referring to the same node. This flag is set if an error message
475    --    refers to a node or is posted on its source location, and has the
476    --    effect of inhibiting further messages involving this same node.
477
478    --  Has_Dynamic_Length_Check (Flag10-Sem)
479    --    This flag is present on all nodes. It is set to indicate that one of
480    --    the routines in unit Checks has generated a length check action which
481    --    has been inserted at the flagged node. This is used to avoid the
482    --    generation of duplicate checks.
483
484    --  Has_Dynamic_Range_Check (Flag12-Sem)
485    --    This flag is present on all nodes. It is set to indicate that one of
486    --    the routines in unit Checks has generated a range check action which
487    --    has been inserted at the flagged node. This is used to avoid the
488    --    generation of duplicate checks.
489
490    --  Has_Local_Raise (Flag8-Sem)
491    --    Present in exception handler nodes. Set if the handler can be entered
492    --    via a local raise that gets transformed to a goto statement. This will
493    --    always be set if Local_Raise_Statements is non-empty, but can also be
494    --    set as a result of generation of N_Raise_xxx nodes, or flags set in
495    --    nodes requiring generation of back end checks.
496
497    ------------------------------------
498    -- Description of Semantic Fields --
499    ------------------------------------
500
501    --  The meaning of the syntactic fields is generally clear from their names
502    --  without any further description, since the names are chosen to
503    --  correspond very closely to the syntax in the reference manual. This
504    --  section describes the usage of the semantic fields, which are used to
505    --  contain additional information determined during semantic analysis.
506
507    --  ABE_Is_Certain (Flag18-Sem)
508    --    This flag is set in an instantiation node or a call node is determined
509    --    to be sure to raise an ABE. This is used to trigger special handling
510    --    of such cases, particularly in the instantiation case where we avoid
511    --    instantiating the body if this flag is set. This flag is also present
512    --    in an N_Formal_Package_Declaration_Node since formal package
513    --    declarations are treated like instantiations, but it is always set to
514    --    False in this context.
515
516    --  Accept_Handler_Records (List5-Sem)
517    --    This field is present only in an N_Accept_Alternative node. It is used
518    --    to temporarily hold the exception handler records from an accept
519    --    statement in a selective accept. These exception handlers will
520    --    eventually be placed in the Handler_Records list of the procedure
521    --    built for this accept (see Expand_N_Selective_Accept procedure in
522    --    Exp_Ch9 for further details).
523
524    --  Access_Types_To_Process (Elist2-Sem)
525    --    Present in N_Freeze_Entity nodes for Incomplete or private types.
526    --    Contains the list of access types which may require specific treatment
527    --    when the nature of the type completion is completely known. An example
528    --    of such treatment is the generation of the associated_final_chain.
529
530    --  Actions (List1-Sem)
531    --    This field contains a sequence of actions that are associated with the
532    --    node holding the field. See the individual node types for details of
533    --    how this field is used, as well as the description of the specific use
534    --    for a particular node type.
535
536    --  Activation_Chain_Entity (Node3-Sem)
537    --    This is used in tree nodes representing task activators (blocks,
538    --    subprogram bodies, package declarations, and task bodies). It is
539    --    initially Empty, and then gets set to point to the entity for the
540    --    declared Activation_Chain variable when the first task is declared.
541    --    When tasks are declared in the corresponding declarative region this
542    --    entity is located by name (its name is always _Chain) and the declared
543    --    tasks are added to the chain. Note that N_Extended_Return_Statement
544    --    does not have this attribute, although it does have an activation
545    --    chain. This chain is used to store the tasks temporarily, and is not
546    --    used for activating them. On successful completion of the return
547    --    statement, the tasks are moved to the caller's chain, and the caller
548    --    activates them.
549
550    --  Acts_As_Spec (Flag4-Sem)
551    --    A flag set in the N_Subprogram_Body node for a subprogram body which
552    --    is acting as its own spec, except in the case of a library level
553    --    subprogram, in which case the flag is set on the parent compilation
554    --    unit node instead (see further description in spec of Lib package).
555    --    ??? Above note about Lib is dubious since lib.ads does not mention
556    --    Acts_As_Spec at all.
557
558    --  Actual_Designated_Subtype (Node4-Sem)
559    --    Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
560    --    needs to known the dynamic constrained subtype of the designated
561    --    object, this attribute is set to that type. This is done for
562    --    N_Free_Statements for access-to-classwide types and access to
563    --    unconstrained packed array types, and for N_Explicit_Dereference when
564    --    the designated type is an unconstrained packed array and the
565    --    dereference is the prefix of a 'Size attribute reference.
566
567    --  Address_Warning_Posted (Flag18-Sem)
568    --    Present in N_Attribute_Definition nodes. Set to indicate that we have
569    --    posted a warning for the address clause regarding size or alignment
570    --    issues. Used to inhibit multiple redundant messages.
571
572    --  Aggregate_Bounds (Node3-Sem)
573    --    Present in array N_Aggregate nodes. If the aggregate contains
574    --    component associations this field points to an N_Range node whose
575    --    bounds give the lowest and highest discrete choice values. If the
576    --    named aggregate contains a dynamic or null choice this field is empty.
577    --    If the aggregate contains positional elements this field points to an
578    --    N_Integer_Literal node giving the number of positional elements. Note
579    --    that if the aggregate contains positional elements and an other choice
580    --    the N_Integer_Literal only accounts for the number of positional
581    --    elements.
582
583    --  All_Others (Flag11-Sem)
584    --    Present in an N_Others_Choice node. This flag is set for an others
585    --    exception where all exceptions are to be caught, even those that are
586    --    not normally handled (in particular the tasking abort signal). This
587    --    is used for translation of the at end handler into a normal exception
588    --    handler.
589
590    --  Assignment_OK (Flag15-Sem)
591    --    This flag is set in a subexpression node for an object, indicating
592    --    that the associated object can be modified, even if this would not
593    --    normally be permissible (either by direct assignment, or by being
594    --    passed as an out or in-out parameter). This is used by the expander
595    --    for a number of purposes, including initialization of constants and
596    --    limited type objects (such as tasks), setting discriminant fields,
597    --    setting tag values, etc. N_Object_Declaration nodes also have this
598    --    flag defined. Here it is used to indicate that an initialization
599    --    expression is valid, even where it would normally not be allowed
600    --    (e.g. where the type involved is limited).
601
602    --  Associated_Node (Node4-Sem)
603    --    Present in nodes that can denote an entity: identifiers, character
604    --    literals, operator symbols, expanded names, operator nodes, and
605    --    attribute reference nodes (all these nodes have an Entity field).
606    --    This field is also present in N_Aggregate, N_Selected_Component, and
607    --    N_Extension_Aggregate nodes. This field is used in generic processing
608    --    to create links between the generic template and the generic copy.
609    --    See Sem_Ch12.Get_Associated_Node for full details. Note that this
610    --    field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
611    --    the normal function of Entity is not required at the point where the
612    --    Associated_Node is set. Note also, that in generic templates, this
613    --    means that the Entity field does not necessarily point to an Entity.
614    --    Since the back end is expected to ignore generic templates, this is
615    --    harmless.
616
617    --  At_End_Proc (Node1)
618    --    This field is present in an N_Handled_Sequence_Of_Statements node.
619    --    It contains an identifier reference for the cleanup procedure to be
620    --    called. See description of this node for further details.
621
622    --  Backwards_OK (Flag6-Sem)
623    --    A flag present in the N_Assignment_Statement node. It is used only
624    --    if the type being assigned is an array type, and is set if analysis
625    --    determines that it is definitely safe to do the copy backwards, i.e.
626    --    starting at the highest addressed element. Note that if neither of the
627    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
628    --    could not determine that either direction is definitely safe, and a
629    --    runtime check may be required if the backend cannot figure it out.
630
631    --  Body_To_Inline (Node3-Sem)
632    --    present in subprogram declarations. Denotes analyzed but unexpanded
633    --    body of subprogram, to be used when inlining calls. Present when the
634    --    subprogram has an Inline pragma and inlining is enabled. If the
635    --    declaration is completed by a renaming_as_body, and the renamed en-
636    --    tity is a subprogram, the Body_To_Inline is the name of that entity,
637    --    which is used directly in later calls to the original subprogram.
638
639    --  Body_Required (Flag13-Sem)
640    --    A flag that appears in the N_Compilation_Unit node indicating that
641    --    the corresponding unit requires a body. For the package case, this
642    --    indicates that a completion is required. In Ada 95, if the flag is not
643    --    set for the package case, then a body may not be present. In Ada 83,
644    --    if the flag is not set for the package case, then body is optional.
645    --    For a subprogram declaration, the flag is set except in the case where
646    --    a pragma Import or Interface applies, in which case no body is
647    --    permitted (in Ada 83 or Ada 95).
648
649    --  By_Ref (Flag5-Sem)
650    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651    --    this flag is set when the returned expression is already allocated on
652    --    the secondary stack and thus the result is passed by reference rather
653    --    than copied another time.
654
655    --  Check_Address_Alignment (Flag11-Sem)
656    --    A flag present in N_Attribute_Definition clause for a 'Address
657    --    attribute definition. This flag is set if a dynamic check should be
658    --    generated at the freeze point for the entity to which this address
659    --    clause applies. The reason that we need this flag is that we want to
660    --    check for range checks being suppressed at the point where the
661    --    attribute definition clause is given, rather than testing this at the
662    --    freeze point.
663
664    --  Coextensions (Elist4-Sem)
665    --    Present in allocators nodes. Points to list of allocators for the
666    --    access discriminants of the allocated object.
667
668    --  Comes_From_Extended_Return_Statement (Flag18-Sem)
669    --    Present in N_Simple_Return_Statement nodes. True if this node was
670    --    constructed as part of the N_Extended_Return_Statement expansion.
671    --    .
672
673    --  Compile_Time_Known_Aggregate (Flag18-Sem)
674    --    Present in N_Aggregate nodes. Set for aggregates which can be fully
675    --    evaluated at compile time without raising constraint error. Such
676    --    aggregates can be passed as is to Gigi without any expansion. See
677    --    Sem_Aggr for the specific conditions under which an aggregate has this
678    --    flag set. See also the flag Static_Processing_OK.
679
680    --  Condition_Actions (List3-Sem)
681    --    This field appears in else-if nodes and in the iteration scheme node
682    --    for while loops. This field is only used during semantic processing to
683    --    temporarily hold actions inserted into the tree. In the tree passed
684    --    to gigi, the condition actions field is always set to No_List. For
685    --    details on how this field is used, see the routine Insert_Actions in
686    --    package Exp_Util, and also the expansion routines for the relevant
687    --    nodes.
688
689    --  Controlling_Argument (Node1-Sem)
690    --    This field is set in procedure and function call nodes if the call
691    --    is a dispatching call (it is Empty for a non-dispatching call). It
692    --    indicates the source of the call's controlling tag. For procedure
693    --    calls, the Controlling_Argument is one of the actuals. For function
694    --    that has a dispatching result, it is an entity in the context of the
695    --    call that can provide a tag, or else it is the tag of the root type
696    --    of the class. It can also specify a tag directly rather than being a
697    --    tagged object. The latter is needed by the implementations of AI-239
698    --    and AI-260.
699
700    --  Conversion_OK (Flag14-Sem)
701    --    A flag set on type conversion nodes to indicate that the conversion
702    --    is to be considered as being valid, even though it is the case that
703    --    the conversion is not valid Ada. This is used for attributes Enum_Rep,
704    --    Fixed_Value and Integer_Value, for internal conversions done for
705    --    fixed-point operations, and for certain conversions for calls to
706    --    initialization procedures. If Conversion_OK is set, then Etype must be
707    --    set (the analyzer assumes that Etype has been set). For the case of
708    --    fixed-point operands, it also indicates that the conversion is to be
709    --    direct conversion of the underlying integer result, with no regard to
710    --    the small operand.
711
712    --  Corresponding_Body (Node5-Sem)
713    --    This field is set in subprogram declarations, package declarations,
714    --    entry declarations of protected types, and in generic units. It
715    --    points to the defining entity for the corresponding body (NOT the
716    --    node for the body itself).
717
718    --  Corresponding_Formal_Spec (Node3-Sem)
719    --    This field is set in subprogram renaming declarations, where it points
720    --    to the defining entity for a formal subprogram in the case where the
721    --    renaming corresponds to a generic formal subprogram association in an
722    --    instantiation. The field is Empty if the renaming does not correspond
723    --    to such a formal association.
724
725    --  Corresponding_Generic_Association (Node5-Sem)
726    --    This field is defined for object declarations and object renaming
727    --    declarations. It is set for the declarations within an instance that
728    --    map generic formals to their actuals. If set, the field points to
729    --    a generic_association which is the original parent of the expression
730    --    or name appearing in the declaration. This simplifies ASIS queries.
731
732    --  Corresponding_Integer_Value (Uint4-Sem)
733    --    This field is set in real literals of fixed-point types (it is not
734    --    used for floating-point types). It contains the integer value used
735    --    to represent the fixed-point value. It is also set on the universal
736    --    real literals used to represent bounds of fixed-point base types
737    --    and their first named subtypes.
738
739    --  Corresponding_Spec (Node5-Sem)
740    --    This field is set in subprogram, package, task, and protected body
741    --    nodes, where it points to the defining entity in the corresponding
742    --    spec. The attribute is also set in N_With_Clause nodes where it points
743    --    to the defining entity for the with'ed spec, and in a subprogram
744    --    renaming declaration when it is a Renaming_As_Body. The field is Empty
745    --    if there is no corresponding spec, as in the case of a subprogram body
746    --    that serves as its own spec.
747
748    --  Corresponding_Stub (Node3-Sem)
749    --    This field is present in an N_Subunit node. It holds the node in
750    --    the parent unit that is the stub declaration for the subunit. It is
751    --    set when analysis of the stub forces loading of the proper body. If
752    --    expansion of the proper body creates new declarative nodes, they are
753    --    inserted at the point of the corresponding_stub.
754
755    --  Dcheck_Function (Node5-Sem)
756    --    This field is present in an N_Variant node, It references the entity
757    --    for the discriminant checking function for the variant.
758
759    --  Debug_Statement (Node3)
760    --    This field is present in an N_Pragma node. It is used only for a Debug
761    --    pragma. The parameter is of the form of an expression, as required by
762    --    the pragma syntax, but is actually a procedure call. To simplify
763    --    semantic processing, the parser creates a copy of the argument
764    --    rearranged into a procedure call statement and places it in the
765    --    Debug_Statement field. Note that this field is considered syntactic
766    --    field, since it is created by the parser.
767
768    --  Default_Expression (Node5-Sem)
769    --    This field is Empty if there is no default expression. If there is a
770    --    simple default expression (one with no side effects), then this field
771    --    simply contains a copy of the Expression field (both point to the tree
772    --    for the default expression). Default_Expression is used for
773    --    conformance checking.
774
775    --  Discr_Check_Funcs_Built (Flag11-Sem)
776    --    This flag is present in N_Full_Type_Declaration nodes. It is set when
777    --    discriminant checking functions are constructed. The purpose is to
778    --    avoid attempting to set these functions more than once.
779
780    --  Do_Accessibility_Check (Flag13-Sem)
781    --    This flag is set on N_Parameter_Specification nodes to indicate
782    --    that an accessibility check is required for the parameter. It is
783    --    not yet decided who takes care of this check (TBD ???).
784
785    --  Do_Discriminant_Check (Flag13-Sem)
786    --    This flag is set on N_Selected_Component nodes to indicate that a
787    --    discriminant check is required using the discriminant check routine
788    --    associated with the selector. The actual check is generated by the
789    --    expander when processing selected components.
790
791    --  Do_Division_Check (Flag13-Sem)
792    --    This flag is set on a division operator (/ mod rem) to indicate
793    --    that a zero divide check is required. The actual check is dealt
794    --    with by the backend (all the front end does is to set the flag).
795
796    --  Do_Length_Check (Flag4-Sem)
797    --    This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
798    --    N_Op_Xor, or N_Type_Conversion node to indicate that a length check
799    --    is required. It is not determined who deals with this flag (???).
800
801    --  Do_Overflow_Check (Flag17-Sem)
802    --    This flag is set on an operator where an overflow check is required on
803    --    the operation. The actual check is dealt with by the backend (all the
804    --    front end does is to set the flag). The other cases where this flag is
805    --    used is on a Type_Conversion node and for attribute reference nodes.
806    --    For a type conversion, it means that the conversion is from one base
807    --    type to another, and the value may not fit in the target base type.
808    --    See also the description of Do_Range_Check for this case. The only
809    --    attribute references which use this flag are Pred and Succ, where it
810    --    means that the result should be checked for going outside the base
811    --    range.
812
813    --  Do_Range_Check (Flag9-Sem)
814    --    This flag is set on an expression which appears in a context where a
815    --    range check is required. The target type is clear from the context.
816    --    The contexts in which this flag can appear are the following:
817
818    --      Right side of an assignment. In this case the target type is
819    --      taken from the left side of the assignment, which is referenced
820    --      by the Name of the N_Assignment_Statement node.
821
822    --      Subscript expressions in an indexed component. In this case the
823    --      target type is determined from the type of the array, which is
824    --      referenced by the Prefix of the N_Indexed_Component node.
825
826    --      Argument expression for a parameter, appearing either directly in
827    --      the Parameter_Associations list of a call or as the Expression of an
828    --      N_Parameter_Association node that appears in this list. In either
829    --      case, the check is against the type of the formal. Note that the
830    --      flag is relevant only in IN and IN OUT parameters, and will be
831    --      ignored for OUT parameters, where no check is required in the call,
832    --      and if a check is required on the return, it is generated explicitly
833    --      with a type conversion.
834
835    --      Initialization expression for the initial value in an object
836    --      declaration. In this case the Do_Range_Check flag is set on
837    --      the initialization expression, and the check is against the
838    --      range of the type of the object being declared.
839
840    --      The expression of a type conversion. In this case the range check is
841    --      against the target type of the conversion. See also the use of
842    --      Do_Overflow_Check on a type conversion. The distinction is that the
843    --      overflow check protects against a value that is outside the range of
844    --      the target base type, whereas a range check checks that the
845    --      resulting value (which is a value of the base type of the target
846    --      type), satisfies the range constraint of the target type.
847
848    --    Note: when a range check is required in contexts other than those
849    --    listed above (e.g. in a return statement), an additional type
850    --    conversion node is introduced to represent the required check.
851
852    --  Do_Storage_Check (Flag17-Sem)
853    --    This flag is set in an N_Allocator node to indicate that a storage
854    --    check is required for the allocation, or in an N_Subprogram_Body node
855    --    to indicate that a stack check is required in the subprogram prolog.
856    --    The N_Allocator case is handled by the routine that expands the call
857    --    to the runtime routine. The N_Subprogram_Body case is handled by the
858    --    backend, and all the semantics does is set the flag.
859
860    --  Do_Tag_Check (Flag13-Sem)
861    --    This flag is set on an N_Assignment_Statement, N_Function_Call,
862    --    N_Procedure_Call_Statement, N_Type_Conversion,
863    --    N_Simple_Return_Statement, or N_Extended_Return_Statement
864    --    node to indicate that the tag check can be suppressed. It is not
865    --    yet decided how this flag is used (TBD ???).
866
867    --  Elaborate_Present (Flag4-Sem)
868    --    This flag is set in the N_With_Clause node to indicate that pragma
869    --    Elaborate pragma appears for the with'ed units.
870
871    --  Elaborate_All_Desirable (Flag9-Sem)
872    --    This flag is set in the N_With_Clause mode to indicate that the static
873    --    elaboration processing has determined that an Elaborate_All pragma is
874    --    desirable for correct elaboration for this unit.
875
876    --  Elaborate_All_Present (Flag14-Sem)
877    --    This flag is set in the N_With_Clause node to indicate that a
878    --    pragma Elaborate_All pragma appears for the with'ed units.
879
880    --  Elaborate_Desirable (Flag11-Sem)
881    --    This flag is set in the N_With_Clause mode to indicate that the static
882    --    elaboration processing has determined that an Elaborate pragma is
883    --    desirable for correct elaboration for this unit.
884
885    --  Elaboration_Boolean (Node2-Sem)
886    --    This field is present in function and procedure specification nodes.
887    --    If set, it points to the entity for a Boolean flag that must be tested
888    --    for certain calls to check for access before elaboration. See body of
889    --    Sem_Elab for further details. This field is Empty if no elaboration
890    --    boolean is required.
891
892    --  Else_Actions (List3-Sem)
893    --    This field is present in conditional expression nodes. During code
894    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
895    --    actions at an appropriate place in the tree to get elaborated at the
896    --    right time. For conditional expressions, we have to be sure that the
897    --    actions for the Else branch are only elaborated if the condition is
898    --    False. The Else_Actions field is used as a temporary parking place for
899    --    these actions. The final tree is always rewritten to eliminate the
900    --    need for this field, so in the tree passed to Gigi, this field is
901    --    always set to No_List.
902
903    --  Enclosing_Variant (Node2-Sem)
904    --    This field is present in the N_Variant node and identifies the Node_Id
905    --    corresponding to the immediately enclosing variant when the variant is
906    --    nested, and N_Empty otherwise. Set during semantic processing of the
907    --    variant part of a record type.
908
909    --  Entity (Node4-Sem)
910    --    Appears in all direct names (identifiers, character literals, and
911    --    operator symbols), as well as expanded names, and attributes that
912    --    denote entities, such as 'Class. Points to entity for corresponding
913    --    defining occurrence. Set after name resolution. For identifiers in a
914    --    WITH list, the corresponding defining occurrence is in a separately
915    --    compiled file, and Entity must be set by the library Load procedure.
916    --
917    --    Note: During name resolution, the value in Entity may be temporarily
918    --    incorrect (e.g. during overload resolution, Entity is initially set to
919    --    the first possible correct interpretation, and then later modified if
920    --    necessary to contain the correct value after resolution).
921    --
922    --    Note: This field overlaps Associated_Node, which is used during
923    --    generic processing (see Sem_Ch12 for details). Note also that in
924    --    generic templates, this means that the Entity field does not always
925    --    point to an Entity. Since the back end is expected to ignore generic
926    --    templates, this is harmless.
927    --
928    --    Note: This field also appears in N_Attribute_Definition_Clause nodes.
929    --    It is used only for stream attributes definition clauses. In this
930    --    case, it denotes a (possibly dummy) subprogram entity that is declared
931    --    conceptually at the point of the clause. Thus the visibility of the
932    --    attribute definition clause (in the sense of 8.3(23) as amended by
933    --    AI-195) can be checked by testing the visibility of that subprogram.
934    --
935    --    Note: Normally the Entity field of an identifier points to the entity
936    --    for the corresponding defining identifier, and hence the Chars field
937    --    of an identifier will match the Chars field of the entity. However,
938    --    there is no requirement that these match, and there are obscure cases
939    --    of generated code where they do not match.
940
941    --  Entity_Or_Associated_Node (Node4-Sem)
942    --    A synonym for both Entity and Associated_Node. Used by convention in
943    --    the code when referencing this field in cases where it is not known
944    --    whether the field contains an Entity or an Associated_Node.
945
946    --  Etype (Node5-Sem)
947    --    Appears in all expression nodes, all direct names, and all entities.
948    --    Points to the entity for the related type. Set after type resolution.
949    --    Normally this is the actual subtype of the expression. However, in
950    --    certain contexts such as the right side of an assignment, subscripts,
951    --    arguments to calls, returned value in a function, initial value etc.
952    --    it is the desired target type. In the event that this is different
953    --    from the actual type, the Do_Range_Check flag will be set if a range
954    --    check is required. Note: if the Is_Overloaded flag is set, then Etype
955    --    points to an essentially arbitrary choice from the possible set of
956    --    types.
957
958    --  Exception_Junk (Flag8-Sem)
959    --    This flag is set in a various nodes appearing in a statement sequence
960    --    to indicate that the corresponding node is an artifact of the
961    --    generated code for exception handling, and should be ignored when
962    --    analyzing the control flow of the relevant sequence of statements
963    --    (e.g. to check that it does not end with a bad return statement).
964
965    --  Exception_Label (Node5-Sem)
966    --    Appears in N_Push_xxx_Label nodes. Points to the entity of the label
967    --    to be used for transforming the corresponding exception into a goto,
968    --    or contains Empty, if this exception is not to be transformed. Also
969    --    appears in N_Exception_Handler nodes, where, if set, it indicates
970    --    that there may be a local raise for the handler, so that expansion
971    --    to allow a goto is required (and this field contains the label for
972    --    this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
973
974    --  Expansion_Delayed (Flag11-Sem)
975    --    Set on aggregates and extension aggregates that need a top-down rather
976    --    than bottom up expansion. Typically aggregate expansion happens bottom
977    --    up. For nested aggregates the expansion is delayed until the enclosing
978    --    aggregate itself is expanded, e.g. in the context of a declaration. To
979    --    delay it we set this flag. This is done to avoid creating a temporary
980    --    for each level of a nested aggregates, and also to prevent the
981    --    premature generation of constraint checks. This is also a requirement
982    --    if we want to generate the proper attachment to the internal
983    --    finalization lists (for record with controlled components). Top down
984    --    expansion of aggregates is also used for in-place array aggregate
985    --    assignment or initialization. When the full context is known, the
986    --    target of the assignment or initialization is used to generate the
987    --    left-hand side of individual assignment to each sub-component.
988
989    --  First_Inlined_Subprogram (Node3-Sem)
990    --    Present in the N_Compilation_Unit node for the main program. Points
991    --    to a chain of entities for subprograms that are to be inlined. The
992    --    Next_Inlined_Subprogram field of these entities is used as a link
993    --    pointer with Empty marking the end of the list. This field is Empty
994    --    if there are no inlined subprograms or inlining is not active.
995
996    --  First_Named_Actual (Node4-Sem)
997    --    Present in procedure call statement and function call nodes, and also
998    --    in Intrinsic nodes. Set during semantic analysis to point to the first
999    --    named parameter where parameters are ordered by declaration order (as
1000    --    opposed to the actual order in the call which may be different due to
1001    --    named associations). Note: this field points to the explicit actual
1002    --    parameter itself, not the N_Parameter_Association node (its parent).
1003
1004    --  First_Real_Statement (Node2-Sem)
1005    --    Present in N_Handled_Sequence_Of_Statements node. Normally set to
1006    --    Empty. Used only when declarations are moved into the statement part
1007    --    of a construct as a result of wrapping an AT END handler that is
1008    --    required to cover the declarations. In this case, this field is used
1009    --    to remember the location in the statements list of the first real
1010    --    statement, i.e. the statement that used to be first in the statement
1011    --    list before the declarations were prepended.
1012
1013    --  First_Subtype_Link (Node5-Sem)
1014    --    Present in N_Freeze_Entity node for an anonymous base type that is
1015    --    implicitly created by the declaration of a first subtype. It points
1016    --    to the entity for the first subtype.
1017
1018    --  Float_Truncate (Flag11-Sem)
1019    --    A flag present in type conversion nodes. This is used for float to
1020    --    integer conversions where truncation is required rather than rounding.
1021    --    Note that Gigi does not handle type conversions from real to integer
1022    --    with rounding (see Expand_N_Type_Conversion).
1023
1024    --  Forwards_OK (Flag5-Sem)
1025    --    A flag present in the N_Assignment_Statement node. It is used only
1026    --    if the type being assigned is an array type, and is set if analysis
1027    --    determines that it is definitely safe to do the copy forwards, i.e.
1028    --    starting at the lowest addressed element. Note that if neither of the
1029    --    flags Forwards_OK or Backwards_OK is set, it means that the front end
1030    --    could not determine that either direction is definitely safe, and a
1031    --    runtime check is required.
1032
1033    --  From_At_End (Flag4-Sem)
1034    --    This flag is set on an N_Raise_Statement node if it corresponds to
1035    --    the reraise statement generated as the last statement of an AT END
1036    --    handler when SJLJ exception handling is active. It is used to stop
1037    --    a bogus violation of restriction (No_Exception_Propagation), bogus
1038    --    because if the restriction is set, the reraise is not generated.
1039
1040    --  From_At_Mod (Flag4-Sem)
1041    --    This flag is set on the attribute definition clause node that is
1042    --    generated by a transformation of an at mod phrase in a record
1043    --    representation clause. This is used to give slightly different (Ada 83
1044    --    compatible) semantics to such a clause, namely it is used to specify a
1045    --    minimum acceptable alignment for the base type and all subtypes. In
1046    --    Ada 95 terms, the actual alignment of the base type and all subtypes
1047    --    must be a multiple of the given value, and the representation clause
1048    --    is considered to be type specific instead of subtype specific.
1049
1050    --  From_Default (Flag6-Sem)
1051    --    This flag is set on the subprogram renaming declaration created in an
1052    --    instance for a formal subprogram, when the formal is declared with a
1053    --    box, and there is no explicit actual. If the flag is present, the
1054    --    declaration is treated as an implicit reference to the formal in the
1055    --    ali file.
1056
1057    --  Generic_Parent (Node5-Sem)
1058    --    Generic_Parent is defined on declaration nodes that are instances. The
1059    --    value of Generic_Parent is the generic entity from which the instance
1060    --    is obtained. Generic_Parent is also defined for the renaming
1061    --    declarations and object declarations created for the actuals in an
1062    --    instantiation. The generic parent of such a declaration is the
1063    --    corresponding generic association in the Instantiation node.
1064
1065    --  Generic_Parent_Type (Node4-Sem)
1066    --    Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1067    --    actuals of formal private and derived types. Within the instance, the
1068    --    operations on the actual are those inherited from the parent. For a
1069    --    formal private type, the parent type is the generic type itself. The
1070    --    Generic_Parent_Type is also used in an instance to determine whether a
1071    --    private operation overrides an inherited one.
1072
1073    --  Handler_List_Entry (Node2-Sem)
1074    --    This field is present in N_Object_Declaration nodes. It is set only
1075    --    for the Handler_Record entry generated for an exception in zero cost
1076    --    exception handling mode. It references the corresponding item in the
1077    --    handler list, and is used to delete this entry if the corresponding
1078    --    handler is deleted during optimization. For further details on why
1079    --    this is required, see Exp_Ch11.Remove_Handler_Entries.
1080
1081    --  Has_No_Elaboration_Code (Flag17-Sem)
1082    --    A flag that appears in the N_Compilation_Unit node to indicate whether
1083    --    or not elaboration code is present for this unit. It is initially set
1084    --    true for subprogram specs and bodies and for all generic units and
1085    --    false for non-generic package specs and bodies. Gigi may set the flag
1086    --    in the non-generic package case if it determines that no elaboration
1087    --    code is generated. Note that this flag is not related to the
1088    --    Is_Preelaborated status, there can be preelaborated packages that
1089    --    generate elaboration code, and non-preelaborated packages which do
1090    --    not generate elaboration code.
1091
1092    --  Has_Priority_Pragma (Flag6-Sem)
1093    --    A flag present in N_Subprogram_Body, N_Task_Definition and
1094    --    N_Protected_Definition nodes to flag the presence of either a Priority
1095    --    or Interrupt_Priority pragma in the declaration sequence (public or
1096    --    private in the task and protected cases)
1097
1098    --  Has_Private_View (Flag11-Sem)
1099    --    A flag present in generic nodes that have an entity, to indicate that
1100    --    the node has a private type. Used to exchange private and full
1101    --    declarations if the visibility at instantiation is different from the
1102    --    visibility at generic definition.
1103
1104    --  Has_Relative_Deadline_Pragma (Flag9-Sem)
1105    --    A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1106    --    flag the presence of a pragma Relative_Deadline.
1107
1108    --  Has_Self_Reference (Flag13-Sem)
1109    --    Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1110    --    of the expressions contains an access attribute reference to the
1111    --    enclosing type. Such a self-reference can only appear in default-
1112    --    initialized aggregate for a record type.
1113
1114    --  Has_Storage_Size_Pragma (Flag5-Sem)
1115    --    A flag present in an N_Task_Definition node to flag the presence of a
1116    --    Storage_Size pragma.
1117
1118    --  Has_Task_Info_Pragma (Flag7-Sem)
1119    --    A flag present in an N_Task_Definition node to flag the presence of a
1120    --    Task_Info pragma. Used to detect duplicate pragmas.
1121
1122    --  Has_Task_Name_Pragma (Flag8-Sem)
1123    --    A flag present in N_Task_Definition nodes to flag the presence of a
1124    --    Task_Name pragma in the declaration sequence for the task.
1125
1126    --  Has_Wide_Character (Flag11-Sem)
1127    --    Present in string literals, set if any wide character (i.e. character
1128    --    code outside the Character range) appears in the string.
1129
1130    --  Hidden_By_Use_Clause (Elist4-Sem)
1131    --     An entity list present in use clauses that appear within
1132    --     instantiations. For the resolution of local entities, entities
1133    --     introduced by these use clauses have priority over global ones, and
1134    --     outer entities must be explicitly hidden/restored on exit.
1135
1136    --  Implicit_With (Flag16-Sem)
1137    --    This flag is set in the N_With_Clause node that is implicitly
1138    --    generated for runtime units that are loaded by the expander, and also
1139    --    for package System, if it is loaded implicitly by a use of the
1140    --    'Address or 'Tag attribute.
1141
1142    --  Includes_Infinities (Flag11-Sem)
1143    --    This flag is present in N_Range nodes. It is set for the range of
1144    --    unconstrained float types defined in Standard, which include not only
1145    --    the given range of values, but also legitimately can include infinite
1146    --    values. This flag is false for any float type for which an explicit
1147    --    range is given by the programmer, even if that range is identical to
1148    --    the range for Float.
1149
1150    --  Instance_Spec (Node5-Sem)
1151    --    This field is present in generic instantiation nodes, and also in
1152    --    formal package declaration nodes (formal package declarations are
1153    --    treated in a manner very similar to package instantiations). It points
1154    --    to the node for the spec of the instance, inserted as part of the
1155    --    semantic processing for instantiations in Sem_Ch12.
1156
1157    --  Is_Asynchronous_Call_Block (Flag7-Sem)
1158    --    A flag set in a Block_Statement node to indicate that it is the
1159    --    expansion of an asynchronous entry call. Such a block needs cleanup
1160    --    handler to assure that the call is cancelled.
1161
1162    --  Is_Component_Left_Opnd  (Flag13-Sem)
1163    --  Is_Component_Right_Opnd (Flag14-Sem)
1164    --    Present in concatenation nodes, to indicate that the corresponding
1165    --    operand is of the component type of the result. Used in resolving
1166    --    concatenation nodes in instances.
1167
1168    --  Is_Controlling_Actual (Flag16-Sem)
1169    --    This flag is set on in an expression that is a controlling argument in
1170    --    a dispatching call. It is off in all other cases. See Sem_Disp for
1171    --    details of its use.
1172
1173    --  Is_Dynamic_Coextension (Flag18-Sem)
1174    --    Present in allocator nodes, to indicate that this is an allocator
1175    --    for an access discriminant of a dynamically allocated object. The
1176    --    coextension must be deallocated and finalized at the same time as
1177    --    the enclosing object.
1178
1179    --  Is_Entry_Barrier_Function (Flag8-Sem)
1180    --    This flag is set in an N_Subprogram_Body node which is the expansion
1181    --    of an entry barrier from a protected entry body. It is used for the
1182    --    circuitry checking for incorrect use of Current_Task.
1183
1184    --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1185    --    This flag is set in an N_Function_Call node to indicate that the extra
1186    --    actuals to support a build-in-place style of call have been added to
1187    --    the call.
1188
1189    --  Is_In_Discriminant_Check (Flag11-Sem)
1190    --    This flag is present in a selected component, and is used to indicate
1191    --    that the reference occurs within a discriminant check. The
1192    --    significance is that optimizations based on assuming that the
1193    --    discriminant check has a correct value cannot be performed in this
1194    --    case (or the discriminant check may be optimized away!)
1195
1196    --  Is_Machine_Number (Flag11-Sem)
1197    --    This flag is set in an N_Real_Literal node to indicate that the value
1198    --    is a machine number. This avoids some unnecessary cases of converting
1199    --    real literals to machine numbers.
1200
1201    --  Is_Null_Loop (Flag16-Sem)
1202    --    This flag is set in an N_Loop_Statement node if the corresponding loop
1203    --    can be determined to be null at compile time. This is used to suppress
1204    --    any warnings that would otherwise be issued inside the loop since they
1205    --    are probably not useful.
1206
1207    --  Is_Overloaded (Flag5-Sem)
1208    --    A flag present in all expression nodes. Used temporarily during
1209    --    overloading determination. The setting of this flag is not relevant
1210    --    once overloading analysis is complete.
1211
1212    --  Is_Power_Of_2_For_Shift (Flag13-Sem)
1213    --    A flag present only in N_Op_Expon nodes. It is set when the
1214    --    exponentiation is of the form 2 ** N, where the type of N is an
1215    --    unsigned integral subtype whose size does not exceed the size of
1216    --    Standard_Integer (i.e. a type that can be safely converted to
1217    --    Natural), and the exponentiation appears as the right operand of an
1218    --    integer multiplication or an integer division where the dividend is
1219    --    unsigned. It is also required that overflow checking is off for both
1220    --    the exponentiation and the multiply/divide node. If this set of
1221    --    conditions holds, and the flag is set, then the division or
1222    --    multiplication can be (and is) converted to a shift.
1223
1224    --  Is_Protected_Subprogram_Body (Flag7-Sem)
1225    --    A flag set in a Subprogram_Body block to indicate that it is the
1226    --    implementation of a protected subprogram. Such a body needs cleanup
1227    --    handler to make sure that the associated protected object is unlocked
1228    --    when the subprogram completes.
1229
1230    --  Is_Static_Coextension (Flag14-Sem)
1231    --    Present in N_Allocator nodes. Set if the allocator is a coextension
1232    --    of an object allocated on the stack rather than the heap.
1233
1234    --  Is_Static_Expression (Flag6-Sem)
1235    --    Indicates that an expression is a static expression (RM 4.9). See spec
1236    --    of package Sem_Eval for full details on the use of this flag.
1237
1238    --  Is_Subprogram_Descriptor (Flag16-Sem)
1239    --    Present in N_Object_Declaration, and set only for the object
1240    --    declaration generated for a subprogram descriptor in fast exception
1241    --    mode. See Exp_Ch11 for details of use.
1242
1243    --  Is_Task_Allocation_Block (Flag6-Sem)
1244    --    A flag set in a Block_Statement node to indicate that it is the
1245    --    expansion of a task allocator, or the allocator of an object
1246    --    containing tasks. Such a block requires a cleanup handler to call
1247    --    Expunge_Unactivated_Tasks to complete any tasks that have been
1248    --    allocated but not activated when the allocator completes abnormally.
1249
1250    --  Is_Task_Master (Flag5-Sem)
1251    --    A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1252    --    indicate that the construct is a task master (i.e. has declared tasks
1253    --    or declares an access to a task type).
1254
1255    --  Itype (Node1-Sem)
1256    --    Used in N_Itype_Reference node to reference an itype for which it is
1257    --    important to ensure that it is defined. See description of this node
1258    --    for further details.
1259
1260    --  Kill_Range_Check (Flag11-Sem)
1261    --    Used in an N_Unchecked_Type_Conversion node to indicate that the
1262    --    result should not be subjected to range checks. This is used for the
1263    --    implementation of Normalize_Scalars.
1264
1265    --  Label_Construct (Node2-Sem)
1266    --    Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1267    --    N_Block_Statement or N_Loop_Statement node to which the label
1268    --    declaration applies. This is not currently used in the compiler
1269    --    itself, but it is useful in the implementation of ASIS queries.
1270    --    This field is left empty for the special labels generated as part
1271    --    of expanding raise statements with a local exception handler.
1272
1273    --  Library_Unit (Node4-Sem)
1274    --    In a stub node, Library_Unit points to the compilation unit node of
1275    --    the corresponding subunit.
1276    --
1277    --    In a with clause node, Library_Unit points to the spec of the with'ed
1278    --    unit.
1279    --
1280    --    In a compilation unit node, the usage depends on the unit type:
1281    --
1282    --     For a subprogram body, Library_Unit points to the compilation unit
1283    --     node of the corresponding spec, unless Acts_As_Spec is set, in which
1284    --     case it points to itself.
1285    --
1286    --     For a package body, Library_Unit points to the compilation unit of
1287    --     the corresponding package spec.
1288    --
1289    --     For a subprogram spec to which pragma Inline applies, Library_Unit
1290    --     points to the compilation unit node of the corresponding body, if
1291    --     inlining is active.
1292    --
1293    --     For a generic declaration, Library_Unit points to the compilation
1294    --     unit node of the corresponding generic body.
1295    --
1296    --     For a subunit, Library_Unit points to the compilation unit node of
1297    --     the parent body.
1298    --
1299    --    Note that this field is not used to hold the parent pointer for child
1300    --    unit (which might in any case need to use it for some other purpose as
1301    --    described above). Instead for a child unit, implicit with's are
1302    --    generated for all parents.
1303
1304    --  Local_Raise_Statements (Elist1)
1305    --    This field is present in exception handler nodes. It is set to
1306    --    No_Elist in the normal case. If there is at least one raise statement
1307    --    which can potentially be handled as a local raise, then this field
1308    --    points to a list of raise nodes, which are calls to a routine to raise
1309    --    an exception. These are raise nodes which can be optimized into gotos
1310    --    if the handler turns out to meet the conditions which permit this
1311    --    transformation. Note that this does NOT include instances of the
1312    --    N_Raise_xxx_Error nodes since the transformation of these nodes is
1313    --    handled by the back end (using the N_Push/N_Pop mechanism).
1314
1315    --  Loop_Actions (List2-Sem)
1316    --    A list present in Component_Association nodes in array aggregates.
1317    --    Used to collect actions that must be executed within the loop because
1318    --    they may need to be evaluated anew each time through.
1319
1320    --  Limited_View_Installed (Flag18-Sem)
1321    --    Present in With_Clauses and in package specifications. If set on
1322    --    with_clause, it indicates that this clause has created the current
1323    --    limited view of the designated package. On a package specification, it
1324    --    indicates that the limited view has already been created because the
1325    --    package is mentioned in a limited_with_clause in the closure of the
1326    --    unit being compiled.
1327
1328    --  Local_Raise_Not_OK (Flag7-Sem)
1329    --    Present in N_Exception_Handler nodes. Set if the handler contains
1330    --    a construct (reraise statement, or call to subprogram in package
1331    --    GNAT.Current_Exception) that makes the handler unsuitable as a target
1332    --    for a local raise (one that could otherwise be converted to a goto).
1333
1334    --  Must_Be_Byte_Aligned (Flag14-Sem)
1335    --    This flag is present in N_Attribute_Reference nodes. It can be set
1336    --    only for the Address and Unrestricted_Access attributes. If set it
1337    --    means that the object for which the address/access is given must be on
1338    --    a byte (more accurately a storage unit) boundary. If necessary, a copy
1339    --    of the object is to be made before taking the address (this copy is in
1340    --    the current scope on the stack frame). This is used for certain cases
1341    --    of code generated by the expander that passes parameters by address.
1342    --
1343    --    The reason the copy is not made by the front end is that the back end
1344    --    has more information about type layout and may be able to (but is not
1345    --    guaranteed to) prevent making unnecessary copies.
1346
1347    --  Must_Not_Freeze (Flag8-Sem)
1348    --    A flag present in all expression nodes. Normally expressions cause
1349    --    freezing as described in the RM. If this flag is set, then this is
1350    --    inhibited. This is used by the analyzer and expander to label nodes
1351    --    that are created by semantic analysis or expansion and which must not
1352    --    cause freezing even though they normally would. This flag is also
1353    --    present in an N_Subtype_Indication node, since we also use these in
1354    --    calls to Freeze_Expression.
1355
1356    --  Next_Entity (Node2-Sem)
1357    --    Present in defining identifiers, defining character literals and
1358    --    defining operator symbols (i.e. in all entities). The entities of a
1359    --    scope are chained, and this field is used as the forward pointer for
1360    --    this list. See Einfo for further details.
1361
1362    --  Next_Named_Actual (Node4-Sem)
1363    --    Present in parameter association node. Set during semantic analysis to
1364    --    point to the next named parameter, where parameters are ordered by
1365    --    declaration order (as opposed to the actual order in the call, which
1366    --    may be different due to named associations). Not that this field
1367    --    points to the explicit actual parameter itself, not to the
1368    --    N_Parameter_Association node (its parent).
1369
1370    --  Next_Pragma (Node1-Sem)
1371    --    Present in N_Pragma nodes. Used to create a linked list of pragma
1372    --    nodes. Currently used for two purposes:
1373    --
1374    --      Create a list of linked Check_Policy pragmas. The head of this list
1375    --      is stored in Opt.Check_Policy_List (which has further details).
1376    --
1377    --      Used by processing for Pre/Postcondition pragmas to store a list of
1378    --      pragmas associated with the spec of a subprogram (see Sem_Prag for
1379    --      details).
1380
1381    --  Next_Rep_Item (Node5-Sem)
1382    --    Present in pragma nodes and attribute definition nodes. Used to link
1383    --    representation items that apply to an entity. See description of
1384    --    First_Rep_Item field in Einfo for full details.
1385
1386    --  Next_Use_Clause (Node3-Sem)
1387    --    While use clauses are active during semantic processing, they are
1388    --    chained from the scope stack entry, using Next_Use_Clause as a link
1389    --    pointer, with Empty marking the end of the list. The head pointer is
1390    --    in the scope stack entry (First_Use_Clause). At the end of semantic
1391    --    processing (i.e. when Gigi sees the tree, the contents of this field
1392    --    is undefined and should not be read).
1393
1394    --  No_Ctrl_Actions (Flag7-Sem)
1395    --    Present in N_Assignment_Statement to indicate that no finalize nor nor
1396    --    adjust should take place on this assignment even though the rhs is
1397    --    controlled. This is used in init procs and aggregate expansions where
1398    --    the generated assignments are more initialisations than real
1399    --    assignments.
1400
1401    --  No_Elaboration_Check (Flag14-Sem)
1402    --    Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1403    --    that no elaboration check is needed on the call, because it appears in
1404    --    the context of a local Suppress pragma. This is used on calls within
1405    --    task bodies, where the actual elaboration checks are applied after
1406    --    analysis, when the local scope stack is not present.
1407
1408    --  No_Entities_Ref_In_Spec (Flag8-Sem)
1409    --    Present in N_With_Clause nodes. Set if the with clause is on the
1410    --    package or subprogram spec where the main unit is the corresponding
1411    --    body, and no entities of the with'ed unit are referenced by the spec
1412    --    (an entity may still be referenced in the body, so this flag is used
1413    --    to generate the proper message (see Sem_Util.Check_Unused_Withs for
1414    --    full details)
1415
1416    --  No_Initialization (Flag13-Sem)
1417    --    Present in N_Object_Declaration & N_Allocator to indicate that the
1418    --    object must not be initialized (by Initialize or call to an init
1419    --    proc). This is needed for controlled aggregates. When the Object
1420    --    declaration has an expression, this flag means that this expression
1421    --    should not be taken into account (needed for in place initialization
1422    --    with aggregates)
1423
1424    --  No_Truncation (Flag17-Sem)
1425    --    Present in N_Unchecked_Type_Conversion node. This flag has an effect
1426    --    only if the RM_Size of the source is greater than the RM_Size of the
1427    --    target for scalar operands. Normally in such a case we truncate some
1428    --    higher order bits of the source, and then sign/zero extend the result
1429    --    to form the output value. But if this flag is set, then we do not do
1430    --    any truncation, so for example, if an 8 bit input is converted to 5
1431    --    bit result which is in fact stored in 8 bits, then the high order
1432    --    three bits of the target result will be copied from the source. This
1433    --    is used for properly setting out of range values for use by pragmas
1434    --    Initialize_Scalars and Normalize_Scalars.
1435
1436    --  Original_Discriminant (Node2-Sem)
1437    --    Present in identifiers. Used in references to discriminants that
1438    --    appear in generic units. Because the names of the discriminants may be
1439    --    different in an instance, we use this field to recover the position of
1440    --    the discriminant in the original type, and replace it with the
1441    --    discriminant at the same position in the instantiated type.
1442
1443    --  Original_Entity (Node2-Sem)
1444    --    Present in numeric literals. Used to denote the named number that has
1445    --    been constant-folded into the given literal. If literal is from
1446    --    source, or the result of some other constant-folding operation, then
1447    --    Original_Entity is empty. This field is needed to handle properly
1448    --    named numbers in generic units, where the Associated_Node field
1449    --    interferes with the Entity field, making it impossible to preserve the
1450    --    original entity at the point of instantiation (ASIS problem).
1451
1452    --  Others_Discrete_Choices (List1-Sem)
1453    --    When a case statement or variant is analyzed, the semantic checks
1454    --    determine the actual list of choices that correspond to an others
1455    --    choice. This list is materialized for later use by the expander and
1456    --    the Others_Discrete_Choices field of an N_Others_Choice node points to
1457    --    this materialized list of choices, which is in standard format for a
1458    --    list of discrete choices, except that of course it cannot contain an
1459    --    N_Others_Choice entry.
1460
1461    --  Parameter_List_Truncated (Flag17-Sem)
1462    --    Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1463    --    (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1464    --    a result of a First_Optional_Parameter specification in an
1465    --    Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1466    --    The truncation is done by the expander by removing trailing parameters
1467    --    from the argument list, in accordance with the set of rules allowing
1468    --    such parameter removal. In particular, parameters can be removed
1469    --    working from the end of the parameter list backwards up to and
1470    --    including the entry designated by First_Optional_Parameter in the
1471    --    Import pragma. Parameters can be removed if they are implicit and the
1472    --    default value is a known-at-compile-time value, including the use of
1473    --    the Null_Parameter attribute, or if explicit parameter values are
1474    --    present that match the corresponding defaults.
1475
1476    --  Parent_Spec (Node4-Sem)
1477    --    For a library unit that is a child unit spec (package or subprogram
1478    --    declaration, generic declaration or instantiation, or library level
1479    --    rename, this field points to the compilation unit node for the parent
1480    --    package specification. This field is Empty for library bodies (the
1481    --    parent spec in this case can be found from the corresponding spec).
1482
1483    --  PPC_Enabled (Flag5-Sem)
1484    --    Present in N_Pragma nodes. This flag is relevant only for precondition
1485    --    and postcondition nodes. It is true if the check corresponding to the
1486    --    pragma type is enabled at the point where the pragma appears.
1487
1488    --  Present_Expr (Uint3-Sem)
1489    --    Present in an N_Variant node. This has a meaningful value only after
1490    --    Gigi has back annotated the tree with representation information. At
1491    --    this point, it contains a reference to a gcc expression that depends
1492    --    on the values of one or more discriminants. Give a set of discriminant
1493    --    values, this expression evaluates to False (zero) if variant is not
1494    --    present, and True (non-zero) if it is present. See unit Repinfo for
1495    --    further details on gigi back annotation. This field is used during
1496    --    ASIS processing (data decomposition annex) to determine if a field is
1497    --    present or not.
1498
1499    --  Print_In_Hex (Flag13-Sem)
1500    --    Set on an N_Integer_Literal node to indicate that the value should be
1501    --    printed in hexadecimal in the sprint listing. Has no effect on
1502    --    legality or semantics of program, only on the displayed output. This
1503    --    is used to clarify output from the packed array cases.
1504
1505    --  Procedure_To_Call (Node2-Sem)
1506    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1507    --    and N_Extended_Return_Statement nodes. References the entity for the
1508    --    declaration of the procedure to be called to accomplish the required
1509    --    operation (i.e. for the Allocate procedure in the case of N_Allocator
1510    --    and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1511    --    allocating the return value), and for the Deallocate procedure in the
1512    --    case of N_Free_Statement.
1513
1514    --  Raises_Constraint_Error (Flag7-Sem)
1515    --    Set on an expression whose evaluation will definitely fail constraint
1516    --    error check. In the case of static expressions, this flag must be set
1517    --    accurately (and if it is set, the expression is typically illegal
1518    --    unless it appears as a non-elaborated branch of a short-circuit form).
1519    --    For a non-static expression, this flag may be set whenever an
1520    --    expression (e.g. an aggregate) is known to raise constraint error. If
1521    --    set, the expression definitely will raise CE if elaborated at runtime.
1522    --    If not set, the expression may or may not raise CE. In other words, on
1523    --    static expressions, the flag is set accurately, on non-static
1524    --    expressions it is set conservatively.
1525
1526    --  Redundant_Use (Flag13-Sem)
1527    --    Present in nodes that can appear as an operand in a use clause or use
1528    --    type clause (identifiers, expanded names, attribute references). Set
1529    --    to indicate that a use is redundant (and therefore need not be undone
1530    --    on scope exit).
1531
1532    --  Renaming_Exception (Node2-Sem)
1533    --    Present in N_Exception_Declaration node. Used to point back to the
1534    --    exception renaming for an exception declared within a subprogram.
1535    --    What happens is that an exception declared in a subprogram is moved
1536    --    to the library level with a unique name, and the original exception
1537    --    becomes a renaming. This link from the library level exception to the
1538    --    renaming declaration allows registering of the proper exception name.
1539
1540    --  Return_Statement_Entity (Node5-Sem)
1541    --    Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1542    --    Points to an E_Return_Statement representing the return statement.
1543
1544    --  Return_Object_Declarations (List3)
1545    --    Present in N_Extended_Return_Statement.
1546    --    Points to a list initially containing a single
1547    --    N_Object_Declaration representing the return object.
1548    --    We use a list (instead of just a pointer to the object decl)
1549    --    because Analyze wants to insert extra actions on this list.
1550
1551    --  Rounded_Result (Flag18-Sem)
1552    --    Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1553    --    Used in the fixed-point cases to indicate that the result must be
1554    --    rounded as a result of the use of the 'Round attribute. Also used for
1555    --    integer N_Op_Divide nodes to indicate that the result should be
1556    --    rounded to the nearest integer (breaking ties away from zero), rather
1557    --    than truncated towards zero as usual. These rounded integer operations
1558    --    are the result of expansion of rounded fixed-point divide, conversion
1559    --    and multiplication operations.
1560
1561    --  Scope (Node3-Sem)
1562    --    Present in defining identifiers, defining character literals and
1563    --    defining operator symbols (i.e. in all entities). The entities of a
1564    --    scope all use this field to reference the corresponding scope entity.
1565    --    See Einfo for further details.
1566
1567    --  Shift_Count_OK (Flag4-Sem)
1568    --    A flag present in shift nodes to indicate that the shift count is
1569    --    known to be in range, i.e. is in the range from zero to word length
1570    --    minus one. If this flag is not set, then the shift count may be
1571    --    outside this range, i.e. larger than the word length, and the code
1572    --    must ensure that such shift counts give the appropriate result.
1573
1574    --  Source_Type (Node1-Sem)
1575    --    Used in an N_Validate_Unchecked_Conversion node to point to the
1576    --    source type entity for the unchecked conversion instantiation
1577    --    which gigi must do size validation for.
1578
1579    --  Static_Processing_OK (Flag4-Sem)
1580    --    Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1581    --    flag is set, the full value of the aggregate can be determined at
1582    --    compile time and the aggregate can be passed as is to the back-end.
1583    --    In this event it is irrelevant whether this flag is set or not.
1584    --    However, if the flag Compile_Time_Known_Aggregate is not set but
1585    --    Static_Processing_OK is set, the aggregate can (but need not) be
1586    --    converted into a compile time known aggregate by the expander. See
1587    --    Sem_Aggr for the specific conditions under which an aggregate has its
1588    --    Static_Processing_OK flag set.
1589
1590    --  Storage_Pool (Node1-Sem)
1591    --    Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1592    --    and N_Extended_Return_Statement nodes. References the entity for the
1593    --    storage pool to be used for the allocate or free call or for the
1594    --    allocation of the returned value from function. Empty indicates that
1595    --    the global default default pool is to be used. Note that in the case
1596    --    of a return statement, this field is set only if the function returns
1597    --    value of a type whose size is not known at compile time on the
1598    --    secondary stack.
1599
1600    --  Target_Type (Node2-Sem)
1601    --    Used in an N_Validate_Unchecked_Conversion node to point to the target
1602    --    type entity for the unchecked conversion instantiation which gigi must
1603    --    do size validation for.
1604
1605    --  Then_Actions (List3-Sem)
1606    --    This field is present in conditional expression nodes. During code
1607    --    expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1608    --    actions at an appropriate place in the tree to get elaborated at the
1609    --    right time. For conditional expressions, we have to be sure that the
1610    --    actions for the Then branch are only elaborated if the condition is
1611    --    True. The Then_Actions field is used as a temporary parking place for
1612    --    these actions. The final tree is always rewritten to eliminate the
1613    --    need for this field, so in the tree passed to Gigi, this field is
1614    --    always set to No_List.
1615
1616    --  Treat_Fixed_As_Integer (Flag14-Sem)
1617    --    This flag appears in operator nodes for divide, multiply, mod and rem
1618    --    on fixed-point operands. It indicates that the operands are to be
1619    --    treated as integer values, ignoring small values. This flag is only
1620    --    set as a result of expansion of fixed-point operations. Typically a
1621    --    fixed-point multiplication in the source generates subsidiary
1622    --    multiplication and division operations that work with the underlying
1623    --    integer values and have this flag set. Note that this flag is not
1624    --    needed on other arithmetic operations (add, neg, subtract etc.) since
1625    --    in these cases it is always the case that fixed is treated as integer.
1626    --    The Etype field MUST be set if this flag is set. The analyzer knows to
1627    --    leave such nodes alone, and whoever makes them must set the correct
1628    --    Etype value.
1629
1630    --  TSS_Elist (Elist3-Sem)
1631    --    Present in N_Freeze_Entity nodes. Holds an element list containing
1632    --    entries for each TSS (type support subprogram) associated with the
1633    --    frozen type. The elements of the list are the entities for the
1634    --    subprograms (see package Exp_TSS for further details). Set to No_Elist
1635    --    if there are no type support subprograms for the type or if the freeze
1636    --    node is not for a type.
1637
1638    --  Unreferenced_In_Spec (Flag7-Sem)
1639    --    Present in N_With_Clause nodes. Set if the with clause is on the
1640    --    package or subprogram spec where the main unit is the corresponding
1641    --    body, and is not referenced by the spec (it may still be referenced by
1642    --    the body, so this flag is used to generate the proper message (see
1643    --    Sem_Util.Check_Unused_Withs for details)
1644
1645    --  Was_Originally_Stub (Flag13-Sem)
1646    --    This flag is set in the node for a proper body that replaces stub.
1647    --    During the analysis procedure, stubs in some situations get rewritten
1648    --    by the corresponding bodies, and we set this flag to remember that
1649    --    this happened. Note that it is not good enough to rely on the use of
1650    --    Original_Node here because of the case of nested instantiations where
1651    --    the substituted node can be copied.
1652
1653    --  Zero_Cost_Handling (Flag5-Sem)
1654    --    This flag is set in all handled sequence of statement and exception
1655    --    handler nodes if exceptions are to be handled using the zero-cost
1656    --    mechanism (see Ada.Exceptions and System.Exceptions in files
1657    --    a-except.ads/adb and s-except.ads for full details). What gigi needs
1658    --    to do for such a handler is simply to put the code in the handler
1659    --    somewhere. The front end has generated all necessary labels.
1660
1661    --------------------------------------------------
1662    -- Note on Use of End_Label and End_Span Fields --
1663    --------------------------------------------------
1664
1665    --  Several constructs have end lines:
1666
1667    --    Loop Statement             end loop [loop_IDENTIFIER];
1668    --    Package Specification      end [[PARENT_UNIT_NAME .] IDENTIFIER]
1669    --    Task Definition            end [task_IDENTIFIER]
1670    --    Protected Definition       end [protected_IDENTIFIER]
1671    --    Protected Body             end [protected_IDENTIFIER]
1672
1673    --    Block Statement            end [block_IDENTIFIER];
1674    --    Subprogram Body            end [DESIGNATOR];
1675    --    Package Body               end [[PARENT_UNIT_NAME .] IDENTIFIER];
1676    --    Task Body                  end [task_IDENTIFIER];
1677    --    Accept Statement           end [entry_IDENTIFIER]];
1678    --    Entry Body                 end [entry_IDENTIFIER];
1679
1680    --    If Statement               end if;
1681    --    Case Statement             end case;
1682
1683    --    Record Definition          end record;
1684    --    Enumeration Definition     );
1685
1686    --  The End_Label and End_Span fields are used to mark the locations of
1687    --  these lines, and also keep track of the label in the case where a label
1688    --  is present.
1689
1690    --  For the first group above, the End_Label field of the corresponding node
1691    --  is used to point to the label identifier. In the case where there is no
1692    --  label in the source, the parser supplies a dummy identifier (with
1693    --  Comes_From_Source set to False), and the Sloc of this dummy identifier
1694    --  marks the location of the token following the END token.
1695
1696    --  For the second group, the use of End_Label is similar, but the End_Label
1697    --  is found in the N_Handled_Sequence_Of_Statements node. This is done
1698    --  simply because in some cases there is no room in the parent node.
1699
1700    --  For the third group, there is never any label, and instead of using
1701    --  End_Label, we use the End_Span field which gives the location of the
1702    --  token following END, relative to the starting Sloc of the construct,
1703    --  i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1704    --  following the End_Label.
1705
1706    --  The record definition case is handled specially, we treat it as though
1707    --  it required an optional label which is never present, and so the parser
1708    --  always builds a dummy identifier with Comes From Source set False. The
1709    --  reason we do this, rather than using End_Span in this case, is that we
1710    --  want to generate a cross-ref entry for the end of a record, since it
1711    --  represents a scope for name declaration purposes.
1712
1713    --  The enumeration definition case is handled in an exactly similar manner,
1714    --  building a dummy identifier to get a cross-reference.
1715
1716    --  Note: the reason we store the difference as a Uint, instead of storing
1717    --  the Source_Ptr value directly, is that Source_Ptr values cannot be
1718    --  distinguished from other types of values, and we count on all general
1719    --  use fields being self describing. To make things easier for clients,
1720    --  note that we provide function End_Location, and procedure
1721    --  Set_End_Location to allow access to the logical value (which is the
1722    --  Source_Ptr value for the end token).
1723
1724    ---------------------
1725    -- Syntactic Nodes --
1726    ---------------------
1727
1728       ---------------------
1729       -- 2.3  Identifier --
1730       ---------------------
1731
1732       --  IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1733       --  LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1734
1735       --  An IDENTIFIER shall not be a reserved word
1736
1737       --  In the Ada grammar identifiers are the bottom level tokens which have
1738       --  very few semantics. Actual program identifiers are direct names. If
1739       --  we were being 100% honest with the grammar, then we would have a node
1740       --  called N_Direct_Name which would point to an identifier. However,
1741       --  that's too many extra nodes, so we just use the N_Identifier node
1742       --  directly as a direct name, and it contains the expression fields and
1743       --  Entity field that correspond to its use as a direct name. In those
1744       --  few cases where identifiers appear in contexts where they are not
1745       --  direct names (pragmas, pragma argument associations, attribute
1746       --  references and attribute definition clauses), the Chars field of the
1747       --  node contains the Name_Id for the identifier name.
1748
1749       --  Note: in GNAT, a reserved word can be treated as an identifier in two
1750       --  cases. First, an incorrect use of a reserved word as an identifier is
1751       --  diagnosed and then treated as a normal identifier. Second, an
1752       --  attribute designator of the form of a reserved word (access, delta,
1753       --  digits, range) is treated as an identifier.
1754
1755       --  Note: The set of letters that is permitted in an identifier depends
1756       --  on the character set in use. See package Csets for full details.
1757
1758       --  N_Identifier
1759       --  Sloc points to identifier
1760       --  Chars (Name1) contains the Name_Id for the identifier
1761       --  Entity (Node4-Sem)
1762       --  Associated_Node (Node4-Sem)
1763       --  Original_Discriminant (Node2-Sem)
1764       --  Redundant_Use (Flag13-Sem)
1765       --  Has_Private_View (Flag11-Sem) (set in generic units)
1766       --  plus fields for expression
1767
1768       --------------------------
1769       -- 2.4  Numeric Literal --
1770       --------------------------
1771
1772       --  NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1773
1774       ----------------------------
1775       -- 2.4.1  Decimal Literal --
1776       ----------------------------
1777
1778       --  DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1779
1780       --  NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1781
1782       --  EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1783
1784       --  Decimal literals appear in the tree as either integer literal nodes
1785       --  or real literal nodes, depending on whether a period is present.
1786
1787       --  Note: literal nodes appear as a result of direct use of literals
1788       --  in the source program, and also as the result of evaluating
1789       --  expressions at compile time. In the latter case, it is possible
1790       --  to construct real literals that have no syntactic representation
1791       --  using the standard literal format. Such literals are listed by
1792       --  Sprint using the notation [numerator / denominator].
1793
1794       --  Note: the value of an integer literal node created by the front end
1795       --  is never outside the range of values of the base type. However, it
1796       --  can be the case that the value is outside the range of the
1797       --  particular subtype. This happens in the case of integer overflows
1798       --  with checks suppressed.
1799
1800       --  N_Integer_Literal
1801       --  Sloc points to literal
1802       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1803       --  has been constant-folded into its literal value.
1804       --  Intval (Uint3) contains integer value of literal
1805       --  plus fields for expression
1806       --  Print_In_Hex (Flag13-Sem)
1807
1808       --  N_Real_Literal
1809       --  Sloc points to literal
1810       --  Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1811       --  has been constant-folded into its literal value.
1812       --  Realval (Ureal3) contains real value of literal
1813       --  Corresponding_Integer_Value (Uint4-Sem)
1814       --  Is_Machine_Number (Flag11-Sem)
1815       --  plus fields for expression
1816
1817       --------------------------
1818       -- 2.4.2  Based Literal --
1819       --------------------------
1820
1821       --  BASED_LITERAL ::=
1822       --   BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1823
1824       --  BASE ::= NUMERAL
1825
1826       --  BASED_NUMERAL ::=
1827       --    EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1828
1829       --  EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1830
1831       --  Based literals appear in the tree as either integer literal nodes
1832       --  or real literal nodes, depending on whether a period is present.
1833
1834       ----------------------------
1835       -- 2.5  Character Literal --
1836       ----------------------------
1837
1838       --  CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1839
1840       --  N_Character_Literal
1841       --  Sloc points to literal
1842       --  Chars (Name1) contains the Name_Id for the identifier
1843       --  Char_Literal_Value (Uint2) contains the literal value
1844       --  Entity (Node4-Sem)
1845       --  Associated_Node (Node4-Sem)
1846       --  Has_Private_View (Flag11-Sem) set in generic units.
1847       --  plus fields for expression
1848
1849       --  Note: the Entity field will be missing (set to Empty) for character
1850       --  literals whose type is Standard.Wide_Character or Standard.Character
1851       --  or a type derived from one of these two. In this case the character
1852       --  literal stands for its own coding. The reason we take this irregular
1853       --  short cut is to avoid the need to build lots of junk defining
1854       --  character literal nodes.
1855
1856       -------------------------
1857       -- 2.6  String Literal --
1858       -------------------------
1859
1860       --  STRING LITERAL ::= "{STRING_ELEMENT}"
1861
1862       --  A STRING_ELEMENT is either a pair of quotation marks ("), or a
1863       --  single GRAPHIC_CHARACTER other than a quotation mark.
1864       --
1865       --  Is_Folded_In_Parser is True if the parser created this literal by
1866       --  folding a sequence of "&" operators. For example, if the source code
1867       --  says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1868       --  is set. This flag is needed because the parser doesn't know about
1869       --  visibility, so the folded result might be wrong, and semantic
1870       --  analysis needs to check for that.
1871
1872       --  N_String_Literal
1873       --  Sloc points to literal
1874       --  Strval (Str3) contains Id of string value
1875       --  Has_Wide_Character (Flag11-Sem)
1876       --  Is_Folded_In_Parser (Flag4)
1877       --  plus fields for expression
1878
1879       ------------------
1880       -- 2.7  Comment --
1881       ------------------
1882
1883       --  A COMMENT starts with two adjacent hyphens and extends up to the
1884       --  end of the line. A COMMENT may appear on any line of a program.
1885
1886       --  Comments are skipped by the scanner and do not appear in the tree.
1887       --  It is possible to reconstruct the position of comments with respect
1888       --  to the elements of the tree by using the source position (Sloc)
1889       --  pointers that appear in every tree node.
1890
1891       -----------------
1892       -- 2.8  Pragma --
1893       -----------------
1894
1895       --  PRAGMA ::= pragma IDENTIFIER
1896       --    [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1897
1898       --  Note that a pragma may appear in the tree anywhere a declaration
1899       --  or a statement may appear, as well as in some other situations
1900       --  which are explicitly documented.
1901
1902       --  N_Pragma
1903       --  Sloc points to pragma identifier
1904       --  Next_Pragma (Node1-Sem)
1905       --  Pragma_Argument_Associations (List2) (set to No_List if none)
1906       --  Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1907       --  Pragma_Identifier (Node4)
1908       --  Next_Rep_Item (Node5-Sem)
1909       --  PPC_Enabled (Flag5-Sem)
1910
1911       --  Note: we should have a section on what pragmas are passed on to
1912       --  the back end to be processed. This section should note that pragma
1913       --  Psect_Object is always converted to Common_Object, but there are
1914       --  undoubtedly many other similar notes required ???
1915
1916       --  Note: a utility function Pragma_Name may be applied to pragma nodes
1917       --  to conveniently obtain the Chars field of the Pragma_Identifier.
1918
1919       --------------------------------------
1920       -- 2.8  Pragma Argument Association --
1921       --------------------------------------
1922
1923       --  PRAGMA_ARGUMENT_ASSOCIATION ::=
1924       --    [pragma_argument_IDENTIFIER =>] NAME
1925       --  | [pragma_argument_IDENTIFIER =>] EXPRESSION
1926
1927       --  N_Pragma_Argument_Association
1928       --  Sloc points to first token in association
1929       --  Chars (Name1) (set to No_Name if no pragma argument identifier)
1930       --  Expression (Node3)
1931
1932       ------------------------
1933       -- 2.9  Reserved Word --
1934       ------------------------
1935
1936       --  Reserved words are parsed by the scanner, and returned as the
1937       --  corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1938
1939       ----------------------------
1940       -- 3.1  Basic Declaration --
1941       ----------------------------
1942
1943       --  BASIC_DECLARATION ::=
1944       --    TYPE_DECLARATION          | SUBTYPE_DECLARATION
1945       --  | OBJECT_DECLARATION        | NUMBER_DECLARATION
1946       --  | SUBPROGRAM_DECLARATION    | ABSTRACT_SUBPROGRAM_DECLARATION
1947       --  | PACKAGE_DECLARATION       | RENAMING_DECLARATION
1948       --  | EXCEPTION_DECLARATION     | GENERIC_DECLARATION
1949       --  | GENERIC_INSTANTIATION
1950
1951       --  Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1952       --  see further description in section on semantic nodes.
1953
1954       --  Also, in the tree that is constructed, a pragma may appear
1955       --  anywhere that a declaration may appear.
1956
1957       ------------------------------
1958       -- 3.1  Defining Identifier --
1959       ------------------------------
1960
1961       --  DEFINING_IDENTIFIER ::= IDENTIFIER
1962
1963       --  A defining identifier is an entity, which has additional fields
1964       --  depending on the setting of the Ekind field. These additional
1965       --  fields are defined (and access subprograms declared) in package
1966       --  Einfo.
1967
1968       --  Note: N_Defining_Identifier is an extended node whose fields are
1969       --  deliberate layed out to match the layout of fields in an ordinary
1970       --  N_Identifier node allowing for easy alteration of an identifier
1971       --  node into a defining identifier node. For details, see procedure
1972       --  Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1973
1974       --  N_Defining_Identifier
1975       --  Sloc points to identifier
1976       --  Chars (Name1) contains the Name_Id for the identifier
1977       --  Next_Entity (Node2-Sem)
1978       --  Scope (Node3-Sem)
1979       --  Etype (Node5-Sem)
1980
1981       -----------------------------
1982       -- 3.2.1  Type Declaration --
1983       -----------------------------
1984
1985       --  TYPE_DECLARATION ::=
1986       --    FULL_TYPE_DECLARATION
1987       --  | INCOMPLETE_TYPE_DECLARATION
1988       --  | PRIVATE_TYPE_DECLARATION
1989       --  | PRIVATE_EXTENSION_DECLARATION
1990
1991       ----------------------------------
1992       -- 3.2.1  Full Type Declaration --
1993       ----------------------------------
1994
1995       --  FULL_TYPE_DECLARATION ::=
1996       --    type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1997       --      is TYPE_DEFINITION;
1998       --  | TASK_TYPE_DECLARATION
1999       --  | PROTECTED_TYPE_DECLARATION
2000
2001       --  The full type declaration node is used only for the first case. The
2002       --  second case (concurrent type declaration), is represented directly
2003       --  by a task type declaration or a protected type declaration.
2004
2005       --  N_Full_Type_Declaration
2006       --  Sloc points to TYPE
2007       --  Defining_Identifier (Node1)
2008       --  Discriminant_Specifications (List4) (set to No_List if none)
2009       --  Type_Definition (Node3)
2010       --  Discr_Check_Funcs_Built (Flag11-Sem)
2011
2012       ----------------------------
2013       -- 3.2.1  Type Definition --
2014       ----------------------------
2015
2016       --  TYPE_DEFINITION ::=
2017       --    ENUMERATION_TYPE_DEFINITION  | INTEGER_TYPE_DEFINITION
2018       --  | REAL_TYPE_DEFINITION         | ARRAY_TYPE_DEFINITION
2019       --  | RECORD_TYPE_DEFINITION       | ACCESS_TYPE_DEFINITION
2020       --  | DERIVED_TYPE_DEFINITION      | INTERFACE_TYPE_DEFINITION
2021
2022       --------------------------------
2023       -- 3.2.2  Subtype Declaration --
2024       --------------------------------
2025
2026       --  SUBTYPE_DECLARATION ::=
2027       --    subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2028
2029       --  The subtype indication field is set to Empty for subtypes
2030       --  declared in package Standard (Positive, Natural).
2031
2032       --  N_Subtype_Declaration
2033       --  Sloc points to SUBTYPE
2034       --  Defining_Identifier (Node1)
2035       --  Null_Exclusion_Present (Flag11)
2036       --  Subtype_Indication (Node5)
2037       --  Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2038       --  Exception_Junk (Flag8-Sem)
2039
2040       -------------------------------
2041       -- 3.2.2  Subtype Indication --
2042       -------------------------------
2043
2044       --  SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2045
2046       --  Note: if no constraint is present, the subtype indication appears
2047       --  directly in the tree as a subtype mark. The N_Subtype_Indication
2048       --  node is used only if a constraint is present.
2049
2050       --  Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2051       --  with the null-exclusion part (see AI-231), we had to introduce a new
2052       --  attribute in all the parents of subtype_indication nodes to indicate
2053       --  if the null-exclusion is present.
2054
2055       --  Note: the reason that this node has expression fields is that a
2056       --  subtype indication can appear as an operand of a membership test.
2057
2058       --  N_Subtype_Indication
2059       --  Sloc points to first token of subtype mark
2060       --  Subtype_Mark (Node4)
2061       --  Constraint (Node3)
2062       --  Etype (Node5-Sem)
2063       --  Must_Not_Freeze (Flag8-Sem)
2064
2065       --  Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2066       --  reason for this redundancy is so that in a list of array index types,
2067       --  the Etype can be uniformly accessed to determine the subscript type.
2068       --  This means that no Itype is constructed for the actual subtype that
2069       --  is created by the subtype indication. If such an Itype is required,
2070       --  it is constructed in the context in which the indication appears.
2071
2072       -------------------------
2073       -- 3.2.2  Subtype Mark --
2074       -------------------------
2075
2076       --  SUBTYPE_MARK ::= subtype_NAME
2077
2078       -----------------------
2079       -- 3.2.2  Constraint --
2080       -----------------------
2081
2082       --  CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2083
2084       ------------------------------
2085       -- 3.2.2  Scalar Constraint --
2086       ------------------------------
2087
2088       --  SCALAR_CONSTRAINT ::=
2089       --    RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2090
2091       ---------------------------------
2092       -- 3.2.2  Composite Constraint --
2093       ---------------------------------
2094
2095       --  COMPOSITE_CONSTRAINT ::=
2096       --    INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2097
2098       -------------------------------
2099       -- 3.3.1  Object Declaration --
2100       -------------------------------
2101
2102       --  OBJECT_DECLARATION ::=
2103       --    DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2104       --      [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2105       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2106       --      ACCESS_DEFINITION [:= EXPRESSION];
2107       --  | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2108       --      ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2109       --  | SINGLE_TASK_DECLARATION
2110       --  | SINGLE_PROTECTED_DECLARATION
2111
2112       --  Note: aliased is not permitted in Ada 83 mode
2113
2114       --  The N_Object_Declaration node is only for the first two cases.
2115       --  Single task declaration is handled by P_Task (9.1)
2116       --  Single protected declaration is handled by P_protected (9.5)
2117
2118       --  Although the syntax allows multiple identifiers in the list, the
2119       --  semantics is as though successive declarations were given with
2120       --  identical type definition and expression components. To simplify
2121       --  semantic processing, the parser represents a multiple declaration
2122       --  case as a sequence of single declarations, using the More_Ids and
2123       --  Prev_Ids flags to preserve the original source form as described
2124       --  in the section on "Handling of Defining Identifier Lists".
2125
2126       --  The flag Has_Init_Expression is set if an initializing expression
2127       --  is present. Normally it is set if and only if Expression contains
2128       --  a non-empty value, but there is an exception to this. When the
2129       --  initializing expression is an aggregate which requires explicit
2130       --  assignments, the Expression field gets set to Empty, but this flag
2131       --  is still set, so we don't forget we had an initializing expression.
2132
2133       --  Note: if a range check is required for the initialization
2134       --  expression then the Do_Range_Check flag is set in the Expression,
2135       --  with the check being done against the type given by the object
2136       --  definition, which is also the Etype of the defining identifier.
2137
2138       --  Note: the contents of the Expression field must be ignored (i.e.
2139       --  treated as though it were Empty) if No_Initialization is set True.
2140
2141       --  Note: the back end places some restrictions on the form of the
2142       --  Expression field. If the object being declared is Atomic, then
2143       --  the Expression may not have the form of an aggregate (since this
2144       --  might cause the back end to generate separate assignments). It
2145       --  also cannot be a reference to an object marked as a true constant
2146       --  (Is_True_Constant flag set), where the object is itself initialized
2147       --  with an aggregate. If necessary the front end must generate an
2148       --  extra temporary (with Is_True_Constant set False), and initialize
2149       --  this temporary as required (the temporary itself is not atomic).
2150
2151       --  Note: there is not node kind for object definition. Instead, the
2152       --  corresponding field holds a subtype indication, an array type
2153       --  definition, or (Ada 2005, AI-406) an access definition.
2154
2155       --  N_Object_Declaration
2156       --  Sloc points to first identifier
2157       --  Defining_Identifier (Node1)
2158       --  Aliased_Present (Flag4) set if ALIASED appears
2159       --  Constant_Present (Flag17) set if CONSTANT appears
2160       --  Null_Exclusion_Present (Flag11)
2161       --  Object_Definition (Node4) subtype indic./array type def./ access def.
2162       --  Expression (Node3) (set to Empty if not present)
2163       --  Handler_List_Entry (Node2-Sem)
2164       --  Corresponding_Generic_Association (Node5-Sem)
2165       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2166       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2167       --  No_Initialization (Flag13-Sem)
2168       --  Assignment_OK (Flag15-Sem)
2169       --  Exception_Junk (Flag8-Sem)
2170       --  Is_Subprogram_Descriptor (Flag16-Sem)
2171       --  Has_Init_Expression (Flag14)
2172
2173       -------------------------------------
2174       -- 3.3.1  Defining Identifier List --
2175       -------------------------------------
2176
2177       --  DEFINING_IDENTIFIER_LIST ::=
2178       --    DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2179
2180       -------------------------------
2181       -- 3.3.2  Number Declaration --
2182       -------------------------------
2183
2184       --  NUMBER_DECLARATION ::=
2185       --    DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2186
2187       --  Although the syntax allows multiple identifiers in the list, the
2188       --  semantics is as though successive declarations were given with
2189       --  identical expressions. To simplify semantic processing, the parser
2190       --  represents a multiple declaration case as a sequence of single
2191       --  declarations, using the More_Ids and Prev_Ids flags to preserve
2192       --  the original source form as described in the section on "Handling
2193       --  of Defining Identifier Lists".
2194
2195       --  N_Number_Declaration
2196       --  Sloc points to first identifier
2197       --  Defining_Identifier (Node1)
2198       --  Expression (Node3)
2199       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2200       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2201
2202       ----------------------------------
2203       -- 3.4  Derived Type Definition --
2204       ----------------------------------
2205
2206       --  DERIVED_TYPE_DEFINITION ::=
2207       --    [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2208       --    [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2209
2210       --  Note: ABSTRACT, LIMITED and record extension part are not permitted
2211       --  in Ada 83 mode
2212
2213       --  Note: a record extension part is required if ABSTRACT is present
2214
2215       --  N_Derived_Type_Definition
2216       --  Sloc points to NEW
2217       --  Abstract_Present (Flag4)
2218       --  Null_Exclusion_Present (Flag11) (set to False if not present)
2219       --  Subtype_Indication (Node5)
2220       --  Record_Extension_Part (Node3) (set to Empty if not present)
2221       --  Limited_Present (Flag17)
2222       --  Task_Present (Flag5) set in task interfaces
2223       --  Protected_Present (Flag6) set in protected interfaces
2224       --  Synchronized_Present (Flag7) set in interfaces
2225       --  Interface_List (List2) (set to No_List if none)
2226       --  Interface_Present (Flag16) set in abstract interfaces
2227
2228       --  Note: Task_Present, Protected_Present, Synchronized_Present,
2229       --        Interface_List, and Interface_Present are used for abstract
2230       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2231
2232       ---------------------------
2233       -- 3.5  Range Constraint --
2234       ---------------------------
2235
2236       --  RANGE_CONSTRAINT ::= range RANGE
2237
2238       --  N_Range_Constraint
2239       --  Sloc points to RANGE
2240       --  Range_Expression (Node4)
2241
2242       ----------------
2243       -- 3.5  Range --
2244       ----------------
2245
2246       --  RANGE ::=
2247       --    RANGE_ATTRIBUTE_REFERENCE
2248       --  | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2249
2250       --  Note: the case of a range given as a range attribute reference
2251       --  appears directly in the tree as an attribute reference.
2252
2253       --  Note: the field name for a reference to a range is Range_Expression
2254       --  rather than Range, because range is a reserved keyword in Ada!
2255
2256       --  Note: the reason that this node has expression fields is that a
2257       --  range can appear as an operand of a membership test. The Etype
2258       --  field is the type of the range (we do NOT construct an implicit
2259       --  subtype to represent the range exactly).
2260
2261       --  N_Range
2262       --  Sloc points to ..
2263       --  Low_Bound (Node1)
2264       --  High_Bound (Node2)
2265       --  Includes_Infinities (Flag11)
2266       --  plus fields for expression
2267
2268       --  Note: if the range appears in a context, such as a subtype
2269       --  declaration, where range checks are required on one or both of
2270       --  the expression fields, then type conversion nodes are inserted
2271       --  to represent the required checks.
2272
2273       ----------------------------------------
2274       -- 3.5.1  Enumeration Type Definition --
2275       ----------------------------------------
2276
2277       --  ENUMERATION_TYPE_DEFINITION ::=
2278       --    (ENUMERATION_LITERAL_SPECIFICATION
2279       --      {, ENUMERATION_LITERAL_SPECIFICATION})
2280
2281       --  Note: the Literals field in the node described below is null for
2282       --  the case of the standard types CHARACTER and WIDE_CHARACTER, for
2283       --  which special processing handles these types as special cases.
2284
2285       --  N_Enumeration_Type_Definition
2286       --  Sloc points to left parenthesis
2287       --  Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2288       --  End_Label (Node4) (set to Empty if internally generated record)
2289
2290       ----------------------------------------------
2291       -- 3.5.1  Enumeration Literal Specification --
2292       ----------------------------------------------
2293
2294       --  ENUMERATION_LITERAL_SPECIFICATION ::=
2295       --    DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2296
2297       ---------------------------------------
2298       -- 3.5.1  Defining Character Literal --
2299       ---------------------------------------
2300
2301       --  DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2302
2303       --  A defining character literal is an entity, which has additional
2304       --  fields depending on the setting of the Ekind field. These
2305       --  additional fields are defined (and access subprograms declared)
2306       --  in package Einfo.
2307
2308       --  Note: N_Defining_Character_Literal is an extended node whose fields
2309       --  are deliberate layed out to match the layout of fields in an ordinary
2310       --  N_Character_Literal node allowing for easy alteration of a character
2311       --  literal node into a defining character literal node. For details, see
2312       --  Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2313
2314       --  N_Defining_Character_Literal
2315       --  Sloc points to literal
2316       --  Chars (Name1) contains the Name_Id for the identifier
2317       --  Next_Entity (Node2-Sem)
2318       --  Scope (Node3-Sem)
2319       --  Etype (Node5-Sem)
2320
2321       ------------------------------------
2322       -- 3.5.4  Integer Type Definition --
2323       ------------------------------------
2324
2325       --  Note: there is an error in this rule in the latest version of the
2326       --  grammar, so we have retained the old rule pending clarification.
2327
2328       --  INTEGER_TYPE_DEFINITION ::=
2329       --    SIGNED_INTEGER_TYPE_DEFINITION
2330       --  | MODULAR_TYPE_DEFINITION
2331
2332       -------------------------------------------
2333       -- 3.5.4  Signed Integer Type Definition --
2334       -------------------------------------------
2335
2336       --  SIGNED_INTEGER_TYPE_DEFINITION ::=
2337       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2338
2339       --  Note: the Low_Bound and High_Bound fields are set to Empty
2340       --  for integer types defined in package Standard.
2341
2342       --  N_Signed_Integer_Type_Definition
2343       --  Sloc points to RANGE
2344       --  Low_Bound (Node1)
2345       --  High_Bound (Node2)
2346
2347       ------------------------------------
2348       -- 3.5.4  Modular Type Definition --
2349       ------------------------------------
2350
2351       --  MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2352
2353       --  N_Modular_Type_Definition
2354       --  Sloc points to MOD
2355       --  Expression (Node3)
2356
2357       ---------------------------------
2358       -- 3.5.6  Real Type Definition --
2359       ---------------------------------
2360
2361       --  REAL_TYPE_DEFINITION ::=
2362       --    FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2363
2364       --------------------------------------
2365       -- 3.5.7  Floating Point Definition --
2366       --------------------------------------
2367
2368       --  FLOATING_POINT_DEFINITION ::=
2369       --    digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2370
2371       --  Note: The Digits_Expression and Real_Range_Specifications fields
2372       --  are set to Empty for floating-point types declared in Standard.
2373
2374       --  N_Floating_Point_Definition
2375       --  Sloc points to DIGITS
2376       --  Digits_Expression (Node2)
2377       --  Real_Range_Specification (Node4) (set to Empty if not present)
2378
2379       -------------------------------------
2380       -- 3.5.7  Real Range Specification --
2381       -------------------------------------
2382
2383       --  REAL_RANGE_SPECIFICATION ::=
2384       --    range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2385
2386       --  N_Real_Range_Specification
2387       --  Sloc points to RANGE
2388       --  Low_Bound (Node1)
2389       --  High_Bound (Node2)
2390
2391       -----------------------------------
2392       -- 3.5.9  Fixed Point Definition --
2393       -----------------------------------
2394
2395       --  FIXED_POINT_DEFINITION ::=
2396       --    ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2397
2398       --------------------------------------------
2399       -- 3.5.9  Ordinary Fixed Point Definition --
2400       --------------------------------------------
2401
2402       --  ORDINARY_FIXED_POINT_DEFINITION ::=
2403       --    delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2404
2405       --  Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2406
2407       --  N_Ordinary_Fixed_Point_Definition
2408       --  Sloc points to DELTA
2409       --  Delta_Expression (Node3)
2410       --  Real_Range_Specification (Node4)
2411
2412       -------------------------------------------
2413       -- 3.5.9  Decimal Fixed Point Definition --
2414       -------------------------------------------
2415
2416       --  DECIMAL_FIXED_POINT_DEFINITION ::=
2417       --    delta static_EXPRESSION
2418       --      digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2419
2420       --  Note: decimal types are not permitted in Ada 83 mode
2421
2422       --  N_Decimal_Fixed_Point_Definition
2423       --  Sloc points to DELTA
2424       --  Delta_Expression (Node3)
2425       --  Digits_Expression (Node2)
2426       --  Real_Range_Specification (Node4) (set to Empty if not present)
2427
2428       ------------------------------
2429       -- 3.5.9  Digits Constraint --
2430       ------------------------------
2431
2432       --  DIGITS_CONSTRAINT ::=
2433       --    digits static_EXPRESSION [RANGE_CONSTRAINT]
2434
2435       --  Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2436       --  Note: in Ada 95, reduced accuracy subtypes are obsolescent
2437
2438       --  N_Digits_Constraint
2439       --  Sloc points to DIGITS
2440       --  Digits_Expression (Node2)
2441       --  Range_Constraint (Node4) (set to Empty if not present)
2442
2443       --------------------------------
2444       -- 3.6  Array Type Definition --
2445       --------------------------------
2446
2447       --  ARRAY_TYPE_DEFINITION ::=
2448       --    UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2449
2450       -----------------------------------------
2451       -- 3.6  Unconstrained Array Definition --
2452       -----------------------------------------
2453
2454       --  UNCONSTRAINED_ARRAY_DEFINITION ::=
2455       --    array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2456       --      COMPONENT_DEFINITION
2457
2458       --  Note: dimensionality of array is indicated by number of entries in
2459       --  the Subtype_Marks list, which has one entry for each dimension.
2460
2461       --  N_Unconstrained_Array_Definition
2462       --  Sloc points to ARRAY
2463       --  Subtype_Marks (List2)
2464       --  Component_Definition (Node4)
2465
2466       -----------------------------------
2467       -- 3.6  Index Subtype Definition --
2468       -----------------------------------
2469
2470       --  INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2471
2472       --  There is no explicit node in the tree for an index subtype
2473       --  definition since the N_Unconstrained_Array_Definition node
2474       --  incorporates the type marks which appear in this context.
2475
2476       ---------------------------------------
2477       -- 3.6  Constrained Array Definition --
2478       ---------------------------------------
2479
2480       --  CONSTRAINED_ARRAY_DEFINITION ::=
2481       --    array (DISCRETE_SUBTYPE_DEFINITION
2482       --      {, DISCRETE_SUBTYPE_DEFINITION})
2483       --        of COMPONENT_DEFINITION
2484
2485       --  Note: dimensionality of array is indicated by number of entries
2486       --  in the Discrete_Subtype_Definitions list, which has one entry
2487       --  for each dimension.
2488
2489       --  N_Constrained_Array_Definition
2490       --  Sloc points to ARRAY
2491       --  Discrete_Subtype_Definitions (List2)
2492       --  Component_Definition (Node4)
2493
2494       --------------------------------------
2495       -- 3.6  Discrete Subtype Definition --
2496       --------------------------------------
2497
2498       --  DISCRETE_SUBTYPE_DEFINITION ::=
2499       --    discrete_SUBTYPE_INDICATION | RANGE
2500
2501       -------------------------------
2502       -- 3.6  Component Definition --
2503       -------------------------------
2504
2505       --  COMPONENT_DEFINITION ::=
2506       --    [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2507
2508       --  Note: although the syntax does not permit a component definition to
2509       --  be an anonymous array (and the parser will diagnose such an attempt
2510       --  with an appropriate message), it is possible for anonymous arrays
2511       --  to appear as component definitions. The semantics and back end handle
2512       --  this case properly, and the expander in fact generates such cases.
2513       --  Access_Definition is an optional field that gives support to
2514       --  Ada 2005 (AI-230). The parser generates nodes that have either the
2515       --  Subtype_Indication field or else the Access_Definition field.
2516
2517       --  N_Component_Definition
2518       --  Sloc points to ALIASED, ACCESS or to first token of subtype mark
2519       --  Aliased_Present (Flag4)
2520       --  Null_Exclusion_Present (Flag11)
2521       --  Subtype_Indication (Node5) (set to Empty if not present)
2522       --  Access_Definition (Node3) (set to Empty if not present)
2523
2524       -----------------------------
2525       -- 3.6.1  Index Constraint --
2526       -----------------------------
2527
2528       --  INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2529
2530       --  It is not in general possible to distinguish between discriminant
2531       --  constraints and index constraints at parse time, since a simple
2532       --  name could be either the subtype mark of a discrete range, or an
2533       --  expression in a discriminant association with no name. Either
2534       --  entry appears simply as the name, and the semantic parse must
2535       --  distinguish between the two cases. Thus we use a common tree
2536       --  node format for both of these constraint types.
2537
2538       --  See Discriminant_Constraint for format of node
2539
2540       ---------------------------
2541       -- 3.6.1  Discrete Range --
2542       ---------------------------
2543
2544       --  DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2545
2546       ----------------------------
2547       -- 3.7  Discriminant Part --
2548       ----------------------------
2549
2550       --  DISCRIMINANT_PART ::=
2551       --    UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2552
2553       ------------------------------------
2554       -- 3.7  Unknown Discriminant Part --
2555       ------------------------------------
2556
2557       --  UNKNOWN_DISCRIMINANT_PART ::= (<>)
2558
2559       --  Note: unknown discriminant parts are not permitted in Ada 83 mode
2560
2561       --  There is no explicit node in the tree for an unknown discriminant
2562       --  part. Instead the Unknown_Discriminants_Present flag is set in the
2563       --  parent node.
2564
2565       ----------------------------------
2566       -- 3.7  Known Discriminant Part --
2567       ----------------------------------
2568
2569       --  KNOWN_DISCRIMINANT_PART ::=
2570       --    (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2571
2572       -------------------------------------
2573       -- 3.7  Discriminant Specification --
2574       -------------------------------------
2575
2576       --  DISCRIMINANT_SPECIFICATION ::=
2577       --    DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2578       --      [:= DEFAULT_EXPRESSION]
2579       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2580       --      [:= DEFAULT_EXPRESSION]
2581
2582       --  Although the syntax allows multiple identifiers in the list, the
2583       --  semantics is as though successive specifications were given with
2584       --  identical type definition and expression components. To simplify
2585       --  semantic processing, the parser represents a multiple declaration
2586       --  case as a sequence of single specifications, using the More_Ids and
2587       --  Prev_Ids flags to preserve the original source form as described
2588       --  in the section on "Handling of Defining Identifier Lists".
2589
2590       --  N_Discriminant_Specification
2591       --  Sloc points to first identifier
2592       --  Defining_Identifier (Node1)
2593       --  Null_Exclusion_Present (Flag11)
2594       --  Discriminant_Type (Node5) subtype mark or access parameter definition
2595       --  Expression (Node3) (set to Empty if no default expression)
2596       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2597       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2598
2599       -----------------------------
2600       -- 3.7  Default Expression --
2601       -----------------------------
2602
2603       --  DEFAULT_EXPRESSION ::= EXPRESSION
2604
2605       ------------------------------------
2606       -- 3.7.1  Discriminant Constraint --
2607       ------------------------------------
2608
2609       --  DISCRIMINANT_CONSTRAINT ::=
2610       --    (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2611
2612       --  It is not in general possible to distinguish between discriminant
2613       --  constraints and index constraints at parse time, since a simple
2614       --  name could be either the subtype mark of a discrete range, or an
2615       --  expression in a discriminant association with no name. Either
2616       --  entry appears simply as the name, and the semantic parse must
2617       --  distinguish between the two cases. Thus we use a common tree
2618       --  node format for both of these constraint types.
2619
2620       --  N_Index_Or_Discriminant_Constraint
2621       --  Sloc points to left paren
2622       --  Constraints (List1) points to list of discrete ranges or
2623       --    discriminant associations
2624
2625       -------------------------------------
2626       -- 3.7.1  Discriminant Association --
2627       -------------------------------------
2628
2629       --  DISCRIMINANT_ASSOCIATION ::=
2630       --    [discriminant_SELECTOR_NAME
2631       --      {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2632
2633       --  Note: a discriminant association that has no selector name list
2634       --  appears directly as an expression in the tree.
2635
2636       --  N_Discriminant_Association
2637       --  Sloc points to first token of discriminant association
2638       --  Selector_Names (List1) (always non-empty, since if no selector
2639       --   names are present, this node is not used, see comment above)
2640       --  Expression (Node3)
2641
2642       ---------------------------------
2643       -- 3.8  Record Type Definition --
2644       ---------------------------------
2645
2646       --  RECORD_TYPE_DEFINITION ::=
2647       --    [[abstract] tagged] [limited] RECORD_DEFINITION
2648
2649       --  Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2650
2651       --  There is no explicit node in the tree for a record type definition.
2652       --  Instead the flags for Tagged_Present and Limited_Present appear in
2653       --  the N_Record_Definition node for a record definition appearing in
2654       --  the context of a record type definition.
2655
2656       ----------------------------
2657       -- 3.8  Record Definition --
2658       ----------------------------
2659
2660       --  RECORD_DEFINITION ::=
2661       --    record
2662       --      COMPONENT_LIST
2663       --    end record
2664       --  | null record
2665
2666       --  Note: the Abstract_Present, Tagged_Present and Limited_Present
2667       --  flags appear only for a record definition appearing in a record
2668       --  type definition.
2669
2670       --  Note: the NULL RECORD case is not permitted in Ada 83
2671
2672       --  N_Record_Definition
2673       --  Sloc points to RECORD or NULL
2674       --  End_Label (Node4) (set to Empty if internally generated record)
2675       --  Abstract_Present (Flag4)
2676       --  Tagged_Present (Flag15)
2677       --  Limited_Present (Flag17)
2678       --  Component_List (Node1) empty in null record case
2679       --  Null_Present (Flag13) set in null record case
2680       --  Task_Present (Flag5) set in task interfaces
2681       --  Protected_Present (Flag6) set in protected interfaces
2682       --  Synchronized_Present (Flag7) set in interfaces
2683       --  Interface_Present (Flag16) set in abstract interfaces
2684       --  Interface_List (List2) (set to No_List if none)
2685
2686       --  Note: Task_Present, Protected_Present, Synchronized _Present,
2687       --        Interface_List and Interface_Present are used for abstract
2688       --        interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2689
2690       -------------------------
2691       -- 3.8  Component List --
2692       -------------------------
2693
2694       --  COMPONENT_LIST ::=
2695       --    COMPONENT_ITEM {COMPONENT_ITEM}
2696       --  | {COMPONENT_ITEM} VARIANT_PART
2697       --  | null;
2698
2699       --  N_Component_List
2700       --  Sloc points to first token of component list
2701       --  Component_Items (List3)
2702       --  Variant_Part (Node4) (set to Empty if no variant part)
2703       --  Null_Present (Flag13)
2704
2705       -------------------------
2706       -- 3.8  Component Item --
2707       -------------------------
2708
2709       --  COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2710
2711       --  Note: A component item can also be a pragma, and in the tree
2712       --  that is obtained after semantic processing, a component item
2713       --  can be an N_Null node resulting from a non-recognized pragma.
2714
2715       --------------------------------
2716       -- 3.8  Component Declaration --
2717       --------------------------------
2718
2719       --  COMPONENT_DECLARATION ::=
2720       --    DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2721       --      [:= DEFAULT_EXPRESSION]
2722
2723       --  Note: although the syntax does not permit a component definition to
2724       --  be an anonymous array (and the parser will diagnose such an attempt
2725       --  with an appropriate message), it is possible for anonymous arrays
2726       --  to appear as component definitions. The semantics and back end handle
2727       --  this case properly, and the expander in fact generates such cases.
2728
2729       --  Although the syntax allows multiple identifiers in the list, the
2730       --  semantics is as though successive declarations were given with the
2731       --  same component definition and expression components. To simplify
2732       --  semantic processing, the parser represents a multiple declaration
2733       --  case as a sequence of single declarations, using the More_Ids and
2734       --  Prev_Ids flags to preserve the original source form as described
2735       --  in the section on "Handling of Defining Identifier Lists".
2736
2737       --  N_Component_Declaration
2738       --  Sloc points to first identifier
2739       --  Defining_Identifier (Node1)
2740       --  Component_Definition (Node4)
2741       --  Expression (Node3) (set to Empty if no default expression)
2742       --  More_Ids (Flag5) (set to False if no more identifiers in list)
2743       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2744
2745       -------------------------
2746       -- 3.8.1  Variant Part --
2747       -------------------------
2748
2749       --  VARIANT_PART ::=
2750       --    case discriminant_DIRECT_NAME is
2751       --      VARIANT
2752       --      {VARIANT}
2753       --    end case;
2754
2755       --  Note: the variants list can contain pragmas as well as variants.
2756       --  In a properly formed program there is at least one variant.
2757
2758       --  N_Variant_Part
2759       --  Sloc points to CASE
2760       --  Name (Node2)
2761       --  Variants (List1)
2762
2763       --------------------
2764       -- 3.8.1  Variant --
2765       --------------------
2766
2767       --  VARIANT ::=
2768       --    when DISCRETE_CHOICE_LIST =>
2769       --      COMPONENT_LIST
2770
2771       --  N_Variant
2772       --  Sloc points to WHEN
2773       --  Discrete_Choices (List4)
2774       --  Component_List (Node1)
2775       --  Enclosing_Variant (Node2-Sem)
2776       --  Present_Expr (Uint3-Sem)
2777       --  Dcheck_Function (Node5-Sem)
2778
2779       ---------------------------------
2780       -- 3.8.1  Discrete Choice List --
2781       ---------------------------------
2782
2783       --  DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2784
2785       ----------------------------
2786       -- 3.8.1  Discrete Choice --
2787       ----------------------------
2788
2789       --  DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2790
2791       --  Note: in Ada 83 mode, the expression must be a simple expression
2792
2793       --  The only choice that appears explicitly is the OTHERS choice, as
2794       --  defined here. Other cases of discrete choice (expression and
2795       --  discrete range) appear directly. This production is also used
2796       --  for the OTHERS possibility of an exception choice.
2797
2798       --  Note: in accordance with the syntax, the parser does not check that
2799       --  OTHERS appears at the end on its own in a choice list context. This
2800       --  is a semantic check.
2801
2802       --  N_Others_Choice
2803       --  Sloc points to OTHERS
2804       --  Others_Discrete_Choices (List1-Sem)
2805       --  All_Others (Flag11-Sem)
2806
2807       ----------------------------------
2808       -- 3.9.1  Record Extension Part --
2809       ----------------------------------
2810
2811       --  RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2812
2813       --  Note: record extension parts are not permitted in Ada 83 mode
2814
2815       --------------------------------------
2816       -- 3.9.4  Interface Type Definition --
2817       --------------------------------------
2818
2819       --  INTERFACE_TYPE_DEFINITION ::=
2820       --    [limited | task | protected | synchronized]
2821       --    interface [interface_list]
2822
2823       --  Note: Interfaces are implemented with N_Record_Definition and
2824       --        N_Derived_Type_Definition nodes because most of the support
2825       --        for the analysis of abstract types has been reused to
2826       --        analyze abstract interfaces.
2827
2828       ----------------------------------
2829       -- 3.10  Access Type Definition --
2830       ----------------------------------
2831
2832       --  ACCESS_TYPE_DEFINITION ::=
2833       --    ACCESS_TO_OBJECT_DEFINITION
2834       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2835
2836       --------------------------
2837       -- 3.10  Null Exclusion --
2838       --------------------------
2839
2840       --  NULL_EXCLUSION ::= not null
2841
2842       ---------------------------------------
2843       -- 3.10  Access To Object Definition --
2844       ---------------------------------------
2845
2846       --  ACCESS_TO_OBJECT_DEFINITION ::=
2847       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2848       --    SUBTYPE_INDICATION
2849
2850       --  N_Access_To_Object_Definition
2851       --  Sloc points to ACCESS
2852       --  All_Present (Flag15)
2853       --  Null_Exclusion_Present (Flag11)
2854       --  Subtype_Indication (Node5)
2855       --  Constant_Present (Flag17)
2856
2857       -----------------------------------
2858       -- 3.10  General Access Modifier --
2859       -----------------------------------
2860
2861       --  GENERAL_ACCESS_MODIFIER ::= all | constant
2862
2863       --  Note: general access modifiers are not permitted in Ada 83 mode
2864
2865       --  There is no explicit node in the tree for general access modifier.
2866       --  Instead the All_Present or Constant_Present flags are set in the
2867       --  parent node.
2868
2869       -------------------------------------------
2870       -- 3.10  Access To Subprogram Definition --
2871       -------------------------------------------
2872
2873       --  ACCESS_TO_SUBPROGRAM_DEFINITION
2874       --    [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2875       --  | [NULL_EXCLUSION] access [protected] function
2876       --    PARAMETER_AND_RESULT_PROFILE
2877
2878       --  Note: access to subprograms are not permitted in Ada 83 mode
2879
2880       --  N_Access_Function_Definition
2881       --  Sloc points to ACCESS
2882       --  Null_Exclusion_Present (Flag11)
2883       --  Protected_Present (Flag6)
2884       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2885       --  Result_Definition (Node4) result subtype (subtype mark or access def)
2886
2887       --  N_Access_Procedure_Definition
2888       --  Sloc points to ACCESS
2889       --  Null_Exclusion_Present (Flag11)
2890       --  Protected_Present (Flag6)
2891       --  Parameter_Specifications (List3) (set to No_List if no formal part)
2892
2893       -----------------------------
2894       -- 3.10  Access Definition --
2895       -----------------------------
2896
2897       --  ACCESS_DEFINITION ::=
2898       --    [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2899       --  | ACCESS_TO_SUBPROGRAM_DEFINITION
2900
2901       --  Note: access to subprograms are an Ada 2005 (AI-254) extension
2902
2903       --  N_Access_Definition
2904       --  Sloc points to ACCESS
2905       --  Null_Exclusion_Present (Flag11)
2906       --  All_Present (Flag15)
2907       --  Constant_Present (Flag17)
2908       --  Subtype_Mark (Node4)
2909       --  Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2910
2911       -----------------------------------------
2912       -- 3.10.1  Incomplete Type Declaration --
2913       -----------------------------------------
2914
2915       --  INCOMPLETE_TYPE_DECLARATION ::=
2916       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2917
2918       --  N_Incomplete_Type_Declaration
2919       --  Sloc points to TYPE
2920       --  Defining_Identifier (Node1)
2921       --  Discriminant_Specifications (List4) (set to No_List if no
2922       --   discriminant part, or if the discriminant part is an
2923       --   unknown discriminant part)
2924       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2925       --  Tagged_Present (Flag15)
2926
2927       ----------------------------
2928       -- 3.11  Declarative Part --
2929       ----------------------------
2930
2931       --  DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2932
2933       --  Note: although the parser enforces the syntactic requirement that
2934       --  a declarative part can contain only declarations, the semantic
2935       --  processing may add statements to the list of actions in a
2936       --  declarative part, so the code generator should be prepared
2937       --  to accept a statement in this position.
2938
2939       ----------------------------
2940       -- 3.11  Declarative Item --
2941       ----------------------------
2942
2943       --  DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2944
2945       ----------------------------------
2946       -- 3.11  Basic Declarative Item --
2947       ----------------------------------
2948
2949       --  BASIC_DECLARATIVE_ITEM ::=
2950       --    BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2951
2952       ----------------
2953       -- 3.11  Body --
2954       ----------------
2955
2956       --  BODY ::= PROPER_BODY | BODY_STUB
2957
2958       -----------------------
2959       -- 3.11  Proper Body --
2960       -----------------------
2961
2962       --  PROPER_BODY ::=
2963       --    SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2964
2965       ---------------
2966       -- 4.1  Name --
2967       ---------------
2968
2969       --  NAME ::=
2970       --    DIRECT_NAME        | EXPLICIT_DEREFERENCE
2971       --  | INDEXED_COMPONENT  | SLICE
2972       --  | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2973       --  | TYPE_CONVERSION    | FUNCTION_CALL
2974       --  | CHARACTER_LITERAL
2975
2976       ----------------------
2977       -- 4.1  Direct Name --
2978       ----------------------
2979
2980       --  DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2981
2982       -----------------
2983       -- 4.1  Prefix --
2984       -----------------
2985
2986       --  PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2987
2988       -------------------------------
2989       -- 4.1  Explicit Dereference --
2990       -------------------------------
2991
2992       --  EXPLICIT_DEREFERENCE ::= NAME . all
2993
2994       --  N_Explicit_Dereference
2995       --  Sloc points to ALL
2996       --  Prefix (Node3)
2997       --  Actual_Designated_Subtype (Node4-Sem)
2998       --  plus fields for expression
2999
3000       -------------------------------
3001       -- 4.1  Implicit Dereference --
3002       -------------------------------
3003
3004       --  IMPLICIT_DEREFERENCE ::= NAME
3005
3006       ------------------------------
3007       -- 4.1.1  Indexed Component --
3008       ------------------------------
3009
3010       --  INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3011
3012       --  Note: the parser may generate this node in some situations where it
3013       --  should be a function call. The semantic  pass must correct this
3014       --  misidentification (which is inevitable at the parser level).
3015
3016       --  N_Indexed_Component
3017       --  Sloc contains a copy of the Sloc value of the Prefix
3018       --  Prefix (Node3)
3019       --  Expressions (List1)
3020       --  plus fields for expression
3021
3022       --  Note: if any of the subscripts requires a range check, then the
3023       --  Do_Range_Check flag is set on the corresponding expression, with
3024       --  the index type being determined from the type of the Prefix, which
3025       --  references the array being indexed.
3026
3027       --  Note: in a fully analyzed and expanded indexed component node, and
3028       --  hence in any such node that gigi sees, if the prefix is an access
3029       --  type, then an explicit dereference operation has been inserted.
3030
3031       ------------------
3032       -- 4.1.2  Slice --
3033       ------------------
3034
3035       --  SLICE ::= PREFIX (DISCRETE_RANGE)
3036
3037       --  Note: an implicit subtype is created to describe the resulting
3038       --  type, so that the bounds of this type are the bounds of the slice.
3039
3040       --  N_Slice
3041       --  Sloc points to first token of prefix
3042       --  Prefix (Node3)
3043       --  Discrete_Range (Node4)
3044       --  plus fields for expression
3045
3046       -------------------------------
3047       -- 4.1.3  Selected Component --
3048       -------------------------------
3049
3050       --  SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3051
3052       --  Note: selected components that are semantically expanded names get
3053       --  changed during semantic processing into the separate N_Expanded_Name
3054       --  node. See description of this node in the section on semantic nodes.
3055
3056       --  N_Selected_Component
3057       --  Sloc points to period
3058       --  Prefix (Node3)
3059       --  Selector_Name (Node2)
3060       --  Associated_Node (Node4-Sem)
3061       --  Do_Discriminant_Check (Flag13-Sem)
3062       --  Is_In_Discriminant_Check (Flag11-Sem)
3063       --  plus fields for expression
3064
3065       --------------------------
3066       -- 4.1.3  Selector Name --
3067       --------------------------
3068
3069       --  SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3070
3071       --------------------------------
3072       -- 4.1.4  Attribute Reference --
3073       --------------------------------
3074
3075       --  ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3076
3077       --  Note: the syntax is quite ambiguous at this point. Consider:
3078
3079       --    A'Length (X)  X is part of the attribute designator
3080       --    A'Pos (X)     X is an explicit actual parameter of function A'Pos
3081       --    A'Class (X)   X is the expression of a type conversion
3082
3083       --  It would be possible for the parser to distinguish these cases
3084       --  by looking at the attribute identifier. However, that would mean
3085       --  more work in introducing new implementation defined attributes,
3086       --  and also it would mean that special processing for attributes
3087       --  would be scattered around, instead of being centralized in the
3088       --  semantic routine that handles an N_Attribute_Reference node.
3089       --  Consequently, the parser in all the above cases stores the
3090       --  expression (X in these examples) as a single element list in
3091       --  in the Expressions field of the N_Attribute_Reference node.
3092
3093       --  Similarly, for attributes like Max which take two arguments,
3094       --  we store the two arguments as a two element list in the
3095       --  Expressions field. Of course it is clear at parse time that
3096       --  this case is really a function call with an attribute as the
3097       --  prefix, but it turns out to be convenient to handle the two
3098       --  argument case in a similar manner to the one argument case,
3099       --  and indeed in general the parser will accept any number of
3100       --  expressions in this position and store them as a list in the
3101       --  attribute reference node. This allows for future addition of
3102       --  attributes that take more than two arguments.
3103
3104       --  Note: named associates are not permitted in function calls where
3105       --  the function is an attribute (see RM 6.4(3)) so it is legitimate
3106       --  to skip the normal subprogram argument processing.
3107
3108       --  Note: for the attributes whose designators are technically keywords,
3109       --  i.e. digits, access, delta, range, the Attribute_Name field contains
3110       --  the corresponding name, even though no identifier is involved.
3111
3112       --  Note: the generated code may contain stream attributes applied to
3113       --  limited types for which no stream routines exist officially. In such
3114       --  case, the result is to use the stream attribute for the underlying
3115       --  full type, or in the case of a protected type, the components
3116       --  (including any discriminants) are merely streamed in order.
3117
3118       --  See Exp_Attr for a complete description of which attributes are
3119       --  passed onto Gigi, and which are handled entirely by the front end.
3120
3121       --  Gigi restriction: For the Pos attribute, the prefix cannot be
3122       --  a non-standard enumeration type or a nonzero/zero semantics
3123       --  boolean type, so the value is simply the stored representation.
3124
3125       --  Gigi requirement: For the Mechanism_Code attribute, if the prefix
3126       --  references a subprogram that is a renaming, then the front end must
3127       --  rewrite the attribute to refer directly to the renamed entity.
3128
3129       --  Note: In generated code, the Address and Unrestricted_Access
3130       --  attributes can be applied to any expression, and the meaning is
3131       --  to create an object containing the value (the object is in the
3132       --  current stack frame), and pass the address of this value. If the
3133       --  Must_Be_Byte_Aligned flag is set, then the object whose address
3134       --  is taken must be on a byte (storage unit) boundary, and if it is
3135       --  not (or may not be), then the generated code must create a copy
3136       --  that is byte aligned, and pass the address of this copy.
3137
3138       --  N_Attribute_Reference
3139       --  Sloc points to apostrophe
3140       --  Prefix (Node3)
3141       --  Attribute_Name (Name2) identifier name from attribute designator
3142       --  Expressions (List1) (set to No_List if no associated expressions)
3143       --  Entity (Node4-Sem) used if the attribute yields a type
3144       --  Associated_Node (Node4-Sem)
3145       --  Do_Overflow_Check (Flag17-Sem)
3146       --  Redundant_Use (Flag13-Sem)
3147       --  Must_Be_Byte_Aligned (Flag14)
3148       --  plus fields for expression
3149
3150       ---------------------------------
3151       -- 4.1.4  Attribute Designator --
3152       ---------------------------------
3153
3154       --  ATTRIBUTE_DESIGNATOR ::=
3155       --    IDENTIFIER [(static_EXPRESSION)]
3156       --  | access | delta | digits
3157
3158       --  There is no explicit node in the tree for an attribute designator.
3159       --  Instead the Attribute_Name and Expressions fields of the parent
3160       --  node (N_Attribute_Reference node) hold the information.
3161
3162       --  Note: if ACCESS, DELTA or DIGITS appears in an attribute
3163       --  designator, then they are treated as identifiers internally
3164       --  rather than the keywords of the same name.
3165
3166       --------------------------------------
3167       -- 4.1.4  Range Attribute Reference --
3168       --------------------------------------
3169
3170       --  RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3171
3172       --  A range attribute reference is represented in the tree using the
3173       --  normal N_Attribute_Reference node.
3174
3175       ---------------------------------------
3176       -- 4.1.4  Range Attribute Designator --
3177       ---------------------------------------
3178
3179       --  RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3180
3181       --  A range attribute designator is represented in the tree using the
3182       --  normal N_Attribute_Reference node.
3183
3184       --------------------
3185       -- 4.3  Aggregate --
3186       --------------------
3187
3188       --  AGGREGATE ::=
3189       --    RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3190
3191       -----------------------------
3192       -- 4.3.1  Record Aggregate --
3193       -----------------------------
3194
3195       --  RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3196
3197       --  N_Aggregate
3198       --  Sloc points to left parenthesis
3199       --  Expressions (List1) (set to No_List if none or null record case)
3200       --  Component_Associations (List2) (set to No_List if none)
3201       --  Null_Record_Present (Flag17)
3202       --  Aggregate_Bounds (Node3-Sem)
3203       --  Associated_Node (Node4-Sem)
3204       --  Static_Processing_OK (Flag4-Sem)
3205       --  Compile_Time_Known_Aggregate (Flag18-Sem)
3206       --  Expansion_Delayed (Flag11-Sem)
3207       --  Has_Self_Reference (Flag13-Sem)
3208       --  plus fields for expression
3209
3210       --  Note: this structure is used for both record and array aggregates
3211       --  since the two cases are not separable by the parser. The parser
3212       --  makes no attempt to enforce consistency here, so it is up to the
3213       --  semantic phase to make sure that the aggregate is consistent (i.e.
3214       --  that it is not a "half-and-half" case that mixes record and array
3215       --  syntax. In particular, for a record aggregate, the expressions
3216       --  field will be set if there are positional associations.
3217
3218       --  Note: N_Aggregate is not used for all aggregates; in particular,
3219       --  there is a separate node kind for extension aggregates.
3220
3221       --  Note: gigi/gcc can handle array aggregates correctly providing that
3222       --  they are entirely positional, and the array subtype involved has a
3223       --  known at compile time length and is not bit packed, or a convention
3224       --  Fortran array with more than one dimension. If these conditions
3225       --  are not met, then the front end must translate the aggregate into
3226       --  an appropriate set of assignments into a temporary.
3227
3228       --  Note: for the record aggregate case, gigi/gcc can handle all cases
3229       --  of record aggregates, including those for packed, and rep-claused
3230       --  records, and also variant records, providing that there are no
3231       --  variable length fields whose size is not known at runtime, and
3232       --  providing that the aggregate is presented in fully named form.
3233
3234       ----------------------------------------------
3235       -- 4.3.1  Record Component Association List --
3236       ----------------------------------------------
3237
3238       --  RECORD_COMPONENT_ASSOCIATION_LIST ::=
3239       --     RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3240       --   | null record
3241
3242       --  There is no explicit node in the tree for a record component
3243       --  association list. Instead the Null_Record_Present flag is set in
3244       --  the parent node for the NULL RECORD case.
3245
3246       ------------------------------------------------------
3247       -- 4.3.1  Record Component Association (also 4.3.3) --
3248       ------------------------------------------------------
3249
3250       --  RECORD_COMPONENT_ASSOCIATION ::=
3251       --    [COMPONENT_CHOICE_LIST =>] EXPRESSION
3252
3253       --  N_Component_Association
3254       --  Sloc points to first selector name
3255       --  Choices (List1)
3256       --  Loop_Actions (List2-Sem)
3257       --  Expression (Node3)
3258       --  Box_Present (Flag15)
3259
3260       --  Note: this structure is used for both record component associations
3261       --  and array component associations, since the two cases aren't always
3262       --  separable by the parser. The choices list may represent either a
3263       --  list of selector names in the record aggregate case, or a list of
3264       --  discrete choices in the array aggregate case or an N_Others_Choice
3265       --  node (which appears as a singleton list). Box_Present gives support
3266       --  to Ada 2005 (AI-287).
3267
3268       ----------------------------------
3269       -- 4.3.1  Cmmponent Choice List --
3270       ----------------------------------
3271
3272       --  COMPONENT_CHOICE_LIST ::=
3273       --    component_SELECTOR_NAME {| component_SELECTOR_NAME}
3274       --  | others
3275
3276       --  The entries of a component choice list appear in the Choices list of
3277       --  the associated N_Component_Association, as either selector names, or
3278       --  as an N_Others_Choice node.
3279
3280       --------------------------------
3281       -- 4.3.2  Extension Aggregate --
3282       --------------------------------
3283
3284       --  EXTENSION_AGGREGATE ::=
3285       --    (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3286
3287       --  Note: extension aggregates are not permitted in Ada 83 mode
3288
3289       --  N_Extension_Aggregate
3290       --  Sloc points to left parenthesis
3291       --  Ancestor_Part (Node3)
3292       --  Associated_Node (Node4-Sem)
3293       --  Expressions (List1) (set to No_List if none or null record case)
3294       --  Component_Associations (List2) (set to No_List if none)
3295       --  Null_Record_Present (Flag17)
3296       --  Expansion_Delayed (Flag11-Sem)
3297       --  Has_Self_Reference (Flag13-Sem)
3298       --  plus fields for expression
3299
3300       --------------------------
3301       -- 4.3.2  Ancestor Part --
3302       --------------------------
3303
3304       --  ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3305
3306       ----------------------------
3307       -- 4.3.3  Array Aggregate --
3308       ----------------------------
3309
3310       --  ARRAY_AGGREGATE ::=
3311       --    POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3312
3313       ---------------------------------------
3314       -- 4.3.3  Positional Array Aggregate --
3315       ---------------------------------------
3316
3317       --  POSITIONAL_ARRAY_AGGREGATE ::=
3318       --    (EXPRESSION, EXPRESSION {, EXPRESSION})
3319       --  | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3320
3321       --  See Record_Aggregate (4.3.1) for node structure
3322
3323       ----------------------------------
3324       -- 4.3.3  Named Array Aggregate --
3325       ----------------------------------
3326
3327       --  NAMED_ARRAY_AGGREGATE ::=
3328       --  | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3329
3330       --  See Record_Aggregate (4.3.1) for node structure
3331
3332       ----------------------------------------
3333       -- 4.3.3  Array Component Association --
3334       ----------------------------------------
3335
3336       --  ARRAY_COMPONENT_ASSOCIATION ::=
3337       --    DISCRETE_CHOICE_LIST => EXPRESSION
3338
3339       --  See Record_Component_Association (4.3.1) for node structure
3340
3341       --------------------------------------------------
3342       -- 4.4  Expression/Relation/Term/Factor/Primary --
3343       --------------------------------------------------
3344
3345       --  EXPRESSION ::=
3346       --    RELATION {and RELATION} | RELATION {and then RELATION}
3347       --  | RELATION {or RELATION}  | RELATION {or else RELATION}
3348       --  | RELATION {xor RELATION}
3349
3350       --  RELATION ::=
3351       --    SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3352       --  | SIMPLE_EXPRESSION [not] in RANGE
3353       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3354
3355       --  SIMPLE_EXPRESSION ::=
3356       --    [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3357
3358       --  TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3359
3360       --  FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3361
3362       --  No nodes are generated for any of these constructs. Instead, the
3363       --  node for the operator appears directly. When we refer to an
3364       --  expression in this description, we mean any of the possible
3365       --  constituent components of an expression (e.g. identifier is
3366       --  an example of an expression).
3367
3368       ------------------
3369       -- 4.4  Primary --
3370       ------------------
3371
3372       --  PRIMARY ::=
3373       --    NUMERIC_LITERAL  | null
3374       --  | STRING_LITERAL   | AGGREGATE
3375       --  | NAME             | QUALIFIED_EXPRESSION
3376       --  | ALLOCATOR        | (EXPRESSION)
3377
3378       --  Usually there is no explicit node in the tree for primary. Instead
3379       --  the constituent (e.g. AGGREGATE) appears directly. There are two
3380       --  exceptions. First, there is an explicit node for a null primary.
3381
3382       --  N_Null
3383       --  Sloc points to NULL
3384       --  plus fields for expression
3385
3386       --  Second, the case of (EXPRESSION) is handled specially. Ada requires
3387       --  that the parser keep track of which subexpressions are enclosed
3388       --  in parentheses, and how many levels of parentheses are used. This
3389       --  information is required for optimization purposes, and also for
3390       --  some semantic checks (e.g. (((1))) in a procedure spec does not
3391       --  conform with ((((1)))) in the body).
3392
3393       --  The parentheses are recorded by keeping a Paren_Count field in every
3394       --  subexpression node (it is actually present in all nodes, but only
3395       --  used in subexpression nodes). This count records the number of
3396       --  levels of parentheses. If the number of levels in the source exceeds
3397       --  the maximum accommodated by this count, then the count is simply left
3398       --  at the maximum value. This means that there are some pathological
3399       --  cases of failure to detect conformance failures (e.g. an expression
3400       --  with 500 levels of parens will conform with one with 501 levels),
3401       --  but we do not need to lose sleep over this.
3402
3403       --  Historical note: in versions of GNAT prior to 1.75, there was a node
3404       --  type N_Parenthesized_Expression used to accurately record unlimited
3405       --  numbers of levels of parentheses. However, it turned out to be a
3406       --  real nuisance to have to take into account the possible presence of
3407       --  this node during semantic analysis, since basically parentheses have
3408       --  zero relevance to semantic analysis.
3409
3410       --  Note: the level of parentheses always present in things like
3411       --  aggregates does not count, only the parentheses in the primary
3412       --  (EXPRESSION) affect the setting of the Paren_Count field.
3413
3414       --  2nd Note: the contents of the Expression field must be ignored (i.e.
3415       --  treated as though it were Empty) if No_Initialization is set True.
3416
3417       --------------------------------------
3418       -- 4.5  Short Circuit Control Forms --
3419       --------------------------------------
3420
3421       --  EXPRESSION ::=
3422       --    RELATION {and then RELATION} | RELATION {or else RELATION}
3423
3424       --  Gigi restriction: For both these control forms, the operand and
3425       --  result types are always Standard.Boolean. The expander inserts the
3426       --  required conversion operations where needed to ensure this is the
3427       --  case.
3428
3429       --  N_And_Then
3430       --  Sloc points to AND of AND THEN
3431       --  Left_Opnd (Node2)
3432       --  Right_Opnd (Node3)
3433       --  Actions (List1-Sem)
3434       --  plus fields for expression
3435
3436       --  N_Or_Else
3437       --  Sloc points to OR of OR ELSE
3438       --  Left_Opnd (Node2)
3439       --  Right_Opnd (Node3)
3440       --  Actions (List1-Sem)
3441       --  plus fields for expression
3442
3443       --  Note: The Actions field is used to hold actions associated with
3444       --  the right hand operand. These have to be treated specially since
3445       --  they are not unconditionally executed. See Insert_Actions for a
3446       --  more detailed description of how these actions are handled.
3447
3448       ---------------------------
3449       -- 4.5  Membership Tests --
3450       ---------------------------
3451
3452       --  RELATION ::=
3453       --    SIMPLE_EXPRESSION [not] in RANGE
3454       --  | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3455
3456       --  Note: although the grammar above allows only a range or a
3457       --  subtype mark, the parser in fact will accept any simple
3458       --  expression in place of a subtype mark. This means that the
3459       --  semantic analyzer must be prepared to deal with, and diagnose
3460       --  a simple expression other than a name for the right operand.
3461       --  This simplifies error recovery in the parser.
3462
3463       --  N_In
3464       --  Sloc points to IN
3465       --  Left_Opnd (Node2)
3466       --  Right_Opnd (Node3)
3467       --  plus fields for expression
3468
3469       --  N_Not_In
3470       --  Sloc points to NOT of NOT IN
3471       --  Left_Opnd (Node2)
3472       --  Right_Opnd (Node3)
3473       --  plus fields for expression
3474
3475       --------------------
3476       -- 4.5  Operators --
3477       --------------------
3478
3479       --  LOGICAL_OPERATOR             ::=  and | or  | xor
3480
3481       --  RELATIONAL_OPERATOR          ::=  =   | /=  | <   | <= | > | >=
3482
3483       --  BINARY_ADDING_OPERATOR       ::=  +   |  -  | &
3484
3485       --  UNARY_ADDING_OPERATOR        ::=  +   |  -
3486
3487       --  MULTIPLYING_OPERATOR         ::=  *   |  /  | mod | rem
3488
3489       --  HIGHEST_PRECEDENCE_OPERATOR  ::=  **  | abs | not
3490
3491       --  Sprint syntax if Treat_Fixed_As_Integer is set:
3492
3493       --     x #* y
3494       --     x #/ y
3495       --     x #mod y
3496       --     x #rem y
3497
3498       --  Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3499       --  will only be given nodes with the Treat_Fixed_As_Integer flag set.
3500       --  All handling of smalls for multiplication and division is handled
3501       --  by the front end (mod and rem result only from expansion). Gigi
3502       --  thus never needs to worry about small values (for other operators
3503       --  operating on fixed-point, e.g. addition, the small value does not
3504       --  have any semantic effect anyway, these are always integer operations.
3505
3506       --  Gigi restriction: For all operators taking Boolean operands, the
3507       --  type is always Standard.Boolean. The expander inserts the required
3508       --  conversion operations where needed to ensure this is the case.
3509
3510       --  N_Op_And
3511       --  Sloc points to AND
3512       --  Do_Length_Check (Flag4-Sem)
3513       --  plus fields for binary operator
3514       --  plus fields for expression
3515
3516       --  N_Op_Or
3517       --  Sloc points to OR
3518       --  Do_Length_Check (Flag4-Sem)
3519       --  plus fields for binary operator
3520       --  plus fields for expression
3521
3522       --  N_Op_Xor
3523       --  Sloc points to XOR
3524       --  Do_Length_Check (Flag4-Sem)
3525       --  plus fields for binary operator
3526       --  plus fields for expression
3527
3528       --  N_Op_Eq
3529       --  Sloc points to =
3530       --  plus fields for binary operator
3531       --  plus fields for expression
3532
3533       --  N_Op_Ne
3534       --  Sloc points to /=
3535       --  plus fields for binary operator
3536       --  plus fields for expression
3537
3538       --  N_Op_Lt
3539       --  Sloc points to <
3540       --  plus fields for binary operator
3541       --  plus fields for expression
3542
3543       --  N_Op_Le
3544       --  Sloc points to <=
3545       --  plus fields for binary operator
3546       --  plus fields for expression
3547
3548       --  N_Op_Gt
3549       --  Sloc points to >
3550       --  plus fields for binary operator
3551       --  plus fields for expression
3552
3553       --  N_Op_Ge
3554       --  Sloc points to >=
3555       --  plus fields for binary operator
3556       --  plus fields for expression
3557
3558       --  N_Op_Add
3559       --  Sloc points to + (binary)
3560       --  plus fields for binary operator
3561       --  plus fields for expression
3562
3563       --  N_Op_Subtract
3564       --  Sloc points to - (binary)
3565       --  plus fields for binary operator
3566       --  plus fields for expression
3567
3568       --  N_Op_Concat
3569       --  Sloc points to &
3570       --  Is_Component_Left_Opnd (Flag13-Sem)
3571       --  Is_Component_Right_Opnd (Flag14-Sem)
3572       --  plus fields for binary operator
3573       --  plus fields for expression
3574
3575       --  N_Op_Multiply
3576       --  Sloc points to *
3577       --  Treat_Fixed_As_Integer (Flag14-Sem)
3578       --  Rounded_Result (Flag18-Sem)
3579       --  plus fields for binary operator
3580       --  plus fields for expression
3581
3582       --  N_Op_Divide
3583       --  Sloc points to /
3584       --  Treat_Fixed_As_Integer (Flag14-Sem)
3585       --  Do_Division_Check (Flag13-Sem)
3586       --  Rounded_Result (Flag18-Sem)
3587       --  plus fields for binary operator
3588       --  plus fields for expression
3589
3590       --  N_Op_Mod
3591       --  Sloc points to MOD
3592       --  Treat_Fixed_As_Integer (Flag14-Sem)
3593       --  Do_Division_Check (Flag13-Sem)
3594       --  plus fields for binary operator
3595       --  plus fields for expression
3596
3597       --  N_Op_Rem
3598       --  Sloc points to REM
3599       --  Treat_Fixed_As_Integer (Flag14-Sem)
3600       --  Do_Division_Check (Flag13-Sem)
3601       --  plus fields for binary operator
3602       --  plus fields for expression
3603
3604       --  N_Op_Expon
3605       --  Is_Power_Of_2_For_Shift (Flag13-Sem)
3606       --  Sloc points to **
3607       --  plus fields for binary operator
3608       --  plus fields for expression
3609
3610       --  N_Op_Plus
3611       --  Sloc points to + (unary)
3612       --  plus fields for unary operator
3613       --  plus fields for expression
3614
3615       --  N_Op_Minus
3616       --  Sloc points to - (unary)
3617       --  plus fields for unary operator
3618       --  plus fields for expression
3619
3620       --  N_Op_Abs
3621       --  Sloc points to ABS
3622       --  plus fields for unary operator
3623       --  plus fields for expression
3624
3625       --  N_Op_Not
3626       --  Sloc points to NOT
3627       --  plus fields for unary operator
3628       --  plus fields for expression
3629
3630       --  See also shift operators in section B.2
3631
3632       --  Note on fixed-point operations passed to Gigi: For adding operators,
3633       --  the semantics is to treat these simply as integer operations, with
3634       --  the small values being ignored (the bounds are already stored in
3635       --  units of small, so that constraint checking works as usual). For the
3636       --  case of multiply/divide/rem/mod operations, Gigi will only see fixed
3637       --  point operands if the Treat_Fixed_As_Integer flag is set and will
3638       --  thus treat these nodes in identical manner, ignoring small values.
3639
3640       --------------------------
3641       -- 4.6  Type Conversion --
3642       --------------------------
3643
3644       --  TYPE_CONVERSION ::=
3645       --    SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3646
3647       --  In the (NAME) case, the name is stored as the expression
3648
3649       --  Note: the parser never generates a type conversion node, since it
3650       --  looks like an indexed component which is generated by preference.
3651       --  The semantic pass must correct this misidentification.
3652
3653       --  Gigi handles conversions that involve no change in the root type,
3654       --  and also all conversions from integer to floating-point types.
3655       --  Conversions from floating-point to integer are only handled in
3656       --  the case where Float_Truncate flag set. Other conversions from
3657       --  floating-point to integer (involving rounding) and all conversions
3658       --  involving fixed-point types are handled by the expander.
3659
3660       --  Sprint syntax if Float_Truncate set: X^(Y)
3661       --  Sprint syntax if Conversion_OK set X?(Y)
3662       --  Sprint syntax if both flags set X?^(Y)
3663
3664       --  Note: If either the operand or result type is fixed-point, Gigi will
3665       --  only see a type conversion node with Conversion_OK set. The front end
3666       --  takes care of all handling of small's for fixed-point conversions.
3667
3668       --  N_Type_Conversion
3669       --  Sloc points to first token of subtype mark
3670       --  Subtype_Mark (Node4)
3671       --  Expression (Node3)
3672       --  Do_Tag_Check (Flag13-Sem)
3673       --  Do_Length_Check (Flag4-Sem)
3674       --  Do_Overflow_Check (Flag17-Sem)
3675       --  Float_Truncate (Flag11-Sem)
3676       --  Rounded_Result (Flag18-Sem)
3677       --  Conversion_OK (Flag14-Sem)
3678       --  plus fields for expression
3679
3680       --  Note: if a range check is required, then the Do_Range_Check flag
3681       --  is set in the Expression with the check being done against the
3682       --  target type range (after the base type conversion, if any).
3683
3684       -------------------------------
3685       -- 4.7  Qualified Expression --
3686       -------------------------------
3687
3688       --  QUALIFIED_EXPRESSION ::=
3689       --    SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3690
3691       --  Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3692       --  the expression, so the Expression field of this node always points
3693       --  to a parenthesized expression in this case (i.e. Paren_Count will
3694       --  always be non-zero for the referenced expression if it is not an
3695       --  aggregate).
3696
3697       --  N_Qualified_Expression
3698       --  Sloc points to apostrophe
3699       --  Subtype_Mark (Node4)
3700       --  Expression (Node3) expression or aggregate
3701       --  plus fields for expression
3702
3703       --------------------
3704       -- 4.8  Allocator --
3705       --------------------
3706
3707       --  ALLOCATOR ::=
3708       --    new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3709
3710       --  Sprint syntax (when storage pool present)
3711       --    new xxx (storage_pool = pool)
3712
3713       --  N_Allocator
3714       --  Sloc points to NEW
3715       --  Expression (Node3) subtype indication or qualified expression
3716       --  Storage_Pool (Node1-Sem)
3717       --  Procedure_To_Call (Node2-Sem)
3718       --  Coextensions (Elist4-Sem)
3719       --  Null_Exclusion_Present (Flag11)
3720       --  No_Initialization (Flag13-Sem)
3721       --  Is_Static_Coextension (Flag14-Sem)
3722       --  Do_Storage_Check (Flag17-Sem)
3723       --  Is_Dynamic_Coextension (Flag18-Sem)
3724       --  plus fields for expression
3725
3726       ---------------------------------
3727       -- 5.1  Sequence Of Statements --
3728       ---------------------------------
3729
3730       --  SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3731
3732       --  Note: Although the parser will not accept a declaration as a
3733       --  statement, the semantic analyzer may insert declarations (e.g.
3734       --  declarations of implicit types needed for execution of other
3735       --  statements) into a sequence of statements, so the code generator
3736       --  should be prepared to accept a declaration where a statement is
3737       --  expected. Note also that pragmas can appear as statements.
3738
3739       --------------------
3740       -- 5.1  Statement --
3741       --------------------
3742
3743       --  STATEMENT ::=
3744       --    {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3745
3746       --  There is no explicit node in the tree for a statement. Instead, the
3747       --  individual statement appears directly. Labels are treated  as a
3748       --  kind of statement, i.e. they are linked into a statement list at
3749       --  the point they appear, so the labeled statement appears following
3750       --  the label or labels in the statement list.
3751
3752       ---------------------------
3753       -- 5.1  Simple Statement --
3754       ---------------------------
3755
3756       --  SIMPLE_STATEMENT ::=        NULL_STATEMENT
3757       --  | ASSIGNMENT_STATEMENT    | EXIT_STATEMENT
3758       --  | GOTO_STATEMENT          | PROCEDURE_CALL_STATEMENT
3759       --  | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3760       --  | REQUEUE_STATEMENT       | DELAY_STATEMENT
3761       --  | ABORT_STATEMENT         | RAISE_STATEMENT
3762       --  | CODE_STATEMENT
3763
3764       -----------------------------
3765       -- 5.1  Compound Statement --
3766       -----------------------------
3767
3768       --  COMPOUND_STATEMENT ::=
3769       --    IF_STATEMENT              | CASE_STATEMENT
3770       --  | LOOP_STATEMENT            | BLOCK_STATEMENT
3771       --  | EXTENDED_RETURN_STATEMENT
3772       --  | ACCEPT_STATEMENT          | SELECT_STATEMENT
3773
3774       -------------------------
3775       -- 5.1  Null Statement --
3776       -------------------------
3777
3778       --  NULL_STATEMENT ::= null;
3779
3780       --  N_Null_Statement
3781       --  Sloc points to NULL
3782
3783       ----------------
3784       -- 5.1  Label --
3785       ----------------
3786
3787       --  LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3788
3789       --  Note that the occurrence of a label is not a defining identifier,
3790       --  but rather a referencing occurrence. The defining occurrence is
3791       --  in the implicit label declaration which occurs in the innermost
3792       --  enclosing block.
3793
3794       --  N_Label
3795       --  Sloc points to <<
3796       --  Identifier (Node1) direct name of statement identifier
3797       --  Exception_Junk (Flag8-Sem)
3798
3799       -------------------------------
3800       -- 5.1  Statement Identifier --
3801       -------------------------------
3802
3803       --  STATEMENT_IDENTIFIER ::= DIRECT_NAME
3804
3805       --  The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3806       --  (not an OPERATOR_SYMBOL)
3807
3808       -------------------------------
3809       -- 5.2  Assignment Statement --
3810       -------------------------------
3811
3812       --  ASSIGNMENT_STATEMENT ::=
3813       --    variable_NAME := EXPRESSION;
3814
3815       --  N_Assignment_Statement
3816       --  Sloc points to :=
3817       --  Name (Node2)
3818       --  Expression (Node3)
3819       --  Do_Tag_Check (Flag13-Sem)
3820       --  Do_Length_Check (Flag4-Sem)
3821       --  Forwards_OK (Flag5-Sem)
3822       --  Backwards_OK (Flag6-Sem)
3823       --  No_Ctrl_Actions (Flag7-Sem)
3824
3825       --  Note: if a range check is required, then the Do_Range_Check flag
3826       --  is set in the Expression (right hand side), with the check being
3827       --  done against the type of the Name (left hand side).
3828
3829       --  Note: the back end places some restrictions on the form of the
3830       --  Expression field. If the object being assigned to is Atomic, then
3831       --  the Expression may not have the form of an aggregate (since this
3832       --  might cause the back end to generate separate assignments). It
3833       --  also cannot be a reference to an object marked as a true constant
3834       --  (Is_True_Constant flag set), where the object is itself initialized
3835       --  with an aggregate. If necessary the front end must generate an
3836       --  extra temporary (with Is_True_Constant set False), and initialize
3837       --  this temporary as required (the temporary itself is not atomic).
3838
3839       -----------------------
3840       -- 5.3  If Statement --
3841       -----------------------
3842
3843       --  IF_STATEMENT ::=
3844       --    if CONDITION then
3845       --      SEQUENCE_OF_STATEMENTS
3846       --    {elsif CONDITION then
3847       --      SEQUENCE_OF_STATEMENTS}
3848       --    [else
3849       --      SEQUENCE_OF_STATEMENTS]
3850       --    end if;
3851
3852       --  Gigi restriction: This expander ensures that the type of the
3853       --  Condition fields is always Standard.Boolean, even if the type
3854       --  in the source is some non-standard boolean type.
3855
3856       --  N_If_Statement
3857       --  Sloc points to IF
3858       --  Condition (Node1)
3859       --  Then_Statements (List2)
3860       --  Elsif_Parts (List3) (set to No_List if none present)
3861       --  Else_Statements (List4) (set to No_List if no else part present)
3862       --  End_Span (Uint5) (set to No_Uint if expander generated)
3863
3864       --  N_Elsif_Part
3865       --  Sloc points to ELSIF
3866       --  Condition (Node1)
3867       --  Then_Statements (List2)
3868       --  Condition_Actions (List3-Sem)
3869
3870       --------------------
3871       -- 5.3  Condition --
3872       --------------------
3873
3874       --  CONDITION ::= boolean_EXPRESSION
3875
3876       -------------------------
3877       -- 5.4  Case Statement --
3878       -------------------------
3879
3880       --  CASE_STATEMENT ::=
3881       --    case EXPRESSION is
3882       --      CASE_STATEMENT_ALTERNATIVE
3883       --      {CASE_STATEMENT_ALTERNATIVE}
3884       --    end case;
3885
3886       --  Note: the Alternatives can contain pragmas. These only occur at
3887       --  the start of the list, since any pragmas occurring after the first
3888       --  alternative are absorbed into the corresponding statement sequence.
3889
3890       --  N_Case_Statement
3891       --  Sloc points to CASE
3892       --  Expression (Node3)
3893       --  Alternatives (List4)
3894       --  End_Span (Uint5) (set to No_Uint if expander generated)
3895
3896       -------------------------------------
3897       -- 5.4  Case Statement Alternative --
3898       -------------------------------------
3899
3900       --  CASE_STATEMENT_ALTERNATIVE ::=
3901       --    when DISCRETE_CHOICE_LIST =>
3902       --      SEQUENCE_OF_STATEMENTS
3903
3904       --  N_Case_Statement_Alternative
3905       --  Sloc points to WHEN
3906       --  Discrete_Choices (List4)
3907       --  Statements (List3)
3908
3909       -------------------------
3910       -- 5.5  Loop Statement --
3911       -------------------------
3912
3913       --  LOOP_STATEMENT ::=
3914       --    [loop_STATEMENT_IDENTIFIER :]
3915       --      [ITERATION_SCHEME] loop
3916       --        SEQUENCE_OF_STATEMENTS
3917       --      end loop [loop_IDENTIFIER];
3918
3919       --  Note: The occurrence of a loop label is not a defining identifier
3920       --  but rather a referencing occurrence. The defining occurrence is in
3921       --  the implicit label declaration which occurs in the innermost
3922       --  enclosing block.
3923
3924       --  Note: there is always a loop statement identifier present in
3925       --  the tree, even if none was given in the source. In the case where
3926       --  no loop identifier is given in the source, the parser creates
3927       --  a name of the form _Loop_n, where n is a decimal integer (the
3928       --  two underlines ensure that the loop names created in this manner
3929       --  do not conflict with any user defined identifiers), and the flag
3930       --  Has_Created_Identifier is set to True. The only exception to the
3931       --  rule that all loop statement nodes have identifiers occurs for
3932       --  loops constructed by the expander, and the semantic analyzer will
3933       --  create and supply dummy loop identifiers in these cases.
3934
3935       --  N_Loop_Statement
3936       --  Sloc points to LOOP
3937       --  Identifier (Node1) loop identifier (set to Empty if no identifier)
3938       --  Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3939       --  Statements (List3)
3940       --  End_Label (Node4)
3941       --  Has_Created_Identifier (Flag15)
3942       --  Is_Null_Loop (Flag16)
3943
3944       --------------------------
3945       -- 5.5 Iteration Scheme --
3946       --------------------------
3947
3948       --  ITERATION_SCHEME ::=
3949       --    while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3950
3951       --  Gigi restriction: This expander ensures that the type of the
3952       --  Condition field is always Standard.Boolean, even if the type
3953       --  in the source is some non-standard boolean type.
3954
3955       --  N_Iteration_Scheme
3956       --  Sloc points to WHILE or FOR
3957       --  Condition (Node1) (set to Empty if FOR case)
3958       --  Condition_Actions (List3-Sem)
3959       --  Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3960
3961       ---------------------------------------
3962       -- 5.5  Loop parameter specification --
3963       ---------------------------------------
3964
3965       --  LOOP_PARAMETER_SPECIFICATION ::=
3966       --    DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3967
3968       --  N_Loop_Parameter_Specification
3969       --  Sloc points to first identifier
3970       --  Defining_Identifier (Node1)
3971       --  Reverse_Present (Flag15)
3972       --  Discrete_Subtype_Definition (Node4)
3973
3974       --------------------------
3975       -- 5.6  Block Statement --
3976       --------------------------
3977
3978       --  BLOCK_STATEMENT ::=
3979       --    [block_STATEMENT_IDENTIFIER:]
3980       --      [declare
3981       --        DECLARATIVE_PART]
3982       --      begin
3983       --        HANDLED_SEQUENCE_OF_STATEMENTS
3984       --      end [block_IDENTIFIER];
3985
3986       --  Note that the occurrence of a block identifier is not a defining
3987       --  identifier, but rather a referencing occurrence. The defining
3988       --  occurrence is an E_Block entity declared by the implicit label
3989       --  declaration which occurs in the innermost enclosing block statement
3990       --  or body; the block identifier denotes that E_Block.
3991
3992       --  For block statements that come from source code, there is always a
3993       --  block statement identifier present in the tree, denoting an
3994       --  E_Block. In the case where no block identifier is given in the
3995       --  source, the parser creates a name of the form B_n, where n is a
3996       --  decimal integer, and the flag Has_Created_Identifier is set to
3997       --  True. Blocks constructed by the expander usually have no identifier,
3998       --  and no corresponding entity.
3999
4000       --  Note: the block statement created for an extended return statement
4001       --  has an entity, and this entity is an E_Return_Statement, rather than
4002       --  the usual E_Block.
4003
4004       --  Note: Exception_Junk is set for the wrapping blocks created during
4005       --  local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4006
4007       --  N_Block_Statement
4008       --  Sloc points to DECLARE or BEGIN
4009       --  Identifier (Node1) block direct name (set to Empty if not present)
4010       --  Declarations (List2) (set to No_List if no DECLARE part)
4011       --  Handled_Statement_Sequence (Node4)
4012       --  Is_Task_Master (Flag5-Sem)
4013       --  Activation_Chain_Entity (Node3-Sem)
4014       --  Has_Created_Identifier (Flag15)
4015       --  Is_Task_Allocation_Block (Flag6)
4016       --  Is_Asynchronous_Call_Block (Flag7)
4017       --  Exception_Junk (Flag8-Sem)
4018
4019       -------------------------
4020       -- 5.7  Exit Statement --
4021       -------------------------
4022
4023       --  EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4024
4025       --  Gigi restriction: This expander ensures that the type of the
4026       --  Condition field is always Standard.Boolean, even if the type
4027       --  in the source is some non-standard boolean type.
4028
4029       --  N_Exit_Statement
4030       --  Sloc points to EXIT
4031       --  Name (Node2) (set to Empty if no loop name present)
4032       --  Condition (Node1) (set to Empty if no when part present)
4033
4034       -------------------------
4035       -- 5.9  Goto Statement --
4036       -------------------------
4037
4038       --  GOTO_STATEMENT ::= goto label_NAME;
4039
4040       --  N_Goto_Statement
4041       --  Sloc points to GOTO
4042       --  Name (Node2)
4043       --  Exception_Junk (Flag8-Sem)
4044
4045       ---------------------------------
4046       -- 6.1  Subprogram Declaration --
4047       ---------------------------------
4048
4049       --  SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4050
4051       --  N_Subprogram_Declaration
4052       --  Sloc points to FUNCTION or PROCEDURE
4053       --  Specification (Node1)
4054       --  Body_To_Inline (Node3-Sem)
4055       --  Corresponding_Body (Node5-Sem)
4056       --  Parent_Spec (Node4-Sem)
4057
4058       ------------------------------------------
4059       -- 6.1  Abstract Subprogram Declaration --
4060       ------------------------------------------
4061
4062       --  ABSTRACT_SUBPROGRAM_DECLARATION ::=
4063       --    SUBPROGRAM_SPECIFICATION is abstract;
4064
4065       --  N_Abstract_Subprogram_Declaration
4066       --  Sloc points to ABSTRACT
4067       --  Specification (Node1)
4068
4069       -----------------------------------
4070       -- 6.1  Subprogram Specification --
4071       -----------------------------------
4072
4073       --  SUBPROGRAM_SPECIFICATION ::=
4074       --    [[not] overriding]
4075       --    procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4076       --  | [[not] overriding]
4077       --    function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4078
4079       --  Note: there are no separate nodes for the profiles, instead the
4080       --  information appears directly in the following nodes.
4081
4082       --  N_Function_Specification
4083       --  Sloc points to FUNCTION
4084       --  Defining_Unit_Name (Node1) (the designator)
4085       --  Elaboration_Boolean (Node2-Sem)
4086       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4087       --  Null_Exclusion_Present (Flag11)
4088       --  Result_Definition (Node4) for result subtype
4089       --  Generic_Parent (Node5-Sem)
4090       --  Must_Override (Flag14) set if overriding indicator present
4091       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4092
4093       --  N_Procedure_Specification
4094       --  Sloc points to PROCEDURE
4095       --  Defining_Unit_Name (Node1)
4096       --  Elaboration_Boolean (Node2-Sem)
4097       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4098       --  Generic_Parent (Node5-Sem)
4099       --  Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4100       --  Must_Override (Flag14) set if overriding indicator present
4101       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4102
4103       --  Note: overriding indicator is an Ada 2005 feature
4104
4105       ---------------------
4106       -- 6.1  Designator --
4107       ---------------------
4108
4109       --  DESIGNATOR ::=
4110       --    [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4111
4112       --  Designators that are simply identifiers or operator symbols appear
4113       --  directly in the tree in this form. The following node is used only
4114       --  in the case where the designator has a parent unit name component.
4115
4116       --  N_Designator
4117       --  Sloc points to period
4118       --  Name (Node2) holds the parent unit name. Note that this is always
4119       --   non-Empty, since this node is only used for the case where a
4120       --   parent library unit package name is present.
4121       --  Identifier (Node1)
4122
4123       --  Note that the identifier can also be an operator symbol here
4124
4125       ------------------------------
4126       -- 6.1  Defining Designator --
4127       ------------------------------
4128
4129       --  DEFINING_DESIGNATOR ::=
4130       --    DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4131
4132       -------------------------------------
4133       -- 6.1  Defining Program Unit Name --
4134       -------------------------------------
4135
4136       --  DEFINING_PROGRAM_UNIT_NAME ::=
4137       --    [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4138
4139       --  The parent unit name is present only in the case of a child unit
4140       --  name (permissible only for Ada 95 for a library level unit, i.e.
4141       --  a unit at scope level one). If no such name is present, the defining
4142       --  program unit name is represented simply as the defining identifier.
4143       --  In the child unit case, the following node is used to represent the
4144       --  child unit name.
4145
4146       --  N_Defining_Program_Unit_Name
4147       --  Sloc points to period
4148       --  Name (Node2) holds the parent unit name. Note that this is always
4149       --   non-Empty, since this node is only used for the case where a
4150       --   parent unit name is present.
4151       --  Defining_Identifier (Node1)
4152
4153       --------------------------
4154       -- 6.1  Operator Symbol --
4155       --------------------------
4156
4157       --  OPERATOR_SYMBOL ::= STRING_LITERAL
4158
4159       --  Note: the fields of the N_Operator_Symbol node are laid out to
4160       --  match the corresponding fields of an N_Character_Literal node. This
4161       --  allows easy conversion of the operator symbol node into a character
4162       --  literal node in the case where a string constant of the form of an
4163       --  operator symbol is scanned out as such, but turns out semantically
4164       --  to be a string literal that is not an operator. For details see
4165       --  Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4166
4167       --  N_Operator_Symbol
4168       --  Sloc points to literal
4169       --  Chars (Name1) contains the Name_Id for the operator symbol
4170       --  Strval (Str3) Id of string value. This is used if the operator
4171       --   symbol turns out to be a normal string after all.
4172       --  Entity (Node4-Sem)
4173       --  Associated_Node (Node4-Sem)
4174       --  Has_Private_View (Flag11-Sem) set in generic units.
4175       --  Etype (Node5-Sem)
4176
4177       --  Note: the Strval field may be set to No_String for generated
4178       --  operator symbols that are known not to be string literals
4179       --  semantically.
4180
4181       -----------------------------------
4182       -- 6.1  Defining Operator Symbol --
4183       -----------------------------------
4184
4185       --  DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4186
4187       --  A defining operator symbol is an entity, which has additional
4188       --  fields depending on the setting of the Ekind field. These
4189       --  additional fields are defined (and access subprograms declared)
4190       --  in package Einfo.
4191
4192       --  Note: N_Defining_Operator_Symbol is an extended node whose fields
4193       --  are deliberately layed out to match the layout of fields in an
4194       --  ordinary N_Operator_Symbol node allowing for easy alteration of
4195       --  an operator symbol node into a defining operator symbol node.
4196       --  See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4197       --  for further details.
4198
4199       --  N_Defining_Operator_Symbol
4200       --  Sloc points to literal
4201       --  Chars (Name1) contains the Name_Id for the operator symbol
4202       --  Next_Entity (Node2-Sem)
4203       --  Scope (Node3-Sem)
4204       --  Etype (Node5-Sem)
4205
4206       ----------------------------
4207       -- 6.1  Parameter Profile --
4208       ----------------------------
4209
4210       --  PARAMETER_PROFILE ::= [FORMAL_PART]
4211
4212       ---------------------------------------
4213       -- 6.1  Parameter and Result Profile --
4214       ---------------------------------------
4215
4216       --  PARAMETER_AND_RESULT_PROFILE ::=
4217       --    [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4218       --  | [FORMAL_PART] return ACCESS_DEFINITION
4219
4220       --  There is no explicit node in the tree for a parameter and result
4221       --  profile. Instead the information appears directly in the parent.
4222
4223       ----------------------
4224       -- 6.1  Formal part --
4225       ----------------------
4226
4227       --  FORMAL_PART ::=
4228       --    (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4229
4230       ----------------------------------
4231       -- 6.1  Parameter specification --
4232       ----------------------------------
4233
4234       --  PARAMETER_SPECIFICATION ::=
4235       --    DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4236       --      [:= DEFAULT_EXPRESSION]
4237       --  | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4238       --      [:= DEFAULT_EXPRESSION]
4239
4240       --  Although the syntax allows multiple identifiers in the list, the
4241       --  semantics is as though successive specifications were given with
4242       --  identical type definition and expression components. To simplify
4243       --  semantic processing, the parser represents a multiple declaration
4244       --  case as a sequence of single Specifications, using the More_Ids and
4245       --  Prev_Ids flags to preserve the original source form as described
4246       --  in the section on "Handling of Defining Identifier Lists".
4247
4248       --  N_Parameter_Specification
4249       --  Sloc points to first identifier
4250       --  Defining_Identifier (Node1)
4251       --  In_Present (Flag15)
4252       --  Out_Present (Flag17)
4253       --  Null_Exclusion_Present (Flag11)
4254       --  Parameter_Type (Node2) subtype mark or access definition
4255       --  Expression (Node3) (set to Empty if no default expression present)
4256       --  Do_Accessibility_Check (Flag13-Sem)
4257       --  More_Ids (Flag5) (set to False if no more identifiers in list)
4258       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4259       --  Default_Expression (Node5-Sem)
4260
4261       ---------------
4262       -- 6.1  Mode --
4263       ---------------
4264
4265       --  MODE ::= [in] | in out | out
4266
4267       --  There is no explicit node in the tree for the Mode. Instead the
4268       --  In_Present and Out_Present flags are set in the parent node to
4269       --  record the presence of keywords specifying the mode.
4270
4271       --------------------------
4272       -- 6.3  Subprogram Body --
4273       --------------------------
4274
4275       --  SUBPROGRAM_BODY ::=
4276       --    SUBPROGRAM_SPECIFICATION is
4277       --      DECLARATIVE_PART
4278       --    begin
4279       --      HANDLED_SEQUENCE_OF_STATEMENTS
4280       --    end [DESIGNATOR];
4281
4282       --  N_Subprogram_Body
4283       --  Sloc points to FUNCTION or PROCEDURE
4284       --  Specification (Node1)
4285       --  Declarations (List2)
4286       --  Handled_Statement_Sequence (Node4)
4287       --  Activation_Chain_Entity (Node3-Sem)
4288       --  Corresponding_Spec (Node5-Sem)
4289       --  Acts_As_Spec (Flag4-Sem)
4290       --  Bad_Is_Detected (Flag15) used only by parser
4291       --  Do_Storage_Check (Flag17-Sem)
4292       --  Has_Priority_Pragma (Flag6-Sem)
4293       --  Is_Protected_Subprogram_Body (Flag7-Sem)
4294       --  Is_Entry_Barrier_Function (Flag8-Sem)
4295       --  Is_Task_Master (Flag5-Sem)
4296       --  Was_Originally_Stub (Flag13-Sem)
4297       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4298
4299       -----------------------------------
4300       -- 6.4  Procedure Call Statement --
4301       -----------------------------------
4302
4303       --  PROCEDURE_CALL_STATEMENT ::=
4304       --    procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4305
4306       --  Note: the reason that a procedure call has expression fields is
4307       --  that it semantically resembles an expression, e.g. overloading is
4308       --  allowed and a type is concocted for semantic processing purposes.
4309       --  Certain of these fields, such as Parens are not relevant, but it
4310       --  is easier to just supply all of them together!
4311
4312       --  N_Procedure_Call_Statement
4313       --  Sloc points to first token of name or prefix
4314       --  Name (Node2) stores name or prefix
4315       --  Parameter_Associations (List3) (set to No_List if no
4316       --   actual parameter part)
4317       --  First_Named_Actual (Node4-Sem)
4318       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4319       --  Do_Tag_Check (Flag13-Sem)
4320       --  No_Elaboration_Check (Flag14-Sem)
4321       --  Parameter_List_Truncated (Flag17-Sem)
4322       --  ABE_Is_Certain (Flag18-Sem)
4323       --  plus fields for expression
4324
4325       --  If any IN parameter requires a range check, then the corresponding
4326       --  argument expression has the Do_Range_Check flag set, and the range
4327       --  check is done against the formal type. Note that this argument
4328       --  expression may appear directly in the Parameter_Associations list,
4329       --  or may be a descendent of an N_Parameter_Association node that
4330       --  appears in this list.
4331
4332       ------------------------
4333       -- 6.4  Function Call --
4334       ------------------------
4335
4336       --  FUNCTION_CALL ::=
4337       --    function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4338
4339       --  Note: the parser may generate an indexed component node or simply
4340       --  a name node instead of a function call node. The semantic pass must
4341       --  correct this misidentification.
4342
4343       --  N_Function_Call
4344       --  Sloc points to first token of name or prefix
4345       --  Name (Node2) stores name or prefix
4346       --  Parameter_Associations (List3) (set to No_List if no
4347       --   actual parameter part)
4348       --  First_Named_Actual (Node4-Sem)
4349       --  Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4350       --  Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4351       --  Do_Tag_Check (Flag13-Sem)
4352       --  No_Elaboration_Check (Flag14-Sem)
4353       --  Parameter_List_Truncated (Flag17-Sem)
4354       --  ABE_Is_Certain (Flag18-Sem)
4355       --  plus fields for expression
4356
4357       --------------------------------
4358       -- 6.4  Actual Parameter Part --
4359       --------------------------------
4360
4361       --  ACTUAL_PARAMETER_PART ::=
4362       --    (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4363
4364       --------------------------------
4365       -- 6.4  Parameter Association --
4366       --------------------------------
4367
4368       --  PARAMETER_ASSOCIATION ::=
4369       --    [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4370
4371       --  Note: the N_Parameter_Association node is built only if a formal
4372       --  parameter selector name is present, otherwise the parameter
4373       --  association appears in the tree simply as the node for the
4374       --  explicit actual parameter.
4375
4376       --  N_Parameter_Association
4377       --  Sloc points to formal parameter
4378       --  Selector_Name (Node2) (always non-Empty)
4379       --  Explicit_Actual_Parameter (Node3)
4380       --  Next_Named_Actual (Node4-Sem)
4381
4382       ---------------------------
4383       -- 6.4  Actual Parameter --
4384       ---------------------------
4385
4386       --  EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4387
4388       ---------------------------
4389       -- 6.5  Return Statement --
4390       ---------------------------
4391
4392       --  RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4393
4394       --  In Ada 2005, we have:
4395
4396       --  SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4397
4398       --  EXTENDED_RETURN_STATEMENT ::=
4399       --    return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4400       --                                           [:= EXPRESSION] [do
4401       --      HANDLED_SEQUENCE_OF_STATEMENTS
4402       --    end return];
4403
4404       --  RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4405
4406       --  So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4407       --  "return statement" is defined in 6.5 to mean a
4408       --  SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4409
4410       --  N_Return_Statement
4411       --  Sloc points to RETURN
4412       --  Return_Statement_Entity (Node5-Sem)
4413       --  Expression (Node3) (set to Empty if no expression present)
4414       --  Storage_Pool (Node1-Sem)
4415       --  Procedure_To_Call (Node2-Sem)
4416       --  Do_Tag_Check (Flag13-Sem)
4417       --  By_Ref (Flag5-Sem)
4418       --  Comes_From_Extended_Return_Statement (Flag18-Sem)
4419
4420       --  N_Return_Statement represents a simple_return_statement, and is
4421       --  renamed to be N_Simple_Return_Statement below. Clients should refer
4422       --  to N_Simple_Return_Statement. We retain N_Return_Statement because
4423       --  that's how gigi knows it. See also renaming of Make_Return_Statement
4424       --  as Make_Simple_Return_Statement in Sem_Util.
4425
4426       --  Note: Return_Statement_Entity points to an E_Return_Statement
4427
4428       --  If a range check is required, then Do_Range_Check is set on the
4429       --  Expression. The check is against the return subtype of the function.
4430
4431       --  N_Extended_Return_Statement
4432       --  Sloc points to RETURN
4433       --  Return_Statement_Entity (Node5-Sem)
4434       --  Return_Object_Declarations (List3)
4435       --  Handled_Statement_Sequence (Node4) (set to Empty if not present)
4436       --  Storage_Pool (Node1-Sem)
4437       --  Procedure_To_Call (Node2-Sem)
4438       --  Do_Tag_Check (Flag13-Sem)
4439       --  By_Ref (Flag5-Sem)
4440
4441       --  Note: Return_Statement_Entity points to an E_Return_Statement.
4442       --  Note that Return_Object_Declarations is a list containing the
4443       --  N_Object_Declaration -- see comment on this field above.
4444       --  The declared object will have Is_Return_Object = True.
4445       --  There is no such syntactic category as return_object_declaration
4446       --  in the RM. Return_Object_Declarations represents this portion of
4447       --  the syntax for EXTENDED_RETURN_STATEMENT:
4448       --      DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4449       --                                      [:= EXPRESSION]
4450
4451       --  There are two entities associated with an extended_return_statement:
4452       --  the Return_Statement_Entity represents the statement itself, and the
4453       --  Defining_Identifier of the Object_Declaration in
4454       --  Return_Object_Declarations represents the object being
4455       --  returned. N_Simple_Return_Statement has only the former.
4456
4457       ------------------------------
4458       -- 7.1  Package Declaration --
4459       ------------------------------
4460
4461       --  PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4462
4463       --  Note: the activation chain entity for a package spec is used for
4464       --  all tasks declared in the package spec, or in the package body.
4465
4466       --  N_Package_Declaration
4467       --  Sloc points to PACKAGE
4468       --  Specification (Node1)
4469       --  Corresponding_Body (Node5-Sem)
4470       --  Parent_Spec (Node4-Sem)
4471       --  Activation_Chain_Entity (Node3-Sem)
4472
4473       --------------------------------
4474       -- 7.1  Package Specification --
4475       --------------------------------
4476
4477       --  PACKAGE_SPECIFICATION ::=
4478       --    package DEFINING_PROGRAM_UNIT_NAME is
4479       --      {BASIC_DECLARATIVE_ITEM}
4480       --    [private
4481       --      {BASIC_DECLARATIVE_ITEM}]
4482       --    end [[PARENT_UNIT_NAME .] IDENTIFIER]
4483
4484       --  N_Package_Specification
4485       --  Sloc points to PACKAGE
4486       --  Defining_Unit_Name (Node1)
4487       --  Visible_Declarations (List2)
4488       --  Private_Declarations (List3) (set to No_List if no private
4489       --   part present)
4490       --  End_Label (Node4)
4491       --  Generic_Parent (Node5-Sem)
4492       --  Limited_View_Installed (Flag18-Sem)
4493
4494       -----------------------
4495       -- 7.1  Package Body --
4496       -----------------------
4497
4498       --  PACKAGE_BODY ::=
4499       --    package body DEFINING_PROGRAM_UNIT_NAME is
4500       --      DECLARATIVE_PART
4501       --    [begin
4502       --      HANDLED_SEQUENCE_OF_STATEMENTS]
4503       --    end [[PARENT_UNIT_NAME .] IDENTIFIER];
4504
4505       --  N_Package_Body
4506       --  Sloc points to PACKAGE
4507       --  Defining_Unit_Name (Node1)
4508       --  Declarations (List2)
4509       --  Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4510       --  Corresponding_Spec (Node5-Sem)
4511       --  Was_Originally_Stub (Flag13-Sem)
4512
4513       --  Note: if a source level package does not contain a handled sequence
4514       --  of statements, then the parser supplies a dummy one with a null
4515       --  sequence of statements. Comes_From_Source will be False in this
4516       --  constructed sequence. The reason we need this is for the End_Label
4517       --  field in the HSS.
4518
4519       -----------------------------------
4520       -- 7.4  Private Type Declaration --
4521       -----------------------------------
4522
4523       --  PRIVATE_TYPE_DECLARATION ::=
4524       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4525       --      is [[abstract] tagged] [limited] private;
4526
4527       --  Note: TAGGED is not permitted in Ada 83 mode
4528
4529       --  N_Private_Type_Declaration
4530       --  Sloc points to TYPE
4531       --  Defining_Identifier (Node1)
4532       --  Discriminant_Specifications (List4) (set to No_List if no
4533       --   discriminant part)
4534       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4535       --  Abstract_Present (Flag4)
4536       --  Tagged_Present (Flag15)
4537       --  Limited_Present (Flag17)
4538
4539       ----------------------------------------
4540       -- 7.4  Private Extension Declaration --
4541       ----------------------------------------
4542
4543       --  PRIVATE_EXTENSION_DECLARATION ::=
4544       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4545       --      [abstract] [limited | synchronized]
4546       --        new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4547       --           with private;
4548
4549       --  Note: LIMITED, and private extension declarations are not allowed
4550       --        in Ada 83 mode.
4551
4552       --  N_Private_Extension_Declaration
4553       --  Sloc points to TYPE
4554       --  Defining_Identifier (Node1)
4555       --  Discriminant_Specifications (List4) (set to No_List if no
4556       --   discriminant part)
4557       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4558       --  Abstract_Present (Flag4)
4559       --  Limited_Present (Flag17)
4560       --  Synchronized_Present (Flag7)
4561       --  Subtype_Indication (Node5)
4562       --  Interface_List (List2) (set to No_List if none)
4563
4564       ---------------------
4565       -- 8.4  Use Clause --
4566       ---------------------
4567
4568       --  USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4569
4570       -----------------------------
4571       -- 8.4  Use Package Clause --
4572       -----------------------------
4573
4574       --  USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4575
4576       --  N_Use_Package_Clause
4577       --  Sloc points to USE
4578       --  Names (List2)
4579       --  Next_Use_Clause (Node3-Sem)
4580       --  Hidden_By_Use_Clause (Elist4-Sem)
4581
4582       --------------------------
4583       -- 8.4  Use Type Clause --
4584       --------------------------
4585
4586       --  USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4587
4588       --  Note: use type clause is not permitted in Ada 83 mode
4589
4590       --  N_Use_Type_Clause
4591       --  Sloc points to USE
4592       --  Subtype_Marks (List2)
4593       --  Next_Use_Clause (Node3-Sem)
4594       --  Hidden_By_Use_Clause (Elist4-Sem)
4595
4596       -------------------------------
4597       -- 8.5  Renaming Declaration --
4598       -------------------------------
4599
4600       --  RENAMING_DECLARATION ::=
4601       --    OBJECT_RENAMING_DECLARATION
4602       --  | EXCEPTION_RENAMING_DECLARATION
4603       --  | PACKAGE_RENAMING_DECLARATION
4604       --  | SUBPROGRAM_RENAMING_DECLARATION
4605       --  | GENERIC_RENAMING_DECLARATION
4606
4607       --------------------------------------
4608       -- 8.5  Object Renaming Declaration --
4609       --------------------------------------
4610
4611       --  OBJECT_RENAMING_DECLARATION ::=
4612       --    DEFINING_IDENTIFIER :
4613       --      [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4614       --  | DEFINING_IDENTIFIER :
4615       --      ACCESS_DEFINITION renames object_NAME;
4616
4617       --  Note: Access_Definition is an optional field that gives support to
4618       --  Ada 2005 (AI-230). The parser generates nodes that have either the
4619       --  Subtype_Indication field or else the Access_Definition field.
4620
4621       --  N_Object_Renaming_Declaration
4622       --  Sloc points to first identifier
4623       --  Defining_Identifier (Node1)
4624       --  Null_Exclusion_Present (Flag11) (set to False if not present)
4625       --  Subtype_Mark (Node4) (set to Empty if not present)
4626       --  Access_Definition (Node3) (set to Empty if not present)
4627       --  Name (Node2)
4628       --  Corresponding_Generic_Association (Node5-Sem)
4629
4630       -----------------------------------------
4631       -- 8.5  Exception Renaming Declaration --
4632       -----------------------------------------
4633
4634       --  EXCEPTION_RENAMING_DECLARATION ::=
4635       --    DEFINING_IDENTIFIER : exception renames exception_NAME;
4636
4637       --  N_Exception_Renaming_Declaration
4638       --  Sloc points to first identifier
4639       --  Defining_Identifier (Node1)
4640       --  Name (Node2)
4641
4642       ---------------------------------------
4643       -- 8.5  Package Renaming Declaration --
4644       ---------------------------------------
4645
4646       --  PACKAGE_RENAMING_DECLARATION ::=
4647       --    package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4648
4649       --  N_Package_Renaming_Declaration
4650       --  Sloc points to PACKAGE
4651       --  Defining_Unit_Name (Node1)
4652       --  Name (Node2)
4653       --  Parent_Spec (Node4-Sem)
4654
4655       ------------------------------------------
4656       -- 8.5  Subprogram Renaming Declaration --
4657       ------------------------------------------
4658
4659       --  SUBPROGRAM_RENAMING_DECLARATION ::=
4660       --    SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4661
4662       --  N_Subprogram_Renaming_Declaration
4663       --  Sloc points to RENAMES
4664       --  Specification (Node1)
4665       --  Name (Node2)
4666       --  Parent_Spec (Node4-Sem)
4667       --  Corresponding_Spec (Node5-Sem)
4668       --  Corresponding_Formal_Spec (Node3-Sem)
4669       --  From_Default (Flag6-Sem)
4670
4671       -----------------------------------------
4672       -- 8.5.5  Generic Renaming Declaration --
4673       -----------------------------------------
4674
4675       --  GENERIC_RENAMING_DECLARATION ::=
4676       --    generic package DEFINING_PROGRAM_UNIT_NAME
4677       --      renames generic_package_NAME
4678       --  | generic procedure DEFINING_PROGRAM_UNIT_NAME
4679       --      renames generic_procedure_NAME
4680       --  | generic function DEFINING_PROGRAM_UNIT_NAME
4681       --      renames generic_function_NAME
4682
4683       --  N_Generic_Package_Renaming_Declaration
4684       --  Sloc points to GENERIC
4685       --  Defining_Unit_Name (Node1)
4686       --  Name (Node2)
4687       --  Parent_Spec (Node4-Sem)
4688
4689       --  N_Generic_Procedure_Renaming_Declaration
4690       --  Sloc points to GENERIC
4691       --  Defining_Unit_Name (Node1)
4692       --  Name (Node2)
4693       --  Parent_Spec (Node4-Sem)
4694
4695       --  N_Generic_Function_Renaming_Declaration
4696       --  Sloc points to GENERIC
4697       --  Defining_Unit_Name (Node1)
4698       --  Name (Node2)
4699       --  Parent_Spec (Node4-Sem)
4700
4701       --------------------------------
4702       -- 9.1  Task Type Declaration --
4703       --------------------------------
4704
4705       --  TASK_TYPE_DECLARATION ::=
4706       --    task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4707       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4708
4709       --  N_Task_Type_Declaration
4710       --  Sloc points to TASK
4711       --  Defining_Identifier (Node1)
4712       --  Discriminant_Specifications (List4) (set to No_List if no
4713       --   discriminant part)
4714       --  Interface_List (List2) (set to No_List if none)
4715       --  Task_Definition (Node3) (set to Empty if not present)
4716       --  Corresponding_Body (Node5-Sem)
4717
4718       ----------------------------------
4719       -- 9.1  Single Task Declaration --
4720       ----------------------------------
4721
4722       --  SINGLE_TASK_DECLARATION ::=
4723       --    task DEFINING_IDENTIFIER
4724       --      [is [new INTERFACE_LIST with] TASK_DEFINITION];
4725
4726       --  N_Single_Task_Declaration
4727       --  Sloc points to TASK
4728       --  Defining_Identifier (Node1)
4729       --  Interface_List (List2) (set to No_List if none)
4730       --  Task_Definition (Node3) (set to Empty if not present)
4731
4732       --------------------------
4733       -- 9.1  Task Definition --
4734       --------------------------
4735
4736       --  TASK_DEFINITION ::=
4737       --      {TASK_ITEM}
4738       --    [private
4739       --      {TASK_ITEM}]
4740       --    end [task_IDENTIFIER]
4741
4742       --  Note: as a result of semantic analysis, the list of task items can
4743       --  include implicit type declarations resulting from entry families.
4744
4745       --  N_Task_Definition
4746       --  Sloc points to first token of task definition
4747       --  Visible_Declarations (List2)
4748       --  Private_Declarations (List3) (set to No_List if no private part)
4749       --  End_Label (Node4)
4750       --  Has_Priority_Pragma (Flag6-Sem)
4751       --  Has_Storage_Size_Pragma (Flag5-Sem)
4752       --  Has_Task_Info_Pragma (Flag7-Sem)
4753       --  Has_Task_Name_Pragma (Flag8-Sem)
4754       --  Has_Relative_Deadline_Pragma (Flag9-Sem)
4755
4756       --------------------
4757       -- 9.1  Task Item --
4758       --------------------
4759
4760       --  TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4761
4762       --------------------
4763       -- 9.1  Task Body --
4764       --------------------
4765
4766       --  TASK_BODY ::=
4767       --    task body task_DEFINING_IDENTIFIER is
4768       --      DECLARATIVE_PART
4769       --    begin
4770       --      HANDLED_SEQUENCE_OF_STATEMENTS
4771       --    end [task_IDENTIFIER];
4772
4773       --  Gigi restriction: This node never appears
4774
4775       --  N_Task_Body
4776       --  Sloc points to TASK
4777       --  Defining_Identifier (Node1)
4778       --  Declarations (List2)
4779       --  Handled_Statement_Sequence (Node4)
4780       --  Is_Task_Master (Flag5-Sem)
4781       --  Activation_Chain_Entity (Node3-Sem)
4782       --  Corresponding_Spec (Node5-Sem)
4783       --  Was_Originally_Stub (Flag13-Sem)
4784
4785       -------------------------------------
4786       -- 9.4  Protected Type Declaration --
4787       -------------------------------------
4788
4789       --  PROTECTED_TYPE_DECLARATION ::=
4790       --    protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4791       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4792
4793       --  Note: protected type declarations are not permitted in Ada 83 mode
4794
4795       --  N_Protected_Type_Declaration
4796       --  Sloc points to PROTECTED
4797       --  Defining_Identifier (Node1)
4798       --  Discriminant_Specifications (List4) (set to No_List if no
4799       --   discriminant part)
4800       --  Interface_List (List2) (set to No_List if none)
4801       --  Protected_Definition (Node3)
4802       --  Corresponding_Body (Node5-Sem)
4803
4804       ---------------------------------------
4805       -- 9.4  Single Protected Declaration --
4806       ---------------------------------------
4807
4808       --  SINGLE_PROTECTED_DECLARATION ::=
4809       --    protected DEFINING_IDENTIFIER
4810       --      is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4811
4812       --  Note: single protected declarations are not allowed in Ada 83 mode
4813
4814       --  N_Single_Protected_Declaration
4815       --  Sloc points to PROTECTED
4816       --  Defining_Identifier (Node1)
4817       --  Interface_List (List2) (set to No_List if none)
4818       --  Protected_Definition (Node3)
4819
4820       -------------------------------
4821       -- 9.4  Protected Definition --
4822       -------------------------------
4823
4824       --  PROTECTED_DEFINITION ::=
4825       --      {PROTECTED_OPERATION_DECLARATION}
4826       --    [private
4827       --      {PROTECTED_ELEMENT_DECLARATION}]
4828       --    end [protected_IDENTIFIER]
4829
4830       --  N_Protected_Definition
4831       --  Sloc points to first token of protected definition
4832       --  Visible_Declarations (List2)
4833       --  Private_Declarations (List3) (set to No_List if no private part)
4834       --  End_Label (Node4)
4835       --  Has_Priority_Pragma (Flag6-Sem)
4836
4837       ------------------------------------------
4838       -- 9.4  Protected Operation Declaration --
4839       ------------------------------------------
4840
4841       --  PROTECTED_OPERATION_DECLARATION ::=
4842       --    SUBPROGRAM_DECLARATION
4843       --  | ENTRY_DECLARATION
4844       --  | REPRESENTATION_CLAUSE
4845
4846       ----------------------------------------
4847       -- 9.4  Protected Element Declaration --
4848       ----------------------------------------
4849
4850       --  PROTECTED_ELEMENT_DECLARATION ::=
4851       --    PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4852
4853       -------------------------
4854       -- 9.4  Protected Body --
4855       -------------------------
4856
4857       --  PROTECTED_BODY ::=
4858       --    protected body DEFINING_IDENTIFIER is
4859       --      {PROTECTED_OPERATION_ITEM}
4860       --    end [protected_IDENTIFIER];
4861
4862       --  Note: protected bodies are not allowed in Ada 83 mode
4863
4864       --  Gigi restriction: This node never appears
4865
4866       --  N_Protected_Body
4867       --  Sloc points to PROTECTED
4868       --  Defining_Identifier (Node1)
4869       --  Declarations (List2) protected operation items (and pragmas)
4870       --  End_Label (Node4)
4871       --  Corresponding_Spec (Node5-Sem)
4872       --  Was_Originally_Stub (Flag13-Sem)
4873
4874       -----------------------------------
4875       -- 9.4  Protected Operation Item --
4876       -----------------------------------
4877
4878       --  PROTECTED_OPERATION_ITEM ::=
4879       --    SUBPROGRAM_DECLARATION
4880       --  | SUBPROGRAM_BODY
4881       --  | ENTRY_BODY
4882       --  | REPRESENTATION_CLAUSE
4883
4884       ------------------------------
4885       -- 9.5.2  Entry Declaration --
4886       ------------------------------
4887
4888       --  ENTRY_DECLARATION ::=
4889       --    [[not] overriding]
4890       --    entry DEFINING_IDENTIFIER
4891       --      [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4892
4893       --  N_Entry_Declaration
4894       --  Sloc points to ENTRY
4895       --  Defining_Identifier (Node1)
4896       --  Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4897       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4898       --  Corresponding_Body (Node5-Sem)
4899       --  Must_Override (Flag14) set if overriding indicator present
4900       --  Must_Not_Override (Flag15) set if not_overriding indicator present
4901
4902       --  Note: overriding indicator is an Ada 2005 feature
4903
4904       -----------------------------
4905       -- 9.5.2  Accept statement --
4906       -----------------------------
4907
4908       --  ACCEPT_STATEMENT ::=
4909       --    accept entry_DIRECT_NAME
4910       --      [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4911       --        HANDLED_SEQUENCE_OF_STATEMENTS
4912       --    end [entry_IDENTIFIER]];
4913
4914       --  Gigi restriction: This node never appears
4915
4916       --  Note: there are no explicit declarations allowed in an accept
4917       --  statement. However, the implicit declarations for any statement
4918       --  identifiers (labels and block/loop identifiers) are declarations
4919       --  that belong logically to the accept statement, and that is why
4920       --  there is a Declarations field in this node.
4921
4922       --  N_Accept_Statement
4923       --  Sloc points to ACCEPT
4924       --  Entry_Direct_Name (Node1)
4925       --  Entry_Index (Node5) (set to Empty if not present)
4926       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4927       --  Handled_Statement_Sequence (Node4)
4928       --  Declarations (List2) (set to No_List if no declarations)
4929
4930       ------------------------
4931       -- 9.5.2  Entry Index --
4932       ------------------------
4933
4934       --  ENTRY_INDEX ::= EXPRESSION
4935
4936       -----------------------
4937       -- 9.5.2  Entry Body --
4938       -----------------------
4939
4940       --  ENTRY_BODY ::=
4941       --    entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4942       --      DECLARATIVE_PART
4943       --    begin
4944       --      HANDLED_SEQUENCE_OF_STATEMENTS
4945       --    end [entry_IDENTIFIER];
4946
4947       --  ENTRY_BARRIER ::= when CONDITION
4948
4949       --  Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4950       --  the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4951       --  too full (it would otherwise have too many fields)
4952
4953       --  Gigi restriction: This node never appears
4954
4955       --  N_Entry_Body
4956       --  Sloc points to ENTRY
4957       --  Defining_Identifier (Node1)
4958       --  Entry_Body_Formal_Part (Node5)
4959       --  Declarations (List2)
4960       --  Handled_Statement_Sequence (Node4)
4961       --  Activation_Chain_Entity (Node3-Sem)
4962
4963       -----------------------------------
4964       -- 9.5.2  Entry Body Formal Part --
4965       -----------------------------------
4966
4967       --  ENTRY_BODY_FORMAL_PART ::=
4968       --    [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4969
4970       --  Note that an entry body formal part node is present even if it is
4971       --  empty. This reflects the grammar, in which it is the components of
4972       --  the entry body formal part that are optional, not the entry body
4973       --  formal part itself. Also this means that the barrier condition
4974       --  always has somewhere to be stored.
4975
4976       --  Gigi restriction: This node never appears
4977
4978       --  N_Entry_Body_Formal_Part
4979       --  Sloc points to first token
4980       --  Entry_Index_Specification (Node4) (set to Empty if not present)
4981       --  Parameter_Specifications (List3) (set to No_List if no formal part)
4982       --  Condition (Node1) from entry barrier of entry body
4983
4984       --------------------------
4985       -- 9.5.2  Entry Barrier --
4986       --------------------------
4987
4988       --  ENTRY_BARRIER ::= when CONDITION
4989
4990       --------------------------------------
4991       -- 9.5.2  Entry Index Specification --
4992       --------------------------------------
4993
4994       --  ENTRY_INDEX_SPECIFICATION ::=
4995       --    for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4996
4997       --  Gigi restriction: This node never appears
4998
4999       --  N_Entry_Index_Specification
5000       --  Sloc points to FOR
5001       --  Defining_Identifier (Node1)
5002       --  Discrete_Subtype_Definition (Node4)
5003
5004       ---------------------------------
5005       -- 9.5.3  Entry Call Statement --
5006       ---------------------------------
5007
5008       --  ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5009
5010       --  The parser may generate a procedure call for this construct. The
5011       --  semantic pass must correct this misidentification where needed.
5012
5013       --  Gigi restriction: This node never appears
5014
5015       --  N_Entry_Call_Statement
5016       --  Sloc points to first token of name
5017       --  Name (Node2)
5018       --  Parameter_Associations (List3) (set to No_List if no
5019       --   actual parameter part)
5020       --  First_Named_Actual (Node4-Sem)
5021
5022       ------------------------------
5023       -- 9.5.4  Requeue Statement --
5024       ------------------------------
5025
5026       --  REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5027
5028       --  Note: requeue statements are not permitted in Ada 83 mode
5029
5030       --  Gigi restriction: This node never appears
5031
5032       --  N_Requeue_Statement
5033       --  Sloc points to REQUEUE
5034       --  Name (Node2)
5035       --  Abort_Present (Flag15)
5036
5037       --------------------------
5038       -- 9.6  Delay Statement --
5039       --------------------------
5040
5041       --  DELAY_STATEMENT ::=
5042       --    DELAY_UNTIL_STATEMENT
5043       --  | DELAY_RELATIVE_STATEMENT
5044
5045       --------------------------------
5046       -- 9.6  Delay Until Statement --
5047       --------------------------------
5048
5049       --  DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5050
5051       --  Note: delay until statements are not permitted in Ada 83 mode
5052
5053       --  Gigi restriction: This node never appears
5054
5055       --  N_Delay_Until_Statement
5056       --  Sloc points to DELAY
5057       --  Expression (Node3)
5058
5059       -----------------------------------
5060       -- 9.6  Delay Relative Statement --
5061       -----------------------------------
5062
5063       --  DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5064
5065       --  Gigi restriction: This node never appears
5066
5067       --  N_Delay_Relative_Statement
5068       --  Sloc points to DELAY
5069       --  Expression (Node3)
5070
5071       ---------------------------
5072       -- 9.7  Select Statement --
5073       ---------------------------
5074
5075       --  SELECT_STATEMENT ::=
5076       --    SELECTIVE_ACCEPT
5077       --  | TIMED_ENTRY_CALL
5078       --  | CONDITIONAL_ENTRY_CALL
5079       --  | ASYNCHRONOUS_SELECT
5080
5081       -----------------------------
5082       -- 9.7.1  Selective Accept --
5083       -----------------------------
5084
5085       --  SELECTIVE_ACCEPT ::=
5086       --    select
5087       --      [GUARD]
5088       --        SELECT_ALTERNATIVE
5089       --    {or
5090       --      [GUARD]
5091       --        SELECT_ALTERNATIVE}
5092       --    [else
5093       --      SEQUENCE_OF_STATEMENTS]
5094       --    end select;
5095
5096       --  Gigi restriction: This node never appears
5097
5098       --  Note: the guard expression, if present, appears in the node for
5099       --  the select alternative.
5100
5101       --  N_Selective_Accept
5102       --  Sloc points to SELECT
5103       --  Select_Alternatives (List1)
5104       --  Else_Statements (List4) (set to No_List if no else part)
5105
5106       ------------------
5107       -- 9.7.1  Guard --
5108       ------------------
5109
5110       --  GUARD ::= when CONDITION =>
5111
5112       --  As noted above, the CONDITION that is part of a GUARD is included
5113       --  in the node for the select alternative for convenience.
5114
5115       -------------------------------
5116       -- 9.7.1  Select Alternative --
5117       -------------------------------
5118
5119       --  SELECT_ALTERNATIVE ::=
5120       --    ACCEPT_ALTERNATIVE
5121       --  | DELAY_ALTERNATIVE
5122       --  | TERMINATE_ALTERNATIVE
5123
5124       -------------------------------
5125       -- 9.7.1  Accept Alternative --
5126       -------------------------------
5127
5128       --  ACCEPT_ALTERNATIVE ::=
5129       --    ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5130
5131       --  Gigi restriction: This node never appears
5132
5133       --  N_Accept_Alternative
5134       --  Sloc points to ACCEPT
5135       --  Accept_Statement (Node2)
5136       --  Condition (Node1) from the guard (set to Empty if no guard present)
5137       --  Statements (List3) (set to Empty_List if no statements)
5138       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5139       --  Accept_Handler_Records (List5-Sem)
5140
5141       ------------------------------
5142       -- 9.7.1  Delay Alternative --
5143       ------------------------------
5144
5145       --  DELAY_ALTERNATIVE ::=
5146       --    DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5147
5148       --  Gigi restriction: This node never appears
5149
5150       --  N_Delay_Alternative
5151       --  Sloc points to DELAY
5152       --  Delay_Statement (Node2)
5153       --  Condition (Node1) from the guard (set to Empty if no guard present)
5154       --  Statements (List3) (set to Empty_List if no statements)
5155       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5156
5157       ----------------------------------
5158       -- 9.7.1  Terminate Alternative --
5159       ----------------------------------
5160
5161       --  TERMINATE_ALTERNATIVE ::= terminate;
5162
5163       --  Gigi restriction: This node never appears
5164
5165       --  N_Terminate_Alternative
5166       --  Sloc points to TERMINATE
5167       --  Condition (Node1) from the guard (set to Empty if no guard present)
5168       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5169       --  Pragmas_After (List5) pragmas after alt (set to No_List if none)
5170
5171       -----------------------------
5172       -- 9.7.2  Timed Entry Call --
5173       -----------------------------
5174
5175       --  TIMED_ENTRY_CALL ::=
5176       --    select
5177       --      ENTRY_CALL_ALTERNATIVE
5178       --    or
5179       --      DELAY_ALTERNATIVE
5180       --    end select;
5181
5182       --  Gigi restriction: This node never appears
5183
5184       --  N_Timed_Entry_Call
5185       --  Sloc points to SELECT
5186       --  Entry_Call_Alternative (Node1)
5187       --  Delay_Alternative (Node4)
5188
5189       -----------------------------------
5190       -- 9.7.2  Entry Call Alternative --
5191       -----------------------------------
5192
5193       --  ENTRY_CALL_ALTERNATIVE ::=
5194       --    PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5195
5196       --  PROCEDURE_OR_ENTRY_CALL ::=
5197       --    PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5198
5199       --  Gigi restriction: This node never appears
5200
5201       --  N_Entry_Call_Alternative
5202       --  Sloc points to first token of entry call statement
5203       --  Entry_Call_Statement (Node1)
5204       --  Statements (List3) (set to Empty_List if no statements)
5205       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5206
5207       -----------------------------------
5208       -- 9.7.3  Conditional Entry Call --
5209       -----------------------------------
5210
5211       --  CONDITIONAL_ENTRY_CALL ::=
5212       --    select
5213       --      ENTRY_CALL_ALTERNATIVE
5214       --    else
5215       --      SEQUENCE_OF_STATEMENTS
5216       --    end select;
5217
5218       --  Gigi restriction: This node never appears
5219
5220       --  N_Conditional_Entry_Call
5221       --  Sloc points to SELECT
5222       --  Entry_Call_Alternative (Node1)
5223       --  Else_Statements (List4)
5224
5225       --------------------------------
5226       -- 9.7.4  Asynchronous Select --
5227       --------------------------------
5228
5229       --  ASYNCHRONOUS_SELECT ::=
5230       --    select
5231       --      TRIGGERING_ALTERNATIVE
5232       --    then abort
5233       --      ABORTABLE_PART
5234       --    end select;
5235
5236       --  Note: asynchronous select is not permitted in Ada 83 mode
5237
5238       --  Gigi restriction: This node never appears
5239
5240       --  N_Asynchronous_Select
5241       --  Sloc points to SELECT
5242       --  Triggering_Alternative (Node1)
5243       --  Abortable_Part (Node2)
5244
5245       -----------------------------------
5246       -- 9.7.4  Triggering Alternative --
5247       -----------------------------------
5248
5249       --  TRIGGERING_ALTERNATIVE ::=
5250       --    TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5251
5252       --  Gigi restriction: This node never appears
5253
5254       --  N_Triggering_Alternative
5255       --  Sloc points to first token of triggering statement
5256       --  Triggering_Statement (Node1)
5257       --  Statements (List3) (set to Empty_List if no statements)
5258       --  Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5259
5260       ---------------------------------
5261       -- 9.7.4  Triggering Statement --
5262       ---------------------------------
5263
5264       --  TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5265
5266       ---------------------------
5267       -- 9.7.4  Abortable Part --
5268       ---------------------------
5269
5270       --  ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5271
5272       --  Gigi restriction: This node never appears
5273
5274       --  N_Abortable_Part
5275       --  Sloc points to ABORT
5276       --  Statements (List3)
5277
5278       --------------------------
5279       -- 9.8  Abort Statement --
5280       --------------------------
5281
5282       --  ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5283
5284       --  Gigi restriction: This node never appears
5285
5286       --  N_Abort_Statement
5287       --  Sloc points to ABORT
5288       --  Names (List2)
5289
5290       -------------------------
5291       -- 10.1.1  Compilation --
5292       -------------------------
5293
5294       --  COMPILATION ::= {COMPILATION_UNIT}
5295
5296       --  There is no explicit node in the tree for a compilation, since in
5297       --  general the compiler is processing only a single compilation unit
5298       --  at a time. It is possible to parse multiple units in syntax check
5299       --  only mode, but they the trees are discarded in any case.
5300
5301       ------------------------------
5302       -- 10.1.1  Compilation Unit --
5303       ------------------------------
5304
5305       --  COMPILATION_UNIT ::=
5306       --    CONTEXT_CLAUSE LIBRARY_ITEM
5307       --  | CONTEXT_CLAUSE SUBUNIT
5308
5309       --  The N_Compilation_Unit node itself represents the above syntax.
5310       --  However, there are two additional items not reflected in the above
5311       --  syntax. First we have the global declarations that are added by the
5312       --  code generator. These are outer level declarations (so they cannot
5313       --  be represented as being inside the units). An example is the wrapper
5314       --  subprograms that are created to do ABE checking. As always a list of
5315       --  declarations can contain actions as well (i.e. statements), and such
5316       --  statements are executed as part of the elaboration of the unit. Note
5317       --  that all such declarations are elaborated before the library unit.
5318
5319       --  Similarly, certain actions need to be elaborated at the completion
5320       --  of elaboration of the library unit (notably the statement that sets
5321       --  the Boolean flag indicating that elaboration is complete).
5322
5323       --  The third item not reflected in the syntax is pragmas that appear
5324       --  after the compilation unit. As always pragmas are a problem since
5325       --  they are not part of the formal syntax, but can be stuck into the
5326       --  source following a set of ad hoc rules, and we have to find an ad
5327       --  hoc way of sticking them into the tree. For pragmas that appear
5328       --  before the library unit, we just consider them to be part of the
5329       --  context clause, and pragmas can appear in the Context_Items list
5330       --  of the compilation unit. However, pragmas can also appear after
5331       --  the library item.
5332
5333       --  To deal with all these problems, we create an auxiliary node for
5334       --  a compilation unit, referenced from the N_Compilation_Unit node
5335       --  that contains these three items.
5336
5337       --  N_Compilation_Unit
5338       --  Sloc points to first token of defining unit name
5339       --  Library_Unit (Node4-Sem) corresponding/parent spec/body
5340       --  Context_Items (List1) context items and pragmas preceding unit
5341       --  Private_Present (Flag15) set if library unit has private keyword
5342       --  Unit (Node2) library item or subunit
5343       --  Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5344       --  Has_No_Elaboration_Code (Flag17-Sem)
5345       --  Body_Required (Flag13-Sem) set for spec if body is required
5346       --  Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5347       --  First_Inlined_Subprogram (Node3-Sem)
5348
5349       --  N_Compilation_Unit_Aux
5350       --  Sloc is a copy of the Sloc from the N_Compilation_Unit node
5351       --  Declarations (List2) (set to No_List if no global declarations)
5352       --  Actions (List1) (set to No_List if no actions)
5353       --  Pragmas_After (List5) pragmas after unit (set to No_List if none)
5354       --  Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5355
5356       --------------------------
5357       -- 10.1.1  Library Item --
5358       --------------------------
5359
5360       --  LIBRARY_ITEM ::=
5361       --    [private] LIBRARY_UNIT_DECLARATION
5362       --  | LIBRARY_UNIT_BODY
5363       --  | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5364
5365       --  Note: PRIVATE is not allowed in Ada 83 mode
5366
5367       --  There is no explicit node in the tree for library item, instead
5368       --  the declaration or body, and the flag for private if present,
5369       --  appear in the N_Compilation_Unit clause.
5370
5371       --------------------------------------
5372       -- 10.1.1  Library Unit Declaration --
5373       --------------------------------------
5374
5375       --  LIBRARY_UNIT_DECLARATION ::=
5376       --    SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5377       --  | GENERIC_DECLARATION    | GENERIC_INSTANTIATION
5378
5379       -----------------------------------------------
5380       -- 10.1.1  Library Unit Renaming Declaration --
5381       -----------------------------------------------
5382
5383       --  LIBRARY_UNIT_RENAMING_DECLARATION ::=
5384       --    PACKAGE_RENAMING_DECLARATION
5385       --  | GENERIC_RENAMING_DECLARATION
5386       --  | SUBPROGRAM_RENAMING_DECLARATION
5387
5388       -------------------------------
5389       -- 10.1.1  Library unit body --
5390       -------------------------------
5391
5392       --  LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5393
5394       ------------------------------
5395       -- 10.1.1  Parent Unit Name --
5396       ------------------------------
5397
5398       --  PARENT_UNIT_NAME ::= NAME
5399
5400       ----------------------------
5401       -- 10.1.2  Context clause --
5402       ----------------------------
5403
5404       --  CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5405
5406       --  The context clause can include pragmas, and any pragmas that appear
5407       --  before the context clause proper (i.e. all configuration pragmas,
5408       --  also appear at the front of this list).
5409
5410       --------------------------
5411       -- 10.1.2  Context_Item --
5412       --------------------------
5413
5414       --  CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE  | WITH_TYPE_CLAUSE
5415
5416       -------------------------
5417       -- 10.1.2  With clause --
5418       -------------------------
5419
5420       --  WITH_CLAUSE ::=
5421       --    with library_unit_NAME {,library_unit_NAME};
5422
5423       --  A separate With clause is built for each name, so that we have
5424       --  a Corresponding_Spec field for each with'ed spec. The flags
5425       --  First_Name and Last_Name are used to reconstruct the exact
5426       --  source form. When a list of names appears in one with clause,
5427       --  the first name in the list has First_Name set, and the last
5428       --  has Last_Name set. If the with clause has only one name, then
5429       --  both of the flags First_Name and Last_Name are set in this name.
5430
5431       --  Note: in the case of implicit with's that are installed by the
5432       --  Rtsfind routine, Implicit_With is set, and the Sloc is typically
5433       --  set to Standard_Location, but it is incorrect to test the Sloc
5434       --  to find out if a with clause is implicit, test the flag instead.
5435
5436       --  N_With_Clause
5437       --  Sloc points to first token of library unit name
5438       --  Name (Node2)
5439       --  Library_Unit (Node4-Sem)
5440       --  Corresponding_Spec (Node5-Sem)
5441       --  First_Name (Flag5) (set to True if first name or only one name)
5442       --  Last_Name (Flag6) (set to True if last name or only one name)
5443       --  Context_Installed (Flag13-Sem)
5444       --  Elaborate_Present (Flag4-Sem)
5445       --  Elaborate_All_Present (Flag14-Sem)
5446       --  Elaborate_All_Desirable (Flag9-Sem)
5447       --  Elaborate_Desirable (Flag11-Sem)
5448       --  Private_Present (Flag15) set if with_clause has private keyword
5449       --  Implicit_With (Flag16-Sem)
5450       --  Limited_Present (Flag17)  set if LIMITED is present
5451       --  Limited_View_Installed (Flag18-Sem)
5452       --  Unreferenced_In_Spec (Flag7-Sem)
5453       --  No_Entities_Ref_In_Spec (Flag8-Sem)
5454
5455       --  Note: Limited_Present and Limited_View_Installed give support to
5456       --        Ada 2005 (AI-50217).
5457       --  Similarly, Private_Present gives support to AI-50262.
5458
5459       ----------------------
5460       -- With_Type clause --
5461       ----------------------
5462
5463       --  This is a GNAT extension, used to implement mutually recursive
5464       --  types declared in different packages.
5465       --  Note: this is now obsolete. The functionality of this construct
5466       --  is now implemented by the Ada 2005 Limited_with_Clause.
5467
5468       ---------------------
5469       -- 10.2  Body stub --
5470       ---------------------
5471
5472       --  BODY_STUB ::=
5473       --    SUBPROGRAM_BODY_STUB
5474       --  | PACKAGE_BODY_STUB
5475       --  | TASK_BODY_STUB
5476       --  | PROTECTED_BODY_STUB
5477
5478       ----------------------------------
5479       -- 10.1.3  Subprogram Body Stub --
5480       ----------------------------------
5481
5482       --  SUBPROGRAM_BODY_STUB ::=
5483       --    SUBPROGRAM_SPECIFICATION is separate;
5484
5485       --  N_Subprogram_Body_Stub
5486       --  Sloc points to FUNCTION or PROCEDURE
5487       --  Specification (Node1)
5488       --  Library_Unit (Node4-Sem) points to the subunit
5489       --  Corresponding_Body (Node5-Sem)
5490
5491       -------------------------------
5492       -- 10.1.3  Package Body Stub --
5493       -------------------------------
5494
5495       --  PACKAGE_BODY_STUB ::=
5496       --    package body DEFINING_IDENTIFIER is separate;
5497
5498       --  N_Package_Body_Stub
5499       --  Sloc points to PACKAGE
5500       --  Defining_Identifier (Node1)
5501       --  Library_Unit (Node4-Sem) points to the subunit
5502       --  Corresponding_Body (Node5-Sem)
5503
5504       ----------------------------
5505       -- 10.1.3  Task Body Stub --
5506       ----------------------------
5507
5508       --  TASK_BODY_STUB ::=
5509       --    task body DEFINING_IDENTIFIER is separate;
5510
5511       --  N_Task_Body_Stub
5512       --  Sloc points to TASK
5513       --  Defining_Identifier (Node1)
5514       --  Library_Unit (Node4-Sem) points to the subunit
5515       --  Corresponding_Body (Node5-Sem)
5516
5517       ---------------------------------
5518       -- 10.1.3  Protected Body Stub --
5519       ---------------------------------
5520
5521       --  PROTECTED_BODY_STUB ::=
5522       --    protected body DEFINING_IDENTIFIER is separate;
5523
5524       --  Note: protected body stubs are not allowed in Ada 83 mode
5525
5526       --  N_Protected_Body_Stub
5527       --  Sloc points to PROTECTED
5528       --  Defining_Identifier (Node1)
5529       --  Library_Unit (Node4-Sem) points to the subunit
5530       --  Corresponding_Body (Node5-Sem)
5531
5532       ---------------------
5533       -- 10.1.3  Subunit --
5534       ---------------------
5535
5536       --  SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5537
5538       --  N_Subunit
5539       --  Sloc points to SEPARATE
5540       --  Name (Node2) is the name of the parent unit
5541       --  Proper_Body (Node1) is the subunit body
5542       --  Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5543
5544       ---------------------------------
5545       -- 11.1  Exception Declaration --
5546       ---------------------------------
5547
5548       --  EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5549
5550       --  For consistency with object declarations etc., the parser converts
5551       --  the case of multiple identifiers being declared to a series of
5552       --  declarations in which the expression is copied, using the More_Ids
5553       --  and Prev_Ids flags to remember the source form as described in the
5554       --  section on "Handling of Defining Identifier Lists".
5555
5556       --  N_Exception_Declaration
5557       --  Sloc points to EXCEPTION
5558       --  Defining_Identifier (Node1)
5559       --  Expression (Node3-Sem)
5560       --  Renaming_Exception (Node2-Sem)
5561       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5562       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5563
5564       ------------------------------------------
5565       -- 11.2  Handled Sequence Of Statements --
5566       ------------------------------------------
5567
5568       --  HANDLED_SEQUENCE_OF_STATEMENTS ::=
5569       --      SEQUENCE_OF_STATEMENTS
5570       --    [exception
5571       --      EXCEPTION_HANDLER
5572       --      {EXCEPTION_HANDLER}]
5573       --    [at end
5574       --      cleanup_procedure_call (param, param, param, ...);]
5575
5576       --  The AT END phrase is a GNAT extension to provide for cleanups. It is
5577       --  used only internally currently, but is considered to be syntactic.
5578       --  At the moment, the only cleanup action allowed is a single call to
5579       --  a parameterless procedure, and the Identifier field of the node is
5580       --  the procedure to be called. Also there is a current restriction
5581       --  that exception handles and a cleanup cannot be present in the same
5582       --  frame, so at least one of Exception_Handlers or the Identifier must
5583       --  be missing.
5584
5585       --  Actually, more accurately, this restriction applies to the original
5586       --  source program. In the expanded tree, if the At_End_Proc field is
5587       --  present, then there will also be an exception handler of the form:
5588
5589       --     when all others =>
5590       --        cleanup;
5591       --        raise;
5592
5593       --  where cleanup is the procedure to be generated. The reason we do
5594       --  this is so that the front end can handle the necessary entries in
5595       --  the exception tables, and other exception handler actions required
5596       --  as part of the normal handling for exception handlers.
5597
5598       --  The AT END cleanup handler protects only the sequence of statements
5599       --  (not the associated declarations of the parent), just like exception
5600       --  handlers. The big difference is that the cleanup procedure is called
5601       --  on either a normal or an abnormal exit from the statement sequence.
5602
5603       --  Note: the list of Exception_Handlers can contain pragmas as well
5604       --  as actual handlers. In practice these pragmas can only occur at
5605       --  the start of the list, since any pragmas occurring later on will
5606       --  be included in the statement list of the corresponding handler.
5607
5608       --  Note: although in the Ada syntax, the sequence of statements in
5609       --  a handled sequence of statements can only contain statements, we
5610       --  allow free mixing of declarations and statements in the resulting
5611       --  expanded tree. This is for example used to deal with the case of
5612       --  a cleanup procedure that must handle declarations as well as the
5613       --  statements of a block.
5614
5615       --  N_Handled_Sequence_Of_Statements
5616       --  Sloc points to first token of first statement
5617       --  Statements (List3)
5618       --  End_Label (Node4) (set to Empty if expander generated)
5619       --  Exception_Handlers (List5) (set to No_List if none present)
5620       --  At_End_Proc (Node1) (set to Empty if no clean up procedure)
5621       --  First_Real_Statement (Node2-Sem)
5622       --  Zero_Cost_Handling (Flag5-Sem)
5623
5624       --  Note: the parent always contains a Declarations field which contains
5625       --  declarations associated with the handled sequence of statements. This
5626       --  is true even in the case of an accept statement (see description of
5627       --  the N_Accept_Statement node).
5628
5629       --  End_Label refers to the containing construct
5630
5631       -----------------------------
5632       -- 11.2  Exception Handler --
5633       -----------------------------
5634
5635       --  EXCEPTION_HANDLER ::=
5636       --    when [CHOICE_PARAMETER_SPECIFICATION :]
5637       --      EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5638       --        SEQUENCE_OF_STATEMENTS
5639
5640       --  Note: choice parameter specification is not allowed in Ada 83 mode
5641
5642       --  N_Exception_Handler
5643       --  Sloc points to WHEN
5644       --  Choice_Parameter (Node2) (set to Empty if not present)
5645       --  Exception_Choices (List4)
5646       --  Statements (List3)
5647       --  Exception_Label (Node5-Sem) (set to Empty of not present)
5648       --  Zero_Cost_Handling (Flag5-Sem)
5649       --  Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5650       --  Local_Raise_Not_OK (Flag7-Sem)
5651       --  Has_Local_Raise (Flag8-Sem)
5652
5653       ------------------------------------------
5654       -- 11.2  Choice parameter specification --
5655       ------------------------------------------
5656
5657       --  CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5658
5659       ----------------------------
5660       -- 11.2  Exception Choice --
5661       ----------------------------
5662
5663       --  EXCEPTION_CHOICE ::= exception_NAME | others
5664
5665       --  Except in the case of OTHERS, no explicit node appears in the tree
5666       --  for exception choice. Instead the exception name appears directly.
5667       --  An OTHERS choice is represented by a N_Others_Choice node (see
5668       --  section 3.8.1.
5669
5670       --  Note: for the exception choice created for an at end handler, the
5671       --  exception choice is an N_Others_Choice node with All_Others set.
5672
5673       ---------------------------
5674       -- 11.3  Raise Statement --
5675       ---------------------------
5676
5677       --  RAISE_STATEMENT ::= raise [exception_NAME];
5678
5679       --  In Ada 2005, we have
5680
5681       --  RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5682
5683       --  N_Raise_Statement
5684       --  Sloc points to RAISE
5685       --  Name (Node2) (set to Empty if no exception name present)
5686       --  Expression (Node3) (set to Empty if no expression present)
5687       --  From_At_End (Flag4-Sem)
5688
5689       -------------------------------
5690       -- 12.1  Generic Declaration --
5691       -------------------------------
5692
5693       --  GENERIC_DECLARATION ::=
5694       --    GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5695
5696       ------------------------------------------
5697       -- 12.1  Generic Subprogram Declaration --
5698       ------------------------------------------
5699
5700       --  GENERIC_SUBPROGRAM_DECLARATION ::=
5701       --    GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5702
5703       --  Note: Generic_Formal_Declarations can include pragmas
5704
5705       --  N_Generic_Subprogram_Declaration
5706       --  Sloc points to GENERIC
5707       --  Specification (Node1) subprogram specification
5708       --  Corresponding_Body (Node5-Sem)
5709       --  Generic_Formal_Declarations (List2) from generic formal part
5710       --  Parent_Spec (Node4-Sem)
5711
5712       ---------------------------------------
5713       -- 12.1  Generic Package Declaration --
5714       ---------------------------------------
5715
5716       --  GENERIC_PACKAGE_DECLARATION ::=
5717       --    GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5718
5719       --  Note: when we do generics right, the Activation_Chain_Entity entry
5720       --  for this node can be removed (since the expander won't see generic
5721       --  units any more)???.
5722
5723       --  Note: Generic_Formal_Declarations can include pragmas
5724
5725       --  N_Generic_Package_Declaration
5726       --  Sloc points to GENERIC
5727       --  Specification (Node1) package specification
5728       --  Corresponding_Body (Node5-Sem)
5729       --  Generic_Formal_Declarations (List2) from generic formal part
5730       --  Parent_Spec (Node4-Sem)
5731       --  Activation_Chain_Entity (Node3-Sem)
5732
5733       -------------------------------
5734       -- 12.1  Generic Formal Part --
5735       -------------------------------
5736
5737       --  GENERIC_FORMAL_PART ::=
5738       --    generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5739
5740       ------------------------------------------------
5741       -- 12.1  Generic Formal Parameter Declaration --
5742       ------------------------------------------------
5743
5744       --  GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5745       --    FORMAL_OBJECT_DECLARATION
5746       --  | FORMAL_TYPE_DECLARATION
5747       --  | FORMAL_SUBPROGRAM_DECLARATION
5748       --  | FORMAL_PACKAGE_DECLARATION
5749
5750       ---------------------------------
5751       -- 12.3  Generic Instantiation --
5752       ---------------------------------
5753
5754       --  GENERIC_INSTANTIATION ::=
5755       --    package DEFINING_PROGRAM_UNIT_NAME is
5756       --      new generic_package_NAME [GENERIC_ACTUAL_PART];
5757       --  | [[not] overriding]
5758       --    procedure DEFINING_PROGRAM_UNIT_NAME is
5759       --      new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5760       --  | [[not] overriding]
5761       --    function DEFINING_DESIGNATOR is
5762       --      new generic_function_NAME [GENERIC_ACTUAL_PART];
5763
5764       --  N_Package_Instantiation
5765       --  Sloc points to PACKAGE
5766       --  Defining_Unit_Name (Node1)
5767       --  Name (Node2)
5768       --  Generic_Associations (List3) (set to No_List if no
5769       --   generic actual part)
5770       --  Parent_Spec (Node4-Sem)
5771       --  Instance_Spec (Node5-Sem)
5772       --  ABE_Is_Certain (Flag18-Sem)
5773
5774       --  N_Procedure_Instantiation
5775       --  Sloc points to PROCEDURE
5776       --  Defining_Unit_Name (Node1)
5777       --  Name (Node2)
5778       --  Parent_Spec (Node4-Sem)
5779       --  Generic_Associations (List3) (set to No_List if no
5780       --   generic actual part)
5781       --  Instance_Spec (Node5-Sem)
5782       --  Must_Override (Flag14) set if overriding indicator present
5783       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5784       --  ABE_Is_Certain (Flag18-Sem)
5785
5786       --  N_Function_Instantiation
5787       --  Sloc points to FUNCTION
5788       --  Defining_Unit_Name (Node1)
5789       --  Name (Node2)
5790       --  Generic_Associations (List3) (set to No_List if no
5791       --   generic actual part)
5792       --  Parent_Spec (Node4-Sem)
5793       --  Instance_Spec (Node5-Sem)
5794       --  Must_Override (Flag14) set if overriding indicator present
5795       --  Must_Not_Override (Flag15) set if not_overriding indicator present
5796       --  ABE_Is_Certain (Flag18-Sem)
5797
5798       --  Note: overriding indicator is an Ada 2005 feature
5799
5800       -------------------------------
5801       -- 12.3  Generic Actual Part --
5802       -------------------------------
5803
5804       --  GENERIC_ACTUAL_PART ::=
5805       --    (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5806
5807       -------------------------------
5808       -- 12.3  Generic Association --
5809       -------------------------------
5810
5811       --  GENERIC_ASSOCIATION ::=
5812       --    [generic_formal_parameter_SELECTOR_NAME =>]
5813
5814       --  Note: unlike the procedure call case, a generic association node
5815       --  is generated for every association, even if no formal parameter
5816       --  selector name is present. In this case the parser will leave the
5817       --  Selector_Name field set to Empty, to be filled in later by the
5818       --  semantic pass.
5819
5820       --  In Ada 2005, a formal may be associated with a box, if the
5821       --  association is part of the list of actuals for a formal package.
5822       --  If the association is given by  OTHERS => <>, the association is
5823       --  an N_Others_Choice.
5824
5825       --  N_Generic_Association
5826       --  Sloc points to first token of generic association
5827       --  Selector_Name (Node2) (set to Empty if no formal
5828       --   parameter selector name)
5829       --  Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5830       --  Box_Present (Flag15) (for formal_package associations with a box)
5831
5832       ---------------------------------------------
5833       -- 12.3  Explicit Generic Actual Parameter --
5834       ---------------------------------------------
5835
5836       --  EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5837       --    EXPRESSION      | variable_NAME   | subprogram_NAME
5838       --  | entry_NAME      | SUBTYPE_MARK    | package_instance_NAME
5839
5840       -------------------------------------
5841       -- 12.4  Formal Object Declaration --
5842       -------------------------------------
5843
5844       --  FORMAL_OBJECT_DECLARATION ::=
5845       --    DEFINING_IDENTIFIER_LIST :
5846       --      MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5847       --  | DEFINING_IDENTIFIER_LIST :
5848       --      MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5849
5850       --  Although the syntax allows multiple identifiers in the list, the
5851       --  semantics is as though successive declarations were given with
5852       --  identical type definition and expression components. To simplify
5853       --  semantic processing, the parser represents a multiple declaration
5854       --  case as a sequence of single declarations, using the More_Ids and
5855       --  Prev_Ids flags to preserve the original source form as described
5856       --  in the section on "Handling of Defining Identifier Lists".
5857
5858       --  N_Formal_Object_Declaration
5859       --  Sloc points to first identifier
5860       --  Defining_Identifier (Node1)
5861       --  In_Present (Flag15)
5862       --  Out_Present (Flag17)
5863       --  Null_Exclusion_Present (Flag11) (set to False if not present)
5864       --  Subtype_Mark (Node4) (set to Empty if not present)
5865       --  Access_Definition (Node3) (set to Empty if not present)
5866       --  Default_Expression (Node5) (set to Empty if no default expression)
5867       --  More_Ids (Flag5) (set to False if no more identifiers in list)
5868       --  Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5869
5870       -----------------------------------
5871       -- 12.5  Formal Type Declaration --
5872       -----------------------------------
5873
5874       --  FORMAL_TYPE_DECLARATION ::=
5875       --    type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5876       --      is FORMAL_TYPE_DEFINITION;
5877
5878       --  N_Formal_Type_Declaration
5879       --  Sloc points to TYPE
5880       --  Defining_Identifier (Node1)
5881       --  Formal_Type_Definition (Node3)
5882       --  Discriminant_Specifications (List4) (set to No_List if no
5883       --   discriminant part)
5884       --  Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5885
5886       ----------------------------------
5887       -- 12.5  Formal type definition --
5888       ----------------------------------
5889
5890       --  FORMAL_TYPE_DEFINITION ::=
5891       --    FORMAL_PRIVATE_TYPE_DEFINITION
5892       --  | FORMAL_DERIVED_TYPE_DEFINITION
5893       --  | FORMAL_DISCRETE_TYPE_DEFINITION
5894       --  | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5895       --  | FORMAL_MODULAR_TYPE_DEFINITION
5896       --  | FORMAL_FLOATING_POINT_DEFINITION
5897       --  | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5898       --  | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5899       --  | FORMAL_ARRAY_TYPE_DEFINITION
5900       --  | FORMAL_ACCESS_TYPE_DEFINITION
5901       --  | FORMAL_INTERFACE_TYPE_DEFINITION
5902
5903       ---------------------------------------------
5904       -- 12.5.1  Formal Private Type Definition --
5905       ---------------------------------------------
5906
5907       --  FORMAL_PRIVATE_TYPE_DEFINITION ::=
5908       --    [[abstract] tagged] [limited] private
5909
5910       --  Note: TAGGED is not allowed in Ada 83 mode
5911
5912       --  N_Formal_Private_Type_Definition
5913       --  Sloc points to PRIVATE
5914       --  Abstract_Present (Flag4)
5915       --  Tagged_Present (Flag15)
5916       --  Limited_Present (Flag17)
5917
5918       --------------------------------------------
5919       -- 12.5.1  Formal Derived Type Definition --
5920       --------------------------------------------
5921
5922       --  FORMAL_DERIVED_TYPE_DEFINITION ::=
5923       --    [abstract] [limited | synchronized]
5924       --       new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5925       --  Note: this construct is not allowed in Ada 83 mode
5926
5927       --  N_Formal_Derived_Type_Definition
5928       --  Sloc points to NEW
5929       --  Subtype_Mark (Node4)
5930       --  Private_Present (Flag15)
5931       --  Abstract_Present (Flag4)
5932       --  Limited_Present (Flag17)
5933       --  Synchronized_Present (Flag7)
5934       --  Interface_List (List2) (set to No_List if none)
5935
5936       ---------------------------------------------
5937       -- 12.5.2  Formal Discrete Type Definition --
5938       ---------------------------------------------
5939
5940       --  FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5941
5942       --  N_Formal_Discrete_Type_Definition
5943       --  Sloc points to (
5944
5945       ---------------------------------------------------
5946       -- 12.5.2  Formal Signed Integer Type Definition --
5947       ---------------------------------------------------
5948
5949       --  FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5950
5951       --  N_Formal_Signed_Integer_Type_Definition
5952       --  Sloc points to RANGE
5953
5954       --------------------------------------------
5955       -- 12.5.2  Formal Modular Type Definition --
5956       --------------------------------------------
5957
5958       --  FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5959
5960       --  N_Formal_Modular_Type_Definition
5961       --  Sloc points to MOD
5962
5963       ----------------------------------------------
5964       -- 12.5.2  Formal Floating Point Definition --
5965       ----------------------------------------------
5966
5967       --  FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5968
5969       --  N_Formal_Floating_Point_Definition
5970       --  Sloc points to DIGITS
5971
5972       ----------------------------------------------------
5973       -- 12.5.2  Formal Ordinary Fixed Point Definition --
5974       ----------------------------------------------------
5975
5976       --  FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5977
5978       --  N_Formal_Ordinary_Fixed_Point_Definition
5979       --  Sloc points to DELTA
5980
5981       ---------------------------------------------------
5982       -- 12.5.2  Formal Decimal Fixed Point Definition --
5983       ---------------------------------------------------
5984
5985       --  FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5986
5987       --  Note: formal decimal fixed point definition not allowed in Ada 83
5988
5989       --  N_Formal_Decimal_Fixed_Point_Definition
5990       --  Sloc points to DELTA
5991
5992       ------------------------------------------
5993       -- 12.5.3  Formal Array Type Definition --
5994       ------------------------------------------
5995
5996       --  FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5997
5998       -------------------------------------------
5999       -- 12.5.4  Formal Access Type Definition --
6000       -------------------------------------------
6001
6002       --  FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6003
6004       ----------------------------------------------
6005       -- 12.5.5  Formal Interface Type Definition --
6006       ----------------------------------------------
6007
6008       --  FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6009
6010       -----------------------------------------
6011       -- 12.6  Formal Subprogram Declaration --
6012       -----------------------------------------
6013
6014       --  FORMAL_SUBPROGRAM_DECLARATION ::=
6015       --    FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6016       --  | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6017
6018       --------------------------------------------------
6019       -- 12.6  Formal Concrete Subprogram Declaration --
6020       --------------------------------------------------
6021
6022       --  FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6023       --    with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6024
6025       --  N_Formal_Concrete_Subprogram_Declaration
6026       --  Sloc points to WITH
6027       --  Specification (Node1)
6028       --  Default_Name (Node2) (set to Empty if no subprogram default)
6029       --  Box_Present (Flag15)
6030
6031       --  Note: if no subprogram default is present, then Name is set
6032       --  to Empty, and Box_Present is False.
6033
6034       --------------------------------------------------
6035       -- 12.6  Formal Abstract Subprogram Declaration --
6036       --------------------------------------------------
6037
6038       --  FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6039       --    with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6040
6041       --  N_Formal_Abstract_Subprogram_Declaration
6042       --  Sloc points to WITH
6043       --  Specification (Node1)
6044       --  Default_Name (Node2) (set to Empty if no subprogram default)
6045       --  Box_Present (Flag15)
6046
6047       --  Note: if no subprogram default is present, then Name is set
6048       --  to Empty, and Box_Present is False.
6049
6050       ------------------------------
6051       -- 12.6  Subprogram Default --
6052       ------------------------------
6053
6054       --  SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6055
6056       --  There is no separate node in the tree for a subprogram default.
6057       --  Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6058       --  or N_Formal_Abstract_Subprogram_Declaration) node contains the
6059       --  default name or box indication, as needed.
6060
6061       ------------------------
6062       -- 12.6  Default Name --
6063       ------------------------
6064
6065       --  DEFAULT_NAME ::= NAME
6066
6067       --------------------------------------
6068       -- 12.7  Formal Package Declaration --
6069       --------------------------------------
6070
6071       --  FORMAL_PACKAGE_DECLARATION ::=
6072       --    with package DEFINING_IDENTIFIER
6073       --      is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6074
6075       --  Note: formal package declarations not allowed in Ada 83 mode
6076
6077       --  N_Formal_Package_Declaration
6078       --  Sloc points to WITH
6079       --  Defining_Identifier (Node1)
6080       --  Name (Node2)
6081       --  Generic_Associations (List3) (set to No_List if (<>) case or
6082       --   empty generic actual part)
6083       --  Box_Present (Flag15)
6084       --  Instance_Spec (Node5-Sem)
6085       --  ABE_Is_Certain (Flag18-Sem)
6086
6087       --------------------------------------
6088       -- 12.7  Formal Package Actual Part --
6089       --------------------------------------
6090
6091       --  FORMAL_PACKAGE_ACTUAL_PART ::=
6092       --    ([OTHERS] => <>)
6093       --    | [GENERIC_ACTUAL_PART]
6094       --    (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6095
6096       --  FORMAL_PACKAGE_ASSOCIATION ::=
6097       --   GENERIC_ASSOCIATION
6098       --  | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6099
6100       --  There is no explicit node in the tree for a formal package actual
6101       --  part. Instead the information appears in the parent node (i.e. the
6102       --  formal package declaration node itself).
6103
6104       --  There is no explicit node for a formal package association. All of
6105       --  them are represented either by a generic association, possibly with
6106       --  Box_Present, or by an N_Others_Choice.
6107
6108       ---------------------------------
6109       -- 13.1  Representation clause --
6110       ---------------------------------
6111
6112       --  REPRESENTATION_CLAUSE ::=
6113       --    ATTRIBUTE_DEFINITION_CLAUSE
6114       --  | ENUMERATION_REPRESENTATION_CLAUSE
6115       --  | RECORD_REPRESENTATION_CLAUSE
6116       --  | AT_CLAUSE
6117
6118       ----------------------
6119       -- 13.1  Local Name --
6120       ----------------------
6121
6122       --  LOCAL_NAME :=
6123       --    DIRECT_NAME
6124       --  | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6125       --  | library_unit_NAME
6126
6127       --  The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6128       --  as an attribute reference, which has essentially the same form.
6129
6130       ---------------------------------------
6131       -- 13.3  Attribute definition clause --
6132       ---------------------------------------
6133
6134       --  ATTRIBUTE_DEFINITION_CLAUSE ::=
6135       --    for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6136       --  | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6137
6138       --  In Ada 83, the expression must be a simple expression and the
6139       --  local name must be a direct name.
6140
6141       --  Note: the only attribute definition clause that is processed by
6142       --  gigi is an address clause. For all other cases, the information
6143       --  is extracted by the front end and either results in setting entity
6144       --  information, e.g. Esize for the Size clause, or in appropriate
6145       --  expansion actions (e.g. in the case of Storage_Size).
6146
6147       --  For an address clause, Gigi constructs the appropriate addressing
6148       --  code. It also ensures that no aliasing optimizations are made
6149       --  for the object for which the address clause appears.
6150
6151       --  Note: for an address clause used to achieve an overlay:
6152
6153       --    A : Integer;
6154       --    B : Integer;
6155       --    for B'Address use A'Address;
6156
6157       --  the above rule means that Gigi will ensure that no optimizations
6158       --  will be made for B that would violate the implementation advice
6159       --  of RM 13.3(19). However, this advice applies only to B and not
6160       --  to A, which seems unfortunate. The GNAT front end will mark the
6161       --  object A as volatile to also prevent unwanted optimization
6162       --  assumptions based on no aliasing being made for B.
6163
6164       --  N_Attribute_Definition_Clause
6165       --  Sloc points to FOR
6166       --  Name (Node2) the local name
6167       --  Chars (Name1) the identifier name from the attribute designator
6168       --  Expression (Node3) the expression or name
6169       --  Entity (Node4-Sem)
6170       --  Next_Rep_Item (Node5-Sem)
6171       --  From_At_Mod (Flag4-Sem)
6172       --  Check_Address_Alignment (Flag11-Sem)
6173       --  Address_Warning_Posted (Flag18-Sem)
6174
6175       ---------------------------------------------
6176       -- 13.4  Enumeration representation clause --
6177       ---------------------------------------------
6178
6179       --  ENUMERATION_REPRESENTATION_CLAUSE ::=
6180       --    for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6181
6182       --  In Ada 83, the name must be a direct name
6183
6184       --  N_Enumeration_Representation_Clause
6185       --  Sloc points to FOR
6186       --  Identifier (Node1) direct name
6187       --  Array_Aggregate (Node3)
6188       --  Next_Rep_Item (Node5-Sem)
6189
6190       ---------------------------------
6191       -- 13.4  Enumeration aggregate --
6192       ---------------------------------
6193
6194       --  ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6195
6196       ------------------------------------------
6197       -- 13.5.1  Record representation clause --
6198       ------------------------------------------
6199
6200       --  RECORD_REPRESENTATION_CLAUSE ::=
6201       --    for first_subtype_LOCAL_NAME use
6202       --      record [MOD_CLAUSE]
6203       --        {COMPONENT_CLAUSE}
6204       --      end record;
6205
6206       --  Gigi restriction: Mod_Clause is always Empty (if present it is
6207       --  replaced by a corresponding Alignment attribute definition clause).
6208
6209       --  Note: Component_Clauses can include pragmas
6210
6211       --  N_Record_Representation_Clause
6212       --  Sloc points to FOR
6213       --  Identifier (Node1) direct name
6214       --  Mod_Clause (Node2) (set to Empty if no mod clause present)
6215       --  Component_Clauses (List3)
6216       --  Next_Rep_Item (Node5-Sem)
6217
6218       ------------------------------
6219       -- 13.5.1  Component clause --
6220       ------------------------------
6221
6222       --  COMPONENT_CLAUSE ::=
6223       --    component_LOCAL_NAME at POSITION
6224       --      range FIRST_BIT .. LAST_BIT;
6225
6226       --  N_Component_Clause
6227       --  Sloc points to AT
6228       --  Component_Name (Node1) points to Name or Attribute_Reference
6229       --  Position (Node2)
6230       --  First_Bit (Node3)
6231       --  Last_Bit (Node4)
6232
6233       ----------------------
6234       -- 13.5.1  Position --
6235       ----------------------
6236
6237       --  POSITION ::= static_EXPRESSION
6238
6239       -----------------------
6240       -- 13.5.1  First_Bit --
6241       -----------------------
6242
6243       --  FIRST_BIT ::= static_SIMPLE_EXPRESSION
6244
6245       ----------------------
6246       -- 13.5.1  Last_Bit --
6247       ----------------------
6248
6249       --  LAST_BIT ::= static_SIMPLE_EXPRESSION
6250
6251       --------------------------
6252       -- 13.8  Code statement --
6253       --------------------------
6254
6255       --  CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6256
6257       --  Note: in GNAT, the qualified expression has the form
6258
6259       --    Asm_Insn'(Asm (...));
6260
6261       --  See package System.Machine_Code in file s-maccod.ads for details on
6262       --  the allowed parameters to Asm. There are two ways this node can
6263       --  arise, as a code statement, in which case the expression is the
6264       --  qualified expression, or as a result of the expansion of an intrinsic
6265       --  call to the Asm or Asm_Input procedure.
6266
6267       --  N_Code_Statement
6268       --  Sloc points to first token of the expression
6269       --  Expression (Node3)
6270
6271       --  Note: package Exp_Code contains an abstract functional interface
6272       --  for use by Gigi in accessing the data from N_Code_Statement nodes.
6273
6274       ------------------------
6275       -- 13.12  Restriction --
6276       ------------------------
6277
6278       --  RESTRICTION ::=
6279       --    restriction_IDENTIFIER
6280       --  | restriction_parameter_IDENTIFIER => EXPRESSION
6281
6282       --  There is no explicit node for restrictions. Instead the restriction
6283       --  appears in normal pragma syntax as a pragma argument association,
6284       --  which has the same syntactic form.
6285
6286       --------------------------
6287       -- B.2  Shift Operators --
6288       --------------------------
6289
6290       --  Calls to the intrinsic shift functions are converted to one of
6291       --  the following shift nodes, which have the form of normal binary
6292       --  operator names. Note that for a given shift operation, one node
6293       --  covers all possible types, as for normal operators.
6294
6295       --  Note: it is perfectly permissible for the expander to generate
6296       --  shift operation nodes directly, in which case they will be analyzed
6297       --  and parsed in the usual manner.
6298
6299       --  Sprint syntax: shift-function-name!(expr, count)
6300
6301       --  Note: the Left_Opnd field holds the first argument (the value to
6302       --  be shifted). The Right_Opnd field holds the second argument (the
6303       --  shift count). The Chars field is the name of the intrinsic function.
6304
6305       --  N_Op_Rotate_Left
6306       --  Sloc points to the function name
6307       --  plus fields for binary operator
6308       --  plus fields for expression
6309       --  Shift_Count_OK (Flag4-Sem)
6310
6311       --  N_Op_Rotate_Right
6312       --  Sloc points to the function name
6313       --  plus fields for binary operator
6314       --  plus fields for expression
6315       --  Shift_Count_OK (Flag4-Sem)
6316
6317       --  N_Op_Shift_Left
6318       --  Sloc points to the function name
6319       --  plus fields for binary operator
6320       --  plus fields for expression
6321       --  Shift_Count_OK (Flag4-Sem)
6322
6323       --  N_Op_Shift_Right_Arithmetic
6324       --  Sloc points to the function name
6325       --  plus fields for binary operator
6326       --  plus fields for expression
6327       --  Shift_Count_OK (Flag4-Sem)
6328
6329       --  N_Op_Shift_Right
6330       --  Sloc points to the function name
6331       --  plus fields for binary operator
6332       --  plus fields for expression
6333       --  Shift_Count_OK (Flag4-Sem)
6334
6335    --------------------------
6336    -- Obsolescent Features --
6337    --------------------------
6338
6339       --  The syntax descriptions and tree nodes for obsolescent features are
6340       --  grouped together, corresponding to their location in appendix I in
6341       --  the RM. However, parsing and semantic analysis for these constructs
6342       --  is located in an appropriate chapter (see individual notes).
6343
6344       ---------------------------
6345       -- J.3  Delta Constraint --
6346       ---------------------------
6347
6348       --  Note: the parse routine for this construct is located in section
6349       --  3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6350       --  where delta constraint logically belongs.
6351
6352       --  DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6353
6354       --  N_Delta_Constraint
6355       --  Sloc points to DELTA
6356       --  Delta_Expression (Node3)
6357       --  Range_Constraint (Node4) (set to Empty if not present)
6358
6359       --------------------
6360       -- J.7  At Clause --
6361       --------------------
6362
6363       --  AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6364
6365       --  Note: the parse routine for this construct is located in Par-Ch13,
6366       --  and the semantic analysis is in Sem_Ch13, where at clause logically
6367       --  belongs if it were not obsolescent.
6368
6369       --  Note: in Ada 83 the expression must be a simple expression
6370
6371       --  Gigi restriction: This node never appears, it is rewritten as an
6372       --  address attribute definition clause.
6373
6374       --  N_At_Clause
6375       --  Sloc points to FOR
6376       --  Identifier (Node1)
6377       --  Expression (Node3)
6378
6379       ---------------------
6380       -- J.8  Mod clause --
6381       ---------------------
6382
6383       --  MOD_CLAUSE ::= at mod static_EXPRESSION;
6384
6385       --  Note: the parse routine for this construct is located in Par-Ch13,
6386       --  and the semantic analysis is in Sem_Ch13, where mod clause logically
6387       --  belongs if it were not obsolescent.
6388
6389       --  Note: in Ada 83, the expression must be a simple expression
6390
6391       --  Gigi restriction: this node never appears. It is replaced
6392       --  by a corresponding Alignment attribute definition clause.
6393
6394       --  Note: pragmas can appear before and after the MOD_CLAUSE since
6395       --  its name has "clause" in it. This is rather strange, but is quite
6396       --  definitely specified. The pragmas before are collected in the
6397       --  Pragmas_Before field of the mod clause node itself, and pragmas
6398       --  after are simply swallowed up in the list of component clauses.
6399
6400       --  N_Mod_Clause
6401       --  Sloc points to AT
6402       --  Expression (Node3)
6403       --  Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6404
6405    --------------------
6406    -- Semantic Nodes --
6407    --------------------
6408
6409    --  These semantic nodes are used to hold additional semantic information.
6410    --  They are inserted into the tree as a result of semantic processing.
6411    --  Although there are no legitimate source syntax constructions that
6412    --  correspond directly to these nodes, we need a source syntax for the
6413    --  reconstructed tree printed by Sprint, and the node descriptions here
6414    --  show this syntax.
6415
6416       ----------------------------
6417       -- Conditional Expression --
6418       ----------------------------
6419
6420       --  This node is used to represent an expression corresponding to the
6421       --  C construct (condition ? then-expression : else_expression), where
6422       --  Expressions is a three element list, whose first expression is the
6423       --  condition, and whose second and third expressions are the then and
6424       --  else expressions respectively.
6425
6426       --  Note: the Then_Actions and Else_Actions fields are always set to
6427       --  No_List in the tree passed to Gigi. These fields are used only
6428       --  for temporary processing purposes in the expander.
6429
6430       --  Sprint syntax: (if expr then expr else expr)
6431
6432       --  N_Conditional_Expression
6433       --  Sloc points to related node
6434       --  Expressions (List1)
6435       --  Then_Actions (List2-Sem)
6436       --  Else_Actions (List3-Sem)
6437       --  plus fields for expression
6438
6439       --  Note: in the case where a debug source file is generated, the Sloc
6440       --  for this node points to the IF keyword in the Sprint file output.
6441
6442       -------------------
6443       -- Expanded_Name --
6444       -------------------
6445
6446       --  The N_Expanded_Name node is used to represent a selected component
6447       --  name that has been resolved to an expanded name. The semantic phase
6448       --  replaces N_Selected_Component nodes that represent names by the use
6449       --  of this node, leaving the N_Selected_Component node used only when
6450       --  the prefix is a record or protected type.
6451
6452       --  The fields of the N_Expanded_Name node are layed out identically
6453       --  to those of the N_Selected_Component node, allowing conversion of
6454       --  an expanded name node to a selected component node to be done
6455       --  easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6456
6457       --  There is no special sprint syntax for an expanded name
6458
6459       --  N_Expanded_Name
6460       --  Sloc points to the period
6461       --  Chars (Name1) copy of Chars field of selector name
6462       --  Prefix (Node3)
6463       --  Selector_Name (Node2)
6464       --  Entity (Node4-Sem)
6465       --  Associated_Node (Node4-Sem)
6466       --  Redundant_Use (Flag13-Sem)
6467       --  Has_Private_View (Flag11-Sem) set in generic units.
6468       --  plus fields for expression
6469
6470       --------------------
6471       -- Free Statement --
6472       --------------------
6473
6474       --  The N_Free_Statement node is generated as a result of a call to an
6475       --  instantiation of Unchecked_Deallocation. The instantiation of this
6476       --  generic is handled specially and generates this node directly.
6477
6478       --  Sprint syntax: free expression
6479
6480       --  N_Free_Statement
6481       --  Sloc is copied from the unchecked deallocation call
6482       --  Expression (Node3) argument to unchecked deallocation call
6483       --  Storage_Pool (Node1-Sem)
6484       --  Procedure_To_Call (Node2-Sem)
6485       --  Actual_Designated_Subtype (Node4-Sem)
6486
6487       --  Note: in the case where a debug source file is generated, the Sloc
6488       --  for this node points to the FREE keyword in the Sprint file output.
6489
6490       -------------------
6491       -- Freeze Entity --
6492       -------------------
6493
6494       --  This node marks the point in a declarative part at which an entity
6495       --  declared therein becomes frozen. The expander places initialization
6496       --  procedures for types at those points. Gigi uses the freezing point
6497       --  to elaborate entities that may depend on previous private types.
6498
6499       --  See the section in Einfo "Delayed Freezing and Elaboration" for
6500       --  a full description of the use of this node.
6501
6502       --  The Entity field points back to the entity for the type (whose
6503       --  Freeze_Node field points back to this freeze node).
6504
6505       --  The Actions field contains a list of declarations and statements
6506       --  generated by the expander which are associated with the freeze
6507       --  node, and are elaborated as though the freeze node were replaced
6508       --  by this sequence of actions.
6509
6510       --  Note: the Sloc field in the freeze node references a construct
6511       --  associated with the freezing point. This is used for posting
6512       --  messages in some error/warning situations, e.g. the case where
6513       --  a primitive operation of a tagged type is declared too late.
6514
6515       --  Sprint syntax: freeze entity-name [
6516       --                   freeze actions
6517       --                 ]
6518
6519       --  N_Freeze_Entity
6520       --  Sloc points near freeze point (see above special note)
6521       --  Entity (Node4-Sem)
6522       --  Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6523       --  TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6524       --  Actions (List1) (set to No_List if no freeze actions)
6525       --  First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6526
6527       --  The Actions field holds actions associated with the freeze. These
6528       --  actions are elaborated at the point where the type is frozen.
6529
6530       --  Note: in the case where a debug source file is generated, the Sloc
6531       --  for this node points to the FREEZE keyword in the Sprint file output.
6532
6533       --------------------------------
6534       -- Implicit Label Declaration --
6535       --------------------------------
6536
6537       --  An implicit label declaration is created for every occurrence of a
6538       --  label on a statement or a label on a block or loop. It is chained
6539       --  in the declarations of the innermost enclosing block as specified
6540       --  in RM section 5.1 (3).
6541
6542       --  The Defining_Identifier is the actual identifier for the
6543       --  statement identifier. Note that the occurrence of the label
6544       --  is a reference, NOT the defining occurrence. The defining
6545       --  occurrence occurs at the head of the innermost enclosing
6546       --  block, and is represented by this node.
6547
6548       --  Note: from the grammar, this might better be called an implicit
6549       --  statement identifier declaration, but the term we choose seems
6550       --  friendlier, since at least informally statement identifiers are
6551       --  called labels in both cases (i.e. when used in labels, and when
6552       --  used as the identifiers of blocks and loops).
6553
6554       --  Note: although this is logically a semantic node, since it does
6555       --  not correspond directly to a source syntax construction, these
6556       --  nodes are actually created by the parser in a post pass done just
6557       --  after parsing is complete, before semantic analysis is started (see
6558       --  the Par.Labl subunit in file par-labl.adb).
6559
6560       --  Sprint syntax: labelname : label;
6561
6562       --  N_Implicit_Label_Declaration
6563       --  Sloc points to the << of the label
6564       --  Defining_Identifier (Node1)
6565       --  Label_Construct (Node2-Sem)
6566
6567       --  Note: in the case where a debug source file is generated, the Sloc
6568       --  for this node points to the label name in the generated declaration.
6569
6570       ---------------------
6571       -- Itype_Reference --
6572       ---------------------
6573
6574       --  This node is used to create a reference to an Itype. The only
6575       --  purpose is to make sure that the Itype is defined if this is the
6576       --  first reference.
6577
6578       --  A typical use of this node is when an Itype is to be referenced in
6579       --  two branches of an if statement. In this case it is important that
6580       --  the first use of the Itype not be inside the conditional, since
6581       --  then it might not be defined if the wrong branch of the if is
6582       --  taken in the case where the definition generates elaboration code.
6583
6584       --  The Itype field points to the referenced Itype
6585
6586       --  sprint syntax: reference itype-name
6587
6588       --  N_Itype_Reference
6589       --  Sloc points to the node generating the reference
6590       --  Itype (Node1-Sem)
6591
6592       --  Note: in the case where a debug source file is generated, the Sloc
6593       --  for this node points to the REFERENCE keyword in the file output.
6594
6595       ---------------------
6596       -- Raise_xxx_Error --
6597       ---------------------
6598
6599       --  One of these nodes is created during semantic analysis to replace
6600       --  a node for an expression that is determined to definitely raise
6601       --  the corresponding exception.
6602
6603       --  The N_Raise_xxx_Error node may also stand alone in place
6604       --  of a declaration or statement, in which case it simply causes
6605       --  the exception to be raised (i.e. it is equivalent to a raise
6606       --  statement that raises the corresponding exception). This use
6607       --  is distinguished by the fact that the Etype in this case is
6608       --  Standard_Void_Type, In the subexpression case, the Etype is the
6609       --  same as the type of the subexpression which it replaces.
6610
6611       --  If Condition is empty, then the raise is unconditional. If the
6612       --  Condition field is non-empty, it is a boolean expression which
6613       --  is first evaluated, and the exception is raised only if the
6614       --  value of the expression is True. In the unconditional case, the
6615       --  creation of this node is usually accompanied by a warning message
6616       --  error. The creation of this node will usually be accompanied by a
6617       --  message (unless it appears within the right operand of a short
6618       --  circuit form whose left argument is static and decisively
6619       --  eliminates elaboration of the raise operation. The condition field
6620       --  can ONLY be present when the node is used as a statement form, it
6621       --  may NOT be present in the case where the node appears within an
6622       --  expression.
6623
6624       --  The exception is generated with a message that contains the
6625       --  file name and line number, and then appended text. The Reason
6626       --  code shows the text to be added. The Reason code is an element
6627       --  of the type Types.RT_Exception_Code, and indicates both the
6628       --  message to be added, and the exception to be raised (which must
6629       --  match the node type). The value is stored by storing a Uint which
6630       --  is the Pos value of the enumeration element in this type.
6631
6632       --  Gigi restriction: This expander ensures that the type of the
6633       --  Condition field is always Standard.Boolean, even if the type
6634       --  in the source is some non-standard boolean type.
6635
6636       --  Sprint syntax: [xxx_error "msg"]
6637       --             or: [xxx_error when condition "msg"]
6638
6639       --  N_Raise_Constraint_Error
6640       --  Sloc references related construct
6641       --  Condition (Node1) (set to Empty if no condition)
6642       --  Reason (Uint3)
6643       --  plus fields for expression
6644
6645       --  N_Raise_Program_Error
6646       --  Sloc references related construct
6647       --  Condition (Node1) (set to Empty if no condition)
6648       --  Reason (Uint3)
6649       --  plus fields for expression
6650
6651       --  N_Raise_Storage_Error
6652       --  Sloc references related construct
6653       --  Condition (Node1) (set to Empty if no condition)
6654       --  Reason (Uint3)
6655       --  plus fields for expression
6656
6657       --  Note: Sloc is copied from the expression generating the exception.
6658       --  In the case where a debug source file is generated, the Sloc for
6659       --  this node points to the left bracket in the Sprint file output.
6660
6661       --  Note: the back end may be required to translate these nodes into
6662       --  appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6663
6664       ---------------------------------------------
6665       -- Optimization of Exception Raise to Goto --
6666       ---------------------------------------------
6667
6668       --  In some cases, the front end will determine that any exception raised
6669       --  by the back end for a certain exception should be transformed into a
6670       --  goto statement.
6671
6672       --  There are three kinds of exceptions raised by the back end (note that
6673       --  for this purpose we consider gigi to be part of the back end in the
6674       --  gcc case):
6675
6676       --     1. Exceptions resulting from N_Raise_xxx_Error nodes
6677       --     2. Exceptions from checks triggered by Do_xxx_Check flags
6678       --     3. Other cases not specifically marked by the front end
6679
6680       --  Normally all such exceptions are translated into calls to the proper
6681       --  Rcheck_xx procedure, where xx encodes both the exception to be raised
6682       --  and the exception message.
6683
6684       --  The front end may determine that for a particular sequence of code,
6685       --  exceptions in any of these three categories for a particular builtin
6686       --  exception should result in a goto, rather than a call to Rcheck_xx.
6687       --  The exact sequence to be generated is:
6688
6689       --      Local_Raise (exception'Identity);
6690       --      goto Label
6691
6692       --  The front end marks such a sequence of code by bracketing it with
6693       --  push and pop nodes:
6694
6695       --       N_Push_xxx_Label (referencing the label)
6696       --       ...
6697       --       (code where transformation is expected for exception xxx)
6698       --       ...
6699       --       N_Pop_xxx_Label
6700
6701       --  The use of push/pop reflects the fact that such regions can properly
6702       --  nest, and one special case is a subregion in which no transformation
6703       --  is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6704       --  Exception_Label field is Empty.
6705
6706       --  N_Push_Constraint_Error_Label
6707       --  Sloc references first statement in region covered
6708       --  Exception_Label (Node5-Sem)
6709
6710       --  N_Push_Program_Error_Label
6711       --  Sloc references first statement in region covered
6712       --  Exception_Label (Node5-Sem)
6713
6714       --  N_Push_Storage_Error_Label
6715       --  Sloc references first statement in region covered
6716       --  Exception_Label (Node5-Sem)
6717
6718       --  N_Pop_Constraint_Error_Label
6719       --  Sloc references last statement in region covered
6720
6721       --  N_Pop_Program_Error_Label
6722       --  Sloc references last statement in region covered
6723
6724       --  N_Pop_Storage_Error_Label
6725       --  Sloc references last statement in region covered
6726
6727       ---------------
6728       -- Reference --
6729       ---------------
6730
6731       --  For a number of purposes, we need to construct references to objects.
6732       --  These references are subsequently treated as normal access values.
6733       --  An example is the construction of the parameter block passed to a
6734       --  task entry. The N_Reference node is provided for this purpose. It is
6735       --  similar in effect to the use of the Unrestricted_Access attribute,
6736       --  and like Unrestricted_Access can be applied to objects which would
6737       --  not be valid prefixes for the Unchecked_Access attribute (e.g.
6738       --  objects which are not aliased, and slices). In addition it can be
6739       --  applied to composite type values as well as objects, including string
6740       --  values and aggregates.
6741
6742       --  Note: we use the Prefix field for this expression so that the
6743       --  resulting node can be treated using common code with the attribute
6744       --  nodes for the 'Access and related attributes. Logically it would make
6745       --  more sense to call it an Expression field, but then we would have to
6746       --  special case the treatment of the N_Reference node.
6747
6748       --  Sprint syntax: prefix'reference
6749
6750       --  N_Reference
6751       --  Sloc is copied from the expression
6752       --  Prefix (Node3)
6753       --  plus fields for expression
6754
6755       --  Note: in the case where a debug source file is generated, the Sloc
6756       --  for this node points to the quote in the Sprint file output.
6757
6758       ---------------------
6759       -- Subprogram_Info --
6760       ---------------------
6761
6762       --  This node generates the appropriate Subprogram_Info value for a
6763       --  given procedure. See Ada.Exceptions for further details
6764
6765       --  Sprint syntax: subprog'subprogram_info
6766
6767       --  N_Subprogram_Info
6768       --  Sloc points to the entity for the procedure
6769       --  Identifier (Node1) identifier referencing the procedure
6770       --  Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6771
6772       --  Note: in the case where a debug source file is generated, the Sloc
6773       --  for this node points to the quote in the Sprint file output.
6774
6775       --------------------------
6776       -- Unchecked Expression --
6777       --------------------------
6778
6779       --  An unchecked expression is one that must be analyzed and resolved
6780       --  with all checks off, regardless of the current setting of scope
6781       --  suppress flags.
6782
6783       --  Sprint syntax: `(expression)
6784
6785       --  Note: this node is always removed from the tree (and replaced by
6786       --  its constituent expression) on completion of analysis, so it only
6787       --  appears in intermediate trees, and will never be seen by Gigi.
6788
6789       --  N_Unchecked_Expression
6790       --  Sloc is a copy of the Sloc of the expression
6791       --  Expression (Node3)
6792       --  plus fields for expression
6793
6794       --  Note: in the case where a debug source file is generated, the Sloc
6795       --  for this node points to the back quote in the Sprint file output.
6796
6797       -------------------------------
6798       -- Unchecked Type Conversion --
6799       -------------------------------
6800
6801       --  An unchecked type conversion node represents the semantic action
6802       --  corresponding to a call to an instantiation of Unchecked_Conversion.
6803       --  It is generated as a result of actual use of Unchecked_Conversion
6804       --  and also the expander generates unchecked type conversion nodes
6805       --  directly for expansion of complex semantic actions.
6806
6807       --  Note: an unchecked type conversion is a variable as far as the
6808       --  semantics are concerned, which is convenient for the expander.
6809       --  This does not change what Ada source programs are legal, since
6810       --  clearly a function call to an instantiation of Unchecked_Conversion
6811       --  is not a variable in any case.
6812
6813       --  Sprint syntax: subtype-mark!(expression)
6814
6815       --  N_Unchecked_Type_Conversion
6816       --  Sloc points to related node in source
6817       --  Subtype_Mark (Node4)
6818       --  Expression (Node3)
6819       --  Kill_Range_Check (Flag11-Sem)
6820       --  No_Truncation (Flag17-Sem)
6821       --  plus fields for expression
6822
6823       --  Note: in the case where a debug source file is generated, the Sloc
6824       --  for this node points to the exclamation in the Sprint file output.
6825
6826       -----------------------------------
6827       -- Validate_Unchecked_Conversion --
6828       -----------------------------------
6829
6830       --  The front end does most of the validation of unchecked conversion,
6831       --  including checking sizes (this is done after the back end is called
6832       --  to take advantage of back-annotation of calculated sizes).
6833
6834       --  The front end also deals with specific cases that are not allowed
6835       --  e.g. involving unconstrained array types.
6836
6837       --  For the case of the standard gigi backend, this means that all
6838       --  checks are done in the front-end.
6839
6840       --  However, in the case of specialized back-ends, notably the JVM
6841       --  backend for JGNAT, additional requirements and restrictions apply
6842       --  to unchecked conversion, and these are most conveniently performed
6843       --  in the specialized back-end.
6844
6845       --  To accommodate this requirement, for such back ends, the following
6846       --  special node is generated recording an unchecked conversion that
6847       --  needs to be validated. The back end should post an appropriate
6848       --  error message if the unchecked conversion is invalid or warrants
6849       --  a special warning message.
6850
6851       --  Source_Type and Target_Type point to the entities for the two
6852       --  types involved in the unchecked conversion instantiation that
6853       --  is to be validated.
6854
6855       --  Sprint syntax: validate Unchecked_Conversion (source, target);
6856
6857       --  N_Validate_Unchecked_Conversion
6858       --  Sloc points to instantiation (location for warning message)
6859       --  Source_Type (Node1-Sem)
6860       --  Target_Type (Node2-Sem)
6861
6862       --  Note: in the case where a debug source file is generated, the Sloc
6863       --  for this node points to the VALIDATE keyword in the file output.
6864
6865    -----------
6866    -- Empty --
6867    -----------
6868
6869    --  Used as the contents of the Nkind field of the dummy Empty node
6870    --  and in some other situations to indicate an uninitialized value.
6871
6872    --  N_Empty
6873    --  Chars (Name1) is set to No_Name
6874
6875    -----------
6876    -- Error --
6877    -----------
6878
6879    --  Used as the contents of the Nkind field of the dummy Error node.
6880    --  Has an Etype field, which gets set to Any_Type later on, to help
6881    --  error recovery (Error_Posted is also set in the Error node).
6882
6883    --  N_Error
6884    --  Chars (Name1) is set to Error_Name
6885    --  Etype (Node5-Sem)
6886
6887    --------------------------
6888    -- Node Type Definition --
6889    --------------------------
6890
6891    --  The following is the definition of the Node_Kind type. As previously
6892    --  discussed, this is separated off to allow rearrangement of the order
6893    --  to facilitate definition of subtype ranges. The comments show the
6894    --  subtype classes which apply to each set of node kinds. The first
6895    --  entry in the comment characterizes the following list of nodes.
6896
6897    type Node_Kind is (
6898       N_Unused_At_Start,
6899
6900       --  N_Representation_Clause
6901
6902       N_At_Clause,
6903       N_Component_Clause,
6904       N_Enumeration_Representation_Clause,
6905       N_Mod_Clause,
6906       N_Record_Representation_Clause,
6907
6908       --  N_Representation_Clause, N_Has_Chars
6909
6910       N_Attribute_Definition_Clause,
6911
6912       --  N_Has_Chars
6913
6914       N_Empty,
6915       N_Pragma_Argument_Association,
6916
6917       --  N_Has_Etype
6918
6919       N_Error,
6920
6921       --  N_Entity, N_Has_Etype, N_Has_Chars
6922
6923       N_Defining_Character_Literal,
6924       N_Defining_Identifier,
6925       N_Defining_Operator_Symbol,
6926
6927       --  N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6928
6929       N_Expanded_Name,
6930
6931       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6932       --  N_Has_Chars, N_Has_Entity
6933
6934       N_Identifier,
6935       N_Operator_Symbol,
6936
6937       --  N_Direct_Name, N_Subexpr, N_Has_Etype,
6938       --  N_Has_Chars, N_Has_Entity
6939
6940       N_Character_Literal,
6941
6942       --  N_Binary_Op, N_Op, N_Subexpr,
6943       --  N_Has_Etype, N_Has_Chars, N_Has_Entity
6944
6945       N_Op_Add,
6946       N_Op_Concat,
6947       N_Op_Expon,
6948       N_Op_Subtract,
6949
6950       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6951       --  N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6952
6953       N_Op_Divide,
6954       N_Op_Mod,
6955       N_Op_Multiply,
6956       N_Op_Rem,
6957
6958       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6959       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6960
6961       N_Op_And,
6962
6963       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6964       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6965
6966       N_Op_Eq,
6967       N_Op_Ge,
6968       N_Op_Gt,
6969       N_Op_Le,
6970       N_Op_Lt,
6971       N_Op_Ne,
6972
6973       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6974       --  N_Has_Entity, N_Has_Chars, N_Op_Boolean
6975
6976       N_Op_Or,
6977       N_Op_Xor,
6978
6979       --  N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6980       --  N_Op_Shift, N_Has_Chars, N_Has_Entity
6981
6982       N_Op_Rotate_Left,
6983       N_Op_Rotate_Right,
6984       N_Op_Shift_Left,
6985       N_Op_Shift_Right,
6986       N_Op_Shift_Right_Arithmetic,
6987
6988       --  N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6989       --  N_Has_Chars, N_Has_Entity
6990
6991       N_Op_Abs,
6992       N_Op_Minus,
6993       N_Op_Not,
6994       N_Op_Plus,
6995
6996       --  N_Subexpr, N_Has_Etype, N_Has_Entity
6997
6998       N_Attribute_Reference,
6999
7000       --  N_Subexpr, N_Has_Etype, N_Membership_Test
7001
7002       N_In,
7003       N_Not_In,
7004
7005       --  N_Subexpr, N_Has_Etype
7006
7007       N_And_Then,
7008       N_Conditional_Expression,
7009       N_Explicit_Dereference,
7010       N_Function_Call,
7011       N_Indexed_Component,
7012       N_Integer_Literal,
7013       N_Null,
7014       N_Or_Else,
7015       N_Procedure_Call_Statement,
7016       N_Qualified_Expression,
7017
7018       --  N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7019
7020       N_Raise_Constraint_Error,
7021       N_Raise_Program_Error,
7022       N_Raise_Storage_Error,
7023
7024       --  N_Subexpr, N_Has_Etype
7025
7026       N_Aggregate,
7027       N_Allocator,
7028       N_Extension_Aggregate,
7029       N_Range,
7030       N_Real_Literal,
7031       N_Reference,
7032       N_Selected_Component,
7033       N_Slice,
7034       N_String_Literal,
7035       N_Subprogram_Info,
7036       N_Type_Conversion,
7037       N_Unchecked_Expression,
7038       N_Unchecked_Type_Conversion,
7039
7040       --  N_Has_Etype
7041
7042       N_Subtype_Indication,
7043
7044       --  N_Declaration
7045
7046       N_Component_Declaration,
7047       N_Entry_Declaration,
7048       N_Formal_Object_Declaration,
7049       N_Formal_Type_Declaration,
7050       N_Full_Type_Declaration,
7051       N_Incomplete_Type_Declaration,
7052       N_Loop_Parameter_Specification,
7053       N_Object_Declaration,
7054       N_Protected_Type_Declaration,
7055       N_Private_Extension_Declaration,
7056       N_Private_Type_Declaration,
7057       N_Subtype_Declaration,
7058
7059       --  N_Subprogram_Specification, N_Declaration
7060
7061       N_Function_Specification,
7062       N_Procedure_Specification,
7063
7064       --  N_Access_To_Subprogram_Definition
7065
7066       N_Access_Function_Definition,
7067       N_Access_Procedure_Definition,
7068
7069       --  N_Later_Decl_Item
7070
7071       N_Task_Type_Declaration,
7072
7073       --  N_Body_Stub, N_Later_Decl_Item
7074
7075       N_Package_Body_Stub,
7076       N_Protected_Body_Stub,
7077       N_Subprogram_Body_Stub,
7078       N_Task_Body_Stub,
7079
7080       --  N_Generic_Instantiation, N_Later_Decl_Item
7081       --  N_Subprogram_Instantiation
7082
7083       N_Function_Instantiation,
7084       N_Procedure_Instantiation,
7085
7086       --  N_Generic_Instantiation, N_Later_Decl_Item
7087
7088       N_Package_Instantiation,
7089
7090       --  N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7091
7092       N_Package_Body,
7093       N_Subprogram_Body,
7094
7095       --  N_Later_Decl_Item, N_Proper_Body
7096
7097       N_Protected_Body,
7098       N_Task_Body,
7099
7100       --  N_Later_Decl_Item
7101
7102       N_Implicit_Label_Declaration,
7103       N_Package_Declaration,
7104       N_Single_Task_Declaration,
7105       N_Subprogram_Declaration,
7106       N_Use_Package_Clause,
7107
7108       --  N_Generic_Declaration, N_Later_Decl_Item
7109
7110       N_Generic_Package_Declaration,
7111       N_Generic_Subprogram_Declaration,
7112
7113       --  N_Array_Type_Definition
7114
7115       N_Constrained_Array_Definition,
7116       N_Unconstrained_Array_Definition,
7117
7118       --  N_Renaming_Declaration
7119
7120       N_Exception_Renaming_Declaration,
7121       N_Object_Renaming_Declaration,
7122       N_Package_Renaming_Declaration,
7123       N_Subprogram_Renaming_Declaration,
7124
7125       --  N_Generic_Renaming_Declaration, N_Renaming_Declaration
7126
7127       N_Generic_Function_Renaming_Declaration,
7128       N_Generic_Package_Renaming_Declaration,
7129       N_Generic_Procedure_Renaming_Declaration,
7130
7131       --  N_Statement_Other_Than_Procedure_Call
7132
7133       N_Abort_Statement,
7134       N_Accept_Statement,
7135       N_Assignment_Statement,
7136       N_Asynchronous_Select,
7137       N_Block_Statement,
7138       N_Case_Statement,
7139       N_Code_Statement,
7140       N_Conditional_Entry_Call,
7141
7142       --  N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7143
7144       N_Delay_Relative_Statement,
7145       N_Delay_Until_Statement,
7146
7147       --  N_Statement_Other_Than_Procedure_Call
7148
7149       N_Entry_Call_Statement,
7150       N_Free_Statement,
7151       N_Goto_Statement,
7152       N_Loop_Statement,
7153       N_Null_Statement,
7154       N_Raise_Statement,
7155       N_Requeue_Statement,
7156       N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7157       N_Extended_Return_Statement,
7158       N_Selective_Accept,
7159       N_Timed_Entry_Call,
7160
7161       --  N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7162
7163       N_Exit_Statement,
7164       N_If_Statement,
7165
7166       --  N_Has_Condition
7167
7168       N_Accept_Alternative,
7169       N_Delay_Alternative,
7170       N_Elsif_Part,
7171       N_Entry_Body_Formal_Part,
7172       N_Iteration_Scheme,
7173       N_Terminate_Alternative,
7174
7175       --  N_Formal_Subprogram_Declaration
7176
7177       N_Formal_Abstract_Subprogram_Declaration,
7178       N_Formal_Concrete_Subprogram_Declaration,
7179
7180       --  N_Push_xxx_Label, N_Push_Pop_xxx_Label
7181
7182       N_Push_Constraint_Error_Label,
7183       N_Push_Program_Error_Label,
7184       N_Push_Storage_Error_Label,
7185
7186       --  N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7187
7188       N_Pop_Constraint_Error_Label,
7189       N_Pop_Program_Error_Label,
7190       N_Pop_Storage_Error_Label,
7191
7192       --  Other nodes (not part of any subtype class)
7193
7194       N_Abortable_Part,
7195       N_Abstract_Subprogram_Declaration,
7196       N_Access_Definition,
7197       N_Access_To_Object_Definition,
7198       N_Case_Statement_Alternative,
7199       N_Compilation_Unit,
7200       N_Compilation_Unit_Aux,
7201       N_Component_Association,
7202       N_Component_Definition,
7203       N_Component_List,
7204       N_Derived_Type_Definition,
7205       N_Decimal_Fixed_Point_Definition,
7206       N_Defining_Program_Unit_Name,
7207       N_Delta_Constraint,
7208       N_Designator,
7209       N_Digits_Constraint,
7210       N_Discriminant_Association,
7211       N_Discriminant_Specification,
7212       N_Enumeration_Type_Definition,
7213       N_Entry_Body,
7214       N_Entry_Call_Alternative,
7215       N_Entry_Index_Specification,
7216       N_Exception_Declaration,
7217       N_Exception_Handler,
7218       N_Floating_Point_Definition,
7219       N_Formal_Decimal_Fixed_Point_Definition,
7220       N_Formal_Derived_Type_Definition,
7221       N_Formal_Discrete_Type_Definition,
7222       N_Formal_Floating_Point_Definition,
7223       N_Formal_Modular_Type_Definition,
7224       N_Formal_Ordinary_Fixed_Point_Definition,
7225       N_Formal_Package_Declaration,
7226       N_Formal_Private_Type_Definition,
7227       N_Formal_Signed_Integer_Type_Definition,
7228       N_Freeze_Entity,
7229       N_Generic_Association,
7230       N_Handled_Sequence_Of_Statements,
7231       N_Index_Or_Discriminant_Constraint,
7232       N_Itype_Reference,
7233       N_Label,
7234       N_Modular_Type_Definition,
7235       N_Number_Declaration,
7236       N_Ordinary_Fixed_Point_Definition,
7237       N_Others_Choice,
7238       N_Package_Specification,
7239       N_Parameter_Association,
7240       N_Parameter_Specification,
7241       N_Pragma,
7242       N_Protected_Definition,
7243       N_Range_Constraint,
7244       N_Real_Range_Specification,
7245       N_Record_Definition,
7246       N_Signed_Integer_Type_Definition,
7247       N_Single_Protected_Declaration,
7248       N_Subunit,
7249       N_Task_Definition,
7250       N_Triggering_Alternative,
7251       N_Use_Type_Clause,
7252       N_Validate_Unchecked_Conversion,
7253       N_Variant,
7254       N_Variant_Part,
7255       N_With_Clause,
7256       N_Unused_At_End);
7257
7258    for Node_Kind'Size use 8;
7259    --  The data structures in Atree assume this!
7260
7261    ----------------------------
7262    -- Node Class Definitions --
7263    ----------------------------
7264
7265    subtype N_Access_To_Subprogram_Definition is Node_Kind range
7266      N_Access_Function_Definition ..
7267      N_Access_Procedure_Definition;
7268
7269    subtype N_Array_Type_Definition is Node_Kind range
7270      N_Constrained_Array_Definition ..
7271      N_Unconstrained_Array_Definition;
7272
7273    subtype N_Binary_Op is Node_Kind range
7274      N_Op_Add ..
7275      N_Op_Shift_Right_Arithmetic;
7276
7277    subtype N_Body_Stub is Node_Kind range
7278      N_Package_Body_Stub ..
7279      N_Task_Body_Stub;
7280
7281    subtype N_Declaration is Node_Kind range
7282      N_Component_Declaration ..
7283      N_Procedure_Specification;
7284    --  Note: this includes all constructs normally thought of as declarations
7285    --  except those which are separately grouped as later declarations.
7286
7287    subtype N_Delay_Statement is Node_Kind range
7288       N_Delay_Relative_Statement ..
7289       N_Delay_Until_Statement;
7290
7291    subtype N_Direct_Name is Node_Kind range
7292      N_Identifier ..
7293      N_Character_Literal;
7294
7295    subtype N_Entity is Node_Kind range
7296      N_Defining_Character_Literal ..
7297      N_Defining_Operator_Symbol;
7298
7299    subtype N_Formal_Subprogram_Declaration is Node_Kind range
7300      N_Formal_Abstract_Subprogram_Declaration ..
7301      N_Formal_Concrete_Subprogram_Declaration;
7302
7303    subtype N_Generic_Declaration is Node_Kind range
7304      N_Generic_Package_Declaration ..
7305      N_Generic_Subprogram_Declaration;
7306
7307    subtype N_Generic_Instantiation is Node_Kind range
7308      N_Function_Instantiation ..
7309      N_Package_Instantiation;
7310
7311    subtype N_Generic_Renaming_Declaration is Node_Kind range
7312      N_Generic_Function_Renaming_Declaration ..
7313      N_Generic_Procedure_Renaming_Declaration;
7314
7315    subtype N_Has_Chars is Node_Kind range
7316      N_Attribute_Definition_Clause ..
7317      N_Op_Plus;
7318
7319    subtype N_Has_Entity is Node_Kind range
7320      N_Expanded_Name ..
7321      N_Attribute_Reference;
7322    --  Nodes that have Entity fields
7323    --  Warning: DOES NOT INCLUDE N_Freeze_Entity!
7324
7325    subtype N_Has_Etype is Node_Kind range
7326      N_Error ..
7327      N_Subtype_Indication;
7328
7329    subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7330       N_Op_Divide ..
7331       N_Op_Rem;
7332
7333    subtype N_Multiplying_Operator is Node_Kind range
7334       N_Op_Divide ..
7335       N_Op_Rem;
7336
7337    subtype N_Later_Decl_Item is Node_Kind range
7338      N_Task_Type_Declaration ..
7339      N_Generic_Subprogram_Declaration;
7340    --  Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7341    --  includes only those items which can appear as later declarative
7342    --  items. This also includes N_Implicit_Label_Declaration which is
7343    --  not specifically in the grammar but may appear as a valid later
7344    --  declarative items. It does NOT include N_Pragma which can also
7345    --  appear among later declarative items. It does however include
7346    --  N_Protected_Body, which is a bit peculiar, but harmless since
7347    --  this cannot appear in Ada 83 mode anyway.
7348
7349    subtype N_Membership_Test is Node_Kind range
7350       N_In ..
7351       N_Not_In;
7352
7353    subtype N_Op is Node_Kind range
7354      N_Op_Add ..
7355      N_Op_Plus;
7356
7357    subtype N_Op_Boolean is Node_Kind range
7358      N_Op_And ..
7359      N_Op_Xor;
7360    --  Binary operators which take operands of a boolean type, and yield
7361    --  a result of a boolean type.
7362
7363    subtype N_Op_Compare is Node_Kind range
7364      N_Op_Eq ..
7365      N_Op_Ne;
7366
7367    subtype N_Op_Shift is Node_Kind range
7368      N_Op_Rotate_Left ..
7369      N_Op_Shift_Right_Arithmetic;
7370
7371    subtype N_Proper_Body is Node_Kind range
7372      N_Package_Body ..
7373      N_Task_Body;
7374
7375    subtype N_Push_xxx_Label is Node_Kind range
7376      N_Push_Constraint_Error_Label ..
7377      N_Push_Storage_Error_Label;
7378
7379    subtype N_Pop_xxx_Label is Node_Kind range
7380      N_Pop_Constraint_Error_Label ..
7381      N_Pop_Storage_Error_Label;
7382
7383    subtype N_Push_Pop_xxx_Label is Node_Kind range
7384      N_Push_Constraint_Error_Label ..
7385      N_Pop_Storage_Error_Label;
7386
7387    subtype N_Raise_xxx_Error is Node_Kind range
7388      N_Raise_Constraint_Error ..
7389      N_Raise_Storage_Error;
7390
7391    subtype N_Renaming_Declaration is Node_Kind range
7392      N_Exception_Renaming_Declaration ..
7393      N_Generic_Procedure_Renaming_Declaration;
7394
7395    subtype N_Representation_Clause is Node_Kind range
7396      N_At_Clause ..
7397      N_Attribute_Definition_Clause;
7398
7399    subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7400      N_Abort_Statement ..
7401      N_If_Statement;
7402    --  Note that this includes all statement types except for the cases of the
7403    --  N_Procedure_Call_Statement which is considered to be a subexpression
7404    --  (since overloading is possible, so it needs to go through the normal
7405    --  overloading resolution for expressions).
7406
7407    subtype N_Subprogram_Instantiation is Node_Kind range
7408      N_Function_Instantiation ..
7409      N_Procedure_Instantiation;
7410
7411    subtype N_Has_Condition is Node_Kind range
7412      N_Exit_Statement ..
7413      N_Terminate_Alternative;
7414    --  Nodes with condition fields (does not include N_Raise_xxx_Error)
7415
7416    subtype N_Subexpr is Node_Kind range
7417      N_Expanded_Name ..
7418      N_Unchecked_Type_Conversion;
7419    --  Nodes with expression fields
7420
7421    subtype N_Subprogram_Specification is Node_Kind range
7422      N_Function_Specification ..
7423      N_Procedure_Specification;
7424
7425    subtype N_Unary_Op is Node_Kind range
7426      N_Op_Abs ..
7427      N_Op_Plus;
7428
7429    subtype N_Unit_Body is Node_Kind range
7430      N_Package_Body ..
7431        N_Subprogram_Body;
7432
7433    ---------------------------
7434    -- Node Access Functions --
7435    ---------------------------
7436
7437    --  The following functions return the contents of the indicated field of
7438    --  the node referenced by the argument, which is a Node_Id. They provide
7439    --  logical access to fields in the node which could be accessed using the
7440    --  Atree.Unchecked_Access package, but the idea is always to use these
7441    --  higher level routines which preserve strong typing. In debug mode,
7442    --  these routines check that they are being applied to an appropriate
7443    --  node, as well as checking that the node is in range.
7444
7445    function ABE_Is_Certain
7446      (N : Node_Id) return Boolean;    -- Flag18
7447
7448    function Abort_Present
7449      (N : Node_Id) return Boolean;    -- Flag15
7450
7451    function Abortable_Part
7452      (N : Node_Id) return Node_Id;    -- Node2
7453
7454    function Abstract_Present
7455      (N : Node_Id) return Boolean;    -- Flag4
7456
7457    function Accept_Handler_Records
7458      (N : Node_Id) return List_Id;    -- List5
7459
7460    function Accept_Statement
7461      (N : Node_Id) return Node_Id;    -- Node2
7462
7463    function Access_Definition
7464      (N : Node_Id) return Node_Id;    -- Node3
7465
7466    function Access_To_Subprogram_Definition
7467      (N : Node_Id) return Node_Id;    -- Node3
7468
7469    function Access_Types_To_Process
7470      (N : Node_Id) return Elist_Id;   -- Elist2
7471
7472    function Actions
7473      (N : Node_Id) return List_Id;    -- List1
7474
7475    function Activation_Chain_Entity
7476      (N : Node_Id) return Node_Id;    -- Node3
7477
7478    function Acts_As_Spec
7479      (N : Node_Id) return Boolean;    -- Flag4
7480
7481    function Actual_Designated_Subtype
7482      (N : Node_Id) return Node_Id;    -- Node4
7483
7484    function Address_Warning_Posted
7485      (N : Node_Id) return Boolean;    -- Flag18
7486
7487    function Aggregate_Bounds
7488      (N : Node_Id) return Node_Id;    -- Node3
7489
7490    function Aliased_Present
7491      (N : Node_Id) return Boolean;    -- Flag4
7492
7493    function All_Others
7494      (N : Node_Id) return Boolean;    -- Flag11
7495
7496    function All_Present
7497      (N : Node_Id) return Boolean;    -- Flag15
7498
7499    function Alternatives
7500      (N : Node_Id) return List_Id;    -- List4
7501
7502    function Ancestor_Part
7503      (N : Node_Id) return Node_Id;    -- Node3
7504
7505    function Array_Aggregate
7506      (N : Node_Id) return Node_Id;    -- Node3
7507
7508    function Assignment_OK
7509      (N : Node_Id) return Boolean;    -- Flag15
7510
7511    function Associated_Node
7512      (N : Node_Id) return Node_Id;    -- Node4
7513
7514    function At_End_Proc
7515      (N : Node_Id) return Node_Id;    -- Node1
7516
7517    function Attribute_Name
7518      (N : Node_Id) return Name_Id;    -- Name2
7519
7520    function Aux_Decls_Node
7521      (N : Node_Id) return Node_Id;    -- Node5
7522
7523    function Backwards_OK
7524      (N : Node_Id) return Boolean;    -- Flag6
7525
7526    function Bad_Is_Detected
7527      (N : Node_Id) return Boolean;    -- Flag15
7528
7529    function By_Ref
7530      (N : Node_Id) return Boolean;    -- Flag5
7531
7532    function Body_Required
7533      (N : Node_Id) return Boolean;    -- Flag13
7534
7535    function Body_To_Inline
7536      (N : Node_Id) return Node_Id;    -- Node3
7537
7538    function Box_Present
7539      (N : Node_Id) return Boolean;    -- Flag15
7540
7541    function Char_Literal_Value
7542      (N : Node_Id) return Uint;       -- Uint2
7543
7544    function Chars
7545      (N : Node_Id) return Name_Id;    -- Name1
7546
7547    function Check_Address_Alignment
7548      (N : Node_Id) return Boolean;    -- Flag11
7549
7550    function Choice_Parameter
7551      (N : Node_Id) return Node_Id;    -- Node2
7552
7553    function Choices
7554      (N : Node_Id) return List_Id;    -- List1
7555
7556    function Coextensions
7557       (N : Node_Id) return Elist_Id;  -- Elist4
7558
7559    function Comes_From_Extended_Return_Statement
7560      (N : Node_Id) return Boolean;    -- Flag18
7561
7562    function Compile_Time_Known_Aggregate
7563      (N : Node_Id) return Boolean;    -- Flag18
7564
7565    function Component_Associations
7566      (N : Node_Id) return List_Id;    -- List2
7567
7568    function Component_Clauses
7569      (N : Node_Id) return List_Id;    -- List3
7570
7571    function Component_Definition
7572      (N : Node_Id) return Node_Id;    -- Node4
7573
7574    function Component_Items
7575      (N : Node_Id) return List_Id;    -- List3
7576
7577    function Component_List
7578      (N : Node_Id) return Node_Id;    -- Node1
7579
7580    function Component_Name
7581      (N : Node_Id) return Node_Id;    -- Node1
7582
7583    function Condition
7584      (N : Node_Id) return Node_Id;    -- Node1
7585
7586    function Condition_Actions
7587      (N : Node_Id) return List_Id;    -- List3
7588
7589    function Config_Pragmas
7590      (N : Node_Id) return List_Id;    -- List4
7591
7592    function Constant_Present
7593      (N : Node_Id) return Boolean;    -- Flag17
7594
7595    function Constraint
7596      (N : Node_Id) return Node_Id;    -- Node3
7597
7598    function Constraints
7599      (N : Node_Id) return List_Id;    -- List1
7600
7601    function Context_Installed
7602      (N : Node_Id) return Boolean;    -- Flag13
7603
7604    function Context_Items
7605      (N : Node_Id) return List_Id;    -- List1
7606
7607    function Controlling_Argument
7608      (N : Node_Id) return Node_Id;    -- Node1
7609
7610    function Conversion_OK
7611      (N : Node_Id) return Boolean;    -- Flag14
7612
7613    function Corresponding_Body
7614      (N : Node_Id) return Node_Id;    -- Node5
7615
7616    function Corresponding_Formal_Spec
7617      (N : Node_Id) return Node_Id;    -- Node3
7618
7619    function Corresponding_Generic_Association
7620      (N : Node_Id) return Node_Id;    -- Node5
7621
7622    function Corresponding_Integer_Value
7623      (N : Node_Id) return Uint;       -- Uint4
7624
7625    function Corresponding_Spec
7626      (N : Node_Id) return Node_Id;    -- Node5
7627
7628    function Corresponding_Stub
7629      (N : Node_Id) return Node_Id;    -- Node3
7630
7631    function Dcheck_Function
7632      (N : Node_Id) return Entity_Id;  -- Node5
7633
7634    function Debug_Statement
7635      (N : Node_Id) return Node_Id;    -- Node3
7636
7637    function Declarations
7638      (N : Node_Id) return List_Id;    -- List2
7639
7640    function Default_Expression
7641      (N : Node_Id) return Node_Id;    -- Node5
7642
7643    function Default_Name
7644      (N : Node_Id) return Node_Id;    -- Node2
7645
7646    function Defining_Identifier
7647      (N : Node_Id) return Entity_Id;  -- Node1
7648
7649    function Defining_Unit_Name
7650      (N : Node_Id) return Node_Id;    -- Node1
7651
7652    function Delay_Alternative
7653      (N : Node_Id) return Node_Id;    -- Node4
7654
7655    function Delay_Statement
7656      (N : Node_Id) return Node_Id;    -- Node2
7657
7658    function Delta_Expression
7659      (N : Node_Id) return Node_Id;    -- Node3
7660
7661    function Digits_Expression
7662      (N : Node_Id) return Node_Id;    -- Node2
7663
7664    function Discr_Check_Funcs_Built
7665      (N : Node_Id) return Boolean;    -- Flag11
7666
7667    function Discrete_Choices
7668      (N : Node_Id) return List_Id;    -- List4
7669
7670    function Discrete_Range
7671      (N : Node_Id) return Node_Id;    -- Node4
7672
7673    function Discrete_Subtype_Definition
7674      (N : Node_Id) return Node_Id;    -- Node4
7675
7676    function Discrete_Subtype_Definitions
7677      (N : Node_Id) return List_Id;    -- List2
7678
7679    function Discriminant_Specifications
7680      (N : Node_Id) return List_Id;    -- List4
7681
7682    function Discriminant_Type
7683      (N : Node_Id) return Node_Id;    -- Node5
7684
7685    function Do_Accessibility_Check
7686      (N : Node_Id) return Boolean;    -- Flag13
7687
7688    function Do_Discriminant_Check
7689      (N : Node_Id) return Boolean;    -- Flag13
7690
7691    function Do_Division_Check
7692      (N : Node_Id) return Boolean;    -- Flag13
7693
7694    function Do_Length_Check
7695      (N : Node_Id) return Boolean;    -- Flag4
7696
7697    function Do_Overflow_Check
7698      (N : Node_Id) return Boolean;    -- Flag17
7699
7700    function Do_Range_Check
7701      (N : Node_Id) return Boolean;    -- Flag9
7702
7703    function Do_Storage_Check
7704      (N : Node_Id) return Boolean;    -- Flag17
7705
7706    function Do_Tag_Check
7707      (N : Node_Id) return Boolean;    -- Flag13
7708
7709    function Elaborate_All_Desirable
7710      (N : Node_Id) return Boolean;    -- Flag9
7711
7712    function Elaborate_All_Present
7713      (N : Node_Id) return Boolean;    -- Flag14
7714
7715    function Elaborate_Desirable
7716      (N : Node_Id) return Boolean;    -- Flag11
7717
7718    function Elaborate_Present
7719      (N : Node_Id) return Boolean;    -- Flag4
7720
7721    function Elaboration_Boolean
7722      (N : Node_Id) return Node_Id;    -- Node2
7723
7724    function Else_Actions
7725      (N : Node_Id) return List_Id;    -- List3
7726
7727    function Else_Statements
7728      (N : Node_Id) return List_Id;    -- List4
7729
7730    function Elsif_Parts
7731      (N : Node_Id) return List_Id;    -- List3
7732
7733    function Enclosing_Variant
7734      (N : Node_Id) return Node_Id;    -- Node2
7735
7736    function End_Label
7737      (N : Node_Id) return Node_Id;    -- Node4
7738
7739    function End_Span
7740      (N : Node_Id) return Uint;       -- Uint5
7741
7742    function Entity
7743      (N : Node_Id) return Node_Id;    -- Node4
7744
7745    function Entity_Or_Associated_Node
7746      (N : Node_Id) return Node_Id;    -- Node4
7747
7748    function Entry_Body_Formal_Part
7749      (N : Node_Id) return Node_Id;    -- Node5
7750
7751    function Entry_Call_Alternative
7752      (N : Node_Id) return Node_Id;    -- Node1
7753
7754    function Entry_Call_Statement
7755      (N : Node_Id) return Node_Id;    -- Node1
7756
7757    function Entry_Direct_Name
7758      (N : Node_Id) return Node_Id;    -- Node1
7759
7760    function Entry_Index
7761      (N : Node_Id) return Node_Id;    -- Node5
7762
7763    function Entry_Index_Specification
7764      (N : Node_Id) return Node_Id;    -- Node4
7765
7766    function Etype
7767      (N : Node_Id) return Node_Id;    -- Node5
7768
7769    function Exception_Choices
7770      (N : Node_Id) return List_Id;    -- List4
7771
7772    function Exception_Handlers
7773      (N : Node_Id) return List_Id;    -- List5
7774
7775    function Exception_Junk
7776      (N : Node_Id) return Boolean;    -- Flag8
7777
7778    function Exception_Label
7779      (N : Node_Id) return Node_Id;    -- Node5
7780
7781    function Explicit_Actual_Parameter
7782      (N : Node_Id) return Node_Id;    -- Node3
7783
7784    function Expansion_Delayed
7785      (N : Node_Id) return Boolean;    -- Flag11
7786
7787    function Explicit_Generic_Actual_Parameter
7788      (N : Node_Id) return Node_Id;    -- Node1
7789
7790    function Expression
7791      (N : Node_Id) return Node_Id;    -- Node3
7792
7793    function Expressions
7794      (N : Node_Id) return List_Id;    -- List1
7795
7796    function First_Bit
7797      (N : Node_Id) return Node_Id;    -- Node3
7798
7799    function First_Inlined_Subprogram
7800      (N : Node_Id) return Entity_Id;  -- Node3
7801
7802    function First_Name
7803      (N : Node_Id) return Boolean;    -- Flag5
7804
7805    function First_Named_Actual
7806      (N : Node_Id) return Node_Id;    -- Node4
7807
7808    function First_Real_Statement
7809      (N : Node_Id) return Node_Id;    -- Node2
7810
7811    function First_Subtype_Link
7812      (N : Node_Id) return Entity_Id;  -- Node5
7813
7814    function Float_Truncate
7815      (N : Node_Id) return Boolean;    -- Flag11
7816
7817    function Formal_Type_Definition
7818      (N : Node_Id) return Node_Id;    -- Node3
7819
7820    function Forwards_OK
7821      (N : Node_Id) return Boolean;    -- Flag5
7822
7823    function From_At_End
7824      (N : Node_Id) return Boolean;    -- Flag4
7825
7826    function From_At_Mod
7827      (N : Node_Id) return Boolean;    -- Flag4
7828
7829    function From_Default
7830      (N : Node_Id) return Boolean;    -- Flag6
7831
7832    function Generic_Associations
7833      (N : Node_Id) return List_Id;    -- List3
7834
7835    function Generic_Formal_Declarations
7836      (N : Node_Id) return List_Id;    -- List2
7837
7838    function Generic_Parent
7839      (N : Node_Id) return Node_Id;    -- Node5
7840
7841    function Generic_Parent_Type
7842      (N : Node_Id) return Node_Id;    -- Node4
7843
7844    function Handled_Statement_Sequence
7845      (N : Node_Id) return Node_Id;    -- Node4
7846
7847    function Handler_List_Entry
7848      (N : Node_Id) return Node_Id;    -- Node2
7849
7850    function Has_Created_Identifier
7851      (N : Node_Id) return Boolean;    -- Flag15
7852
7853    function Has_Dynamic_Length_Check
7854      (N : Node_Id) return Boolean;    -- Flag10
7855
7856    function Has_Dynamic_Range_Check
7857      (N : Node_Id) return Boolean;    -- Flag12
7858
7859    function Has_Init_Expression
7860      (N : Node_Id) return Boolean;    -- Flag14
7861
7862    function Has_Local_Raise
7863      (N : Node_Id) return Boolean;    -- Flag8
7864
7865    function Has_No_Elaboration_Code
7866      (N : Node_Id) return Boolean;    -- Flag17
7867
7868    function Has_Priority_Pragma
7869      (N : Node_Id) return Boolean;    -- Flag6
7870
7871    function Has_Private_View
7872      (N : Node_Id) return Boolean;    -- Flag11
7873
7874    function Has_Relative_Deadline_Pragma
7875      (N : Node_Id) return Boolean;    -- Flag9
7876
7877    function Has_Self_Reference
7878      (N : Node_Id) return Boolean;    -- Flag13
7879
7880    function Has_Storage_Size_Pragma
7881      (N : Node_Id) return Boolean;    -- Flag5
7882
7883    function Has_Task_Info_Pragma
7884      (N : Node_Id) return Boolean;    -- Flag7
7885
7886    function Has_Task_Name_Pragma
7887      (N : Node_Id) return Boolean;    -- Flag8
7888
7889    function Has_Wide_Character
7890      (N : Node_Id) return Boolean;    -- Flag11
7891
7892    function Hidden_By_Use_Clause
7893      (N : Node_Id) return Elist_Id;   -- Elist4
7894
7895    function High_Bound
7896      (N : Node_Id) return Node_Id;    -- Node2
7897
7898    function Identifier
7899      (N : Node_Id) return Node_Id;    -- Node1
7900
7901    function Interface_List
7902      (N : Node_Id) return List_Id;    -- List2
7903
7904    function Interface_Present
7905      (N : Node_Id) return Boolean;    -- Flag16
7906
7907    function Implicit_With
7908      (N : Node_Id) return Boolean;    -- Flag16
7909
7910    function In_Present
7911      (N : Node_Id) return Boolean;    -- Flag15
7912
7913    function Includes_Infinities
7914      (N : Node_Id) return Boolean;    -- Flag11
7915
7916    function Instance_Spec
7917      (N : Node_Id) return Node_Id;    -- Node5
7918
7919    function Intval
7920      (N : Node_Id) return Uint;       -- Uint3
7921
7922    function Is_Asynchronous_Call_Block
7923      (N : Node_Id) return Boolean;    -- Flag7
7924
7925    function Is_Component_Left_Opnd
7926      (N : Node_Id) return Boolean;    -- Flag13
7927
7928    function Is_Component_Right_Opnd
7929      (N : Node_Id) return Boolean;    -- Flag14
7930
7931    function Is_Controlling_Actual
7932      (N : Node_Id) return Boolean;    -- Flag16
7933
7934    function Is_Dynamic_Coextension
7935      (N : Node_Id) return Boolean;    -- Flag18
7936
7937    function Is_Entry_Barrier_Function
7938      (N : Node_Id) return Boolean;    -- Flag8
7939
7940    function Is_Expanded_Build_In_Place_Call
7941      (N : Node_Id) return Boolean;    -- Flag11
7942
7943    function Is_Folded_In_Parser
7944      (N : Node_Id) return Boolean;    -- Flag4
7945
7946    function Is_In_Discriminant_Check
7947      (N : Node_Id) return Boolean;    -- Flag11
7948
7949    function Is_Machine_Number
7950      (N : Node_Id) return Boolean;    -- Flag11
7951
7952    function Is_Null_Loop
7953      (N : Node_Id) return Boolean;    -- Flag16
7954
7955    function Is_Overloaded
7956      (N : Node_Id) return Boolean;    -- Flag5
7957
7958    function Is_Power_Of_2_For_Shift
7959      (N : Node_Id) return Boolean;    -- Flag13
7960
7961    function Is_Protected_Subprogram_Body
7962      (N : Node_Id) return Boolean;    -- Flag7
7963
7964    function Is_Static_Coextension
7965      (N : Node_Id) return Boolean;    -- Flag14
7966
7967    function Is_Static_Expression
7968      (N : Node_Id) return Boolean;    -- Flag6
7969
7970    function Is_Subprogram_Descriptor
7971      (N : Node_Id) return Boolean;    -- Flag16
7972
7973    function Is_Task_Allocation_Block
7974      (N : Node_Id) return Boolean;    -- Flag6
7975
7976    function Is_Task_Master
7977      (N : Node_Id) return Boolean;    -- Flag5
7978
7979    function Iteration_Scheme
7980      (N : Node_Id) return Node_Id;    -- Node2
7981
7982    function Itype
7983      (N : Node_Id) return Entity_Id;  -- Node1
7984
7985    function Kill_Range_Check
7986      (N : Node_Id) return Boolean;    -- Flag11
7987
7988    function Label_Construct
7989      (N : Node_Id) return Node_Id;    -- Node2
7990
7991    function Left_Opnd
7992      (N : Node_Id) return Node_Id;    -- Node2
7993
7994    function Last_Bit
7995      (N : Node_Id) return Node_Id;    -- Node4
7996
7997    function Last_Name
7998      (N : Node_Id) return Boolean;    -- Flag6
7999
8000    function Library_Unit
8001      (N : Node_Id) return Node_Id;    -- Node4
8002
8003    function Limited_View_Installed
8004      (N : Node_Id) return Boolean;    -- Flag18
8005
8006    function Limited_Present
8007      (N : Node_Id) return Boolean;    -- Flag17
8008
8009    function Literals
8010      (N : Node_Id) return List_Id;    -- List1
8011
8012    function Local_Raise_Not_OK
8013      (N : Node_Id) return Boolean;    -- Flag7
8014
8015    function Local_Raise_Statements
8016      (N : Node_Id) return Elist_Id;   -- Elist1
8017
8018    function Loop_Actions
8019      (N : Node_Id) return List_Id;    -- List2
8020
8021    function Loop_Parameter_Specification
8022      (N : Node_Id) return Node_Id;    -- Node4
8023
8024    function Low_Bound
8025      (N : Node_Id) return Node_Id;    -- Node1
8026
8027    function Mod_Clause
8028      (N : Node_Id) return Node_Id;    -- Node2
8029
8030    function More_Ids
8031      (N : Node_Id) return Boolean;    -- Flag5
8032
8033    function Must_Be_Byte_Aligned
8034      (N : Node_Id) return Boolean;    -- Flag14
8035
8036    function Must_Not_Freeze
8037      (N : Node_Id) return Boolean;    -- Flag8
8038
8039    function Must_Not_Override
8040      (N : Node_Id) return Boolean;    -- Flag15
8041
8042    function Must_Override
8043      (N : Node_Id) return Boolean;    -- Flag14
8044
8045    function Name
8046      (N : Node_Id) return Node_Id;    -- Node2
8047
8048    function Names
8049      (N : Node_Id) return List_Id;    -- List2
8050
8051    function Next_Entity
8052      (N : Node_Id) return Node_Id;    -- Node2
8053
8054    function Next_Named_Actual
8055      (N : Node_Id) return Node_Id;    -- Node4
8056
8057    function Next_Pragma
8058      (N : Node_Id) return Node_Id;    -- Node1
8059
8060    function Next_Rep_Item
8061      (N : Node_Id) return Node_Id;    -- Node5
8062
8063    function Next_Use_Clause
8064      (N : Node_Id) return Node_Id;    -- Node3
8065
8066    function No_Ctrl_Actions
8067      (N : Node_Id) return Boolean;    -- Flag7
8068
8069    function No_Elaboration_Check
8070      (N : Node_Id) return Boolean;    -- Flag14
8071
8072    function No_Entities_Ref_In_Spec
8073      (N : Node_Id) return Boolean;    -- Flag8
8074
8075    function No_Initialization
8076      (N : Node_Id) return Boolean;    -- Flag13
8077
8078    function No_Truncation
8079      (N : Node_Id) return Boolean;    -- Flag17
8080
8081    function Null_Present
8082      (N : Node_Id) return Boolean;    -- Flag13
8083
8084    function Null_Exclusion_Present
8085      (N : Node_Id) return Boolean;    -- Flag11
8086
8087    function Null_Record_Present
8088      (N : Node_Id) return Boolean;    -- Flag17
8089
8090    function Object_Definition
8091      (N : Node_Id) return Node_Id;    -- Node4
8092
8093    function Original_Discriminant
8094      (N : Node_Id) return Node_Id;    -- Node2
8095
8096    function Original_Entity
8097      (N : Node_Id) return Entity_Id;  -- Node2
8098
8099    function Others_Discrete_Choices
8100      (N : Node_Id) return List_Id;    -- List1
8101
8102    function Out_Present
8103      (N : Node_Id) return Boolean;    -- Flag17
8104
8105    function Parameter_Associations
8106      (N : Node_Id) return List_Id;    -- List3
8107
8108    function Parameter_List_Truncated
8109      (N : Node_Id) return Boolean;    -- Flag17
8110
8111    function Parameter_Specifications
8112      (N : Node_Id) return List_Id;    -- List3
8113
8114    function Parameter_Type
8115      (N : Node_Id) return Node_Id;    -- Node2
8116
8117    function Parent_Spec
8118      (N : Node_Id) return Node_Id;    -- Node4
8119
8120    function PPC_Enabled
8121      (N : Node_Id) return Boolean;    -- Flag5
8122
8123    function Position
8124      (N : Node_Id) return Node_Id;    -- Node2
8125
8126    function Pragma_Argument_Associations
8127      (N : Node_Id) return List_Id;    -- List2
8128
8129    function Pragma_Identifier
8130      (N : Node_Id) return Node_Id;    -- Node4
8131
8132    function Pragmas_After
8133      (N : Node_Id) return List_Id;    -- List5
8134
8135    function Pragmas_Before
8136      (N : Node_Id) return List_Id;    -- List4
8137
8138    function Prefix
8139      (N : Node_Id) return Node_Id;    -- Node3
8140
8141    function Present_Expr
8142      (N : Node_Id) return Uint;       -- Uint3
8143
8144    function Prev_Ids
8145      (N : Node_Id) return Boolean;    -- Flag6
8146
8147    function Print_In_Hex
8148      (N : Node_Id) return Boolean;    -- Flag13
8149
8150    function Private_Declarations
8151      (N : Node_Id) return List_Id;    -- List3
8152
8153    function Private_Present
8154      (N : Node_Id) return Boolean;    -- Flag15
8155
8156    function Procedure_To_Call
8157      (N : Node_Id) return Node_Id;    -- Node2
8158
8159    function Proper_Body
8160      (N : Node_Id) return Node_Id;    -- Node1
8161
8162    function Protected_Definition
8163      (N : Node_Id) return Node_Id;    -- Node3
8164
8165    function Protected_Present
8166      (N : Node_Id) return Boolean;    -- Flag6
8167
8168    function Raises_Constraint_Error
8169      (N : Node_Id) return Boolean;    -- Flag7
8170
8171    function Range_Constraint
8172      (N : Node_Id) return Node_Id;    -- Node4
8173
8174    function Range_Expression
8175      (N : Node_Id) return Node_Id;    -- Node4
8176
8177    function Real_Range_Specification
8178      (N : Node_Id) return Node_Id;    -- Node4
8179
8180    function Realval
8181      (N : Node_Id) return Ureal;      -- Ureal3
8182
8183    function Reason
8184      (N : Node_Id) return Uint;       -- Uint3
8185
8186    function Record_Extension_Part
8187      (N : Node_Id) return Node_Id;    -- Node3
8188
8189    function Redundant_Use
8190      (N : Node_Id) return Boolean;    -- Flag13
8191
8192    function Renaming_Exception
8193      (N : Node_Id) return Node_Id;    -- Node2
8194
8195    function Result_Definition
8196      (N : Node_Id) return Node_Id;    -- Node4
8197
8198    function Return_Object_Declarations
8199      (N : Node_Id) return List_Id;    -- List3
8200
8201    function Return_Statement_Entity
8202      (N : Node_Id) return Node_Id;    -- Node5
8203
8204    function Reverse_Present
8205      (N : Node_Id) return Boolean;    -- Flag15
8206
8207    function Right_Opnd
8208      (N : Node_Id) return Node_Id;    -- Node3
8209
8210    function Rounded_Result
8211      (N : Node_Id) return Boolean;    -- Flag18
8212
8213    function Scope
8214      (N : Node_Id) return Node_Id;    -- Node3
8215
8216    function Select_Alternatives
8217      (N : Node_Id) return List_Id;    -- List1
8218
8219    function Selector_Name
8220      (N : Node_Id) return Node_Id;    -- Node2
8221
8222    function Selector_Names
8223      (N : Node_Id) return List_Id;    -- List1
8224
8225    function Shift_Count_OK
8226      (N : Node_Id) return Boolean;    -- Flag4
8227
8228    function Source_Type
8229      (N : Node_Id) return Entity_Id;  -- Node1
8230
8231    function Specification
8232      (N : Node_Id) return Node_Id;    -- Node1
8233
8234    function Statements
8235      (N : Node_Id) return List_Id;    -- List3
8236
8237    function Static_Processing_OK
8238      (N : Node_Id) return Boolean;    -- Flag4
8239
8240    function Storage_Pool
8241      (N : Node_Id) return Node_Id;    -- Node1
8242
8243    function Strval
8244      (N : Node_Id) return String_Id;  -- Str3
8245
8246    function Subtype_Indication
8247      (N : Node_Id) return Node_Id;    -- Node5
8248
8249    function Subtype_Mark
8250      (N : Node_Id) return Node_Id;    -- Node4
8251
8252    function Subtype_Marks
8253      (N : Node_Id) return List_Id;    -- List2
8254
8255    function Synchronized_Present
8256      (N : Node_Id) return Boolean;    -- Flag7
8257
8258    function Tagged_Present
8259      (N : Node_Id) return Boolean;    -- Flag15
8260
8261    function Target_Type
8262      (N : Node_Id) return Entity_Id;  -- Node2
8263
8264    function Task_Definition
8265      (N : Node_Id) return Node_Id;    -- Node3
8266
8267    function Task_Present
8268      (N : Node_Id) return Boolean;    -- Flag5
8269
8270    function Then_Actions
8271      (N : Node_Id) return List_Id;    -- List2
8272
8273    function Then_Statements
8274      (N : Node_Id) return List_Id;    -- List2
8275
8276    function Treat_Fixed_As_Integer
8277      (N : Node_Id) return Boolean;    -- Flag14
8278
8279    function Triggering_Alternative
8280      (N : Node_Id) return Node_Id;    -- Node1
8281
8282    function Triggering_Statement
8283      (N : Node_Id) return Node_Id;    -- Node1
8284
8285    function TSS_Elist
8286      (N : Node_Id) return Elist_Id;   -- Elist3
8287
8288    function Type_Definition
8289      (N : Node_Id) return Node_Id;    -- Node3
8290
8291    function Unit
8292      (N : Node_Id) return Node_Id;    -- Node2
8293
8294    function Unknown_Discriminants_Present
8295      (N : Node_Id) return Boolean;    -- Flag13
8296
8297    function Unreferenced_In_Spec
8298      (N : Node_Id) return Boolean;    -- Flag7
8299
8300    function Variant_Part
8301      (N : Node_Id) return Node_Id;    -- Node4
8302
8303    function Variants
8304      (N : Node_Id) return List_Id;    -- List1
8305
8306    function Visible_Declarations
8307      (N : Node_Id) return List_Id;    -- List2
8308
8309    function Was_Originally_Stub
8310      (N : Node_Id) return Boolean;    -- Flag13
8311
8312    function Zero_Cost_Handling
8313      (N : Node_Id) return Boolean;    -- Flag5
8314
8315    --  End functions (note used by xsinfo utility program to end processing)
8316
8317    ----------------------------
8318    -- Node Update Procedures --
8319    ----------------------------
8320
8321    --  These are the corresponding node update routines, which again provide
8322    --  a high level logical access with type checking. In addition to setting
8323    --  the indicated field of the node N to the given Val, in the case of
8324    --  tree pointers (List1-4), the parent pointer of the Val node is set to
8325    --  point back to node N. This automates the setting of the parent pointer.
8326
8327    procedure Set_ABE_Is_Certain
8328      (N : Node_Id; Val : Boolean := True);    -- Flag18
8329
8330    procedure Set_Abort_Present
8331      (N : Node_Id; Val : Boolean := True);    -- Flag15
8332
8333    procedure Set_Abortable_Part
8334      (N : Node_Id; Val : Node_Id);            -- Node2
8335
8336    procedure Set_Abstract_Present
8337      (N : Node_Id; Val : Boolean := True);    -- Flag4
8338
8339    procedure Set_Accept_Handler_Records
8340      (N : Node_Id; Val : List_Id);            -- List5
8341
8342    procedure Set_Accept_Statement
8343      (N : Node_Id; Val : Node_Id);            -- Node2
8344
8345    procedure Set_Access_Definition
8346      (N : Node_Id; Val : Node_Id);            -- Node3
8347
8348    procedure Set_Access_To_Subprogram_Definition
8349      (N : Node_Id; Val : Node_Id);            -- Node3
8350
8351    procedure Set_Access_Types_To_Process
8352      (N : Node_Id; Val : Elist_Id);           -- Elist2
8353
8354    procedure Set_Actions
8355      (N : Node_Id; Val : List_Id);            -- List1
8356
8357    procedure Set_Activation_Chain_Entity
8358      (N : Node_Id; Val : Node_Id);            -- Node3
8359
8360    procedure Set_Acts_As_Spec
8361      (N : Node_Id; Val : Boolean := True);    -- Flag4
8362
8363    procedure Set_Actual_Designated_Subtype
8364      (N : Node_Id; Val : Node_Id);            -- Node4
8365
8366    procedure Set_Address_Warning_Posted
8367      (N : Node_Id; Val : Boolean := True);    -- Flag18
8368
8369    procedure Set_Aggregate_Bounds
8370      (N : Node_Id; Val : Node_Id);            -- Node3
8371
8372    procedure Set_Aliased_Present
8373      (N : Node_Id; Val : Boolean := True);    -- Flag4
8374
8375    procedure Set_All_Others
8376      (N : Node_Id; Val : Boolean := True);    -- Flag11
8377
8378    procedure Set_All_Present
8379      (N : Node_Id; Val : Boolean := True);    -- Flag15
8380
8381    procedure Set_Alternatives
8382      (N : Node_Id; Val : List_Id);            -- List4
8383
8384    procedure Set_Ancestor_Part
8385      (N : Node_Id; Val : Node_Id);            -- Node3
8386
8387    procedure Set_Array_Aggregate
8388      (N : Node_Id; Val : Node_Id);            -- Node3
8389
8390    procedure Set_Assignment_OK
8391      (N : Node_Id; Val : Boolean := True);    -- Flag15
8392
8393    procedure Set_Associated_Node
8394      (N : Node_Id; Val : Node_Id);            -- Node4
8395
8396    procedure Set_Attribute_Name
8397      (N : Node_Id; Val : Name_Id);            -- Name2
8398
8399    procedure Set_At_End_Proc
8400      (N : Node_Id; Val : Node_Id);            -- Node1
8401
8402    procedure Set_Aux_Decls_Node
8403      (N : Node_Id; Val : Node_Id);            -- Node5
8404
8405    procedure Set_Backwards_OK
8406      (N : Node_Id; Val : Boolean := True);    -- Flag6
8407
8408    procedure Set_Bad_Is_Detected
8409      (N : Node_Id; Val : Boolean := True);    -- Flag15
8410
8411    procedure Set_Body_Required
8412      (N : Node_Id; Val : Boolean := True);    -- Flag13
8413
8414    procedure Set_Body_To_Inline
8415      (N : Node_Id; Val : Node_Id);            -- Node3
8416
8417    procedure Set_Box_Present
8418      (N : Node_Id; Val : Boolean := True);    -- Flag15
8419
8420    procedure Set_By_Ref
8421      (N : Node_Id; Val : Boolean := True);    -- Flag5
8422
8423    procedure Set_Char_Literal_Value
8424      (N : Node_Id; Val : Uint);               -- Uint2
8425
8426    procedure Set_Chars
8427      (N : Node_Id; Val : Name_Id);            -- Name1
8428
8429    procedure Set_Check_Address_Alignment
8430      (N : Node_Id; Val : Boolean := True);    -- Flag11
8431
8432    procedure Set_Choice_Parameter
8433      (N : Node_Id; Val : Node_Id);            -- Node2
8434
8435    procedure Set_Coextensions
8436      (N : Node_Id; Val : Elist_Id);           -- Elist4
8437
8438    procedure Set_Choices
8439      (N : Node_Id; Val : List_Id);            -- List1
8440
8441    procedure Set_Comes_From_Extended_Return_Statement
8442      (N : Node_Id; Val : Boolean := True);    -- Flag18
8443
8444    procedure Set_Compile_Time_Known_Aggregate
8445      (N : Node_Id; Val : Boolean := True);    -- Flag18
8446
8447    procedure Set_Component_Associations
8448      (N : Node_Id; Val : List_Id);            -- List2
8449
8450    procedure Set_Component_Clauses
8451      (N : Node_Id; Val : List_Id);            -- List3
8452
8453    procedure Set_Component_Definition
8454      (N : Node_Id; Val : Node_Id);            -- Node4
8455
8456    procedure Set_Component_Items
8457      (N : Node_Id; Val : List_Id);            -- List3
8458
8459    procedure Set_Component_List
8460      (N : Node_Id; Val : Node_Id);            -- Node1
8461
8462    procedure Set_Component_Name
8463      (N : Node_Id; Val : Node_Id);            -- Node1
8464
8465    procedure Set_Condition
8466      (N : Node_Id; Val : Node_Id);            -- Node1
8467
8468    procedure Set_Condition_Actions
8469      (N : Node_Id; Val : List_Id);            -- List3
8470
8471    procedure Set_Config_Pragmas
8472      (N : Node_Id; Val : List_Id);            -- List4
8473
8474    procedure Set_Constant_Present
8475      (N : Node_Id; Val : Boolean := True);    -- Flag17
8476
8477    procedure Set_Constraint
8478      (N : Node_Id; Val : Node_Id);            -- Node3
8479
8480    procedure Set_Constraints
8481      (N : Node_Id; Val : List_Id);            -- List1
8482
8483    procedure Set_Context_Installed
8484      (N : Node_Id; Val : Boolean := True);    -- Flag13
8485
8486    procedure Set_Context_Items
8487      (N : Node_Id; Val : List_Id);            -- List1
8488
8489    procedure Set_Controlling_Argument
8490      (N : Node_Id; Val : Node_Id);            -- Node1
8491
8492    procedure Set_Conversion_OK
8493      (N : Node_Id; Val : Boolean := True);    -- Flag14
8494
8495    procedure Set_Corresponding_Body
8496      (N : Node_Id; Val : Node_Id);            -- Node5
8497
8498    procedure Set_Corresponding_Formal_Spec
8499      (N : Node_Id; Val : Node_Id);            -- Node3
8500
8501    procedure Set_Corresponding_Generic_Association
8502      (N : Node_Id; Val : Node_Id);            -- Node5
8503
8504    procedure Set_Corresponding_Integer_Value
8505      (N : Node_Id; Val : Uint);               -- Uint4
8506
8507    procedure Set_Corresponding_Spec
8508      (N : Node_Id; Val : Node_Id);            -- Node5
8509
8510    procedure Set_Corresponding_Stub
8511      (N : Node_Id; Val : Node_Id);            -- Node3
8512
8513    procedure Set_Dcheck_Function
8514      (N : Node_Id; Val : Entity_Id);          -- Node5
8515
8516    procedure Set_Debug_Statement
8517      (N : Node_Id; Val : Node_Id);            -- Node3
8518
8519    procedure Set_Declarations
8520      (N : Node_Id; Val : List_Id);            -- List2
8521
8522    procedure Set_Default_Expression
8523      (N : Node_Id; Val : Node_Id);            -- Node5
8524
8525    procedure Set_Default_Name
8526      (N : Node_Id; Val : Node_Id);            -- Node2
8527
8528    procedure Set_Defining_Identifier
8529      (N : Node_Id; Val : Entity_Id);          -- Node1
8530
8531    procedure Set_Defining_Unit_Name
8532      (N : Node_Id; Val : Node_Id);            -- Node1
8533
8534    procedure Set_Delay_Alternative
8535      (N : Node_Id; Val : Node_Id);            -- Node4
8536
8537    procedure Set_Delay_Statement
8538      (N : Node_Id; Val : Node_Id);            -- Node2
8539
8540    procedure Set_Delta_Expression
8541      (N : Node_Id; Val : Node_Id);            -- Node3
8542
8543    procedure Set_Digits_Expression
8544      (N : Node_Id; Val : Node_Id);            -- Node2
8545
8546    procedure Set_Discr_Check_Funcs_Built
8547      (N : Node_Id; Val : Boolean := True);    -- Flag11
8548
8549    procedure Set_Discrete_Choices
8550      (N : Node_Id; Val : List_Id);            -- List4
8551
8552    procedure Set_Discrete_Range
8553      (N : Node_Id; Val : Node_Id);            -- Node4
8554
8555    procedure Set_Discrete_Subtype_Definition
8556      (N : Node_Id; Val : Node_Id);            -- Node4
8557
8558    procedure Set_Discrete_Subtype_Definitions
8559      (N : Node_Id; Val : List_Id);            -- List2
8560
8561    procedure Set_Discriminant_Specifications
8562      (N : Node_Id; Val : List_Id);            -- List4
8563
8564    procedure Set_Discriminant_Type
8565      (N : Node_Id; Val : Node_Id);            -- Node5
8566
8567    procedure Set_Do_Accessibility_Check
8568      (N : Node_Id; Val : Boolean := True);    -- Flag13
8569
8570    procedure Set_Do_Discriminant_Check
8571      (N : Node_Id; Val : Boolean := True);    -- Flag13
8572
8573    procedure Set_Do_Division_Check
8574      (N : Node_Id; Val : Boolean := True);    -- Flag13
8575
8576    procedure Set_Do_Length_Check
8577      (N : Node_Id; Val : Boolean := True);    -- Flag4
8578
8579    procedure Set_Do_Overflow_Check
8580      (N : Node_Id; Val : Boolean := True);    -- Flag17
8581
8582    procedure Set_Do_Range_Check
8583      (N : Node_Id; Val : Boolean := True);    -- Flag9
8584
8585    procedure Set_Do_Storage_Check
8586      (N : Node_Id; Val : Boolean := True);    -- Flag17
8587
8588    procedure Set_Do_Tag_Check
8589      (N : Node_Id; Val : Boolean := True);    -- Flag13
8590
8591    procedure Set_Elaborate_All_Desirable
8592      (N : Node_Id; Val : Boolean := True);    -- Flag9
8593
8594    procedure Set_Elaborate_All_Present
8595      (N : Node_Id; Val : Boolean := True);    -- Flag14
8596
8597    procedure Set_Elaborate_Desirable
8598      (N : Node_Id; Val : Boolean := True);    -- Flag11
8599
8600    procedure Set_Elaborate_Present
8601      (N : Node_Id; Val : Boolean := True);    -- Flag4
8602
8603    procedure Set_Elaboration_Boolean
8604      (N : Node_Id; Val : Node_Id);            -- Node2
8605
8606    procedure Set_Else_Actions
8607      (N : Node_Id; Val : List_Id);            -- List3
8608
8609    procedure Set_Else_Statements
8610      (N : Node_Id; Val : List_Id);            -- List4
8611
8612    procedure Set_Elsif_Parts
8613      (N : Node_Id; Val : List_Id);            -- List3
8614
8615    procedure Set_Enclosing_Variant
8616      (N : Node_Id; Val : Node_Id);            -- Node2
8617
8618    procedure Set_End_Label
8619      (N : Node_Id; Val : Node_Id);            -- Node4
8620
8621    procedure Set_End_Span
8622      (N : Node_Id; Val : Uint);               -- Uint5
8623
8624    procedure Set_Entity
8625      (N : Node_Id; Val : Node_Id);            -- Node4
8626
8627    procedure Set_Entry_Body_Formal_Part
8628      (N : Node_Id; Val : Node_Id);            -- Node5
8629
8630    procedure Set_Entry_Call_Alternative
8631      (N : Node_Id; Val : Node_Id);            -- Node1
8632
8633    procedure Set_Entry_Call_Statement
8634      (N : Node_Id; Val : Node_Id);            -- Node1
8635
8636    procedure Set_Entry_Direct_Name
8637      (N : Node_Id; Val : Node_Id);            -- Node1
8638
8639    procedure Set_Entry_Index
8640      (N : Node_Id; Val : Node_Id);            -- Node5
8641
8642    procedure Set_Entry_Index_Specification
8643      (N : Node_Id; Val : Node_Id);            -- Node4
8644
8645    procedure Set_Etype
8646      (N : Node_Id; Val : Node_Id);            -- Node5
8647
8648    procedure Set_Exception_Choices
8649      (N : Node_Id; Val : List_Id);            -- List4
8650
8651    procedure Set_Exception_Handlers
8652      (N : Node_Id; Val : List_Id);            -- List5
8653
8654    procedure Set_Exception_Junk
8655      (N : Node_Id; Val : Boolean := True);    -- Flag8
8656
8657    procedure Set_Exception_Label
8658      (N : Node_Id; Val : Node_Id);            -- Node5
8659
8660    procedure Set_Expansion_Delayed
8661      (N : Node_Id; Val : Boolean := True);    -- Flag11
8662
8663    procedure Set_Explicit_Actual_Parameter
8664      (N : Node_Id; Val : Node_Id);            -- Node3
8665
8666    procedure Set_Explicit_Generic_Actual_Parameter
8667      (N : Node_Id; Val : Node_Id);            -- Node1
8668
8669    procedure Set_Expression
8670      (N : Node_Id; Val : Node_Id);            -- Node3
8671
8672    procedure Set_Expressions
8673      (N : Node_Id; Val : List_Id);            -- List1
8674
8675    procedure Set_First_Bit
8676      (N : Node_Id; Val : Node_Id);            -- Node3
8677
8678    procedure Set_First_Inlined_Subprogram
8679      (N : Node_Id; Val : Entity_Id);          -- Node3
8680
8681    procedure Set_First_Name
8682      (N : Node_Id; Val : Boolean := True);    -- Flag5
8683
8684    procedure Set_First_Named_Actual
8685      (N : Node_Id; Val : Node_Id);            -- Node4
8686
8687    procedure Set_First_Real_Statement
8688      (N : Node_Id; Val : Node_Id);            -- Node2
8689
8690    procedure Set_First_Subtype_Link
8691      (N : Node_Id; Val : Entity_Id);          -- Node5
8692
8693    procedure Set_Float_Truncate
8694      (N : Node_Id; Val : Boolean := True);    -- Flag11
8695
8696    procedure Set_Formal_Type_Definition
8697      (N : Node_Id; Val : Node_Id);            -- Node3
8698
8699    procedure Set_Forwards_OK
8700      (N : Node_Id; Val : Boolean := True);    -- Flag5
8701
8702    procedure Set_From_At_Mod
8703      (N : Node_Id; Val : Boolean := True);    -- Flag4
8704
8705    procedure Set_From_At_End
8706      (N : Node_Id; Val : Boolean := True);    -- Flag4
8707
8708    procedure Set_From_Default
8709      (N : Node_Id; Val : Boolean := True);    -- Flag6
8710
8711    procedure Set_Generic_Associations
8712      (N : Node_Id; Val : List_Id);            -- List3
8713
8714    procedure Set_Generic_Formal_Declarations
8715      (N : Node_Id; Val : List_Id);            -- List2
8716
8717    procedure Set_Generic_Parent
8718      (N : Node_Id; Val : Node_Id);            -- Node5
8719
8720    procedure Set_Generic_Parent_Type
8721      (N : Node_Id; Val : Node_Id);            -- Node4
8722
8723    procedure Set_Handled_Statement_Sequence
8724      (N : Node_Id; Val : Node_Id);            -- Node4
8725
8726    procedure Set_Handler_List_Entry
8727      (N : Node_Id; Val : Node_Id);            -- Node2
8728
8729    procedure Set_Has_Created_Identifier
8730      (N : Node_Id; Val : Boolean := True);    -- Flag15
8731
8732    procedure Set_Has_Dynamic_Length_Check
8733      (N : Node_Id; Val : Boolean := True);    -- Flag10
8734
8735    procedure Set_Has_Dynamic_Range_Check
8736      (N : Node_Id; Val : Boolean := True);    -- Flag12
8737
8738    procedure Set_Has_Init_Expression
8739      (N : Node_Id; Val : Boolean := True);    -- Flag14
8740
8741    procedure Set_Has_Local_Raise
8742      (N : Node_Id; Val : Boolean := True);    -- Flag8
8743
8744    procedure Set_Has_No_Elaboration_Code
8745      (N : Node_Id; Val : Boolean := True);    -- Flag17
8746
8747    procedure Set_Has_Priority_Pragma
8748      (N : Node_Id; Val : Boolean := True);    -- Flag6
8749
8750    procedure Set_Has_Private_View
8751      (N : Node_Id; Val : Boolean := True);    -- Flag11
8752
8753    procedure Set_Has_Relative_Deadline_Pragma
8754      (N : Node_Id; Val : Boolean := True);    -- Flag9
8755
8756    procedure Set_Has_Self_Reference
8757      (N : Node_Id; Val : Boolean := True);    -- Flag13
8758
8759    procedure Set_Has_Storage_Size_Pragma
8760      (N : Node_Id; Val : Boolean := True);    -- Flag5
8761
8762    procedure Set_Has_Task_Info_Pragma
8763      (N : Node_Id; Val : Boolean := True);    -- Flag7
8764
8765    procedure Set_Has_Task_Name_Pragma
8766      (N : Node_Id; Val : Boolean := True);    -- Flag8
8767
8768    procedure Set_Has_Wide_Character
8769      (N : Node_Id; Val : Boolean := True);    -- Flag11
8770
8771    procedure Set_Hidden_By_Use_Clause
8772      (N : Node_Id; Val : Elist_Id);           -- Elist4
8773
8774    procedure Set_High_Bound
8775      (N : Node_Id; Val : Node_Id);            -- Node2
8776
8777    procedure Set_Identifier
8778      (N : Node_Id; Val : Node_Id);            -- Node1
8779
8780    procedure Set_Interface_List
8781      (N : Node_Id; Val : List_Id);            -- List2
8782
8783    procedure Set_Interface_Present
8784      (N : Node_Id; Val : Boolean := True);    -- Flag16
8785
8786    procedure Set_Implicit_With
8787      (N : Node_Id; Val : Boolean := True);    -- Flag16
8788
8789    procedure Set_In_Present
8790      (N : Node_Id; Val : Boolean := True);    -- Flag15
8791
8792    procedure Set_Includes_Infinities
8793      (N : Node_Id; Val : Boolean := True);    -- Flag11
8794
8795    procedure Set_Instance_Spec
8796      (N : Node_Id; Val : Node_Id);            -- Node5
8797
8798    procedure Set_Intval
8799      (N : Node_Id; Val : Uint);               -- Uint3
8800
8801    procedure Set_Is_Asynchronous_Call_Block
8802      (N : Node_Id; Val : Boolean := True);    -- Flag7
8803
8804    procedure Set_Is_Component_Left_Opnd
8805      (N : Node_Id; Val : Boolean := True);    -- Flag13
8806
8807    procedure Set_Is_Component_Right_Opnd
8808      (N : Node_Id; Val : Boolean := True);    -- Flag14
8809
8810    procedure Set_Is_Controlling_Actual
8811      (N : Node_Id; Val : Boolean := True);    -- Flag16
8812
8813    procedure Set_Is_Dynamic_Coextension
8814      (N : Node_Id; Val : Boolean := True);    -- Flag18
8815
8816    procedure Set_Is_Entry_Barrier_Function
8817      (N : Node_Id; Val : Boolean := True);    -- Flag8
8818
8819    procedure Set_Is_Expanded_Build_In_Place_Call
8820      (N : Node_Id; Val : Boolean := True);    -- Flag11
8821
8822    procedure Set_Is_Folded_In_Parser
8823      (N : Node_Id; Val : Boolean := True);    -- Flag4
8824
8825    procedure Set_Is_In_Discriminant_Check
8826      (N : Node_Id; Val : Boolean := True);    -- Flag11
8827
8828    procedure Set_Is_Machine_Number
8829      (N : Node_Id; Val : Boolean := True);    -- Flag11
8830
8831    procedure Set_Is_Null_Loop
8832      (N : Node_Id; Val : Boolean := True);    -- Flag16
8833
8834    procedure Set_Is_Overloaded
8835      (N : Node_Id; Val : Boolean := True);    -- Flag5
8836
8837    procedure Set_Is_Power_Of_2_For_Shift
8838      (N : Node_Id; Val : Boolean := True);    -- Flag13
8839
8840    procedure Set_Is_Protected_Subprogram_Body
8841      (N : Node_Id; Val : Boolean := True);    -- Flag7
8842
8843    procedure Set_Is_Static_Coextension
8844      (N : Node_Id; Val : Boolean := True);    -- Flag14
8845
8846    procedure Set_Is_Static_Expression
8847      (N : Node_Id; Val : Boolean := True);    -- Flag6
8848
8849    procedure Set_Is_Subprogram_Descriptor
8850      (N : Node_Id; Val : Boolean := True);    -- Flag16
8851
8852    procedure Set_Is_Task_Allocation_Block
8853      (N : Node_Id; Val : Boolean := True);    -- Flag6
8854
8855    procedure Set_Is_Task_Master
8856      (N : Node_Id; Val : Boolean := True);    -- Flag5
8857
8858    procedure Set_Iteration_Scheme
8859      (N : Node_Id; Val : Node_Id);            -- Node2
8860
8861    procedure Set_Itype
8862      (N : Node_Id; Val : Entity_Id);          -- Node1
8863
8864    procedure Set_Kill_Range_Check
8865      (N : Node_Id; Val : Boolean := True);    -- Flag11
8866
8867    procedure Set_Last_Bit
8868      (N : Node_Id; Val : Node_Id);            -- Node4
8869
8870    procedure Set_Last_Name
8871      (N : Node_Id; Val : Boolean := True);    -- Flag6
8872
8873    procedure Set_Library_Unit
8874      (N : Node_Id; Val : Node_Id);            -- Node4
8875
8876    procedure Set_Label_Construct
8877      (N : Node_Id; Val : Node_Id);            -- Node2
8878
8879    procedure Set_Left_Opnd
8880      (N : Node_Id; Val : Node_Id);            -- Node2
8881
8882    procedure Set_Limited_View_Installed
8883      (N : Node_Id; Val : Boolean := True);    -- Flag18
8884
8885    procedure Set_Limited_Present
8886      (N : Node_Id; Val : Boolean := True);    -- Flag17
8887
8888    procedure Set_Literals
8889      (N : Node_Id; Val : List_Id);            -- List1
8890
8891    procedure Set_Local_Raise_Not_OK
8892      (N : Node_Id; Val : Boolean := True);    -- Flag7
8893
8894    procedure Set_Local_Raise_Statements
8895      (N : Node_Id; Val : Elist_Id);           -- Elist1
8896
8897    procedure Set_Loop_Actions
8898      (N : Node_Id; Val : List_Id);            -- List2
8899
8900    procedure Set_Loop_Parameter_Specification
8901      (N : Node_Id; Val : Node_Id);            -- Node4
8902
8903    procedure Set_Low_Bound
8904      (N : Node_Id; Val : Node_Id);            -- Node1
8905
8906    procedure Set_Mod_Clause
8907      (N : Node_Id; Val : Node_Id);            -- Node2
8908
8909    procedure Set_More_Ids
8910      (N : Node_Id; Val : Boolean := True);    -- Flag5
8911
8912    procedure Set_Must_Be_Byte_Aligned
8913      (N : Node_Id; Val : Boolean := True);    -- Flag14
8914
8915    procedure Set_Must_Not_Freeze
8916      (N : Node_Id; Val : Boolean := True);    -- Flag8
8917
8918    procedure Set_Must_Not_Override
8919      (N : Node_Id; Val : Boolean := True);    -- Flag15
8920
8921    procedure Set_Must_Override
8922      (N : Node_Id; Val : Boolean := True);    -- Flag14
8923
8924    procedure Set_Name
8925      (N : Node_Id; Val : Node_Id);            -- Node2
8926
8927    procedure Set_Names
8928      (N : Node_Id; Val : List_Id);            -- List2
8929
8930    procedure Set_Next_Entity
8931      (N : Node_Id; Val : Node_Id);            -- Node2
8932
8933    procedure Set_Next_Named_Actual
8934      (N : Node_Id; Val : Node_Id);            -- Node4
8935
8936    procedure Set_Next_Pragma
8937      (N : Node_Id; Val : Node_Id);            -- Node1
8938
8939    procedure Set_Next_Rep_Item
8940      (N : Node_Id; Val : Node_Id);            -- Node5
8941
8942    procedure Set_Next_Use_Clause
8943      (N : Node_Id; Val : Node_Id);            -- Node3
8944
8945    procedure Set_No_Ctrl_Actions
8946      (N : Node_Id; Val : Boolean := True);    -- Flag7
8947
8948    procedure Set_No_Elaboration_Check
8949      (N : Node_Id; Val : Boolean := True);    -- Flag14
8950
8951    procedure Set_No_Entities_Ref_In_Spec
8952      (N : Node_Id; Val : Boolean := True);    -- Flag8
8953
8954    procedure Set_No_Initialization
8955      (N : Node_Id; Val : Boolean := True);    -- Flag13
8956
8957    procedure Set_No_Truncation
8958      (N : Node_Id; Val : Boolean := True);    -- Flag17
8959
8960    procedure Set_Null_Present
8961      (N : Node_Id; Val : Boolean := True);    -- Flag13
8962
8963    procedure Set_Null_Exclusion_Present
8964      (N : Node_Id; Val : Boolean := True);    -- Flag11
8965
8966    procedure Set_Null_Record_Present
8967      (N : Node_Id; Val : Boolean := True);    -- Flag17
8968
8969    procedure Set_Object_Definition
8970      (N : Node_Id; Val : Node_Id);            -- Node4
8971
8972    procedure Set_Original_Discriminant
8973      (N : Node_Id; Val : Node_Id);            -- Node2
8974
8975    procedure Set_Original_Entity
8976      (N : Node_Id; Val : Entity_Id);          -- Node2
8977
8978    procedure Set_Others_Discrete_Choices
8979      (N : Node_Id; Val : List_Id);            -- List1
8980
8981    procedure Set_Out_Present
8982      (N : Node_Id; Val : Boolean := True);    -- Flag17
8983
8984    procedure Set_Parameter_Associations
8985      (N : Node_Id; Val : List_Id);            -- List3
8986
8987    procedure Set_Parameter_List_Truncated
8988      (N : Node_Id; Val : Boolean := True);    -- Flag17
8989
8990    procedure Set_Parameter_Specifications
8991      (N : Node_Id; Val : List_Id);            -- List3
8992
8993    procedure Set_Parameter_Type
8994      (N : Node_Id; Val : Node_Id);            -- Node2
8995
8996    procedure Set_Parent_Spec
8997      (N : Node_Id; Val : Node_Id);            -- Node4
8998
8999    procedure Set_PPC_Enabled
9000      (N : Node_Id; Val : Boolean := True);    -- Flag5
9001
9002    procedure Set_Position
9003      (N : Node_Id; Val : Node_Id);            -- Node2
9004
9005    procedure Set_Pragma_Argument_Associations
9006      (N : Node_Id; Val : List_Id);            -- List2
9007
9008    procedure Set_Pragma_Identifier
9009      (N : Node_Id; Val : Node_Id);            -- Node4
9010
9011    procedure Set_Pragmas_After
9012      (N : Node_Id; Val : List_Id);            -- List5
9013
9014    procedure Set_Pragmas_Before
9015      (N : Node_Id; Val : List_Id);            -- List4
9016
9017    procedure Set_Prefix
9018      (N : Node_Id; Val : Node_Id);            -- Node3
9019
9020    procedure Set_Present_Expr
9021      (N : Node_Id; Val : Uint);               -- Uint3
9022
9023    procedure Set_Prev_Ids
9024      (N : Node_Id; Val : Boolean := True);    -- Flag6
9025
9026    procedure Set_Print_In_Hex
9027      (N : Node_Id; Val : Boolean := True);    -- Flag13
9028
9029    procedure Set_Private_Declarations
9030      (N : Node_Id; Val : List_Id);            -- List3
9031
9032    procedure Set_Private_Present
9033      (N : Node_Id; Val : Boolean := True);    -- Flag15
9034
9035    procedure Set_Procedure_To_Call
9036      (N : Node_Id; Val : Node_Id);            -- Node2
9037
9038    procedure Set_Proper_Body
9039      (N : Node_Id; Val : Node_Id);            -- Node1
9040
9041    procedure Set_Protected_Definition
9042      (N : Node_Id; Val : Node_Id);            -- Node3
9043
9044    procedure Set_Protected_Present
9045      (N : Node_Id; Val : Boolean := True);    -- Flag6
9046
9047    procedure Set_Raises_Constraint_Error
9048      (N : Node_Id; Val : Boolean := True);    -- Flag7
9049
9050    procedure Set_Range_Constraint
9051      (N : Node_Id; Val : Node_Id);            -- Node4
9052
9053    procedure Set_Range_Expression
9054      (N : Node_Id; Val : Node_Id);            -- Node4
9055
9056    procedure Set_Real_Range_Specification
9057      (N : Node_Id; Val : Node_Id);            -- Node4
9058
9059    procedure Set_Realval
9060      (N : Node_Id; Val : Ureal);              -- Ureal3
9061
9062    procedure Set_Reason
9063      (N : Node_Id; Val : Uint);               -- Uint3
9064
9065    procedure Set_Record_Extension_Part
9066      (N : Node_Id; Val : Node_Id);            -- Node3
9067
9068    procedure Set_Redundant_Use
9069      (N : Node_Id; Val : Boolean := True);    -- Flag13
9070
9071    procedure Set_Renaming_Exception
9072      (N : Node_Id; Val : Node_Id);            -- Node2
9073
9074    procedure Set_Result_Definition
9075      (N : Node_Id; Val : Node_Id);            -- Node4
9076
9077    procedure Set_Return_Object_Declarations
9078      (N : Node_Id; Val : List_Id);            -- List3
9079
9080    procedure Set_Return_Statement_Entity
9081      (N : Node_Id; Val : Node_Id);            -- Node5
9082
9083    procedure Set_Reverse_Present
9084      (N : Node_Id; Val : Boolean := True);    -- Flag15
9085
9086    procedure Set_Right_Opnd
9087      (N : Node_Id; Val : Node_Id);            -- Node3
9088
9089    procedure Set_Rounded_Result
9090      (N : Node_Id; Val : Boolean := True);    -- Flag18
9091
9092    procedure Set_Scope
9093      (N : Node_Id; Val : Node_Id);            -- Node3
9094
9095    procedure Set_Select_Alternatives
9096      (N : Node_Id; Val : List_Id);            -- List1
9097
9098    procedure Set_Selector_Name
9099      (N : Node_Id; Val : Node_Id);            -- Node2
9100
9101    procedure Set_Selector_Names
9102      (N : Node_Id; Val : List_Id);            -- List1
9103
9104    procedure Set_Shift_Count_OK
9105      (N : Node_Id; Val : Boolean := True);    -- Flag4
9106
9107    procedure Set_Source_Type
9108      (N : Node_Id; Val : Entity_Id);          -- Node1
9109
9110    procedure Set_Specification
9111      (N : Node_Id; Val : Node_Id);            -- Node1
9112
9113    procedure Set_Statements
9114      (N : Node_Id; Val : List_Id);            -- List3
9115
9116    procedure Set_Static_Processing_OK
9117      (N : Node_Id; Val : Boolean);            -- Flag4
9118
9119    procedure Set_Storage_Pool
9120      (N : Node_Id; Val : Node_Id);            -- Node1
9121
9122    procedure Set_Strval
9123      (N : Node_Id; Val : String_Id);          -- Str3
9124
9125    procedure Set_Subtype_Indication
9126      (N : Node_Id; Val : Node_Id);            -- Node5
9127
9128    procedure Set_Subtype_Mark
9129      (N : Node_Id; Val : Node_Id);            -- Node4
9130
9131    procedure Set_Subtype_Marks
9132      (N : Node_Id; Val : List_Id);            -- List2
9133
9134    procedure Set_Synchronized_Present
9135      (N : Node_Id; Val : Boolean := True);    -- Flag7
9136
9137    procedure Set_Tagged_Present
9138      (N : Node_Id; Val : Boolean := True);    -- Flag15
9139
9140    procedure Set_Target_Type
9141      (N : Node_Id; Val : Entity_Id);          -- Node2
9142
9143    procedure Set_Task_Definition
9144      (N : Node_Id; Val : Node_Id);            -- Node3
9145
9146    procedure Set_Task_Present
9147      (N : Node_Id; Val : Boolean := True);    -- Flag5
9148
9149    procedure Set_Then_Actions
9150      (N : Node_Id; Val : List_Id);            -- List2
9151
9152    procedure Set_Then_Statements
9153      (N : Node_Id; Val : List_Id);            -- List2
9154
9155    procedure Set_Treat_Fixed_As_Integer
9156      (N : Node_Id; Val : Boolean := True);    -- Flag14
9157
9158    procedure Set_Triggering_Alternative
9159      (N : Node_Id; Val : Node_Id);            -- Node1
9160
9161    procedure Set_Triggering_Statement
9162      (N : Node_Id; Val : Node_Id);            -- Node1
9163
9164    procedure Set_TSS_Elist
9165      (N : Node_Id; Val : Elist_Id);           -- Elist3
9166
9167    procedure Set_Type_Definition
9168      (N : Node_Id; Val : Node_Id);            -- Node3
9169
9170    procedure Set_Unit
9171      (N : Node_Id; Val : Node_Id);            -- Node2
9172
9173    procedure Set_Unknown_Discriminants_Present
9174      (N : Node_Id; Val : Boolean := True);    -- Flag13
9175
9176    procedure Set_Unreferenced_In_Spec
9177      (N : Node_Id; Val : Boolean := True);    -- Flag7
9178
9179    procedure Set_Variant_Part
9180      (N : Node_Id; Val : Node_Id);            -- Node4
9181
9182    procedure Set_Variants
9183      (N : Node_Id; Val : List_Id);            -- List1
9184
9185    procedure Set_Visible_Declarations
9186      (N : Node_Id; Val : List_Id);            -- List2
9187
9188    procedure Set_Was_Originally_Stub
9189      (N : Node_Id; Val : Boolean := True);    -- Flag13
9190
9191    procedure Set_Zero_Cost_Handling
9192      (N : Node_Id; Val : Boolean := True);    -- Flag5
9193
9194    -------------------------
9195    -- Iterator Procedures --
9196    -------------------------
9197
9198    --  The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9199
9200    procedure Next_Entity       (N : in out Node_Id);
9201    procedure Next_Named_Actual (N : in out Node_Id);
9202    procedure Next_Rep_Item     (N : in out Node_Id);
9203    procedure Next_Use_Clause   (N : in out Node_Id);
9204
9205    --------------------------------------
9206    -- Logical Access to End_Span Field --
9207    --------------------------------------
9208
9209    function End_Location (N : Node_Id) return Source_Ptr;
9210    --  N is an N_If_Statement or N_Case_Statement node, and this
9211    --  function returns the location of the IF token in the END IF
9212    --  sequence by translating the value of the End_Span field.
9213
9214    procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9215    --  N is an N_If_Statement or N_Case_Statement node. This procedure
9216    --  sets the End_Span field to correspond to the given value S. In
9217    --  other words, End_Span is set to the difference between S and
9218    --  Sloc (N), the starting location.
9219
9220    --------------------------------
9221    -- Node_Kind Membership Tests --
9222    --------------------------------
9223
9224    --  The following functions allow a convenient notation for testing whether
9225    --  a Node_Kind value matches any one of a list of possible values. In each
9226    --  case True is returned if the given T argument is equal to any of the V
9227    --  arguments. Note that there is a similar set of functions defined in
9228    --  Atree where the first argument is a Node_Id whose Nkind field is tested.
9229
9230    function Nkind_In
9231      (T  : Node_Kind;
9232       V1 : Node_Kind;
9233       V2 : Node_Kind) return Boolean;
9234
9235    function Nkind_In
9236      (T  : Node_Kind;
9237       V1 : Node_Kind;
9238       V2 : Node_Kind;
9239       V3 : Node_Kind) return Boolean;
9240
9241    function Nkind_In
9242      (T  : Node_Kind;
9243       V1 : Node_Kind;
9244       V2 : Node_Kind;
9245       V3 : Node_Kind;
9246       V4 : Node_Kind) return Boolean;
9247
9248    function Nkind_In
9249      (T  : Node_Kind;
9250       V1 : Node_Kind;
9251       V2 : Node_Kind;
9252       V3 : Node_Kind;
9253       V4 : Node_Kind;
9254       V5 : Node_Kind) return Boolean;
9255
9256    function Nkind_In
9257      (T  : Node_Kind;
9258       V1 : Node_Kind;
9259       V2 : Node_Kind;
9260       V3 : Node_Kind;
9261       V4 : Node_Kind;
9262       V5 : Node_Kind;
9263       V6 : 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;
9272       V6 : Node_Kind;
9273       V7 : Node_Kind) return Boolean;
9274
9275    function Nkind_In
9276      (T  : Node_Kind;
9277       V1 : Node_Kind;
9278       V2 : Node_Kind;
9279       V3 : Node_Kind;
9280       V4 : Node_Kind;
9281       V5 : Node_Kind;
9282       V6 : Node_Kind;
9283       V7 : Node_Kind;
9284       V8 : Node_Kind) return Boolean;
9285
9286    pragma Inline (Nkind_In);
9287    --  Inline all above functions
9288
9289    -----------------------
9290    -- Utility Functions --
9291    -----------------------
9292
9293    function Pragma_Name (N : Node_Id) return Name_Id;
9294    pragma Inline (Pragma_Name);
9295    --  Convenient function to obtain Chars field of Pragma_Identifier
9296
9297    -----------------------------
9298    -- Syntactic Parent Tables --
9299    -----------------------------
9300
9301    --  These tables show for each node, and for each of the five fields,
9302    --  whether the corresponding field is syntactic (True) or semantic (False).
9303    --  Unused entries are also set to False.
9304
9305    subtype Field_Num is Natural range 1 .. 5;
9306
9307    Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9308
9309    --  Following entries can be built automatically from the sinfo sources
9310    --  using the makeisf utility (currently this program is in spitbol).
9311
9312      N_Identifier =>
9313        (1 => True,    --  Chars (Name1)
9314         2 => False,   --  Original_Discriminant (Node2-Sem)
9315         3 => False,   --  unused
9316         4 => False,   --  Entity (Node4-Sem)
9317         5 => False),  --  Etype (Node5-Sem)
9318
9319      N_Integer_Literal =>
9320        (1 => False,   --  unused
9321         2 => False,   --  Original_Entity (Node2-Sem)
9322         3 => True,    --  Intval (Uint3)
9323         4 => False,   --  unused
9324         5 => False),  --  Etype (Node5-Sem)
9325
9326      N_Real_Literal =>
9327        (1 => False,   --  unused
9328         2 => False,   --  Original_Entity (Node2-Sem)
9329         3 => True,    --  Realval (Ureal3)
9330         4 => False,   --  Corresponding_Integer_Value (Uint4-Sem)
9331         5 => False),  --  Etype (Node5-Sem)
9332
9333      N_Character_Literal =>
9334        (1 => True,    --  Chars (Name1)
9335         2 => True,    --  Char_Literal_Value (Uint2)
9336         3 => False,   --  unused
9337         4 => False,   --  Entity (Node4-Sem)
9338         5 => False),  --  Etype (Node5-Sem)
9339
9340      N_String_Literal =>
9341        (1 => False,   --  unused
9342         2 => False,   --  unused
9343         3 => True,    --  Strval (Str3)
9344         4 => False,   --  unused
9345         5 => False),  --  Etype (Node5-Sem)
9346
9347      N_Pragma =>
9348        (1 => False,   --  Next_Pragma (Node1-Sem)
9349         2 => True,    --  Pragma_Argument_Associations (List2)
9350         3 => True,    --  Debug_Statement (Node3)
9351         4 => True,    --  Pragma_Identifier (Node4)
9352         5 => False),  --  Next_Rep_Item (Node5-Sem)
9353
9354      N_Pragma_Argument_Association =>
9355        (1 => True,    --  Chars (Name1)
9356         2 => False,   --  unused
9357         3 => True,    --  Expression (Node3)
9358         4 => False,   --  unused
9359         5 => False),  --  unused
9360
9361      N_Defining_Identifier =>
9362        (1 => True,    --  Chars (Name1)
9363         2 => False,   --  Next_Entity (Node2-Sem)
9364         3 => False,   --  Scope (Node3-Sem)
9365         4 => False,   --  unused
9366         5 => False),  --  Etype (Node5-Sem)
9367
9368      N_Full_Type_Declaration =>
9369        (1 => True,    --  Defining_Identifier (Node1)
9370         2 => False,   --  unused
9371         3 => True,    --  Type_Definition (Node3)
9372         4 => True,    --  Discriminant_Specifications (List4)
9373         5 => False),  --  unused
9374
9375      N_Subtype_Declaration =>
9376        (1 => True,    --  Defining_Identifier (Node1)
9377         2 => False,   --  unused
9378         3 => False,   --  unused
9379         4 => False,   --  Generic_Parent_Type (Node4-Sem)
9380         5 => True),   --  Subtype_Indication (Node5)
9381
9382      N_Subtype_Indication =>
9383        (1 => False,   --  unused
9384         2 => False,   --  unused
9385         3 => True,    --  Constraint (Node3)
9386         4 => True,    --  Subtype_Mark (Node4)
9387         5 => False),  --  Etype (Node5-Sem)
9388
9389      N_Object_Declaration =>
9390        (1 => True,    --  Defining_Identifier (Node1)
9391         2 => False,   --  Handler_List_Entry (Node2-Sem)
9392         3 => True,    --  Expression (Node3)
9393         4 => True,    --  Object_Definition (Node4)
9394         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
9395
9396      N_Number_Declaration =>
9397        (1 => True,    --  Defining_Identifier (Node1)
9398         2 => False,   --  unused
9399         3 => True,    --  Expression (Node3)
9400         4 => False,   --  unused
9401         5 => False),  --  unused
9402
9403      N_Derived_Type_Definition =>
9404        (1 => False,   --  unused
9405         2 => True,    --  Interface_List (List2)
9406         3 => True,    --  Record_Extension_Part (Node3)
9407         4 => False,   --  unused
9408         5 => True),   --  Subtype_Indication (Node5)
9409
9410      N_Range_Constraint =>
9411        (1 => False,   --  unused
9412         2 => False,   --  unused
9413         3 => False,   --  unused
9414         4 => True,    --  Range_Expression (Node4)
9415         5 => False),  --  unused
9416
9417      N_Range =>
9418        (1 => True,    --  Low_Bound (Node1)
9419         2 => True,    --  High_Bound (Node2)
9420         3 => False,   --  unused
9421         4 => False,   --  unused
9422         5 => False),  --  Etype (Node5-Sem)
9423
9424      N_Enumeration_Type_Definition =>
9425        (1 => True,    --  Literals (List1)
9426         2 => False,   --  unused
9427         3 => False,   --  unused
9428         4 => True,    --  End_Label (Node4)
9429         5 => False),  --  unused
9430
9431      N_Defining_Character_Literal =>
9432        (1 => True,    --  Chars (Name1)
9433         2 => False,   --  Next_Entity (Node2-Sem)
9434         3 => False,   --  Scope (Node3-Sem)
9435         4 => False,   --  unused
9436         5 => False),  --  Etype (Node5-Sem)
9437
9438      N_Signed_Integer_Type_Definition =>
9439        (1 => True,    --  Low_Bound (Node1)
9440         2 => True,    --  High_Bound (Node2)
9441         3 => False,   --  unused
9442         4 => False,   --  unused
9443         5 => False),  --  unused
9444
9445      N_Modular_Type_Definition =>
9446        (1 => False,   --  unused
9447         2 => False,   --  unused
9448         3 => True,    --  Expression (Node3)
9449         4 => False,   --  unused
9450         5 => False),  --  unused
9451
9452      N_Floating_Point_Definition =>
9453        (1 => False,   --  unused
9454         2 => True,    --  Digits_Expression (Node2)
9455         3 => False,   --  unused
9456         4 => True,    --  Real_Range_Specification (Node4)
9457         5 => False),  --  unused
9458
9459      N_Real_Range_Specification =>
9460        (1 => True,    --  Low_Bound (Node1)
9461         2 => True,    --  High_Bound (Node2)
9462         3 => False,   --  unused
9463         4 => False,   --  unused
9464         5 => False),  --  unused
9465
9466      N_Ordinary_Fixed_Point_Definition =>
9467        (1 => False,   --  unused
9468         2 => False,   --  unused
9469         3 => True,    --  Delta_Expression (Node3)
9470         4 => True,    --  Real_Range_Specification (Node4)
9471         5 => False),  --  unused
9472
9473      N_Decimal_Fixed_Point_Definition =>
9474        (1 => False,   --  unused
9475         2 => True,    --  Digits_Expression (Node2)
9476         3 => True,    --  Delta_Expression (Node3)
9477         4 => True,    --  Real_Range_Specification (Node4)
9478         5 => False),  --  unused
9479
9480      N_Digits_Constraint =>
9481        (1 => False,   --  unused
9482         2 => True,    --  Digits_Expression (Node2)
9483         3 => False,   --  unused
9484         4 => True,    --  Range_Constraint (Node4)
9485         5 => False),  --  unused
9486
9487      N_Unconstrained_Array_Definition =>
9488        (1 => False,   --  unused
9489         2 => True,    --  Subtype_Marks (List2)
9490         3 => False,   --  unused
9491         4 => True,    --  Component_Definition (Node4)
9492         5 => False),  --  unused
9493
9494      N_Constrained_Array_Definition =>
9495        (1 => False,   --  unused
9496         2 => True,    --  Discrete_Subtype_Definitions (List2)
9497         3 => False,   --  unused
9498         4 => True,    --  Component_Definition (Node4)
9499         5 => False),  --  unused
9500
9501      N_Component_Definition =>
9502        (1 => False,   --  unused
9503         2 => False,   --  unused
9504         3 => True,    --  Access_Definition (Node3)
9505         4 => False,   --  unused
9506         5 => True),   --  Subtype_Indication (Node5)
9507
9508      N_Discriminant_Specification =>
9509        (1 => True,    --  Defining_Identifier (Node1)
9510         2 => False,   --  unused
9511         3 => True,    --  Expression (Node3)
9512         4 => False,   --  unused
9513         5 => True),   --  Discriminant_Type (Node5)
9514
9515      N_Index_Or_Discriminant_Constraint =>
9516        (1 => True,    --  Constraints (List1)
9517         2 => False,   --  unused
9518         3 => False,   --  unused
9519         4 => False,   --  unused
9520         5 => False),  --  unused
9521
9522      N_Discriminant_Association =>
9523        (1 => True,    --  Selector_Names (List1)
9524         2 => False,   --  unused
9525         3 => True,    --  Expression (Node3)
9526         4 => False,   --  unused
9527         5 => False),  --  unused
9528
9529      N_Record_Definition =>
9530        (1 => True,    --  Component_List (Node1)
9531         2 => True,    --  Interface_List (List2)
9532         3 => False,   --  unused
9533         4 => True,    --  End_Label (Node4)
9534         5 => False),  --  unused
9535
9536      N_Component_List =>
9537        (1 => False,   --  unused
9538         2 => False,   --  unused
9539         3 => True,    --  Component_Items (List3)
9540         4 => True,    --  Variant_Part (Node4)
9541         5 => False),  --  unused
9542
9543      N_Component_Declaration =>
9544        (1 => True,    --  Defining_Identifier (Node1)
9545         2 => False,   --  unused
9546         3 => True,    --  Expression (Node3)
9547         4 => True,    --  Component_Definition (Node4)
9548         5 => False),  --  unused
9549
9550      N_Variant_Part =>
9551        (1 => True,    --  Variants (List1)
9552         2 => True,    --  Name (Node2)
9553         3 => False,   --  unused
9554         4 => False,   --  unused
9555         5 => False),  --  unused
9556
9557      N_Variant =>
9558        (1 => True,    --  Component_List (Node1)
9559         2 => False,   --  Enclosing_Variant (Node2-Sem)
9560         3 => False,   --  Present_Expr (Uint3-Sem)
9561         4 => True,    --  Discrete_Choices (List4)
9562         5 => False),  --  Dcheck_Function (Node5-Sem)
9563
9564      N_Others_Choice =>
9565        (1 => False,   --  Others_Discrete_Choices (List1-Sem)
9566         2 => False,   --  unused
9567         3 => False,   --  unused
9568         4 => False,   --  unused
9569         5 => False),  --  unused
9570
9571      N_Access_To_Object_Definition =>
9572        (1 => False,   --  unused
9573         2 => False,   --  unused
9574         3 => False,   --  unused
9575         4 => False,   --  unused
9576         5 => True),   --  Subtype_Indication (Node5)
9577
9578      N_Access_Function_Definition =>
9579        (1 => False,   --  unused
9580         2 => False,   --  unused
9581         3 => True,    --  Parameter_Specifications (List3)
9582         4 => True,    --  Result_Definition (Node4)
9583         5 => False),  --  unused
9584
9585      N_Access_Procedure_Definition =>
9586        (1 => False,   --  unused
9587         2 => False,   --  unused
9588         3 => True,    --  Parameter_Specifications (List3)
9589         4 => False,   --  unused
9590         5 => False),  --  unused
9591
9592      N_Access_Definition =>
9593        (1 => False,   --  unused
9594         2 => False,   --  unused
9595         3 => True,    --  Access_To_Subprogram_Definition (Node3)
9596         4 => True,    --  Subtype_Mark (Node4)
9597         5 => False),  --  unused
9598
9599      N_Incomplete_Type_Declaration =>
9600        (1 => True,    --  Defining_Identifier (Node1)
9601         2 => False,   --  unused
9602         3 => False,   --  unused
9603         4 => True,    --  Discriminant_Specifications (List4)
9604         5 => False),  --  unused
9605
9606      N_Explicit_Dereference =>
9607        (1 => False,   --  unused
9608         2 => False,   --  unused
9609         3 => True,    --  Prefix (Node3)
9610         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
9611         5 => False),  --  Etype (Node5-Sem)
9612
9613      N_Indexed_Component =>
9614        (1 => True,    --  Expressions (List1)
9615         2 => False,   --  unused
9616         3 => True,    --  Prefix (Node3)
9617         4 => False,   --  unused
9618         5 => False),  --  Etype (Node5-Sem)
9619
9620      N_Slice =>
9621        (1 => False,   --  unused
9622         2 => False,   --  unused
9623         3 => True,    --  Prefix (Node3)
9624         4 => True,    --  Discrete_Range (Node4)
9625         5 => False),  --  Etype (Node5-Sem)
9626
9627      N_Selected_Component =>
9628        (1 => False,   --  unused
9629         2 => True,    --  Selector_Name (Node2)
9630         3 => True,    --  Prefix (Node3)
9631         4 => False,   --  unused
9632         5 => False),  --  Etype (Node5-Sem)
9633
9634      N_Attribute_Reference =>
9635        (1 => True,    --  Expressions (List1)
9636         2 => True,    --  Attribute_Name (Name2)
9637         3 => True,    --  Prefix (Node3)
9638         4 => False,   --  Entity (Node4-Sem)
9639         5 => False),  --  Etype (Node5-Sem)
9640
9641      N_Aggregate =>
9642        (1 => True,    --  Expressions (List1)
9643         2 => True,    --  Component_Associations (List2)
9644         3 => False,   --  Aggregate_Bounds (Node3-Sem)
9645         4 => False,   --  unused
9646         5 => False),  --  Etype (Node5-Sem)
9647
9648      N_Component_Association =>
9649        (1 => True,    --  Choices (List1)
9650         2 => False,   --  Loop_Actions (List2-Sem)
9651         3 => True,    --  Expression (Node3)
9652         4 => False,   --  unused
9653         5 => False),  --  unused
9654
9655      N_Extension_Aggregate =>
9656        (1 => True,    --  Expressions (List1)
9657         2 => True,    --  Component_Associations (List2)
9658         3 => True,    --  Ancestor_Part (Node3)
9659         4 => False,   --  unused
9660         5 => False),  --  Etype (Node5-Sem)
9661
9662      N_Null =>
9663        (1 => False,   --  unused
9664         2 => False,   --  unused
9665         3 => False,   --  unused
9666         4 => False,   --  unused
9667         5 => False),  --  Etype (Node5-Sem)
9668
9669      N_And_Then =>
9670        (1 => False,   --  Actions (List1-Sem)
9671         2 => True,    --  Left_Opnd (Node2)
9672         3 => True,    --  Right_Opnd (Node3)
9673         4 => False,   --  unused
9674         5 => False),  --  Etype (Node5-Sem)
9675
9676      N_Or_Else =>
9677        (1 => False,   --  Actions (List1-Sem)
9678         2 => True,    --  Left_Opnd (Node2)
9679         3 => True,    --  Right_Opnd (Node3)
9680         4 => False,   --  unused
9681         5 => False),  --  Etype (Node5-Sem)
9682
9683      N_In =>
9684        (1 => False,   --  unused
9685         2 => True,    --  Left_Opnd (Node2)
9686         3 => True,    --  Right_Opnd (Node3)
9687         4 => False,   --  unused
9688         5 => False),  --  Etype (Node5-Sem)
9689
9690      N_Not_In =>
9691        (1 => False,   --  unused
9692         2 => True,    --  Left_Opnd (Node2)
9693         3 => True,    --  Right_Opnd (Node3)
9694         4 => False,   --  unused
9695         5 => False),  --  Etype (Node5-Sem)
9696
9697      N_Op_And =>
9698        (1 => True,    --  Chars (Name1)
9699         2 => True,    --  Left_Opnd (Node2)
9700         3 => True,    --  Right_Opnd (Node3)
9701         4 => False,   --  Entity (Node4-Sem)
9702         5 => False),  --  Etype (Node5-Sem)
9703
9704      N_Op_Or =>
9705        (1 => True,    --  Chars (Name1)
9706         2 => True,    --  Left_Opnd (Node2)
9707         3 => True,    --  Right_Opnd (Node3)
9708         4 => False,   --  Entity (Node4-Sem)
9709         5 => False),  --  Etype (Node5-Sem)
9710
9711      N_Op_Xor =>
9712        (1 => True,    --  Chars (Name1)
9713         2 => True,    --  Left_Opnd (Node2)
9714         3 => True,    --  Right_Opnd (Node3)
9715         4 => False,   --  Entity (Node4-Sem)
9716         5 => False),  --  Etype (Node5-Sem)
9717
9718      N_Op_Eq =>
9719        (1 => True,    --  Chars (Name1)
9720         2 => True,    --  Left_Opnd (Node2)
9721         3 => True,    --  Right_Opnd (Node3)
9722         4 => False,   --  Entity (Node4-Sem)
9723         5 => False),  --  Etype (Node5-Sem)
9724
9725      N_Op_Ne =>
9726        (1 => True,    --  Chars (Name1)
9727         2 => True,    --  Left_Opnd (Node2)
9728         3 => True,    --  Right_Opnd (Node3)
9729         4 => False,   --  Entity (Node4-Sem)
9730         5 => False),  --  Etype (Node5-Sem)
9731
9732      N_Op_Lt =>
9733        (1 => True,    --  Chars (Name1)
9734         2 => True,    --  Left_Opnd (Node2)
9735         3 => True,    --  Right_Opnd (Node3)
9736         4 => False,   --  Entity (Node4-Sem)
9737         5 => False),  --  Etype (Node5-Sem)
9738
9739      N_Op_Le =>
9740        (1 => True,    --  Chars (Name1)
9741         2 => True,    --  Left_Opnd (Node2)
9742         3 => True,    --  Right_Opnd (Node3)
9743         4 => False,   --  Entity (Node4-Sem)
9744         5 => False),  --  Etype (Node5-Sem)
9745
9746      N_Op_Gt =>
9747        (1 => True,    --  Chars (Name1)
9748         2 => True,    --  Left_Opnd (Node2)
9749         3 => True,    --  Right_Opnd (Node3)
9750         4 => False,   --  Entity (Node4-Sem)
9751         5 => False),  --  Etype (Node5-Sem)
9752
9753      N_Op_Ge =>
9754        (1 => True,    --  Chars (Name1)
9755         2 => True,    --  Left_Opnd (Node2)
9756         3 => True,    --  Right_Opnd (Node3)
9757         4 => False,   --  Entity (Node4-Sem)
9758         5 => False),  --  Etype (Node5-Sem)
9759
9760      N_Op_Add =>
9761        (1 => True,    --  Chars (Name1)
9762         2 => True,    --  Left_Opnd (Node2)
9763         3 => True,    --  Right_Opnd (Node3)
9764         4 => False,   --  Entity (Node4-Sem)
9765         5 => False),  --  Etype (Node5-Sem)
9766
9767      N_Op_Subtract =>
9768        (1 => True,    --  Chars (Name1)
9769         2 => True,    --  Left_Opnd (Node2)
9770         3 => True,    --  Right_Opnd (Node3)
9771         4 => False,   --  Entity (Node4-Sem)
9772         5 => False),  --  Etype (Node5-Sem)
9773
9774      N_Op_Concat =>
9775        (1 => True,    --  Chars (Name1)
9776         2 => True,    --  Left_Opnd (Node2)
9777         3 => True,    --  Right_Opnd (Node3)
9778         4 => False,   --  Entity (Node4-Sem)
9779         5 => False),  --  Etype (Node5-Sem)
9780
9781      N_Op_Multiply =>
9782        (1 => True,    --  Chars (Name1)
9783         2 => True,    --  Left_Opnd (Node2)
9784         3 => True,    --  Right_Opnd (Node3)
9785         4 => False,   --  Entity (Node4-Sem)
9786         5 => False),  --  Etype (Node5-Sem)
9787
9788      N_Op_Divide =>
9789        (1 => True,    --  Chars (Name1)
9790         2 => True,    --  Left_Opnd (Node2)
9791         3 => True,    --  Right_Opnd (Node3)
9792         4 => False,   --  Entity (Node4-Sem)
9793         5 => False),  --  Etype (Node5-Sem)
9794
9795      N_Op_Mod =>
9796        (1 => True,    --  Chars (Name1)
9797         2 => True,    --  Left_Opnd (Node2)
9798         3 => True,    --  Right_Opnd (Node3)
9799         4 => False,   --  Entity (Node4-Sem)
9800         5 => False),  --  Etype (Node5-Sem)
9801
9802      N_Op_Rem =>
9803        (1 => True,    --  Chars (Name1)
9804         2 => True,    --  Left_Opnd (Node2)
9805         3 => True,    --  Right_Opnd (Node3)
9806         4 => False,   --  Entity (Node4-Sem)
9807         5 => False),  --  Etype (Node5-Sem)
9808
9809      N_Op_Expon =>
9810        (1 => True,    --  Chars (Name1)
9811         2 => True,    --  Left_Opnd (Node2)
9812         3 => True,    --  Right_Opnd (Node3)
9813         4 => False,   --  Entity (Node4-Sem)
9814         5 => False),  --  Etype (Node5-Sem)
9815
9816      N_Op_Plus =>
9817        (1 => True,    --  Chars (Name1)
9818         2 => False,   --  unused
9819         3 => True,    --  Right_Opnd (Node3)
9820         4 => False,   --  Entity (Node4-Sem)
9821         5 => False),  --  Etype (Node5-Sem)
9822
9823      N_Op_Minus =>
9824        (1 => True,    --  Chars (Name1)
9825         2 => False,   --  unused
9826         3 => True,    --  Right_Opnd (Node3)
9827         4 => False,   --  Entity (Node4-Sem)
9828         5 => False),  --  Etype (Node5-Sem)
9829
9830      N_Op_Abs =>
9831        (1 => True,    --  Chars (Name1)
9832         2 => False,   --  unused
9833         3 => True,    --  Right_Opnd (Node3)
9834         4 => False,   --  Entity (Node4-Sem)
9835         5 => False),  --  Etype (Node5-Sem)
9836
9837      N_Op_Not =>
9838        (1 => True,    --  Chars (Name1)
9839         2 => False,   --  unused
9840         3 => True,    --  Right_Opnd (Node3)
9841         4 => False,   --  Entity (Node4-Sem)
9842         5 => False),  --  Etype (Node5-Sem)
9843
9844      N_Type_Conversion =>
9845        (1 => False,   --  unused
9846         2 => False,   --  unused
9847         3 => True,    --  Expression (Node3)
9848         4 => True,    --  Subtype_Mark (Node4)
9849         5 => False),  --  Etype (Node5-Sem)
9850
9851      N_Qualified_Expression =>
9852        (1 => False,   --  unused
9853         2 => False,   --  unused
9854         3 => True,    --  Expression (Node3)
9855         4 => True,    --  Subtype_Mark (Node4)
9856         5 => False),  --  Etype (Node5-Sem)
9857
9858      N_Allocator =>
9859        (1 => False,   --  Storage_Pool (Node1-Sem)
9860         2 => False,   --  Procedure_To_Call (Node2-Sem)
9861         3 => True,    --  Expression (Node3)
9862         4 => False,   --  Coextensions (Elist4-Sem)
9863         5 => False),  --  Etype (Node5-Sem)
9864
9865      N_Null_Statement =>
9866        (1 => False,   --  unused
9867         2 => False,   --  unused
9868         3 => False,   --  unused
9869         4 => False,   --  unused
9870         5 => False),  --  unused
9871
9872      N_Label =>
9873        (1 => True,    --  Identifier (Node1)
9874         2 => False,   --  unused
9875         3 => False,   --  unused
9876         4 => False,   --  unused
9877         5 => False),  --  unused
9878
9879      N_Assignment_Statement =>
9880        (1 => False,   --  unused
9881         2 => True,    --  Name (Node2)
9882         3 => True,    --  Expression (Node3)
9883         4 => False,   --  unused
9884         5 => False),  --  unused
9885
9886      N_If_Statement =>
9887        (1 => True,    --  Condition (Node1)
9888         2 => True,    --  Then_Statements (List2)
9889         3 => True,    --  Elsif_Parts (List3)
9890         4 => True,    --  Else_Statements (List4)
9891         5 => True),   --  End_Span (Uint5)
9892
9893      N_Elsif_Part =>
9894        (1 => True,    --  Condition (Node1)
9895         2 => True,    --  Then_Statements (List2)
9896         3 => False,   --  Condition_Actions (List3-Sem)
9897         4 => False,   --  unused
9898         5 => False),  --  unused
9899
9900      N_Case_Statement =>
9901        (1 => False,   --  unused
9902         2 => False,   --  unused
9903         3 => True,    --  Expression (Node3)
9904         4 => True,    --  Alternatives (List4)
9905         5 => True),   --  End_Span (Uint5)
9906
9907      N_Case_Statement_Alternative =>
9908        (1 => False,   --  unused
9909         2 => False,   --  unused
9910         3 => True,    --  Statements (List3)
9911         4 => True,    --  Discrete_Choices (List4)
9912         5 => False),  --  unused
9913
9914      N_Loop_Statement =>
9915        (1 => True,    --  Identifier (Node1)
9916         2 => True,    --  Iteration_Scheme (Node2)
9917         3 => True,    --  Statements (List3)
9918         4 => True,    --  End_Label (Node4)
9919         5 => False),  --  unused
9920
9921      N_Iteration_Scheme =>
9922        (1 => True,    --  Condition (Node1)
9923         2 => False,   --  unused
9924         3 => False,   --  Condition_Actions (List3-Sem)
9925         4 => True,    --  Loop_Parameter_Specification (Node4)
9926         5 => False),  --  unused
9927
9928      N_Loop_Parameter_Specification =>
9929        (1 => True,    --  Defining_Identifier (Node1)
9930         2 => False,   --  unused
9931         3 => False,   --  unused
9932         4 => True,    --  Discrete_Subtype_Definition (Node4)
9933         5 => False),  --  unused
9934
9935      N_Block_Statement =>
9936        (1 => True,    --  Identifier (Node1)
9937         2 => True,    --  Declarations (List2)
9938         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
9939         4 => True,    --  Handled_Statement_Sequence (Node4)
9940         5 => False),  --  unused
9941
9942      N_Exit_Statement =>
9943        (1 => True,    --  Condition (Node1)
9944         2 => True,    --  Name (Node2)
9945         3 => False,   --  unused
9946         4 => False,   --  unused
9947         5 => False),  --  unused
9948
9949      N_Goto_Statement =>
9950        (1 => False,   --  unused
9951         2 => True,    --  Name (Node2)
9952         3 => False,   --  unused
9953         4 => False,   --  unused
9954         5 => False),  --  unused
9955
9956      N_Subprogram_Declaration =>
9957        (1 => True,    --  Specification (Node1)
9958         2 => False,   --  unused
9959         3 => False,   --  Body_To_Inline (Node3-Sem)
9960         4 => False,   --  Parent_Spec (Node4-Sem)
9961         5 => False),  --  Corresponding_Body (Node5-Sem)
9962
9963      N_Abstract_Subprogram_Declaration =>
9964        (1 => True,    --  Specification (Node1)
9965         2 => False,   --  unused
9966         3 => False,   --  unused
9967         4 => False,   --  unused
9968         5 => False),  --  unused
9969
9970      N_Function_Specification =>
9971        (1 => True,    --  Defining_Unit_Name (Node1)
9972         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9973         3 => True,    --  Parameter_Specifications (List3)
9974         4 => True,    --  Result_Definition (Node4)
9975         5 => False),  --  Generic_Parent (Node5-Sem)
9976
9977      N_Procedure_Specification =>
9978        (1 => True,    --  Defining_Unit_Name (Node1)
9979         2 => False,   --  Elaboration_Boolean (Node2-Sem)
9980         3 => True,    --  Parameter_Specifications (List3)
9981         4 => False,   --  unused
9982         5 => False),  --  Generic_Parent (Node5-Sem)
9983
9984      N_Designator =>
9985        (1 => True,    --  Identifier (Node1)
9986         2 => True,    --  Name (Node2)
9987         3 => False,   --  unused
9988         4 => False,   --  unused
9989         5 => False),  --  unused
9990
9991      N_Defining_Program_Unit_Name =>
9992        (1 => True,    --  Defining_Identifier (Node1)
9993         2 => True,    --  Name (Node2)
9994         3 => False,   --  unused
9995         4 => False,   --  unused
9996         5 => False),  --  unused
9997
9998      N_Operator_Symbol =>
9999        (1 => True,    --  Chars (Name1)
10000         2 => False,   --  unused
10001         3 => True,    --  Strval (Str3)
10002         4 => False,   --  Entity (Node4-Sem)
10003         5 => False),  --  Etype (Node5-Sem)
10004
10005      N_Defining_Operator_Symbol =>
10006        (1 => True,    --  Chars (Name1)
10007         2 => False,   --  Next_Entity (Node2-Sem)
10008         3 => False,   --  Scope (Node3-Sem)
10009         4 => False,   --  unused
10010         5 => False),  --  Etype (Node5-Sem)
10011
10012      N_Parameter_Specification =>
10013        (1 => True,    --  Defining_Identifier (Node1)
10014         2 => True,    --  Parameter_Type (Node2)
10015         3 => True,    --  Expression (Node3)
10016         4 => False,   --  unused
10017         5 => False),  --  Default_Expression (Node5-Sem)
10018
10019      N_Subprogram_Body =>
10020        (1 => True,    --  Specification (Node1)
10021         2 => True,    --  Declarations (List2)
10022         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10023         4 => True,    --  Handled_Statement_Sequence (Node4)
10024         5 => False),  --  Corresponding_Spec (Node5-Sem)
10025
10026      N_Procedure_Call_Statement =>
10027        (1 => False,   --  Controlling_Argument (Node1-Sem)
10028         2 => True,    --  Name (Node2)
10029         3 => True,    --  Parameter_Associations (List3)
10030         4 => False,   --  First_Named_Actual (Node4-Sem)
10031         5 => False),  --  Etype (Node5-Sem)
10032
10033      N_Function_Call =>
10034        (1 => False,   --  Controlling_Argument (Node1-Sem)
10035         2 => True,    --  Name (Node2)
10036         3 => True,    --  Parameter_Associations (List3)
10037         4 => False,   --  First_Named_Actual (Node4-Sem)
10038         5 => False),  --  Etype (Node5-Sem)
10039
10040      N_Parameter_Association =>
10041        (1 => False,   --  unused
10042         2 => True,    --  Selector_Name (Node2)
10043         3 => True,    --  Explicit_Actual_Parameter (Node3)
10044         4 => False,   --  Next_Named_Actual (Node4-Sem)
10045         5 => False),  --  unused
10046
10047      N_Return_Statement =>
10048        (1 => False,   --  Storage_Pool (Node1-Sem)
10049         2 => False,   --  Procedure_To_Call (Node2-Sem)
10050         3 => True,    --  Expression (Node3)
10051         4 => False,   --  unused
10052         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10053
10054      N_Extended_Return_Statement =>
10055        (1 => False,   --  Storage_Pool (Node1-Sem)
10056         2 => False,   --  Procedure_To_Call (Node2-Sem)
10057         3 => True,    --  Return_Object_Declarations (List3)
10058         4 => True,    --  Handled_Statement_Sequence (Node4)
10059         5 => False),  --  Return_Statement_Entity (Node5-Sem)
10060
10061      N_Package_Declaration =>
10062        (1 => True,    --  Specification (Node1)
10063         2 => False,   --  unused
10064         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10065         4 => False,   --  Parent_Spec (Node4-Sem)
10066         5 => False),  --  Corresponding_Body (Node5-Sem)
10067
10068      N_Package_Specification =>
10069        (1 => True,    --  Defining_Unit_Name (Node1)
10070         2 => True,    --  Visible_Declarations (List2)
10071         3 => True,    --  Private_Declarations (List3)
10072         4 => True,    --  End_Label (Node4)
10073         5 => False),  --  Generic_Parent (Node5-Sem)
10074
10075      N_Package_Body =>
10076        (1 => True,    --  Defining_Unit_Name (Node1)
10077         2 => True,    --  Declarations (List2)
10078         3 => False,   --  unused
10079         4 => True,    --  Handled_Statement_Sequence (Node4)
10080         5 => False),  --  Corresponding_Spec (Node5-Sem)
10081
10082      N_Private_Type_Declaration =>
10083        (1 => True,    --  Defining_Identifier (Node1)
10084         2 => False,   --  unused
10085         3 => False,   --  unused
10086         4 => True,    --  Discriminant_Specifications (List4)
10087         5 => False),  --  unused
10088
10089      N_Private_Extension_Declaration =>
10090        (1 => True,    --  Defining_Identifier (Node1)
10091         2 => True,    --  Interface_List (List2)
10092         3 => False,   --  unused
10093         4 => True,    --  Discriminant_Specifications (List4)
10094         5 => True),   --  Subtype_Indication (Node5)
10095
10096      N_Use_Package_Clause =>
10097        (1 => False,   --  unused
10098         2 => True,    --  Names (List2)
10099         3 => False,   --  Next_Use_Clause (Node3-Sem)
10100         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10101         5 => False),  --  unused
10102
10103      N_Use_Type_Clause =>
10104        (1 => False,   --  unused
10105         2 => True,    --  Subtype_Marks (List2)
10106         3 => False,   --  Next_Use_Clause (Node3-Sem)
10107         4 => False,   --  Hidden_By_Use_Clause (Elist4-Sem)
10108         5 => False),  --  unused
10109
10110      N_Object_Renaming_Declaration =>
10111        (1 => True,    --  Defining_Identifier (Node1)
10112         2 => True,    --  Name (Node2)
10113         3 => True,    --  Access_Definition (Node3)
10114         4 => True,    --  Subtype_Mark (Node4)
10115         5 => False),  --  Corresponding_Generic_Association (Node5-Sem)
10116
10117      N_Exception_Renaming_Declaration =>
10118        (1 => True,    --  Defining_Identifier (Node1)
10119         2 => True,    --  Name (Node2)
10120         3 => False,   --  unused
10121         4 => False,   --  unused
10122         5 => False),  --  unused
10123
10124      N_Package_Renaming_Declaration =>
10125        (1 => True,    --  Defining_Unit_Name (Node1)
10126         2 => True,    --  Name (Node2)
10127         3 => False,   --  unused
10128         4 => False,   --  Parent_Spec (Node4-Sem)
10129         5 => False),  --  unused
10130
10131      N_Subprogram_Renaming_Declaration =>
10132        (1 => True,    --  Specification (Node1)
10133         2 => True,    --  Name (Node2)
10134         3 => False,   --  Corresponding_Formal_Spec (Node3-Sem)
10135         4 => False,   --  Parent_Spec (Node4-Sem)
10136         5 => False),  --  Corresponding_Spec (Node5-Sem)
10137
10138      N_Generic_Package_Renaming_Declaration =>
10139        (1 => True,    --  Defining_Unit_Name (Node1)
10140         2 => True,    --  Name (Node2)
10141         3 => False,   --  unused
10142         4 => False,   --  Parent_Spec (Node4-Sem)
10143         5 => False),  --  unused
10144
10145      N_Generic_Procedure_Renaming_Declaration =>
10146        (1 => True,    --  Defining_Unit_Name (Node1)
10147         2 => True,    --  Name (Node2)
10148         3 => False,   --  unused
10149         4 => False,   --  Parent_Spec (Node4-Sem)
10150         5 => False),  --  unused
10151
10152      N_Generic_Function_Renaming_Declaration =>
10153        (1 => True,    --  Defining_Unit_Name (Node1)
10154         2 => True,    --  Name (Node2)
10155         3 => False,   --  unused
10156         4 => False,   --  Parent_Spec (Node4-Sem)
10157         5 => False),  --  unused
10158
10159      N_Task_Type_Declaration =>
10160        (1 => True,    --  Defining_Identifier (Node1)
10161         2 => True,    --  Interface_List (List2)
10162         3 => True,    --  Task_Definition (Node3)
10163         4 => True,    --  Discriminant_Specifications (List4)
10164         5 => False),  --  Corresponding_Body (Node5-Sem)
10165
10166      N_Single_Task_Declaration =>
10167        (1 => True,    --  Defining_Identifier (Node1)
10168         2 => True,    --  Interface_List (List2)
10169         3 => True,    --  Task_Definition (Node3)
10170         4 => False,   --  unused
10171         5 => False),  --  unused
10172
10173      N_Task_Definition =>
10174        (1 => False,   --  unused
10175         2 => True,    --  Visible_Declarations (List2)
10176         3 => True,    --  Private_Declarations (List3)
10177         4 => True,    --  End_Label (Node4)
10178         5 => False),  --  unused
10179
10180      N_Task_Body =>
10181        (1 => True,    --  Defining_Identifier (Node1)
10182         2 => True,    --  Declarations (List2)
10183         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10184         4 => True,    --  Handled_Statement_Sequence (Node4)
10185         5 => False),  --  Corresponding_Spec (Node5-Sem)
10186
10187      N_Protected_Type_Declaration =>
10188        (1 => True,    --  Defining_Identifier (Node1)
10189         2 => True,    --  Interface_List (List2)
10190         3 => True,    --  Protected_Definition (Node3)
10191         4 => True,    --  Discriminant_Specifications (List4)
10192         5 => False),  --  Corresponding_Body (Node5-Sem)
10193
10194      N_Single_Protected_Declaration =>
10195        (1 => True,    --  Defining_Identifier (Node1)
10196         2 => True,    --  Interface_List (List2)
10197         3 => True,    --  Protected_Definition (Node3)
10198         4 => False,   --  unused
10199         5 => False),  --  unused
10200
10201      N_Protected_Definition =>
10202        (1 => False,   --  unused
10203         2 => True,    --  Visible_Declarations (List2)
10204         3 => True,    --  Private_Declarations (List3)
10205         4 => True,    --  End_Label (Node4)
10206         5 => False),  --  unused
10207
10208      N_Protected_Body =>
10209        (1 => True,    --  Defining_Identifier (Node1)
10210         2 => True,    --  Declarations (List2)
10211         3 => False,   --  unused
10212         4 => True,    --  End_Label (Node4)
10213         5 => False),  --  Corresponding_Spec (Node5-Sem)
10214
10215      N_Entry_Declaration =>
10216        (1 => True,    --  Defining_Identifier (Node1)
10217         2 => False,   --  unused
10218         3 => True,    --  Parameter_Specifications (List3)
10219         4 => True,    --  Discrete_Subtype_Definition (Node4)
10220         5 => False),  --  Corresponding_Body (Node5-Sem)
10221
10222      N_Accept_Statement =>
10223        (1 => True,    --  Entry_Direct_Name (Node1)
10224         2 => True,    --  Declarations (List2)
10225         3 => True,    --  Parameter_Specifications (List3)
10226         4 => True,    --  Handled_Statement_Sequence (Node4)
10227         5 => True),   --  Entry_Index (Node5)
10228
10229      N_Entry_Body =>
10230        (1 => True,    --  Defining_Identifier (Node1)
10231         2 => True,    --  Declarations (List2)
10232         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10233         4 => True,    --  Handled_Statement_Sequence (Node4)
10234         5 => True),   --  Entry_Body_Formal_Part (Node5)
10235
10236      N_Entry_Body_Formal_Part =>
10237        (1 => True,    --  Condition (Node1)
10238         2 => False,   --  unused
10239         3 => True,    --  Parameter_Specifications (List3)
10240         4 => True,    --  Entry_Index_Specification (Node4)
10241         5 => False),  --  unused
10242
10243      N_Entry_Index_Specification =>
10244        (1 => True,    --  Defining_Identifier (Node1)
10245         2 => False,   --  unused
10246         3 => False,   --  unused
10247         4 => True,    --  Discrete_Subtype_Definition (Node4)
10248         5 => False),  --  unused
10249
10250      N_Entry_Call_Statement =>
10251        (1 => False,   --  unused
10252         2 => True,    --  Name (Node2)
10253         3 => True,    --  Parameter_Associations (List3)
10254         4 => False,   --  First_Named_Actual (Node4-Sem)
10255         5 => False),  --  unused
10256
10257      N_Requeue_Statement =>
10258        (1 => False,   --  unused
10259         2 => True,    --  Name (Node2)
10260         3 => False,   --  unused
10261         4 => False,   --  unused
10262         5 => False),  --  unused
10263
10264      N_Delay_Until_Statement =>
10265        (1 => False,   --  unused
10266         2 => False,   --  unused
10267         3 => True,    --  Expression (Node3)
10268         4 => False,   --  unused
10269         5 => False),  --  unused
10270
10271      N_Delay_Relative_Statement =>
10272        (1 => False,   --  unused
10273         2 => False,   --  unused
10274         3 => True,    --  Expression (Node3)
10275         4 => False,   --  unused
10276         5 => False),  --  unused
10277
10278      N_Selective_Accept =>
10279        (1 => True,    --  Select_Alternatives (List1)
10280         2 => False,   --  unused
10281         3 => False,   --  unused
10282         4 => True,    --  Else_Statements (List4)
10283         5 => False),  --  unused
10284
10285      N_Accept_Alternative =>
10286        (1 => True,    --  Condition (Node1)
10287         2 => True,    --  Accept_Statement (Node2)
10288         3 => True,    --  Statements (List3)
10289         4 => True,    --  Pragmas_Before (List4)
10290         5 => False),  --  Accept_Handler_Records (List5-Sem)
10291
10292      N_Delay_Alternative =>
10293        (1 => True,    --  Condition (Node1)
10294         2 => True,    --  Delay_Statement (Node2)
10295         3 => True,    --  Statements (List3)
10296         4 => True,    --  Pragmas_Before (List4)
10297         5 => False),  --  unused
10298
10299      N_Terminate_Alternative =>
10300        (1 => True,    --  Condition (Node1)
10301         2 => False,   --  unused
10302         3 => False,   --  unused
10303         4 => True,    --  Pragmas_Before (List4)
10304         5 => True),   --  Pragmas_After (List5)
10305
10306      N_Timed_Entry_Call =>
10307        (1 => True,    --  Entry_Call_Alternative (Node1)
10308         2 => False,   --  unused
10309         3 => False,   --  unused
10310         4 => True,    --  Delay_Alternative (Node4)
10311         5 => False),  --  unused
10312
10313      N_Entry_Call_Alternative =>
10314        (1 => True,    --  Entry_Call_Statement (Node1)
10315         2 => False,   --  unused
10316         3 => True,    --  Statements (List3)
10317         4 => True,    --  Pragmas_Before (List4)
10318         5 => False),  --  unused
10319
10320      N_Conditional_Entry_Call =>
10321        (1 => True,    --  Entry_Call_Alternative (Node1)
10322         2 => False,   --  unused
10323         3 => False,   --  unused
10324         4 => True,    --  Else_Statements (List4)
10325         5 => False),  --  unused
10326
10327      N_Asynchronous_Select =>
10328        (1 => True,    --  Triggering_Alternative (Node1)
10329         2 => True,    --  Abortable_Part (Node2)
10330         3 => False,   --  unused
10331         4 => False,   --  unused
10332         5 => False),  --  unused
10333
10334      N_Triggering_Alternative =>
10335        (1 => True,    --  Triggering_Statement (Node1)
10336         2 => False,   --  unused
10337         3 => True,    --  Statements (List3)
10338         4 => True,    --  Pragmas_Before (List4)
10339         5 => False),  --  unused
10340
10341      N_Abortable_Part =>
10342        (1 => False,   --  unused
10343         2 => False,   --  unused
10344         3 => True,    --  Statements (List3)
10345         4 => False,   --  unused
10346         5 => False),  --  unused
10347
10348      N_Abort_Statement =>
10349        (1 => False,   --  unused
10350         2 => True,    --  Names (List2)
10351         3 => False,   --  unused
10352         4 => False,   --  unused
10353         5 => False),  --  unused
10354
10355      N_Compilation_Unit =>
10356        (1 => True,    --  Context_Items (List1)
10357         2 => True,    --  Unit (Node2)
10358         3 => False,   --  First_Inlined_Subprogram (Node3-Sem)
10359         4 => False,   --  Library_Unit (Node4-Sem)
10360         5 => True),   --  Aux_Decls_Node (Node5)
10361
10362      N_Compilation_Unit_Aux =>
10363        (1 => True,    --  Actions (List1)
10364         2 => True,    --  Declarations (List2)
10365         3 => False,   --  unused
10366         4 => True,    --  Config_Pragmas (List4)
10367         5 => True),   --  Pragmas_After (List5)
10368
10369      N_With_Clause =>
10370        (1 => False,   --  unused
10371         2 => True,    --  Name (Node2)
10372         3 => False,   --  unused
10373         4 => False,   --  Library_Unit (Node4-Sem)
10374         5 => False),  --  Corresponding_Spec (Node5-Sem)
10375
10376      N_Subprogram_Body_Stub =>
10377        (1 => True,    --  Specification (Node1)
10378         2 => False,   --  unused
10379         3 => False,   --  unused
10380         4 => False,   --  Library_Unit (Node4-Sem)
10381         5 => False),  --  Corresponding_Body (Node5-Sem)
10382
10383      N_Package_Body_Stub =>
10384        (1 => True,    --  Defining_Identifier (Node1)
10385         2 => False,   --  unused
10386         3 => False,   --  unused
10387         4 => False,   --  Library_Unit (Node4-Sem)
10388         5 => False),  --  Corresponding_Body (Node5-Sem)
10389
10390      N_Task_Body_Stub =>
10391        (1 => True,    --  Defining_Identifier (Node1)
10392         2 => False,   --  unused
10393         3 => False,   --  unused
10394         4 => False,   --  Library_Unit (Node4-Sem)
10395         5 => False),  --  Corresponding_Body (Node5-Sem)
10396
10397      N_Protected_Body_Stub =>
10398        (1 => True,    --  Defining_Identifier (Node1)
10399         2 => False,   --  unused
10400         3 => False,   --  unused
10401         4 => False,   --  Library_Unit (Node4-Sem)
10402         5 => False),  --  Corresponding_Body (Node5-Sem)
10403
10404      N_Subunit =>
10405        (1 => True,    --  Proper_Body (Node1)
10406         2 => True,    --  Name (Node2)
10407         3 => False,   --  Corresponding_Stub (Node3-Sem)
10408         4 => False,   --  unused
10409         5 => False),  --  unused
10410
10411      N_Exception_Declaration =>
10412        (1 => True,    --  Defining_Identifier (Node1)
10413         2 => False,   --  unused
10414         3 => False,   --  Expression (Node3-Sem)
10415         4 => False,   --  unused
10416         5 => False),  --  unused
10417
10418      N_Handled_Sequence_Of_Statements =>
10419        (1 => True,    --  At_End_Proc (Node1)
10420         2 => False,   --  First_Real_Statement (Node2-Sem)
10421         3 => True,    --  Statements (List3)
10422         4 => True,    --  End_Label (Node4)
10423         5 => True),   --  Exception_Handlers (List5)
10424
10425      N_Exception_Handler =>
10426        (1 => False,   --  Local_Raise_Statements (Elist1)
10427         2 => True,    --  Choice_Parameter (Node2)
10428         3 => True,    --  Statements (List3)
10429         4 => True,    --  Exception_Choices (List4)
10430         5 => False),  --  Exception_Label (Node5)
10431
10432      N_Raise_Statement =>
10433        (1 => False,   --  unused
10434         2 => True,    --  Name (Node2)
10435         3 => True,    --  Expression (Node3)
10436         4 => False,   --  unused
10437         5 => False),  --  unused
10438
10439      N_Generic_Subprogram_Declaration =>
10440        (1 => True,    --  Specification (Node1)
10441         2 => True,    --  Generic_Formal_Declarations (List2)
10442         3 => False,   --  unused
10443         4 => False,   --  Parent_Spec (Node4-Sem)
10444         5 => False),  --  Corresponding_Body (Node5-Sem)
10445
10446      N_Generic_Package_Declaration =>
10447        (1 => True,    --  Specification (Node1)
10448         2 => True,    --  Generic_Formal_Declarations (List2)
10449         3 => False,   --  Activation_Chain_Entity (Node3-Sem)
10450         4 => False,   --  Parent_Spec (Node4-Sem)
10451         5 => False),  --  Corresponding_Body (Node5-Sem)
10452
10453      N_Package_Instantiation =>
10454        (1 => True,    --  Defining_Unit_Name (Node1)
10455         2 => True,    --  Name (Node2)
10456         3 => True,    --  Generic_Associations (List3)
10457         4 => False,   --  Parent_Spec (Node4-Sem)
10458         5 => False),  --  Instance_Spec (Node5-Sem)
10459
10460      N_Procedure_Instantiation =>
10461        (1 => True,    --  Defining_Unit_Name (Node1)
10462         2 => True,    --  Name (Node2)
10463         3 => True,    --  Generic_Associations (List3)
10464         4 => False,   --  Parent_Spec (Node4-Sem)
10465         5 => False),  --  Instance_Spec (Node5-Sem)
10466
10467      N_Function_Instantiation =>
10468        (1 => True,    --  Defining_Unit_Name (Node1)
10469         2 => True,    --  Name (Node2)
10470         3 => True,    --  Generic_Associations (List3)
10471         4 => False,   --  Parent_Spec (Node4-Sem)
10472         5 => False),  --  Instance_Spec (Node5-Sem)
10473
10474      N_Generic_Association =>
10475        (1 => True,    --  Explicit_Generic_Actual_Parameter (Node1)
10476         2 => True,    --  Selector_Name (Node2)
10477         3 => False,   --  unused
10478         4 => False,   --  unused
10479         5 => False),  --  unused
10480
10481      N_Formal_Object_Declaration =>
10482        (1 => True,    --  Defining_Identifier (Node1)
10483         2 => False,   --  unused
10484         3 => True,    --  Access_Definition (Node3)
10485         4 => True,    --  Subtype_Mark (Node4)
10486         5 => True),   --  Default_Expression (Node5)
10487
10488      N_Formal_Type_Declaration =>
10489        (1 => True,    --  Defining_Identifier (Node1)
10490         2 => False,   --  unused
10491         3 => True,    --  Formal_Type_Definition (Node3)
10492         4 => True,    --  Discriminant_Specifications (List4)
10493         5 => False),  --  unused
10494
10495      N_Formal_Private_Type_Definition =>
10496        (1 => False,   --  unused
10497         2 => False,   --  unused
10498         3 => False,   --  unused
10499         4 => False,   --  unused
10500         5 => False),  --  unused
10501
10502      N_Formal_Derived_Type_Definition =>
10503        (1 => False,   --  unused
10504         2 => True,    --  Interface_List (List2)
10505         3 => False,   --  unused
10506         4 => True,    --  Subtype_Mark (Node4)
10507         5 => False),  --  unused
10508
10509      N_Formal_Discrete_Type_Definition =>
10510        (1 => False,   --  unused
10511         2 => False,   --  unused
10512         3 => False,   --  unused
10513         4 => False,   --  unused
10514         5 => False),  --  unused
10515
10516      N_Formal_Signed_Integer_Type_Definition =>
10517        (1 => False,   --  unused
10518         2 => False,   --  unused
10519         3 => False,   --  unused
10520         4 => False,   --  unused
10521         5 => False),  --  unused
10522
10523      N_Formal_Modular_Type_Definition =>
10524        (1 => False,   --  unused
10525         2 => False,   --  unused
10526         3 => False,   --  unused
10527         4 => False,   --  unused
10528         5 => False),  --  unused
10529
10530      N_Formal_Floating_Point_Definition =>
10531        (1 => False,   --  unused
10532         2 => False,   --  unused
10533         3 => False,   --  unused
10534         4 => False,   --  unused
10535         5 => False),  --  unused
10536
10537      N_Formal_Ordinary_Fixed_Point_Definition =>
10538        (1 => False,   --  unused
10539         2 => False,   --  unused
10540         3 => False,   --  unused
10541         4 => False,   --  unused
10542         5 => False),  --  unused
10543
10544      N_Formal_Decimal_Fixed_Point_Definition =>
10545        (1 => False,   --  unused
10546         2 => False,   --  unused
10547         3 => False,   --  unused
10548         4 => False,   --  unused
10549         5 => False),  --  unused
10550
10551      N_Formal_Concrete_Subprogram_Declaration =>
10552        (1 => True,    --  Specification (Node1)
10553         2 => True,    --  Default_Name (Node2)
10554         3 => False,   --  unused
10555         4 => False,   --  unused
10556         5 => False),  --  unused
10557
10558      N_Formal_Abstract_Subprogram_Declaration =>
10559        (1 => True,    --  Specification (Node1)
10560         2 => True,    --  Default_Name (Node2)
10561         3 => False,   --  unused
10562         4 => False,   --  unused
10563         5 => False),  --  unused
10564
10565      N_Formal_Package_Declaration =>
10566        (1 => True,    --  Defining_Identifier (Node1)
10567         2 => True,    --  Name (Node2)
10568         3 => True,    --  Generic_Associations (List3)
10569         4 => False,   --  unused
10570         5 => False),  --  Instance_Spec (Node5-Sem)
10571
10572      N_Attribute_Definition_Clause =>
10573        (1 => True,    --  Chars (Name1)
10574         2 => True,    --  Name (Node2)
10575         3 => True,    --  Expression (Node3)
10576         4 => False,   --  unused
10577         5 => False),  --  Next_Rep_Item (Node5-Sem)
10578
10579      N_Enumeration_Representation_Clause =>
10580        (1 => True,    --  Identifier (Node1)
10581         2 => False,   --  unused
10582         3 => True,    --  Array_Aggregate (Node3)
10583         4 => False,   --  unused
10584         5 => False),  --  Next_Rep_Item (Node5-Sem)
10585
10586      N_Record_Representation_Clause =>
10587        (1 => True,    --  Identifier (Node1)
10588         2 => True,    --  Mod_Clause (Node2)
10589         3 => True,    --  Component_Clauses (List3)
10590         4 => False,   --  unused
10591         5 => False),  --  Next_Rep_Item (Node5-Sem)
10592
10593      N_Component_Clause =>
10594        (1 => True,    --  Component_Name (Node1)
10595         2 => True,    --  Position (Node2)
10596         3 => True,    --  First_Bit (Node3)
10597         4 => True,    --  Last_Bit (Node4)
10598         5 => False),  --  unused
10599
10600      N_Code_Statement =>
10601        (1 => False,   --  unused
10602         2 => False,   --  unused
10603         3 => True,    --  Expression (Node3)
10604         4 => False,   --  unused
10605         5 => False),  --  unused
10606
10607      N_Op_Rotate_Left =>
10608        (1 => True,    --  Chars (Name1)
10609         2 => True,    --  Left_Opnd (Node2)
10610         3 => True,    --  Right_Opnd (Node3)
10611         4 => False,   --  Entity (Node4-Sem)
10612         5 => False),  --  Etype (Node5-Sem)
10613
10614      N_Op_Rotate_Right =>
10615        (1 => True,    --  Chars (Name1)
10616         2 => True,    --  Left_Opnd (Node2)
10617         3 => True,    --  Right_Opnd (Node3)
10618         4 => False,   --  Entity (Node4-Sem)
10619         5 => False),  --  Etype (Node5-Sem)
10620
10621      N_Op_Shift_Left =>
10622        (1 => True,    --  Chars (Name1)
10623         2 => True,    --  Left_Opnd (Node2)
10624         3 => True,    --  Right_Opnd (Node3)
10625         4 => False,   --  Entity (Node4-Sem)
10626         5 => False),  --  Etype (Node5-Sem)
10627
10628      N_Op_Shift_Right_Arithmetic =>
10629        (1 => True,    --  Chars (Name1)
10630         2 => True,    --  Left_Opnd (Node2)
10631         3 => True,    --  Right_Opnd (Node3)
10632         4 => False,   --  Entity (Node4-Sem)
10633         5 => False),  --  Etype (Node5-Sem)
10634
10635      N_Op_Shift_Right =>
10636        (1 => True,    --  Chars (Name1)
10637         2 => True,    --  Left_Opnd (Node2)
10638         3 => True,    --  Right_Opnd (Node3)
10639         4 => False,   --  Entity (Node4-Sem)
10640         5 => False),  --  Etype (Node5-Sem)
10641
10642      N_Delta_Constraint =>
10643        (1 => False,   --  unused
10644         2 => False,   --  unused
10645         3 => True,    --  Delta_Expression (Node3)
10646         4 => True,    --  Range_Constraint (Node4)
10647         5 => False),  --  unused
10648
10649      N_At_Clause =>
10650        (1 => True,    --  Identifier (Node1)
10651         2 => False,   --  unused
10652         3 => True,    --  Expression (Node3)
10653         4 => False,   --  unused
10654         5 => False),  --  unused
10655
10656      N_Mod_Clause =>
10657        (1 => False,   --  unused
10658         2 => False,   --  unused
10659         3 => True,    --  Expression (Node3)
10660         4 => True,    --  Pragmas_Before (List4)
10661         5 => False),  --  unused
10662
10663      N_Conditional_Expression =>
10664        (1 => True,    --  Expressions (List1)
10665         2 => False,   --  Then_Actions (List2-Sem)
10666         3 => False,   --  Else_Actions (List3-Sem)
10667         4 => False,   --  unused
10668         5 => False),  --  Etype (Node5-Sem)
10669
10670      N_Expanded_Name =>
10671        (1 => True,    --  Chars (Name1)
10672         2 => True,    --  Selector_Name (Node2)
10673         3 => True,    --  Prefix (Node3)
10674         4 => False,   --  Entity (Node4-Sem)
10675         5 => False),  --  Etype (Node5-Sem)
10676
10677      N_Free_Statement =>
10678        (1 => False,   --  Storage_Pool (Node1-Sem)
10679         2 => False,   --  Procedure_To_Call (Node2-Sem)
10680         3 => True,    --  Expression (Node3)
10681         4 => False,   --  Actual_Designated_Subtype (Node4-Sem)
10682         5 => False),  --  unused
10683
10684      N_Freeze_Entity =>
10685        (1 => True,    --  Actions (List1)
10686         2 => False,   --  Access_Types_To_Process (Elist2-Sem)
10687         3 => False,   --  TSS_Elist (Elist3-Sem)
10688         4 => False,   --  Entity (Node4-Sem)
10689         5 => False),  --  First_Subtype_Link (Node5-Sem)
10690
10691      N_Implicit_Label_Declaration =>
10692        (1 => True,    --  Defining_Identifier (Node1)
10693         2 => False,   --  Label_Construct (Node2-Sem)
10694         3 => False,   --  unused
10695         4 => False,   --  unused
10696         5 => False),  --  unused
10697
10698      N_Itype_Reference =>
10699        (1 => False,   --  Itype (Node1-Sem)
10700         2 => False,   --  unused
10701         3 => False,   --  unused
10702         4 => False,   --  unused
10703         5 => False),  --  unused
10704
10705      N_Raise_Constraint_Error =>
10706        (1 => True,    --  Condition (Node1)
10707         2 => False,   --  unused
10708         3 => True,    --  Reason (Uint3)
10709         4 => False,   --  unused
10710         5 => False),  --  Etype (Node5-Sem)
10711
10712      N_Raise_Program_Error =>
10713        (1 => True,    --  Condition (Node1)
10714         2 => False,   --  unused
10715         3 => True,    --  Reason (Uint3)
10716         4 => False,   --  unused
10717         5 => False),  --  Etype (Node5-Sem)
10718
10719      N_Raise_Storage_Error =>
10720        (1 => True,    --  Condition (Node1)
10721         2 => False,   --  unused
10722         3 => True,    --  Reason (Uint3)
10723         4 => False,   --  unused
10724         5 => False),  --  Etype (Node5-Sem)
10725
10726      N_Push_Constraint_Error_Label =>
10727        (1 => False,   --  unused
10728         2 => False,   --  unused
10729         3 => False,   --  unused
10730         4 => False,   --  unused
10731         5 => False),  --  unused
10732
10733      N_Push_Program_Error_Label =>
10734        (1 => False,   --  Exception_Label
10735         2 => False,   --  unused
10736         3 => False,   --  unused
10737         4 => False,   --  unused
10738         5 => False),  --  Exception_Label
10739
10740      N_Push_Storage_Error_Label =>
10741        (1 => False,   --  Exception_Label
10742         2 => False,   --  unused
10743         3 => False,   --  unused
10744         4 => False,   --  unused
10745         5 => False),  --  Exception_Label
10746
10747      N_Pop_Constraint_Error_Label =>
10748        (1 => False,   --  unused
10749         2 => False,   --  unused
10750         3 => False,   --  unused
10751         4 => False,   --  unused
10752         5 => False),  --  unused
10753
10754      N_Pop_Program_Error_Label =>
10755        (1 => False,   --  unused
10756         2 => False,   --  unused
10757         3 => False,   --  unused
10758         4 => False,   --  unused
10759         5 => False),  --  unused
10760
10761      N_Pop_Storage_Error_Label =>
10762        (1 => False,   --  unused
10763         2 => False,   --  unused
10764         3 => False,   --  unused
10765         4 => False,   --  unused
10766         5 => False),  --  unused
10767
10768      N_Reference =>
10769        (1 => False,   --  unused
10770         2 => False,   --  unused
10771         3 => True,    --  Prefix (Node3)
10772         4 => False,   --  unused
10773         5 => False),  --  Etype (Node5-Sem)
10774
10775      N_Subprogram_Info =>
10776        (1 => True,    --  Identifier (Node1)
10777         2 => False,   --  unused
10778         3 => False,   --  unused
10779         4 => False,   --  unused
10780         5 => False),  --  Etype (Node5-Sem)
10781
10782      N_Unchecked_Expression =>
10783        (1 => False,   --  unused
10784         2 => False,   --  unused
10785         3 => True,    --  Expression (Node3)
10786         4 => False,   --  unused
10787         5 => False),  --  Etype (Node5-Sem)
10788
10789      N_Unchecked_Type_Conversion =>
10790        (1 => False,   --  unused
10791         2 => False,   --  unused
10792         3 => True,    --  Expression (Node3)
10793         4 => True,    --  Subtype_Mark (Node4)
10794         5 => False),  --  Etype (Node5-Sem)
10795
10796      N_Validate_Unchecked_Conversion =>
10797        (1 => False,   --  Source_Type (Node1-Sem)
10798         2 => False,   --  Target_Type (Node2-Sem)
10799         3 => False,   --  unused
10800         4 => False,   --  unused
10801         5 => False),  --  unused
10802
10803    --  End of inserted output from makeisf program
10804
10805    --  Entries for Empty, Error and Unused. Even thought these have a Chars
10806    --  field for debugging purposes, they are not really syntactic fields, so
10807    --  we mark all fields as unused.
10808
10809      N_Empty =>
10810        (1 => False,   --  unused
10811         2 => False,   --  unused
10812         3 => False,   --  unused
10813         4 => False,   --  unused
10814         5 => False),  --  unused
10815
10816      N_Error =>
10817        (1 => False,   --  unused
10818         2 => False,   --  unused
10819         3 => False,   --  unused
10820         4 => False,   --  unused
10821         5 => False),  --  unused
10822
10823      N_Unused_At_Start =>
10824        (1 => False,   --  unused
10825         2 => False,   --  unused
10826         3 => False,   --  unused
10827         4 => False,   --  unused
10828         5 => False),  --  unused
10829
10830      N_Unused_At_End =>
10831        (1 => False,   --  unused
10832         2 => False,   --  unused
10833         3 => False,   --  unused
10834         4 => False,   --  unused
10835         5 => False)); --  unused
10836
10837    --------------------
10838    -- Inline Pragmas --
10839    --------------------
10840
10841    pragma Inline (ABE_Is_Certain);
10842    pragma Inline (Abort_Present);
10843    pragma Inline (Abortable_Part);
10844    pragma Inline (Abstract_Present);
10845    pragma Inline (Accept_Handler_Records);
10846    pragma Inline (Accept_Statement);
10847    pragma Inline (Access_Definition);
10848    pragma Inline (Access_To_Subprogram_Definition);
10849    pragma Inline (Access_Types_To_Process);
10850    pragma Inline (Actions);
10851    pragma Inline (Activation_Chain_Entity);
10852    pragma Inline (Acts_As_Spec);
10853    pragma Inline (Actual_Designated_Subtype);
10854    pragma Inline (Address_Warning_Posted);
10855    pragma Inline (Aggregate_Bounds);
10856    pragma Inline (Aliased_Present);
10857    pragma Inline (All_Others);
10858    pragma Inline (All_Present);
10859    pragma Inline (Alternatives);
10860    pragma Inline (Ancestor_Part);
10861    pragma Inline (Array_Aggregate);
10862    pragma Inline (Assignment_OK);
10863    pragma Inline (Associated_Node);
10864    pragma Inline (At_End_Proc);
10865    pragma Inline (Attribute_Name);
10866    pragma Inline (Aux_Decls_Node);
10867    pragma Inline (Backwards_OK);
10868    pragma Inline (Bad_Is_Detected);
10869    pragma Inline (Body_To_Inline);
10870    pragma Inline (Body_Required);
10871    pragma Inline (By_Ref);
10872    pragma Inline (Box_Present);
10873    pragma Inline (Char_Literal_Value);
10874    pragma Inline (Chars);
10875    pragma Inline (Check_Address_Alignment);
10876    pragma Inline (Choice_Parameter);
10877    pragma Inline (Choices);
10878    pragma Inline (Coextensions);
10879    pragma Inline (Comes_From_Extended_Return_Statement);
10880    pragma Inline (Compile_Time_Known_Aggregate);
10881    pragma Inline (Component_Associations);
10882    pragma Inline (Component_Clauses);
10883    pragma Inline (Component_Definition);
10884    pragma Inline (Component_Items);
10885    pragma Inline (Component_List);
10886    pragma Inline (Component_Name);
10887    pragma Inline (Condition);
10888    pragma Inline (Condition_Actions);
10889    pragma Inline (Config_Pragmas);
10890    pragma Inline (Constant_Present);
10891    pragma Inline (Constraint);
10892    pragma Inline (Constraints);
10893    pragma Inline (Context_Installed);
10894    pragma Inline (Context_Items);
10895    pragma Inline (Controlling_Argument);
10896    pragma Inline (Conversion_OK);
10897    pragma Inline (Corresponding_Body);
10898    pragma Inline (Corresponding_Formal_Spec);
10899    pragma Inline (Corresponding_Generic_Association);
10900    pragma Inline (Corresponding_Integer_Value);
10901    pragma Inline (Corresponding_Spec);
10902    pragma Inline (Corresponding_Stub);
10903    pragma Inline (Dcheck_Function);
10904    pragma Inline (Debug_Statement);
10905    pragma Inline (Declarations);
10906    pragma Inline (Default_Expression);
10907    pragma Inline (Default_Name);
10908    pragma Inline (Defining_Identifier);
10909    pragma Inline (Defining_Unit_Name);
10910    pragma Inline (Delay_Alternative);
10911    pragma Inline (Delay_Statement);
10912    pragma Inline (Delta_Expression);
10913    pragma Inline (Digits_Expression);
10914    pragma Inline (Discr_Check_Funcs_Built);
10915    pragma Inline (Discrete_Choices);
10916    pragma Inline (Discrete_Range);
10917    pragma Inline (Discrete_Subtype_Definition);
10918    pragma Inline (Discrete_Subtype_Definitions);
10919    pragma Inline (Discriminant_Specifications);
10920    pragma Inline (Discriminant_Type);
10921    pragma Inline (Do_Accessibility_Check);
10922    pragma Inline (Do_Discriminant_Check);
10923    pragma Inline (Do_Length_Check);
10924    pragma Inline (Do_Division_Check);
10925    pragma Inline (Do_Overflow_Check);
10926    pragma Inline (Do_Range_Check);
10927    pragma Inline (Do_Storage_Check);
10928    pragma Inline (Do_Tag_Check);
10929    pragma Inline (Elaborate_Present);
10930    pragma Inline (Elaborate_All_Desirable);
10931    pragma Inline (Elaborate_All_Present);
10932    pragma Inline (Elaborate_Desirable);
10933    pragma Inline (Elaboration_Boolean);
10934    pragma Inline (Else_Actions);
10935    pragma Inline (Else_Statements);
10936    pragma Inline (Elsif_Parts);
10937    pragma Inline (Enclosing_Variant);
10938    pragma Inline (End_Label);
10939    pragma Inline (End_Span);
10940    pragma Inline (Entity);
10941    pragma Inline (Entity_Or_Associated_Node);
10942    pragma Inline (Entry_Body_Formal_Part);
10943    pragma Inline (Entry_Call_Alternative);
10944    pragma Inline (Entry_Call_Statement);
10945    pragma Inline (Entry_Direct_Name);
10946    pragma Inline (Entry_Index);
10947    pragma Inline (Entry_Index_Specification);
10948    pragma Inline (Etype);
10949    pragma Inline (Exception_Choices);
10950    pragma Inline (Exception_Handlers);
10951    pragma Inline (Exception_Junk);
10952    pragma Inline (Exception_Label);
10953    pragma Inline (Expansion_Delayed);
10954    pragma Inline (Explicit_Actual_Parameter);
10955    pragma Inline (Explicit_Generic_Actual_Parameter);
10956    pragma Inline (Expression);
10957    pragma Inline (Expressions);
10958    pragma Inline (First_Bit);
10959    pragma Inline (First_Inlined_Subprogram);
10960    pragma Inline (First_Name);
10961    pragma Inline (First_Named_Actual);
10962    pragma Inline (First_Real_Statement);
10963    pragma Inline (First_Subtype_Link);
10964    pragma Inline (Float_Truncate);
10965    pragma Inline (Formal_Type_Definition);
10966    pragma Inline (Forwards_OK);
10967    pragma Inline (From_At_End);
10968    pragma Inline (From_At_Mod);
10969    pragma Inline (From_Default);
10970    pragma Inline (Generic_Associations);
10971    pragma Inline (Generic_Formal_Declarations);
10972    pragma Inline (Generic_Parent);
10973    pragma Inline (Generic_Parent_Type);
10974    pragma Inline (Handled_Statement_Sequence);
10975    pragma Inline (Handler_List_Entry);
10976    pragma Inline (Has_Created_Identifier);
10977    pragma Inline (Has_Dynamic_Length_Check);
10978    pragma Inline (Has_Dynamic_Range_Check);
10979    pragma Inline (Has_Init_Expression);
10980    pragma Inline (Has_Local_Raise);
10981    pragma Inline (Has_Self_Reference);
10982    pragma Inline (Has_No_Elaboration_Code);
10983    pragma Inline (Has_Priority_Pragma);
10984    pragma Inline (Has_Private_View);
10985    pragma Inline (Has_Relative_Deadline_Pragma);
10986    pragma Inline (Has_Storage_Size_Pragma);
10987    pragma Inline (Has_Task_Info_Pragma);
10988    pragma Inline (Has_Task_Name_Pragma);
10989    pragma Inline (Has_Wide_Character);
10990    pragma Inline (Hidden_By_Use_Clause);
10991    pragma Inline (High_Bound);
10992    pragma Inline (Identifier);
10993    pragma Inline (Implicit_With);
10994    pragma Inline (Interface_List);
10995    pragma Inline (Interface_Present);
10996    pragma Inline (Includes_Infinities);
10997    pragma Inline (In_Present);
10998    pragma Inline (Instance_Spec);
10999    pragma Inline (Intval);
11000    pragma Inline (Is_Asynchronous_Call_Block);
11001    pragma Inline (Is_Component_Left_Opnd);
11002    pragma Inline (Is_Component_Right_Opnd);
11003    pragma Inline (Is_Controlling_Actual);
11004    pragma Inline (Is_Dynamic_Coextension);
11005    pragma Inline (Is_Entry_Barrier_Function);
11006    pragma Inline (Is_Expanded_Build_In_Place_Call);
11007    pragma Inline (Is_Folded_In_Parser);
11008    pragma Inline (Is_In_Discriminant_Check);
11009    pragma Inline (Is_Machine_Number);
11010    pragma Inline (Is_Null_Loop);
11011    pragma Inline (Is_Overloaded);
11012    pragma Inline (Is_Power_Of_2_For_Shift);
11013    pragma Inline (Is_Protected_Subprogram_Body);
11014    pragma Inline (Is_Static_Coextension);
11015    pragma Inline (Is_Static_Expression);
11016    pragma Inline (Is_Subprogram_Descriptor);
11017    pragma Inline (Is_Task_Allocation_Block);
11018    pragma Inline (Is_Task_Master);
11019    pragma Inline (Iteration_Scheme);
11020    pragma Inline (Itype);
11021    pragma Inline (Kill_Range_Check);
11022    pragma Inline (Last_Bit);
11023    pragma Inline (Last_Name);
11024    pragma Inline (Library_Unit);
11025    pragma Inline (Label_Construct);
11026    pragma Inline (Left_Opnd);
11027    pragma Inline (Limited_View_Installed);
11028    pragma Inline (Limited_Present);
11029    pragma Inline (Literals);
11030    pragma Inline (Local_Raise_Not_OK);
11031    pragma Inline (Local_Raise_Statements);
11032    pragma Inline (Loop_Actions);
11033    pragma Inline (Loop_Parameter_Specification);
11034    pragma Inline (Low_Bound);
11035    pragma Inline (Mod_Clause);
11036    pragma Inline (More_Ids);
11037    pragma Inline (Must_Be_Byte_Aligned);
11038    pragma Inline (Must_Not_Freeze);
11039    pragma Inline (Must_Not_Override);
11040    pragma Inline (Must_Override);
11041    pragma Inline (Name);
11042    pragma Inline (Names);
11043    pragma Inline (Next_Entity);
11044    pragma Inline (Next_Named_Actual);
11045    pragma Inline (Next_Pragma);
11046    pragma Inline (Next_Rep_Item);
11047    pragma Inline (Next_Use_Clause);
11048    pragma Inline (No_Ctrl_Actions);
11049    pragma Inline (No_Elaboration_Check);
11050    pragma Inline (No_Entities_Ref_In_Spec);
11051    pragma Inline (No_Initialization);
11052    pragma Inline (No_Truncation);
11053    pragma Inline (Null_Present);
11054    pragma Inline (Null_Exclusion_Present);
11055    pragma Inline (Null_Record_Present);
11056    pragma Inline (Object_Definition);
11057    pragma Inline (Original_Discriminant);
11058    pragma Inline (Original_Entity);
11059    pragma Inline (Others_Discrete_Choices);
11060    pragma Inline (Out_Present);
11061    pragma Inline (Parameter_Associations);
11062    pragma Inline (Parameter_Specifications);
11063    pragma Inline (Parameter_List_Truncated);
11064    pragma Inline (Parameter_Type);
11065    pragma Inline (Parent_Spec);
11066    pragma Inline (PPC_Enabled);
11067    pragma Inline (Position);
11068    pragma Inline (Pragma_Argument_Associations);
11069    pragma Inline (Pragma_Identifier);
11070    pragma Inline (Pragmas_After);
11071    pragma Inline (Pragmas_Before);
11072    pragma Inline (Prefix);
11073    pragma Inline (Present_Expr);
11074    pragma Inline (Prev_Ids);
11075    pragma Inline (Print_In_Hex);
11076    pragma Inline (Private_Declarations);
11077    pragma Inline (Private_Present);
11078    pragma Inline (Procedure_To_Call);
11079    pragma Inline (Proper_Body);
11080    pragma Inline (Protected_Definition);
11081    pragma Inline (Protected_Present);
11082    pragma Inline (Raises_Constraint_Error);
11083    pragma Inline (Range_Constraint);
11084    pragma Inline (Range_Expression);
11085    pragma Inline (Real_Range_Specification);
11086    pragma Inline (Realval);
11087    pragma Inline (Reason);
11088    pragma Inline (Record_Extension_Part);
11089    pragma Inline (Redundant_Use);
11090    pragma Inline (Renaming_Exception);
11091    pragma Inline (Result_Definition);
11092    pragma Inline (Return_Object_Declarations);
11093    pragma Inline (Return_Statement_Entity);
11094    pragma Inline (Reverse_Present);
11095    pragma Inline (Right_Opnd);
11096    pragma Inline (Rounded_Result);
11097    pragma Inline (Scope);
11098    pragma Inline (Select_Alternatives);
11099    pragma Inline (Selector_Name);
11100    pragma Inline (Selector_Names);
11101    pragma Inline (Shift_Count_OK);
11102    pragma Inline (Source_Type);
11103    pragma Inline (Specification);
11104    pragma Inline (Statements);
11105    pragma Inline (Static_Processing_OK);
11106    pragma Inline (Storage_Pool);
11107    pragma Inline (Strval);
11108    pragma Inline (Subtype_Indication);
11109    pragma Inline (Subtype_Mark);
11110    pragma Inline (Subtype_Marks);
11111    pragma Inline (Synchronized_Present);
11112    pragma Inline (Tagged_Present);
11113    pragma Inline (Target_Type);
11114    pragma Inline (Task_Definition);
11115    pragma Inline (Task_Present);
11116    pragma Inline (Then_Actions);
11117    pragma Inline (Then_Statements);
11118    pragma Inline (Triggering_Alternative);
11119    pragma Inline (Triggering_Statement);
11120    pragma Inline (Treat_Fixed_As_Integer);
11121    pragma Inline (TSS_Elist);
11122    pragma Inline (Type_Definition);
11123    pragma Inline (Unit);
11124    pragma Inline (Unknown_Discriminants_Present);
11125    pragma Inline (Unreferenced_In_Spec);
11126    pragma Inline (Variant_Part);
11127    pragma Inline (Variants);
11128    pragma Inline (Visible_Declarations);
11129    pragma Inline (Was_Originally_Stub);
11130    pragma Inline (Zero_Cost_Handling);
11131
11132    pragma Inline (Set_ABE_Is_Certain);
11133    pragma Inline (Set_Abort_Present);
11134    pragma Inline (Set_Abortable_Part);
11135    pragma Inline (Set_Abstract_Present);
11136    pragma Inline (Set_Accept_Handler_Records);
11137    pragma Inline (Set_Accept_Statement);
11138    pragma Inline (Set_Access_Definition);
11139    pragma Inline (Set_Access_To_Subprogram_Definition);
11140    pragma Inline (Set_Access_Types_To_Process);
11141    pragma Inline (Set_Actions);
11142    pragma Inline (Set_Activation_Chain_Entity);
11143    pragma Inline (Set_Acts_As_Spec);
11144    pragma Inline (Set_Actual_Designated_Subtype);
11145    pragma Inline (Set_Address_Warning_Posted);
11146    pragma Inline (Set_Aggregate_Bounds);
11147    pragma Inline (Set_Aliased_Present);
11148    pragma Inline (Set_All_Others);
11149    pragma Inline (Set_All_Present);
11150    pragma Inline (Set_Alternatives);
11151    pragma Inline (Set_Ancestor_Part);
11152    pragma Inline (Set_Array_Aggregate);
11153    pragma Inline (Set_Assignment_OK);
11154    pragma Inline (Set_Associated_Node);
11155    pragma Inline (Set_At_End_Proc);
11156    pragma Inline (Set_Attribute_Name);
11157    pragma Inline (Set_Aux_Decls_Node);
11158    pragma Inline (Set_Backwards_OK);
11159    pragma Inline (Set_Bad_Is_Detected);
11160    pragma Inline (Set_Body_To_Inline);
11161    pragma Inline (Set_Body_Required);
11162    pragma Inline (Set_By_Ref);
11163    pragma Inline (Set_Box_Present);
11164    pragma Inline (Set_Char_Literal_Value);
11165    pragma Inline (Set_Chars);
11166    pragma Inline (Set_Check_Address_Alignment);
11167    pragma Inline (Set_Choice_Parameter);
11168    pragma Inline (Set_Choices);
11169    pragma Inline (Set_Coextensions);
11170    pragma Inline (Set_Comes_From_Extended_Return_Statement);
11171    pragma Inline (Set_Compile_Time_Known_Aggregate);
11172    pragma Inline (Set_Component_Associations);
11173    pragma Inline (Set_Component_Clauses);
11174    pragma Inline (Set_Component_Definition);
11175    pragma Inline (Set_Component_Items);
11176    pragma Inline (Set_Component_List);
11177    pragma Inline (Set_Component_Name);
11178    pragma Inline (Set_Condition);
11179    pragma Inline (Set_Condition_Actions);
11180    pragma Inline (Set_Config_Pragmas);
11181    pragma Inline (Set_Constant_Present);
11182    pragma Inline (Set_Constraint);
11183    pragma Inline (Set_Constraints);
11184    pragma Inline (Set_Context_Installed);
11185    pragma Inline (Set_Context_Items);
11186    pragma Inline (Set_Controlling_Argument);
11187    pragma Inline (Set_Conversion_OK);
11188    pragma Inline (Set_Corresponding_Body);
11189    pragma Inline (Set_Corresponding_Formal_Spec);
11190    pragma Inline (Set_Corresponding_Generic_Association);
11191    pragma Inline (Set_Corresponding_Integer_Value);
11192    pragma Inline (Set_Corresponding_Spec);
11193    pragma Inline (Set_Corresponding_Stub);
11194    pragma Inline (Set_Dcheck_Function);
11195    pragma Inline (Set_Debug_Statement);
11196    pragma Inline (Set_Declarations);
11197    pragma Inline (Set_Default_Expression);
11198    pragma Inline (Set_Default_Name);
11199    pragma Inline (Set_Defining_Identifier);
11200    pragma Inline (Set_Defining_Unit_Name);
11201    pragma Inline (Set_Delay_Alternative);
11202    pragma Inline (Set_Delay_Statement);
11203    pragma Inline (Set_Delta_Expression);
11204    pragma Inline (Set_Digits_Expression);
11205    pragma Inline (Set_Discr_Check_Funcs_Built);
11206    pragma Inline (Set_Discrete_Choices);
11207    pragma Inline (Set_Discrete_Range);
11208    pragma Inline (Set_Discrete_Subtype_Definition);
11209    pragma Inline (Set_Discrete_Subtype_Definitions);
11210    pragma Inline (Set_Discriminant_Specifications);
11211    pragma Inline (Set_Discriminant_Type);
11212    pragma Inline (Set_Do_Accessibility_Check);
11213    pragma Inline (Set_Do_Discriminant_Check);
11214    pragma Inline (Set_Do_Length_Check);
11215    pragma Inline (Set_Do_Division_Check);
11216    pragma Inline (Set_Do_Overflow_Check);
11217    pragma Inline (Set_Do_Range_Check);
11218    pragma Inline (Set_Do_Storage_Check);
11219    pragma Inline (Set_Do_Tag_Check);
11220    pragma Inline (Set_Elaborate_Present);
11221    pragma Inline (Set_Elaborate_All_Desirable);
11222    pragma Inline (Set_Elaborate_All_Present);
11223    pragma Inline (Set_Elaborate_Desirable);
11224    pragma Inline (Set_Elaboration_Boolean);
11225    pragma Inline (Set_Else_Actions);
11226    pragma Inline (Set_Else_Statements);
11227    pragma Inline (Set_Elsif_Parts);
11228    pragma Inline (Set_Enclosing_Variant);
11229    pragma Inline (Set_End_Label);
11230    pragma Inline (Set_End_Span);
11231    pragma Inline (Set_Entity);
11232    pragma Inline (Set_Entry_Body_Formal_Part);
11233    pragma Inline (Set_Entry_Call_Alternative);
11234    pragma Inline (Set_Entry_Call_Statement);
11235    pragma Inline (Set_Entry_Direct_Name);
11236    pragma Inline (Set_Entry_Index);
11237    pragma Inline (Set_Entry_Index_Specification);
11238    pragma Inline (Set_Etype);
11239    pragma Inline (Set_Exception_Choices);
11240    pragma Inline (Set_Exception_Handlers);
11241    pragma Inline (Set_Exception_Junk);
11242    pragma Inline (Set_Exception_Label);
11243    pragma Inline (Set_Expansion_Delayed);
11244    pragma Inline (Set_Explicit_Actual_Parameter);
11245    pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11246    pragma Inline (Set_Expression);
11247    pragma Inline (Set_Expressions);
11248    pragma Inline (Set_First_Bit);
11249    pragma Inline (Set_First_Inlined_Subprogram);
11250    pragma Inline (Set_First_Name);
11251    pragma Inline (Set_First_Named_Actual);
11252    pragma Inline (Set_First_Real_Statement);
11253    pragma Inline (Set_First_Subtype_Link);
11254    pragma Inline (Set_Float_Truncate);
11255    pragma Inline (Set_Formal_Type_Definition);
11256    pragma Inline (Set_Forwards_OK);
11257    pragma Inline (Set_From_At_End);
11258    pragma Inline (Set_From_At_Mod);
11259    pragma Inline (Set_From_Default);
11260    pragma Inline (Set_Generic_Associations);
11261    pragma Inline (Set_Generic_Formal_Declarations);
11262    pragma Inline (Set_Generic_Parent);
11263    pragma Inline (Set_Generic_Parent_Type);
11264    pragma Inline (Set_Handled_Statement_Sequence);
11265    pragma Inline (Set_Handler_List_Entry);
11266    pragma Inline (Set_Has_Created_Identifier);
11267    pragma Inline (Set_Has_Dynamic_Length_Check);
11268    pragma Inline (Set_Has_Init_Expression);
11269    pragma Inline (Set_Has_Local_Raise);
11270    pragma Inline (Set_Has_Dynamic_Range_Check);
11271    pragma Inline (Set_Has_No_Elaboration_Code);
11272    pragma Inline (Set_Has_Priority_Pragma);
11273    pragma Inline (Set_Has_Private_View);
11274    pragma Inline (Set_Has_Relative_Deadline_Pragma);
11275    pragma Inline (Set_Has_Storage_Size_Pragma);
11276    pragma Inline (Set_Has_Task_Info_Pragma);
11277    pragma Inline (Set_Has_Task_Name_Pragma);
11278    pragma Inline (Set_Has_Wide_Character);
11279    pragma Inline (Set_Hidden_By_Use_Clause);
11280    pragma Inline (Set_High_Bound);
11281    pragma Inline (Set_Identifier);
11282    pragma Inline (Set_Implicit_With);
11283    pragma Inline (Set_Includes_Infinities);
11284    pragma Inline (Set_Interface_List);
11285    pragma Inline (Set_Interface_Present);
11286    pragma Inline (Set_In_Present);
11287    pragma Inline (Set_Instance_Spec);
11288    pragma Inline (Set_Intval);
11289    pragma Inline (Set_Is_Asynchronous_Call_Block);
11290    pragma Inline (Set_Is_Component_Left_Opnd);
11291    pragma Inline (Set_Is_Component_Right_Opnd);
11292    pragma Inline (Set_Is_Controlling_Actual);
11293    pragma Inline (Set_Is_Dynamic_Coextension);
11294    pragma Inline (Set_Is_Entry_Barrier_Function);
11295    pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11296    pragma Inline (Set_Is_Folded_In_Parser);
11297    pragma Inline (Set_Is_In_Discriminant_Check);
11298    pragma Inline (Set_Is_Machine_Number);
11299    pragma Inline (Set_Is_Null_Loop);
11300    pragma Inline (Set_Is_Overloaded);
11301    pragma Inline (Set_Is_Power_Of_2_For_Shift);
11302    pragma Inline (Set_Is_Protected_Subprogram_Body);
11303    pragma Inline (Set_Has_Self_Reference);
11304    pragma Inline (Set_Is_Static_Coextension);
11305    pragma Inline (Set_Is_Static_Expression);
11306    pragma Inline (Set_Is_Subprogram_Descriptor);
11307    pragma Inline (Set_Is_Task_Allocation_Block);
11308    pragma Inline (Set_Is_Task_Master);
11309    pragma Inline (Set_Iteration_Scheme);
11310    pragma Inline (Set_Itype);
11311    pragma Inline (Set_Kill_Range_Check);
11312    pragma Inline (Set_Last_Bit);
11313    pragma Inline (Set_Last_Name);
11314    pragma Inline (Set_Library_Unit);
11315    pragma Inline (Set_Label_Construct);
11316    pragma Inline (Set_Left_Opnd);
11317    pragma Inline (Set_Limited_View_Installed);
11318    pragma Inline (Set_Limited_Present);
11319    pragma Inline (Set_Literals);
11320    pragma Inline (Set_Local_Raise_Not_OK);
11321    pragma Inline (Set_Local_Raise_Statements);
11322    pragma Inline (Set_Loop_Actions);
11323    pragma Inline (Set_Loop_Parameter_Specification);
11324    pragma Inline (Set_Low_Bound);
11325    pragma Inline (Set_Mod_Clause);
11326    pragma Inline (Set_More_Ids);
11327    pragma Inline (Set_Must_Be_Byte_Aligned);
11328    pragma Inline (Set_Must_Not_Freeze);
11329    pragma Inline (Set_Must_Not_Override);
11330    pragma Inline (Set_Must_Override);
11331    pragma Inline (Set_Name);
11332    pragma Inline (Set_Names);
11333    pragma Inline (Set_Next_Entity);
11334    pragma Inline (Set_Next_Named_Actual);
11335    pragma Inline (Set_Next_Pragma);
11336    pragma Inline (Set_Next_Rep_Item);
11337    pragma Inline (Set_Next_Use_Clause);
11338    pragma Inline (Set_No_Ctrl_Actions);
11339    pragma Inline (Set_No_Elaboration_Check);
11340    pragma Inline (Set_No_Entities_Ref_In_Spec);
11341    pragma Inline (Set_No_Initialization);
11342    pragma Inline (Set_No_Truncation);
11343    pragma Inline (Set_Null_Present);
11344    pragma Inline (Set_Null_Exclusion_Present);
11345    pragma Inline (Set_Null_Record_Present);
11346    pragma Inline (Set_Object_Definition);
11347    pragma Inline (Set_Original_Discriminant);
11348    pragma Inline (Set_Original_Entity);
11349    pragma Inline (Set_Others_Discrete_Choices);
11350    pragma Inline (Set_Out_Present);
11351    pragma Inline (Set_Parameter_Associations);
11352    pragma Inline (Set_Parameter_Specifications);
11353    pragma Inline (Set_Parameter_List_Truncated);
11354    pragma Inline (Set_Parameter_Type);
11355    pragma Inline (Set_Parent_Spec);
11356    pragma Inline (Set_PPC_Enabled);
11357    pragma Inline (Set_Position);
11358    pragma Inline (Set_Pragma_Argument_Associations);
11359    pragma Inline (Set_Pragma_Identifier);
11360    pragma Inline (Set_Pragmas_After);
11361    pragma Inline (Set_Pragmas_Before);
11362    pragma Inline (Set_Prefix);
11363    pragma Inline (Set_Present_Expr);
11364    pragma Inline (Set_Prev_Ids);
11365    pragma Inline (Set_Print_In_Hex);
11366    pragma Inline (Set_Private_Declarations);
11367    pragma Inline (Set_Private_Present);
11368    pragma Inline (Set_Procedure_To_Call);
11369    pragma Inline (Set_Proper_Body);
11370    pragma Inline (Set_Protected_Definition);
11371    pragma Inline (Set_Protected_Present);
11372    pragma Inline (Set_Raises_Constraint_Error);
11373    pragma Inline (Set_Range_Constraint);
11374    pragma Inline (Set_Range_Expression);
11375    pragma Inline (Set_Real_Range_Specification);
11376    pragma Inline (Set_Realval);
11377    pragma Inline (Set_Reason);
11378    pragma Inline (Set_Record_Extension_Part);
11379    pragma Inline (Set_Redundant_Use);
11380    pragma Inline (Set_Renaming_Exception);
11381    pragma Inline (Set_Result_Definition);
11382    pragma Inline (Set_Return_Object_Declarations);
11383    pragma Inline (Set_Reverse_Present);
11384    pragma Inline (Set_Right_Opnd);
11385    pragma Inline (Set_Rounded_Result);
11386    pragma Inline (Set_Scope);
11387    pragma Inline (Set_Select_Alternatives);
11388    pragma Inline (Set_Selector_Name);
11389    pragma Inline (Set_Selector_Names);
11390    pragma Inline (Set_Shift_Count_OK);
11391    pragma Inline (Set_Source_Type);
11392    pragma Inline (Set_Specification);
11393    pragma Inline (Set_Statements);
11394    pragma Inline (Set_Static_Processing_OK);
11395    pragma Inline (Set_Storage_Pool);
11396    pragma Inline (Set_Strval);
11397    pragma Inline (Set_Subtype_Indication);
11398    pragma Inline (Set_Subtype_Mark);
11399    pragma Inline (Set_Subtype_Marks);
11400    pragma Inline (Set_Synchronized_Present);
11401    pragma Inline (Set_Tagged_Present);
11402    pragma Inline (Set_Target_Type);
11403    pragma Inline (Set_Task_Definition);
11404    pragma Inline (Set_Task_Present);
11405    pragma Inline (Set_Then_Actions);
11406    pragma Inline (Set_Then_Statements);
11407    pragma Inline (Set_Triggering_Alternative);
11408    pragma Inline (Set_Triggering_Statement);
11409    pragma Inline (Set_Treat_Fixed_As_Integer);
11410    pragma Inline (Set_TSS_Elist);
11411    pragma Inline (Set_Type_Definition);
11412    pragma Inline (Set_Unit);
11413    pragma Inline (Set_Unknown_Discriminants_Present);
11414    pragma Inline (Set_Unreferenced_In_Spec);
11415    pragma Inline (Set_Variant_Part);
11416    pragma Inline (Set_Variants);
11417    pragma Inline (Set_Visible_Declarations);
11418    pragma Inline (Set_Was_Originally_Stub);
11419    pragma Inline (Set_Zero_Cost_Handling);
11420
11421    N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11422    --  Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11423    --  should refer to N_Simple_Return_Statement.
11424
11425 end Sinfo;