OSDN Git Service

* Makefile.in (reload1.o-warn): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ada / vms_data.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                         GNAT COMPILER COMPONENTS                         --
4 --                                                                          --
5 --                             V M S _ D A T A                              --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1996-2007, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- GNAT was originally developed  by the GNAT team at  New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
24 --                                                                          --
25 ------------------------------------------------------------------------------
26
27 --  This package contains, for each of the command of the GNAT driver, one
28 --  constant array; each component of this array is a string that defines,
29 --  in coded form as explained below, the conversion of a VMS qualifier of the
30 --  command to the corresponding switch of the GNAT tool corresponding to the
31 --  command.
32
33 --  This package is used by the GNAT driver to invokes the GNAT tools with the
34 --  switches corresponding to the VMS qualifier and by the Project Manager to
35 --  convert VMS qualifiers in project files to their corresponding switch
36 --  values.
37
38 --  This package is also an input to the tool that generates the VMS GNAT
39 --  help information automatically.
40
41 --  NOTE: the format of this package must follow the following rules, so that
42 --        the VMS GNAT help tool works properly:
43
44 --    - Each command zone (where the eventual qualifiers are declared must
45 --      begin with a boxed comment of the form:
46
47 --      ---------------------------------
48 --      -- Switches for GNAT <COMMAND> --
49 --      ---------------------------------
50
51 --      where <COMMAND> is the name of a GNAT command in capital letters, for
52 --      example BIND, COMPILE, XREF, ...
53
54 --    - each qualifier declaration must be followed either by
55 --         - a comment starting with "--  NODOC", to indicate that there is
56 --           no documentation for this qualifier, or
57 --         - a contiguous sequence of comments that constitute the
58 --           documentation of the qualifier.
59
60 --    - each command zone ends with the declaration of the contant array
61 --      for the command, of the form:
62
63 --      <Command>__Switches : aliased constant Switches :=
64
65 package VMS_Data is
66
67    ----------------
68    -- QUALIFIERS --
69    ----------------
70
71    --  The syntax of a qualifier delaration is as follows:
72
73    --    SWITCH_STRING ::= "/ command-qualifier-name TRANSLATION"
74
75    --    TRANSLATION ::=
76    --      DIRECT_TRANSLATION
77    --    | DIRECTORIES_TRANSLATION
78    --    | FILE_TRANSLATION
79    --    | NO_SPACE_FILE_TRANSL
80    --    | NUMERIC_TRANSLATION
81    --    | STRING_TRANSLATION
82    --    | OPTIONS_TRANSLATION
83    --    | COMMANDS_TRANSLATION
84    --    | ALPHANUMPLUS_TRANSLATION
85    --    | OTHER_TRANSLATION
86
87    --    DIRECT_TRANSLATION       ::= space UNIX_SWITCHES
88    --    DIRECTORIES_TRANSLATION  ::= =* UNIX_SWITCH *
89    --    DIRECTORY_TRANSLATION    ::= =% UNIX_SWITCH %
90    --    FILE_TRANSLATION         ::= =@ UNIX_SWITCH @
91    --    NO_SPACE_FILE_TRANSL     ::= =< UNIX_SWITCH >
92    --    NUMERIC_TRANSLATION      ::= =# UNIX_SWITCH # | # number #
93    --    STRING_TRANSLATION       ::= =" UNIX_SWITCH "
94    --    OPTIONS_TRANSLATION      ::= =OPTION {space OPTION}
95    --    COMMANDS_TRANSLATION     ::= =? ARGS space command-name
96    --    ALPHANUMPLUS_TRANSLATION ::= =| UNIX_SWITCH |
97
98    --    UNIX_SWITCHES ::= UNIX_SWITCH {, UNIX_SWITCH}
99
100    --    UNIX_SWITCH ::= unix-switch-string | !unix-switch-string | `string'
101
102    --    OPTION ::= option-name space UNIX_SWITCHES
103
104    --    ARGS ::= -cargs | -bargs | -largs
105
106    --  Here command-qual is the name of the switch recognized by the GNATCmd.
107    --  This is always given in upper case in the templates, although in the
108    --  actual commands, either upper or lower case is allowed.
109
110    --  The unix-switch-string always starts with a minus, and has no commas
111    --  or spaces in it. Case is significant in the unix switch string. If a
112    --  unix switch string is preceded by the not sign (!) it means that the
113    --  effect of the corresponding command qualifer is to remove any previous
114    --  occurrence of the given switch in the command line.
115
116    --  The DIRECTORIES_TRANSLATION format is used where a list of directories
117    --  is given. This possible corresponding formats recognized by GNATCmd are
118    --  as shown by the following example for the case of PATH
119
120    --    PATH=direc
121    --    PATH=(direc,direc,direc,direc)
122
123    --  When more than one directory is present for the DIRECTORIES case, then
124    --  multiple instances of the corresponding unix switch are generated,
125    --  with the file name being substituted for the occurrence of *.
126
127    --  The FILE_TRANSLATION format is similar except that only a single
128    --  file is allowed, not a list of files, and only one unix switch is
129    --  generated as a result.
130
131    --  the NO_SPACE_FILE_TRANSL is similar to FILE_TRANSLATION, except that
132    --  no space is inserted between the switch and the file name.
133
134    --  The NUMERIC_TRANSLATION format is similar to the FILE_TRANSLATION case
135    --  except that the parameter is a decimal integer in the range 0 to 999.
136
137    --  For the OPTIONS_TRANSLATION case, GNATCmd similarly permits one or
138    --  more options to appear (although only in some cases does the use of
139    --  multiple options make logical sense). For example, taking the
140    --  case of ERRORS for GCC, the following are all allowed:
141
142    --    /ERRORS=BRIEF
143    --    /ERRORS=(FULL,VERBOSE)
144    --    /ERRORS=(BRIEF IMMEDIATE)
145
146    --  If no option is provided (e.g. just /ERRORS is written), then the
147    --  first option in the list is the default option. For /ERRORS this
148    --  is NORMAL, so /ERRORS with no option is equivalent to /ERRORS=NORMAL.
149
150    --  The COMMANDS_TRANSLATION case is only used for gnatmake, to correspond
151    --  to the use of -cargs, -bargs and -largs (the ARGS string as indicated
152    --  is one of these three possibilities). The name given by COMMAND is the
153    --  corresponding command name to be used to interprete the switches to be
154    --  passed on. Switches of this type set modes, e.g. /COMPILER_QUALIFIERS
155    --  sets the mode so that all subsequent switches, up to another switch
156    --  with COMMANDS_TRANSLATION apply to the corresponding commands issued
157    --  by the make utility. For example
158
159    --    /COMPILER_QUALIFIERS /LIST /BINDER_QUALIFIERS /MAIN
160    --    /COMPILER_QUALIFIERS /NOLIST /COMPILE_CHECKS=SYNTAX
161
162    --  Clearly these switches must come at the end of the list of switches
163    --  since all subsequent switches apply to an issued command.
164
165    --  For the DIRECT_TRANSLATION case, an implicit additional qualifier
166    --  declaration is created by prepending NO to the name of the qualifer,
167    --  and then inverting the sense of the UNIX_SWITCHES string. For example,
168    --  given the qualifier definition:
169
170    --     "/LIST -gnatl"
171
172    --  An implicit qualifier definition is created:
173
174    --     "/NOLIST !-gnatl"
175
176    --  In the case where, a ! is already present, inverting the sense of the
177    --  switch means removing it.
178
179    subtype S is String;
180    --  A synonym to shorten the table
181
182    type String_Ptr is access constant String;
183    --  String pointer type used throughout
184
185    type Switches is array (Natural range <>) of String_Ptr;
186    --  Type used for array of swtiches
187
188    type Switches_Ptr is access constant Switches;
189
190    ----------------------------
191    -- Switches for GNAT BIND --
192    ----------------------------
193
194    S_Bind_Bind    : aliased constant S := "/BIND_FILE="                    &
195                                             "ADA "                         &
196                                                "-A "                       &
197                                             "C "                           &
198                                                "-C";
199    --        /BIND_FILE[=bind-file-option]
200    --
201    --   Specifies the language of the binder generated file.
202    --
203    --        ADA (D)    Binder file is Ada.
204    --
205    --        C          Binder file is 'C'.
206
207    S_Bind_Build   : aliased constant S := "/BUILD_LIBRARY=|"               &
208                                             "-L|";
209    --        /BUILD_LIBRARY=xxx
210    --
211    --        Binds the units for library building. In this case the adainit and
212    --        adafinal procedures are rename to xxxinit and xxxfinal. Implies
213    --        /NOMAIN.
214
215    S_Bind_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
216                                             "!-I-";
217    --        /CURRENT_DIRECTORY (D)
218    --        /NOCURRENT_DIRECTORY
219    --
220    --        Look for source, library or object files in the default directory.
221
222    S_Bind_Debug   : aliased constant S := "/DEBUG="                        &
223                                             "TRACEBACK "                   &
224                                                "-g2 "                      &
225                                             "ALL "                         &
226                                                "-g3 "                      &
227                                             "NONE "                        &
228                                                "-g0 "                      &
229                                             "SYMBOLS "                     &
230                                                "-g1 "                      &
231                                             "NOSYMBOLS "                   &
232                                                "!-g1 "                     &
233                                             "LINK "                        &
234                                                "-g3 "                      &
235                                             "NOTRACEBACK "                 &
236                                                "!-g2";
237    --        /DEBUG[=debug-level]
238    --        /NODEBUG
239    --
240    --    Specify level of debugging information generated for the elaboration
241    --    routine.  See corresponding qualifier for GNAT COMPILE.
242
243    S_Bind_DebugX  : aliased constant S := "/NODEBUG "                      &
244                                             "!-g";
245    --  NODOC  (see /DEBUG)
246
247    S_Bind_Elab    : aliased constant S := "/ELABORATION_DEPENDENCIES "     &
248                                             "-e";
249    --        /ELABORATION_DEPENDENCIES
250    --        /NOELABORATION_DEPENDENCIES (D)
251    --
252    --   Output complete list of elaboration-order dependencies, showing the
253    --   reason for each dependency. This output can be rather extensive but may
254    --   be useful in diagnosing problems with elaboration order. The output is
255    --   written to SYS$OUTPUT.
256
257    S_Bind_Error   : aliased constant S := "/ERROR_LIMIT=#"                 &
258                                             "-m#";
259    --        /ERROR_LIMIT=nnn
260    --
261    --   Limit number of detected errors to nnn (1-999999).
262
263    S_Bind_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
264                                             "-X" & '"';
265    --       /EXTERNAL_REFERENCE="name=val"
266    --
267    --   Specifies an external reference to the project manager. Useful only if
268    --   /PROJECT_FILE is used.
269    --
270    --   Example:
271    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
272
273    S_Bind_Force   : aliased constant S := "/FORCE_ELAB_FLAGS "             &
274                                             "-F";
275    --        /NOFORCE_ELAB_FLAGS (D)
276    --        /FORCE_ELAB_FLAGS
277    --
278    --    Force checking of elaboration Flags
279
280    S_Bind_Help    : aliased constant S := "/HELP "                         &
281                                             "-h";
282    --        /HELP
283    --
284    --   Output usage information.
285
286    S_Bind_Init    : aliased constant S := "/INITIALIZE_SCALARS="           &
287                                             "INVALID "                     &
288                                                "-Sin "                     &
289                                             "LOW "                         &
290                                                "-Slo "                     &
291                                             "HIGH "                        &
292                                                "-Shi";
293    --        /INITIALIZE_SCALARS[=scalar-option]
294    --
295    --   Indicate how uninitialized scalar values for which a pragma
296    --   Initialize_Scalars applies should be initialized.
297    --   scalar-option may be one of the following:
298    --
299    --      INVALID (D)  Initialize with an invalid value.
300    --      LOW          Initialize with the lowest valid value of the subtype.
301    --      HIGH         Initialize with the highest valid value of the subtype.
302
303    S_Bind_Library : aliased constant S := "/LIBRARY_SEARCH=*"              &
304                                             "-aO*";
305    --        /LIBRARY_SEARCH=(direc[,...])
306    --
307    --        When looking for library and object files look also in directories
308    --        specified.
309
310    S_Bind_Linker  : aliased constant S := "/LINKER_OPTION_LIST "           &
311                                             "-K";
312    --        /NOLINKER_OPTION_LIST (D)
313    --        /LINKER_OPTION_LIST
314    --
315    --        Output linker options to SYS$OUTPUT.  Includes library search
316    --        paths, contents of pragmas Ident and Linker_Options, and
317    --        libraries added by GNAT BIND.
318
319    S_Bind_Main    : aliased constant S := "/MAIN "                         &
320                                             "!-n";
321    --        /MAIN (D)
322    --
323    --   The main program is in Ada.
324    --
325    --        /NOMAIN
326    --
327    --   The main program is not in Ada.
328
329    S_Bind_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
330                                             "DEFAULT "                     &
331                                                "-vP0 "                     &
332                                             "MEDIUM "                      &
333                                                "-vP1 "                     &
334                                             "HIGH "                        &
335                                                "-vP2";
336    --        /MESSAGES_PROJECT_FILE[=messages-option]
337    --
338    --   Specifies the "verbosity" of the parsing of project files.
339    --   messages-option may be one of the following:
340    --
341    --      DEFAULT (D)  No messages are output if there is no error or warning.
342    --
343    --      MEDIUM       A small number of messages are output.
344    --
345    --      HIGH         A great number of messages are output, most of them not
346    --                   being useful for the user.
347
348    S_Bind_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
349                                             "-nostdinc";
350    --        /NOSTD_INCLUDES
351    --
352    --    Do not look for sources the in the system default directory.
353
354    S_Bind_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
355                                             "-nostdlib";
356    --        /NOSTD_LIBRARIES
357    --
358    --    Do not look for library files in the system default directory.
359
360    S_Bind_No_Time : aliased constant S := "/NO_TIME_STAMP_CHECK "          &
361                                             "-t";
362    --  NODOC (see /TIME_STAMP_CHECK)
363
364    S_Bind_Object  : aliased constant S := "/OBJECT_LIST "                  &
365                                             "-O";
366    --        /NOOBJECT_LIST (D)
367    --        /OBJECT_LIST
368    --
369    --    Output full names of all the object files that must be linker to
370    --    provide the Ada component of the program. The output is written to
371    --    SYS$OUTPUT.
372
373    S_Bind_Order   : aliased constant S := "/ORDER_OF_ELABORATION "         &
374                                             "-l";
375    --        /NOORDER_OF_ELABORATION (D)
376    --        /ORDER_OF_ELABORATION
377    --
378    --   Output chosen elaboration order. The output is written to SYS$OUTPUT.
379
380    S_Bind_Output  : aliased constant S := "/OUTPUT=@"                      &
381                                             "-o@";
382    --        /OUTPUT=filename
383    --
384    --   File name to use for the program containing the elaboration code.
385
386    S_Bind_OutputX : aliased constant S := "/NOOUTPUT "                     &
387                                             "-c";
388    --        /NOOUTPUT
389    --
390    --   Check only. Do not generate the binder output file.
391    --
392    --   In this mode the binder performs all error checks but does not generate
393    --   an output file.
394
395    S_Bind_Pess    : aliased constant S := "/PESSIMISTIC_ELABORATION "      &
396                                             "-p";
397    --        /PESSIMISTIC_ELABORATION
398    --
399    --   Causes the binder to choose a "pessimistic" elaboration order, i.e. one
400    --   which is most likely to cause elaboration order problems. This can be
401    --   useful in testing portable code to make sure that there are no missing
402    --   elaborate pragmas.
403
404    S_Bind_Project : aliased constant S := "/PROJECT_FILE=<"                &
405                                             "-P>";
406    --        /PROJECT_FILE=filename
407    --
408    --   Specifies the main project file to be used. The project files rooted
409    --   at the main project file will be parsed before the invocation of the
410    --   binder. The source and object directories to be searched will be
411    --   communicated to the binder through logical names ADA_PRJ_INCLUDE_FILE
412    --   and ADA_PRJ_OBJECTS_FILE.
413
414    S_Bind_Read    : aliased constant S := "/READ_SOURCES="                 &
415                                             "ALL "                         &
416                                                "-s "                       &
417                                             "NONE "                        &
418                                                "-x "                       &
419                                             "AVAILABLE "                   &
420                                                "!-x,!-s";
421    --        /READ_SOURCES[=(keyword[,...])]
422    --        /NOREAD_SOURCES
423    --
424    --   The following keyword are accepted:
425    --
426    --      ALL (D)      Require source files to be present. In this mode, the
427    --                   binder insists on being able to locate all source files
428    --                   that are referenced and checks their consistency.  In
429    --                   normal mode, if a source file cannot be located it is
430    --                   simply ignored. If you specify the ALL keyword, a
431    --                   missing source file is an error.
432    --
433    --      NONE         Exclude source files. In this mode, the binder only
434    --                   checks that ALI files are consistent with one another.
435    --                   source files are not accessed.  The binder runs faster
436    --                   in this mode, and there is still a guarantee that the
437    --                   resulting program is self-consistent.
438    --
439    --                   If a source file has been edited since it was last
440    --                   compiled and you specify the NONE keyword, the binder
441    --                   will not detect that the object file is out of date
442    --                   with the source file.
443    --
444    --                   This is the same as specifying /NOREAD_SOURCES.
445    --
446    --      AVAILABLE    Check that object files are consistent with one
447    --                   another and are consistent with any source files that
448    --                   can be located.
449
450    S_Bind_ReadX   : aliased constant S := "/NOREAD_SOURCES "               &
451                                             "-x";
452    --  NODOC (see /READ_SOURCES)
453
454    S_Bind_Rename  : aliased constant S := "/RENAME_MAIN=<"                 &
455                                             "-M>";
456    --        /RENAME_MAIN=xxx
457    --
458    --   Renames the generated main program from main to xxx.
459    --   This is useful in the case of some cross-building environments, where
460    --   the actual main program is separate from the one generated
461    --   by GNAT BIND.
462
463    S_Bind_Report  : aliased constant S := "/REPORT_ERRORS="                &
464                                             "VERBOSE "                     &
465                                                "-v "                       &
466                                             "BRIEF "                       &
467                                                "-b "                       &
468                                             "DEFAULT "                     &
469                                                "!-b,!-v";
470    --        /REPORT_ERRORS[=(keyword[,...])]
471    --           VERBOSE (D)
472    --           BRIEF
473    --           DEFAULT
474    --        /NOREPORT_ERRORS
475    --
476    --   With the DEFAULT keyword (which is not the default when the binder is
477    --   run from GNAT BIND) or the /NOREPORT_ERRORS qualifier, brief error
478    --   messages are generated to SYS$ERROR.  If the VERBOSE keyword is
479    --   present, a header is written to SYS$OUTPUT and any error messages are
480    --   directed to SYS$OUTPUT  All that is written to SYS$ERROR is a brief
481    --   summary message.
482    --
483    --   If the BRIEF keyword is specified, the binder will generate brief error
484    --   messages to SYS$ERROR even if verbose mode is specified. This is
485    --   relevant only when used together with the VERBOSE keyword or /VERBOSE
486    --   qualifier.
487
488    S_Bind_ReportX : aliased constant S := "/NOREPORT_ERRORS "              &
489                                             "!-b,!-v";
490    --  NODOC (see /REPORT_ERRORS)
491
492    S_Bind_Restr   : aliased constant S := "/RESTRICTION_LIST "             &
493                                             "-r";
494    --        /NORESTRICTION_LIST (D)
495    --        /RESTRICTION_LIST
496    --
497    --   Generate list of pragma Rerstrictions that could be applied to the
498    --   current unit. This is useful for code audit purposes, and also may be
499    --   used to improve code generation in some cases.
500
501    S_Bind_Return  : aliased constant S := "/RETURN_CODES="                 &
502                                             "POSIX "                       &
503                                                "!-X1 "                     &
504                                             "VMS "                         &
505                                                "-X1";
506    --        /RETURN_CODES=POSIX (D)
507    --        /RETURN_CODES=VMS
508    --
509    --   Specifies the style of default exit code returned. Must be used in
510    --   conjunction with and match the Link qualifer with same name.
511    --
512    --        POSIX (D)   Return Posix success (0) by default.
513    --
514    --        VMS         Return VMS success (1) by default.
515
516    S_Bind_RTS     : aliased constant S := "/RUNTIME_SYSTEM=|"              &
517                                             "--RTS=|";
518    --      /RUNTIME_SYSTEM=xxx
519    --
520    --    Binds against an alternate runtime system named xxx or RTS-xxx.
521
522    S_Bind_Search  : aliased constant S := "/SEARCH=*"                      &
523                                             "-I*";
524    --        /SEARCH=(directory[,...])
525    --
526    --   When looking for source or object files also look in directories
527    --   specified.
528    --
529    --   This is the same as specifying both /LIBRARY_SEARCH and /SOURCE_SEARCH
530    --   for a directory.
531
532    S_Bind_Shared  : aliased constant S := "/SHARED "                       &
533                                             "-shared,!-static";
534    --        /SHARED
535    --        /NOSHARED
536    --
537    --    Link against a shared GNAT run time when available.
538
539    S_Bind_Slice   : aliased constant S := "/TIME_SLICE=#"                  &
540                                             "-T#";
541    --        /TIME_SLICE=nnn
542    --
543    --   Set the time slice value to nnn milliseconds. A value of zero means no
544    --   time slicing and also indicates to the tasking run time to match as
545    --   close as possible to the annex D requirements of the RM.
546
547    S_Bind_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
548                                             "-aI*";
549    --        /SOURCE_SEARCH=(directory[,...])
550    --
551    --    When looking for source files also look in directories specified.
552
553    S_Bind_Static  : aliased constant S := "/STATIC "                       &
554                                             "-static,!-shared";
555    --        /STATIC
556    --        /NOSTATIC
557    --
558    --    Link against a static GNAT run time.
559
560    S_Bind_Store   : aliased constant S := "/STORE_TRACEBACKS "             &
561                                             "-E";
562    --        /STORE_TRACEBACKS (D)
563    --        /NOSTORE_TRACEBACKS
564    --
565    --   Store tracebacks in exception occurrences.
566    --   This is the default on VMS, with the zero-cost exception mechanism.
567    --   This qualifier has no impact, except when using the setjmp/longjmp
568    --   exception mechanism, with the GNAT COMPILE qualifier /LONGJMP_SETJMP.
569
570    S_Bind_Time    : aliased constant S := "/TIME_STAMP_CHECK "             &
571                                             "!-t";
572    --      /TIME_STAMP_CHECK (D)
573    --
574    --   Time stamp errors will be treated as errors.
575    --
576    --      /NOTIME_STAMP_CHECK
577    --
578    --   Ignore time stamp errors. Any time stamp error messages are treated as
579    --   warning messages. This switch essentially disconnects the normal
580    --   consistency checking, and the resulting program may have undefined
581    --   semantics if inconsistent units are present.
582    --
583    --   This means that /NOTIME_STAMP_CHECK should be used only in unusual
584    --   situations, with extreme care.
585
586    S_Bind_Verbose : aliased constant S := "/VERBOSE "                      &
587                                             "-v";
588    --        /VERBOSE (D)
589    --        /NOVERBOSE
590    --
591    --   Equivalent to /REPORT_ERRORS=VERBOSE.
592
593    S_Bind_Warn    : aliased constant S := "/WARNINGS="                     &
594                                             "NORMAL "                      &
595                                                "!-ws,!-we "                &
596                                             "SUPPRESS "                    &
597                                                "-ws "                      &
598                                             "ERROR "                       &
599                                                "-we";
600    --      /WARNINGS[=(keyword[,...])]
601    --      /NOWARNINGS
602    --
603    --   The following keywords are supported:
604    --
605    --        NORMAL (D)    Print warning messages and treat them as warning.
606    --        SUPPRESS      Suppress all warning messages (same as /NOWARNINGS).
607    --        ERROR         Treat any warning messages as fatal errors
608
609    S_Bind_WarnX   : aliased constant S := "/NOWARNINGS "                   &
610                                             "-ws";
611    --  NODOC (see /WARNINGS)
612
613    S_Bind_Zero    : aliased constant S := "/ZERO_MAIN "                    &
614                                             "-z";
615    --        /NOZERO_MAIN (D)
616    --        /ZERO_MAIN
617    --
618    --   Normally the binder checks that the unit name given on the command line
619    --   corresponds to a suitable main subprogram. When /ZERO_MAIN is used,
620    --   a list of ALI files can be given, and the execution of the program
621    --   consists of elaboration of these units in an appropriate order.
622
623    Bind_Switches : aliased constant Switches :=
624      (S_Bind_Bind    'Access,
625       S_Bind_Build   'Access,
626       S_Bind_Current 'Access,
627       S_Bind_Debug   'Access,
628       S_Bind_DebugX  'Access,
629       S_Bind_Elab    'Access,
630       S_Bind_Error   'Access,
631       S_Bind_Ext     'Access,
632       S_Bind_Force   'Access,
633       S_Bind_Help    'Access,
634       S_Bind_Init    'Access,
635       S_Bind_Library 'Access,
636       S_Bind_Linker  'Access,
637       S_Bind_Main    'Access,
638       S_Bind_Mess    'Access,
639       S_Bind_Nostinc 'Access,
640       S_Bind_Nostlib 'Access,
641       S_Bind_No_Time 'Access,
642       S_Bind_Object  'Access,
643       S_Bind_Order   'Access,
644       S_Bind_Output  'Access,
645       S_Bind_OutputX 'Access,
646       S_Bind_Pess    'Access,
647       S_Bind_Project 'Access,
648       S_Bind_Read    'Access,
649       S_Bind_ReadX   'Access,
650       S_Bind_Rename  'Access,
651       S_Bind_Report  'Access,
652       S_Bind_ReportX 'Access,
653       S_Bind_Restr   'Access,
654       S_Bind_Return  'Access,
655       S_Bind_RTS     'Access,
656       S_Bind_Search  'Access,
657       S_Bind_Shared  'Access,
658       S_Bind_Slice   'Access,
659       S_Bind_Source  'Access,
660       S_Bind_Static  'Access,
661       S_Bind_Store   'Access,
662       S_Bind_Time    'Access,
663       S_Bind_Verbose 'Access,
664       S_Bind_Warn    'Access,
665       S_Bind_WarnX   'Access,
666       S_Bind_Zero    'Access);
667
668    -----------------------------
669    -- Switches for GNAT CHECK --
670    -----------------------------
671
672    S_Check_All    : aliased constant S := "/ALL "                         &
673                                             "-a";
674    --        /NOALL (D)
675    --        /ALL
676    --
677    --   Also check the components of the GNAT run time and process the needed
678    --  components of the GNAT RTL when building and analyzing the global
679    --  structure for checking the global rules.
680
681    S_Check_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'   &
682                                              "-X" & '"';
683    --       /EXTERNAL_REFERENCE="name=val"
684    --
685    --   Specifies an external reference to the project manager. Useful only if
686    --   /PROJECT_FILE is used.
687    --
688    --   Example:
689    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
690
691    S_Check_Files  : aliased constant S := "/FILES=@"                      &
692                                              "-files=@";
693    --      /FILES=filename
694    --
695    --   Take as arguments the files that are listed in the specified
696    --   text file.
697
698    S_Check_Help   : aliased constant S := "/HELP "                        &
699                                             "-h";
700    --        /NOHELP (D)
701    --        /HELP
702    --
703    --   Print information about currently implemented checks.
704
705    S_Check_Locs   : aliased constant S := "/LOCS "                        &
706                                             "-l";
707    --        /NOLOCS (D)
708    --        /LOCS
709    --
710    --   Use full source locations referebces in the report file.
711
712    S_Check_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="      &
713                                              "DEFAULT "                   &
714                                                 "-vP0 "                   &
715                                              "MEDIUM "                    &
716                                                 "-vP1 "                   &
717                                              "HIGH "                      &
718                                                 "-vP2";
719    --        /MESSAGES_PROJECT_FILE[=messages-option]
720    --
721    --   Specifies the "verbosity" of the parsing of project files.
722    --   messages-option may be one of the following:
723    --
724    --      DEFAULT (D)  No messages are output if there is no error or warning.
725    --
726    --      MEDIUM       A small number of messages are output.
727    --
728    --      HIGH         A great number of messages are output, most of them not
729    --                   being useful for the user.
730
731    S_Check_Project : aliased constant S := "/PROJECT_FILE=<"              &
732                                              "-P>";
733    --        /PROJECT_FILE=filename
734    --
735    --   Specifies the main project file to be used. The project files rooted
736    --   at the main project file will be parsed before the invocation of the
737    --   gnatcheck. The source directories to be searched will be communicated
738    --   to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
739
740    S_Check_Quiet  : aliased constant S := "/QUIET "                       &
741                                             "-q";
742    --        /NOQUIET (D)
743    --        /QUIET
744    --
745    --   Work quietly, only output warnings and errors.
746
747    S_Check_Sections : aliased constant S := "/SECTIONS="                  &
748                                             "DEFAULT "                    &
749                                                "-s123 "                   &
750                                             "COMPILER_STYLE "             &
751                                                "-s1 "                     &
752                                             "BY_RULES "                   &
753                                                "-s2 "                     &
754                                             "BY_FILES_BY_RULES "          &
755                                                "-s3";
756    --        /SECTIONS[=section-option, section-option, ...]
757    --
758    --   Specify what sections should be included into the report file.
759    --   By default, all three section (diagnises in the format correcponding
760    --   to compiler error and warning messages, diagnoses grouped by rules and
761    --   then - by files, diagnoses grouped by files and then - by rules) are
762    --   included in the report file.
763    --
764    --   section-option may be one of the following:
765    --
766    --      COMPILER_STYLE      Include diagnoses in compile-style format
767    --                          (diagoses are grouped by files, for each file
768    --                          they are ordered according to the references
769    --                          into the source)
770    --      BY_RULES            Include diagnoses grouped first by rules and
771    --                          then by files
772    --      BY_FILES_BY_RULES   Include diagnoses grouped first by files and
773    --                          then by rules
774    --
775    --   If one of these options is specified, then the report file contains
776    --   only sections set by these options
777
778    S_Check_Short  : aliased constant S := "/SHORT "                       &
779                                             "-s";
780    --        /NOSHORT (D)
781    --        /SHORT
782    --
783    --   Generate a short form of the report file.
784
785    S_Check_Verb   : aliased constant S := "/VERBOSE "                     &
786                                             "-v";
787    --        /NOVERBOSE (D)
788    --        /VERBOSE
789    --
790    --   The version number and copyright notice are output, as well as exact
791    --   copies of the gnat1 commands spawned to obtain the chop control
792    --   information.
793
794    Check_Switches : aliased constant Switches :=
795                       (S_Check_All      'Access,
796                        S_Check_Ext      'Access,
797                        S_Check_Files    'Access,
798                        S_Check_Help     'Access,
799                        S_Check_Locs     'Access,
800                        S_Check_Mess     'Access,
801                        S_Check_Project  'Access,
802                        S_Check_Quiet    'Access,
803                        S_Check_Sections 'Access,
804                        S_Check_Short    'Access,
805                        S_Check_Verb     'Access);
806
807    ----------------------------
808    -- Switches for GNAT CHOP --
809    ----------------------------
810
811    S_Chop_Comp   : aliased constant S := "/COMPILATION "                   &
812                                             "-c";
813    --        /NOCOMPILATION (D)
814    --        /COMPILATION
815    --
816    --   Compilation mode, handle configuration pragmas strictly according to
817    --   RM rules.
818
819    S_Chop_File   : aliased constant S := "/FILE_NAME_MAX_LENGTH=#"         &
820                                             "-k#";
821    --        /FILE_NAME_MAX_LENGTH[=nnn]
822    --
823    --   Limit generated file names to NNN (default of 8) characters. This is
824    --   useful if the resulting set of files is required to be interoperable
825    --   with systems like MS-DOS which limit the length of file names.
826
827    S_Chop_Help   : aliased constant S := "/HELP "                          &
828                                             "-h";
829    --        /NOHELP (D)
830    --        /HELP
831    --
832    --   Print usage information.
833
834    S_Chop_Over   : aliased constant S := "/OVERWRITE "                     &
835                                             "-w";
836    --        /NOOVERWRITE (D)
837    --        /OVERWRITE
838    --
839    --   Overwrite existing file names. Normally GNAT CHOP regards it as a
840    --   fatal error situation if there is already a file with the same name as
841    --   a file it would otherwise output. The /OVERWRITE qualifier bypasses
842    --   this check, and any such existing files will be silently overwritten.
843
844    S_Chop_Pres   : aliased constant S := "/PRESERVE "                      &
845                                             "-p";
846    --        /NOPRESERVE (D)
847    --        /PRESERVE
848    --
849    --   Causes the file modification time stamp of the input file to be
850    --   preserved and used for the time stamp of the output file(s). This may
851    --   be useful for preserving coherency of time stamps in an enviroment
852    --   where gnatchop is used as part of a standard build process.
853
854    S_Chop_Quiet  : aliased constant S := "/QUIET "                         &
855                                             "-q";
856    --        /NOQUIET (D)
857    --        /QUIET
858    --
859    --   Work quietly, only output warnings and errors.
860
861    S_Chop_Ref    : aliased constant S := "/REFERENCE "                     &
862                                             "-r";
863    --        /NOREFERENCE (D)
864    --        /REFERENCE
865    --
866    --   Generate "Source_Reference" pragmas. Use this qualifier if the output
867    --   files are regarded as temporary and development is to be done in terms
868    --   of the original unchopped file. The /REFERENCE qualifier causes
869    --   "Source_Reference" pragmas to be inserted into each of the generated
870    --   files to refers back to the original file name and line number.  The
871    --   result is that all error messages refer back to the original unchopped
872    --   file.
873    --
874    --   In addition, the debugging information placed into the object file
875    --   (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
876    --   also refers back to this original file so that tools like profilers
877    --   and debuggers will give information in terms of the original unchopped
878    --   file.
879
880    S_Chop_Verb   : aliased constant S := "/VERBOSE "                       &
881                                             "-v";
882    --        /NOVERBOSE (D)
883    --        /VERBOSE
884    --
885    --   The version number and copyright notice are output, as well as exact
886    --   copies of the gnat1 commands spawned to obtain the chop control
887    --   information.
888
889    Chop_Switches : aliased constant Switches :=
890      (S_Chop_Comp   'Access,
891       S_Chop_File   'Access,
892       S_Chop_Help   'Access,
893       S_Chop_Over   'Access,
894       S_Chop_Pres   'Access,
895       S_Chop_Quiet  'Access,
896       S_Chop_Ref    'Access,
897       S_Chop_Verb   'Access);
898
899    -----------------------------
900    -- Switches for GNAT CLEAN --
901    -----------------------------
902
903    S_Clean_Compil  : aliased constant S := "/COMPILER_FILES_ONLY "         &
904                                              "-c";
905    --        /NOCOMPILER_FILES_ONLY (D)
906    --        /COMPILER_FILES_ONLY
907    --
908    --   Only attempt to delete the files produced by the compiler, not those
909    --   produced by the binder or the linker. The files that are not to be
910    --   deleted are library files, interface copy files, binder generated files
911    --   and executable files.
912
913    S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY "           &
914                                             "!-I-";
915    --        /CURRENT_DIRECTORY (D)
916    --
917    --   Look for ALI or object files in the directory where GNAT CLEAN was
918    --   invoked.
919    --
920    --        /NOCURRENT_DIRECTORY
921    --
922    --   Do not look for ALI or object files in the directory where GNAT CLEAN
923    --   was invoked.
924
925    S_Clean_Delete  : aliased constant S := "/DELETE "                      &
926                                             "!-n";
927    --        /DELETE (D)
928    --
929    --   Delete the files that are not read-only.
930    --
931    --        /NODELETE
932    --
933    --   Informative-only mode. Do not delete any files. Output the list of the
934    --   files that would have been deleted if this switch was not specified.
935
936    S_Clean_Dirobj  : aliased constant S := "/DIRECTORY_OBJECTS=@"          &
937                                             "-D@";
938    --        /DIRECTORY_OBJECTS=<file>
939    --
940    --   Find the object files and .ALI files in <file>.
941    --   This qualifier is not compatible with /PROJECT_FILE.
942
943    S_Clean_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'    &
944                                             "-X" & '"';
945    --        /EXTERNAL_REFERENCE="name=val"
946    --
947    --   Specifies an external reference to the project manager. Useful only if
948    --   /PROJECT_FILE is used.
949    --
950    --   Example:
951    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
952
953    S_Clean_Full    : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
954                                             "-F";
955    --        /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
956    --        /FULL_PATH_IN_BRIEF_MESSAGES
957    --
958    --   When using project files, if some errors or warnings are detected
959    --   during parsing and verbose mode is not in effect (no use of qualifier
960    --   /VERBOSE), then error lines start with the full path name of the
961    --   project file, rather than its simple file name.
962
963    S_Clean_Help    : aliased constant S := "/HELP "                        &
964                                             "-h";
965    --        /NOHELP (D)
966    --        /HELP
967    --
968    --   Output a message explaining the usage of gnatclean.
969
970    S_Clean_Index   : aliased constant S := "/SOURCE_INDEX=#"               &
971                                              "-i#";
972    --        /SOURCE_INDEX=nnn
973    --
974    --   Specifies the index of the units in the source file
975    --   By default, source files are mono-unit and there is no index
976
977    S_Clean_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="       &
978                                             "DEFAULT "                     &
979                                                "-vP0 "                     &
980                                             "MEDIUM "                      &
981                                                "-vP1 "                     &
982                                             "HIGH "                        &
983                                                "-vP2";
984    --        /MESSAGES_PROJECT_FILE[=messages-option]
985    --
986    --   Specifies the "verbosity" of the parsing of project files.
987    --   messages-option may be one of the following:
988    --
989    --      DEFAULT (D) No messages are output if there is no error or warning.
990    --
991    --      MEDIUM      A small number of messages are output.
992    --
993    --      HIGH        A great number of messages are output, most of them not
994    --                  being useful for the user.
995
996    S_Clean_Object  : aliased constant S := "/OBJECT_SEARCH=*"              &
997                                             "-aO*";
998    --        /OBJECT_SEARCH=(directory,...)
999    --
1000    --   When searching for library and object files, look in the specified
1001    --   directories. The order in which library files are searched is the same
1002    --   as for MAKE.
1003
1004    S_Clean_Project : aliased constant S := "/PROJECT_FILE=<"               &
1005                                             "-P>";
1006    --        /PROJECT_FILE=filename
1007    --
1008    --   Specifies the main project file to be used. The project files rooted
1009    --   at the main project file will be parsed before the invocation of the
1010    --   compiler. The source and object directories to be searched will be
1011    --   communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1012    --   and ADA_PRJ_OBJECTS_FILE.
1013
1014    S_Clean_Quiet   : aliased constant S := "/QUIET "                       &
1015                                             "-q";
1016    --        /NOQUIET (D)
1017    --        /QUIET
1018    --
1019    --   Quiet output. If there are no error, do not ouuput anything, except in
1020    --   verbose mode (qualifier /VERBOSE) or in informative-only mode
1021    --  (qualifier /NODELETE).
1022
1023    S_Clean_Recurs  : aliased constant S := "/RECURSIVE "                   &
1024                                             "-r";
1025    --        /NORECURSIVE (D)
1026    --        /RECURSIVE
1027    --
1028    --   When a project file is specified (using switch -P), clean all imported
1029    --   and extended project files, recursively. If this qualifier is not
1030    --   specified, only the files related to the main project file are to be
1031    --   deleted. This qualifier has no effect if no project file is specified.
1032
1033    S_Clean_Search  : aliased constant S := "/SEARCH=*"                     &
1034                                             "-I*";
1035    --        /SEARCH=(directory,...)
1036    --
1037    --   Equivalent to /OBJECT_SEARCH=(directory,...).
1038
1039    S_Clean_Verbose : aliased constant S := "/VERBOSE "                     &
1040                                             "-v";
1041    --        /NOVERBOSE (D)
1042    --        /VERBOSE
1043    --
1044    --   Verbose mode.
1045
1046    Clean_Switches : aliased constant Switches :=
1047      (S_Clean_Compil 'Access,
1048       S_Clean_Current'Access,
1049       S_Clean_Delete 'Access,
1050       S_Clean_Dirobj 'Access,
1051       S_Clean_Ext    'Access,
1052       S_Clean_Full   'Access,
1053       S_Clean_Help   'Access,
1054       S_Clean_Index  'Access,
1055       S_Clean_Mess   'Access,
1056       S_Clean_Object 'Access,
1057       S_Clean_Project'Access,
1058       S_Clean_Quiet  'Access,
1059       S_Clean_Recurs 'Access,
1060       S_Clean_Search 'Access,
1061       S_Clean_Verbose'Access);
1062
1063    -------------------------------
1064    -- Switches for GNAT COMPILE --
1065    -------------------------------
1066
1067    S_GCC_Ada_83  : aliased constant S := "/83 "                            &
1068                                              "-gnat83";
1069    --        /NO83 (D)
1070    --        /83
1071    --
1072    --   Although GNAT is primarily an Ada 95 compiler, it accepts this
1073    --   qualifier to specify that an Ada 83 mode program is being compiled. If
1074    --   you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1075    --   Ada 83 semantics. It is not possible to guarantee this qualifier does
1076    --   a perfect job; for example, some subtle tests of pathological cases,
1077    --   such as are found in ACVC tests that have been removed from the ACVC
1078    --   suite for Ada 95, may not compile correctly. However for practical
1079    --   purposes, using this qualifier should ensure that programs that
1080    --   compile correctly under the /83 qualifier can be ported reasonably
1081    --   easily to an Ada 83 compiler. This is the main use of this qualifier.
1082    --
1083    --   With few exceptions (most notably the need to use "<>" on
1084    --   unconstrained generic formal parameters), it is not necessary to use
1085    --   this qualifier switch when compiling Ada 83 programs, because, with
1086    --   rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1087    --   83. This means that a correct Ada 83 program is usually also a correct
1088    --   Ada 95 program.
1089
1090    S_GCC_Ada_95  : aliased constant S := "/95 "                            &
1091                                              "-gnat95";
1092    --        /95 (D)
1093    --
1094    --   Allows GNAT to recognize the full range of Ada 95 constructs.
1095    --   This is the normal default for GNAT Pro.
1096
1097    S_GCC_Ada_05 : aliased constant S := "/05 "                            &
1098                                              "-gnat05";
1099    --        /05 (D)
1100    --
1101    --   Allows GNAT to recognize all implemented proposed Ada 2005
1102    --   extensions. See features file for list of implemented features.
1103
1104    S_GCC_Asm     : aliased constant S := "/ASM "                           &
1105                                              "-S,!-c";
1106    --        /NOASM (D)
1107    --        /ASM
1108    --
1109    --   Use to cause the assembler source file to be generated, using S as the
1110    --   filetype, instead of the object file. This may be useful if you need
1111    --   to examine the generated assembly code.
1112
1113    S_GCC_Checks  : aliased constant S := "/CHECKS="                        &
1114                                              "FULL "                       &
1115                                                 "-gnato,!-gnatE,!-gnatp "  &
1116                                              "OVERFLOW "                   &
1117                                                 "-gnato "                  &
1118                                              "ELABORATION "                &
1119                                                 "-gnatE "                  &
1120                                              "ASSERTIONS "                 &
1121                                                 "-gnata "                  &
1122                                              "DEFAULT "                    &
1123                                                 "!-gnato,!-gnatp "         &
1124                                              "STACK "                      &
1125                                                 "-fstack-check "           &
1126                                              "SUPPRESS_ALL "               &
1127                                                 "-gnatp";
1128    --        /NOCHECKS
1129    --        /CHECKS[=(keyword[,...])]
1130    --
1131    --   If you compile with the default options, GNAT will insert many runtime
1132    --   checks into the compiled code, including code that performs range
1133    --   checking against constraints, but not arithmetic overflow checking for
1134    --   integer operations (including division by zero) or checks for access
1135    --   before elaboration on subprogram calls.  All other runtime checks, as
1136    --   required by the Ada 95 Reference Manual, are generated by default.
1137    --
1138    --   You may specify one or more of the following keywords to the /CHECKS
1139    --   qualifier to modify this behavior:
1140    --
1141    --     DEFAULT       The behavior described above. This is the default
1142    --                   if the /CHECKS qualifier is not present on the
1143    --                   command line. Same as /NOCHECKS.
1144    --
1145    --     OVERFLOW      Enables overflow checking for integer operations and
1146    --                   checks for access before elaboration on subprogram
1147    --                   calls. This causes GNAT to generate slower and larger
1148    --                   executable programs by adding code to check for both
1149    --                   overflow and division by zero (resulting in raising
1150    --                   "Constraint_Error" as required by Ada semantics).
1151    --                   Similarly, GNAT does not generate elaboration check
1152    --                   by default, and you must specify this keyword to
1153    --                   enable them.
1154    --
1155    --                   Note that this keyword does not affect the code
1156    --                   generated for any floating-point operations; it
1157    --                   applies only to integer operations. For floating-point,
1158    --                   GNAT has the "Machine_Overflows" attribute set to
1159    --                   "False" and the normal mode of operation is to generate
1160    --                   IEEE NaN and infinite values on overflow or invalid
1161    --                   operations (such as dividing 0.0 by 0.0).
1162    --
1163    --     ELABORATION   Enables dynamic checks for access-before-elaboration
1164    --                   on subprogram calls and generic instantiations.
1165    --
1166    --     ASSERTIONS    The pragmas "Assert" and "Debug" normally have no
1167    --                   effect and are ignored. This keyword causes "Assert"
1168    --                   and "Debug" pragmas to be activated.
1169    --
1170    --     SUPPRESS_ALL  Suppress all runtime checks as though you have "pragma
1171    --                   Suppress (all_checks)" in your source. Use this switch
1172    --                   to improve the performance of the code at the expense
1173    --                   of safety in the presence of invalid data or program
1174    --                   bugs.
1175    --
1176    --     DEFAULT       Suppress the effect of any option OVERFLOW or
1177    --                   ASSERTIONS.
1178    --
1179    --     FULL (D)      Similar to OVERFLOW, but suppress the effect of any
1180    --                   option ELABORATION or SUPPRESS_ALL.
1181    --
1182    --   These keywords only control the default setting of the checks.  You
1183    --   may modify them using either "Suppress" (to remove checks) or
1184    --   "Unsuppress" (to add back suppressed checks) pragmas in your program
1185    --   source.
1186
1187    S_GCC_ChecksX : aliased constant S := "/NOCHECKS "                      &
1188                                              "-gnatp,!-gnato,!-gnatE";
1189    --  NODOC (see /CHECKS)
1190
1191    S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES "                &
1192                                              "-gnatC";
1193    --        /NOCOMPRESS_NAMES (D)
1194    --        /COMPRESS_NAMES
1195    --
1196    --   Compress debug information and external symbol name table entries.
1197    --   In the generated debugging information, and also in the case of long
1198    --   external names, the compiler uses a compression mechanism if the name
1199    --   is very long.  This compression method uses a checksum, and avoids
1200    --   trouble on some operating systems which have difficulty with very long
1201    --   names.
1202
1203    S_GCC_Config  : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<"   &
1204                                              "-gnatec>";
1205    --        /CONFIGURATION_PRAGMAS_FILE=file
1206    --
1207    --   Specify a configuration pragmas file that need to be taken into account
1208
1209    S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY "             &
1210                                              "!-I-";
1211    --        /CURRENT_DIRECTORY (D)
1212    --        /NOCURRENT_DIRECTORY
1213    --
1214    --   Look for source files in the default directory.
1215
1216    S_GCC_Data    : aliased constant S := "/DATA_PREPROCESSING=<"  &
1217                                             "-gnatep>";
1218    --        /DATA_PREPROCESSING=file_name
1219    --
1220    --   This qualifier indicates to the compiler the file name (without
1221    --   directory information) of the preprocessor data file to use.
1222    --   The preprocessor data file should be found in the source directories.
1223    --
1224    --   A preprocessing data file is a text file with significant lines
1225    --   indicating how should be preprocessed either a specific source or all
1226    --   sources not mentioned in other lines. A significant line is a non
1227    --   empty, non comment line. Comments are similar to Ada comments.
1228    --
1229    --  Each significant line starts with either a literal string or the
1230    --  character '*'. A literal string is the file name (without directory
1231    --  information) of the source to preprocess. A character '*' indicates the
1232    --  preprocessing for all the sources that are not specified explicitly on
1233    --  other lines. It is an error to have two lines with the same file name
1234    --  or two lines starting with the character '*'.
1235    --
1236    --  After the file name or the character '*', another optional literal
1237    --  string indicating the file name of the definition file to be used for
1238    --  preprocessing. (see 15.3 Form of Definitions File. The definition files
1239    --  are found by the compiler in one of the source directories. In some
1240    --  cases, when compiling a source in a directory other than the current
1241    --  directory, if the definition file is in the current directory, it may
1242    --  be necessary to add the current directory as a source directory through
1243    --  qualifier "/SEARCH=[]", otherwise the compiler would not find the
1244    --  definition file.
1245    --
1246    --  Then, optionally, switches similar to those of gnatprep may be found.
1247    --  Those switches are:
1248    --
1249    --   -b              Causes both preprocessor lines and the lines deleted by
1250    --                   preprocessing to be replaced by blank lines, preserving
1251    --                   the line number. This switch is always implied;
1252    --                   however, if specified after `-c' it cancels the effect
1253    --                   of `-c'.
1254    --
1255    --   -c              Causes both preprocessor lines and the lines deleted by
1256    --                   preprocessing to be retained as comments marked with
1257    --                   the special string "--! ".
1258    --
1259    --   -Dsymbol=value  Define or redefine a symbol, associated with value.
1260    --                   A symbol is an Ada identifier, or an Ada reserved word,
1261    --                   with the exception of "if", "else", "elsif", "end",
1262    --                   "and", "or" and "then". value is either a literal
1263    --                   string, an Ada identifier or any Ada reserved word.
1264    --                   A symbol declared with this switch replaces a symbol
1265    --                   with the same name defined in a definition file.
1266    --
1267    --   -s              Causes a sorted list of symbol names and values to be
1268    --                   listed on the standard output file.
1269    --
1270    --   -u              Causes undefined symbols to be treated as having the
1271    --                   value FALSE in the context of a preprocessor test.
1272    --                   In the absence of this option, an undefined symbol
1273    --                   in a #if or #elsif test will be treated as an error.
1274    --
1275    --   Examples of valid lines in a preprocessor data file:
1276    --
1277    --     "toto.adb"  "prep.def" -u
1278    --     --  preprocess "toto.adb", using definition file "prep.def",
1279    --     --  undefined symbol are False.
1280    --
1281    --     * -c -DVERSION=V101
1282    --     --  preprocess all other sources without a definition file;
1283    --     --  suppressed lined are commented; symbol VERSION has the value
1284    --     --  V101.
1285    --
1286    --     "titi.adb" "prep2.def" -s
1287    --     --  preprocess "titi.adb", using definition file "prep2.def";
1288    --     --  list all symbols with their values.
1289
1290    S_GCC_Debug   : aliased constant S := "/DEBUG="                         &
1291                                             "SYMBOLS "                     &
1292                                                "-g2 "                      &
1293                                             "NOSYMBOLS "                   &
1294                                                "!-g2 "                     &
1295                                             "TRACEBACK "                   &
1296                                                "-g1 "                      &
1297                                             "ALL "                         &
1298                                                "-g3 "                      &
1299                                             "NONE "                        &
1300                                                "-g0 "                      &
1301                                             "NOTRACEBACK "                 &
1302                                                "-g0";
1303    --        /DEBUG[=debug-level]
1304    --        /NODEBUG
1305    --
1306    --   Specifies how much debugging information is to be included in
1307    --   the resulting object fie.
1308    --
1309    --   'debug-level' is one of the following:
1310    --
1311    --        SYMBOLS (D)    Include both debugger symbol records and traceback
1312    --                       in the object file.
1313    --
1314    --        ALL            Include debugger symbol records, traceback plus
1315    --                       extra debug information in the object file.
1316    --
1317    --        NONE           Excludes both debugger symbol records and traceback
1318    --                       from the object file.  Same as /NODEBUG.
1319    --
1320    --        TRACEBACK      Includes only traceback records in the object
1321    --                       file. This is the default when /DEBUG is not used.
1322
1323    S_GCC_DebugX  : aliased constant S := "/NODEBUG "                       &
1324                                              "!-g";
1325    --  NODOC (see /Debug)
1326
1327    S_GCC_Dist    : aliased constant S := "/DISTRIBUTION_STUBS="            &
1328                                             "RECEIVER "                    &
1329                                                "-gnatzr "                  &
1330                                             "CALLER "                      &
1331                                               "-gnatzc";
1332    --        /NODISTRIBUTION_STUBS (D)
1333    --        /DISTRIBUTION_STUBS[=dist-opt]
1334    --
1335    --   'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1336    --   that stubs for use in distributed programs (see the Distributed
1337    --   Systems Annex of the Ada RM) should be generated.
1338
1339    S_GCC_DistX   : aliased constant S := "/NODISTRIBUTION_STUBS "          &
1340                                             "!-gnatzr,!-gnatzc";
1341    --  NODOC (see /DISTRIBUTION_STUBS)
1342
1343    S_GCC_Error   : aliased constant S := "/ERROR_LIMIT=#"                  &
1344                                             "-gnatm#";
1345    --        /NOERROR_LIMIT (D)
1346    --        /ERROR_LIMIT=nnn
1347    --
1348    --   NNN is a decimal integer in the range of 1 to 999999 and limits the
1349    --   number of error messages to be generated to that number.  Once that
1350    --   number has been reached, the compilation is abandoned.
1351    --   Specifying 999999 is equivalent to /NOERROR_LIMIT.
1352
1353    S_GCC_ErrorX  : aliased constant S := "/NOERROR_LIMIT "                 &
1354                                             "-gnatm999999";
1355    --  NODOC (see /ERROR_LIMIT)
1356
1357    S_GCC_Expand  : aliased constant S := "/EXPAND_SOURCE "                 &
1358                                             "-gnatG";
1359    --        /NOEXPAND_SOURCE (D)
1360    --        /EXPAND_SOURCE
1361    --
1362    --   Produces a listing of the expanded code in Ada source form. For
1363    --   example, all tasking constructs are reduced to appropriate run-time
1364    --   library calls.
1365
1366    S_GCC_Extend  : aliased constant S := "/EXTENSIONS_ALLOWED "            &
1367                                             "-gnatX";
1368    --        /NOEXTENSIONS_ALLOWED (D)
1369    --        /EXTENSIONS_ALLOWED
1370    --
1371    --   GNAT specific language extensions allowed.
1372
1373    S_GCC_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'      &
1374                                             "-X" & '"';
1375    --        /EXTERNAL_REFERENCE="name=val"
1376    --
1377    --   Specifies an external reference to the project manager. Useful only if
1378    --   /PROJECT_FILE is used.
1379    --
1380    --   Example:
1381    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
1382
1383    S_GCC_File    : aliased constant S := "/FILE_NAME_MAX_LENGTH=#"         &
1384                                             "-gnatk#";
1385    --        /FILE_NAME_MAX_LENGTH=nnn
1386    --
1387    --   Activates file name "krunching". NNN, a decimal integer in the range
1388    --   1-999, indicates the maximum allowable length of a file name (not
1389    --   including the ADS or ADB filetype. The default is not to enable file
1390    --   name krunching.
1391
1392    S_GCC_Force   : aliased constant S := "/FORCE_ALI "                     &
1393                                             "-gnatQ";
1394    --        /NOFORCE_ALI (D)
1395    --        /FORCE_ALI
1396    --
1397    --   In normal operation mode, the .ALI file is not generated if any
1398    --   illegalities are detected in the program. The use of this qualifier
1399    --   forces generation of the .ALI file. This file is marked as being
1400    --   in error, so it cannot be used for binding purposes, but it does
1401    --   contain reasonably complete cross-reference information, and thus may
1402    --   be useful for use by tools (e.g. semantic browing tools or integrated
1403    --   development environments) that are driven from the .ALI file.
1404
1405    S_GCC_Full    : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES "   &
1406                                             "-gnatef";
1407    --        /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1408    --        /FULL_PATH_IN_BRIEF_MESSAGES
1409    --
1410    --   When using project files, if some errors or warnings are detected
1411    --   during parsing and verbose mode is not in effect (no use of qualifier
1412    --   /VERBOSE), then error lines start with the full path name of the
1413    --   project file, rather than its simple file name.
1414
1415    S_GCC_GNAT    : aliased constant S := "/GNAT_INTERNAL "                 &
1416                                             "-gnatg";
1417    --        /NOGNAT_INTERNAL (D)
1418    --        /GNAT_INTERNAL
1419    --
1420    --        Internal GNAT implementation mode. This should not be used for
1421    --        applications programs, it is intended only for use by the compiler
1422    --        and its run-time library. For documentation, see the GNAT sources.
1423    --        Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1424    --        so that all standard warnings and all standard style options are
1425    --        turned on. All warnings and style error messages are treated as
1426    --        errors.
1427
1428    S_GCC_Help    : aliased constant S := "/HELP "                          &
1429                                             "-gnath";
1430    --        /NOHELP (D)
1431    --        /HELP
1432    --
1433    --   Output usage information.
1434
1435    S_GCC_Ident   : aliased constant S := "/IDENTIFIER_CHARACTER_SET="      &
1436                                              "DEFAULT "                    &
1437                                                 "-gnati1 "                 &
1438                                              "1 "                          &
1439                                                 "-gnati1 "                 &
1440                                              "2 "                          &
1441                                                 "-gnati2 "                 &
1442                                              "3 "                          &
1443                                                 "-gnati3 "                 &
1444                                              "4 "                          &
1445                                                 "-gnati4 "                 &
1446                                              "5 "                          &
1447                                                 "-gnati5 "                 &
1448                                              "PC "                         &
1449                                                 "-gnatip "                 &
1450                                              "PC850 "                      &
1451                                                 "-gnati8 "                 &
1452                                              "FULL_UPPER "                 &
1453                                                 "-gnatif "                 &
1454                                              "NO_UPPER "                   &
1455                                                 "-gnatin "                 &
1456                                              "WIDE "                       &
1457                                                 "-gnatiw";
1458    --        /NOIDENTIFIER_CHARACTER_SET (D)
1459    --        /IDENTIFIER_CHARACTER_SET=char-set
1460    --
1461    --   Normally GNAT recognizes the Latin-1 character set in source program
1462    --   identifiers, as described in the reference manual. This qualifier
1463    --   causes GNAT to recognize alternate character sets in identifiers.
1464    --   'char-set' is one of the following strings indicating the character
1465    --   set:
1466    --
1467    --        DEFAULT (D) Equivalent to 1, below. Also equivalent to
1468    --                    /NOIDENTIFIER_CHARACTER_SET.
1469    --
1470    --        1           The basic character set is Latin-1. This character
1471    --                    set is defined by ISO standard 8859, part 1. The lower
1472    --                    half (character codes 16#00# ... 16#7F#) is identical
1473    --                    to standard ASCII coding, but the upper half is used
1474    --                    to represent additional characters. This includes
1475    --                    extended letters used by European languages, such as
1476    --                    the umlaut used in German.
1477    --
1478    --                    You may use any of these extended characters freely
1479    --                    in character or string literals. In addition, the
1480    --                    extended characters that represent letters can be
1481    --                    used in identifiers.
1482    --
1483    --        2           Latin-2 letters allowed in identifiers, with uppercase
1484    --                    and lowercase equivalence.
1485    --
1486    --        3           Latin-3 letters allowed in identifiers, with uppercase
1487    --                    and lower case equivalence.
1488    --
1489    --        4           Latin-4 letters allowed in identifiers, with uppercase
1490    --                    and lower case equivalence.
1491    --
1492    --        PC          IBM PC code page 437.  This code page is the normal
1493    --                    default for PCs in the U.S. It corresponds to the
1494    --                    original IBM PC character set. This set has some, but
1495    --                    not all, of the extended Latin-1 letters, but these
1496    --                    letters do not have the same encoding as Latin-1. In
1497    --                    this mode, these letters are allowed in identifiers
1498    --                    with uppercase and lowercase equivalence.
1499    --
1500    --        PC850       This code page (850) is a modification of 437 extended
1501    --                    to include all the Latin-1 letters, but still not with
1502    --                    the usual Latin-1 encoding. In this mode, all these
1503    --                    letters are allowed in identifiers with uppercase and
1504    --                    lower case equivalence.
1505    --
1506    --        FULL_UPPER  Any character in the range 80-FF allowed in
1507    --                    identifiers, and all are considered distinct.  In
1508    --                    other words, there are no uppercase and lower case
1509    --                    equivalences in this range.
1510    --
1511    --        NO_UPPER    No upper-half characters in the range 80-FF are
1512    --                    allowed in identifiers.  This gives Ada 95
1513    --                    compatibility for identifier names.
1514    --
1515    --        WIDE        GNAT allows wide character codes to appear in
1516    --                    character and string literals, and also optionally
1517    --                    in identifiers.  See the /WIDE_CHARACTER_ENCODING
1518    --                    qualifier for information on encoding formats.
1519
1520    S_GCC_IdentX  : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET "    &
1521                                              "-gnati1";
1522    --  NODOC (see /IDENTIFIER_CHARACTER_SET)
1523
1524    S_GCC_Immed   : aliased constant S := "/IMMEDIATE_ERRORS "    &
1525                                              "-gnatdO";
1526    --        /NOIMMEDIATE_ERRORS (D)
1527    --        /IMMEDIATE_ERRORS
1528    --
1529    --   Causes errors to be displayed as soon as they are encountered, rather
1530    --   than after compilation is terminated. If GNAT terminates prematurely
1531    --   or goes into an infinite loop, the last error message displayed may
1532    --   help to pinpoint the culprit.
1533
1534    S_GCC_Inline  : aliased constant S := "/INLINE="                        &
1535                                             "PRAGMA "                      &
1536                                               "-gnatn "                    &
1537                                             "FULL "                        &
1538                                               "-gnatN "                    &
1539                                             "SUPPRESS "                    &
1540                                               "-fno-inline";
1541    --        /NOINLINE (D)
1542    --        /INLINE[=keyword]
1543    --
1544    --   Selects the level of inlining for your program.  In the absence of this
1545    --   qualifier, GNAT does not attempt inlining across units and does not
1546    --   need to access the bodies of subprograms for which "pragma Inline" is
1547    --   specified if they are not in the current unit.
1548    --
1549    --   The supported keywords are as follows:
1550    --
1551    --        PRAGMA (D)  Recognize and process "Inline" pragmas.  However,
1552    --                    for the inlining to actually occur, optimization
1553    --                    must be enabled.  This enables inlining across unit
1554    --                    boundaries, that is, inlining a call in one unit of
1555    --                    a subprogram declared in a with'ed unit. The compiler
1556    --                    will access these bodies, creating an extra source
1557    --                    dependency for the resulting object file, and where
1558    --                    possible, the call will be inlined.
1559    --
1560    --                    This qualifier also turns on full optimization and
1561    --                    requests GNAT to try to attempt automatic inlining
1562    --                    of small subprograms within a unit.
1563    --
1564    --                    Specifying /OPTIMIZE=NONE will disable the main effect
1565    --                    of this qualifier, but you may specify other
1566    --                    optimization options, to get either lower
1567    --                    (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1568    --                    levels of optimization.
1569    --
1570    --        FULL        Front end inlining. The front end inlining activated
1571    --                    by this switch is generally more extensive, and quite
1572    --                    often more effective than the standard PRAGMA inlining
1573    --                    mode. It will also generate additional dependencies.
1574    --
1575    --        SUPPRESS    Suppresses all inlining, even if other optimization
1576    --                        or inlining switches are set.
1577
1578    S_GCC_InlineX : aliased constant S := "/NOINLINE "                      &
1579                                              "!-gnatn,!-gnatN";
1580    --  NODOC (see /INLINE)
1581
1582    S_GCC_Intsrc  : aliased constant S := "/INTERSPERSE_SOURCE "            &
1583                                              "-gnatL";
1584
1585    --        /NO_INTERSPERSE_SOURCE (D)
1586    --        /INTERSPERSE_SOURCE
1587    --
1588    --   Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1589    --   lines from the original source file, output as comment lines with the
1590    --   associated line number.
1591
1592    S_GCC_Just   : aliased constant S := "/JUSTIFY_MESSAGES=#"             &
1593                                              "-gnatj#";
1594
1595    --        /NO_JUSTIFY_MESSAGES (D)
1596    --        /JUSTIFY_MESSAGES=nnn
1597    --
1598    --   Causes error messages to be reformatted so that a message and all its
1599    --   continuation lines count as one warning or error in the statistics on
1600    --   total errors, and the message is broken down into lines (justified) so
1601    --   that no line is longer than nnn characters. The default message
1602    --   behavior (each message counted separately and not reformatted to fit
1603    --   a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1604
1605    S_GCC_JustX  : aliased constant S := "/NO_JUSTIFY_MESSAGES "           &
1606                                              "-gnatj0";
1607
1608    --  NODOC (see /JUSTIFY_MESSAGES)
1609
1610    S_GCC_Length  : aliased constant S := "/MAX_LINE_LENGTH=#"              &
1611                                              "-gnatyM#";
1612    --        /MAX_LINE_LENGTH=nnn
1613    --
1614    --   Set maximum line length.
1615    --   The length of lines must not exceed the given value nnn.
1616
1617    S_GCC_List    : aliased constant S := "/LIST "                          &
1618                                              "-gnatl";
1619    --        /NOLIST (D)
1620    --        /LIST
1621    --
1622    --   Cause a full listing of the file to be generated. In the case where
1623    --   a body is compiled, the corresponding spec is also listed, along
1624    --   with any subunits.
1625
1626    S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<"  &
1627                                             "-gnatem>";
1628    --        /MAPPING_FILE=file_name
1629    --
1630    --   Use mapping file file_name
1631    --
1632    --   A mapping file is a way to communicate to the compiler two mappings:
1633    --   from unit names to file names (without any directory information) and
1634    --   from file names to path names (with full directory information).
1635    --   These mappings are used by the compiler to short-circuit the path
1636    --   search.
1637    --
1638    --   The use of mapping files is not required for correct operation of the
1639    --   compiler, but mapping files can improve efficiency, particularly when
1640    --   sources are read over a slow network connection. In normal operation,
1641    --   you need not be concerned with the format or use of mapping files,
1642    --   and /MAPPING_FILE is not a qualifier that you would use explicitly.
1643    --   It is intended only for use by automatic tools such as GNAT MAKE
1644    --   running under the project file facility. The description here of the
1645    --   format of mapping files is provided for completeness and for possible
1646    --   use by other tools.
1647    --
1648    --   A mapping file is a sequence of sets of three lines. In each set, the
1649    --   first line is the unit name, in lower case, with "%s" appended for
1650    --   specifications and "%b" appended for bodies; the second line is the
1651    --   file name; and the third line is the path name.
1652    --
1653    --   Example:
1654    --
1655    --      main%b
1656    --      main.2_ada
1657    --      /gnat/project1/sources/main.2_ada
1658    --
1659    --   When qualifier ?MAPPING_FILE is specified, the compiler will create in
1660    --   memory the two mappings from the specified file. If there is any
1661    --   problem (non existent file, truncated file or duplicate entries),
1662    --   no mapping will be created.
1663    --
1664    --   Several /MAPPING_FILE qualifiers may be specified; however, only the
1665    --   last one on the command line will be taken into account.
1666    --
1667    --   When using a project file, GNAT MAKE creates a temporary mapping file
1668    --   and communicates it to the compiler using this switch.
1669
1670    S_GCC_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="         &
1671                                             "DEFAULT "                     &
1672                                                "-vP0 "                     &
1673                                             "MEDIUM "                      &
1674                                                "-vP1 "                     &
1675                                             "HIGH "                        &
1676                                                "-vP2";
1677    --        /MESSAGES_PROJECT_FILE[=messages-option]
1678    --
1679    --   Specifies the "verbosity" of the parsing of project files.
1680    --   messages-option may be one of the following:
1681    --
1682    --      DEFAULT (D) No messages are output if there is no error or warning.
1683    --
1684    --      MEDIUM      A small number of messages are output.
1685    --
1686    --      HIGH        A great number of messages are output, most of them not
1687    --                  being useful for the user.
1688
1689    S_GCC_Nesting  : aliased constant S := "/MAX_NESTING=#"                &
1690                                              "-gnatyL#";
1691    --        /MAX_NESTING=nnn
1692    --
1693    --   Set maximum level of nesting of constructs (including subprograms,
1694    --   loops, blocks, packages, and conditionals).
1695    --   The level of nesting must not exceed the given value nnn.
1696    --   A value of zero disable this style check (not enabled by default).
1697
1698    S_GCC_Noadc   : aliased constant S := "/NO_GNAT_ADC "                   &
1699                                              "-gnatA";
1700    --        /NO_GNAT_ADC
1701    --
1702    --   Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1703    --   in the default directory. Implied by qualifier /PROJECT_FILE.
1704    --   Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1705
1706    S_GCC_Noload  : aliased constant S := "/NOLOAD "                        &
1707                                              "-gnatc";
1708    --        /NOLOAD
1709    --
1710    --   Cause the compiler to operate in semantic check mode with full
1711    --   checking for all illegalities specified in the reference manual, but
1712    --   without generation of any source code (no object or ALI file
1713    --   generated).
1714    --
1715    --   Since dependent files must be accessed, you must follow the GNAT
1716    --   semantic restrictions on file structuring to operate in this mode:
1717    --
1718    --   o The needed source files must be accessible.
1719    --   o Each file must contain only one compilation unit.
1720    --   o The file name and unit name must match.
1721    --
1722    --   The output consists of error messages as appropriate. No object file
1723    --   or ALI file is generated. The checking corresponds exactly to the
1724    --   notion of legality in the Ada reference manual.
1725    --
1726    --   Any unit can be compiled in semantics-checking-only mode, including
1727    --   units that would not normally be compiled (generic library units,
1728    --   subunits, and specifications where a separate body is present).
1729
1730    S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES "                &
1731                                              "-nostdinc";
1732    --        /NOSTD_INCLUDES
1733    --
1734    --   Do not look in the default directory for source files of the runtime.
1735
1736    S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
1737                                             "-nostdlib";
1738    --        /NOSTD_LIBRARIES
1739    --
1740    --    Do not look for library files in the system default directory.
1741
1742    S_GCC_Opt     : aliased constant S := "/OPTIMIZE="                      &
1743                                             "ALL "                         &
1744                                                "-O2,!-O0,!-O1,!-O3 "       &
1745                                             "NONE "                        &
1746                                                "-O0,!-O1,!-O2,!-O3 "       &
1747                                             "SOME "                        &
1748                                                "-O1,!-O0,!-O2,!-O3 "       &
1749                                             "SPACE "                       &
1750                                                "-Os,!-O0,!-O1,!-O2,!-O3 "  &
1751                                             "DEVELOPMENT "                 &
1752                                                "-O1,!-O0,!-O2,!-O3 "       &
1753                                             "UNROLL_LOOPS "                &
1754                                                "-funroll-loops "           &
1755                                             "NO_STRICT_ALIASING "          &
1756                                                "-fno-strict-aliasing "     &
1757                                             "INLINING "                    &
1758                                                "-O3,!-O0,!-O1,!-O2";
1759    --        /NOOPTIMIZE (D)
1760    --        /OPTIMIZE[=(keyword[,...])]
1761    --
1762    --   Selects the level of optimization for your program.  The supported
1763    --   keywords are as follows:
1764    --
1765    --      ALL (D)       Perform most optimizations, including those that
1766    --                    may be expensive.
1767    --
1768    --      NONE          Do not do any optimizations. Same as /NOOPTIMIZE.
1769    --
1770    --      SOME          Perform some optimizations, but omit ones that
1771    --                    are costly in compilation time.
1772    --
1773    --      SPACE         Optimize space usage
1774    --
1775    --      DEVELOPMENT   Same as SOME.
1776    --
1777    --      INLINING      Full optimization, and also attempt automatic inlining
1778    --                    of small subprograms within a unit
1779    --
1780    --      UNROLL_LOOPS  Try to unroll loops. This keyword may be specified
1781    --                    with any keyword above other than NONE. Loop
1782    --                    unrolling usually, but not always, improves the
1783    --                    performance of programs.
1784    --
1785    --      NO_STRICT_ALIASING
1786    --                    Suppress aliasing analysis. When optimization is
1787    --                    enabled (ALL or SOME above), the compiler assumes
1788    --                    that pointers do in fact point to legitimate values
1789    --                    of the pointer type (allocated from the proper pool).
1790    --                    If this assumption is violated, e.g. by the use of
1791    --                    unchecked conversion, then it may be necessary to
1792    --                    suppress this assumption using this keyword (which
1793    --                    may be specified only in conjunction with any
1794    --                    keyword above, other than NONE).
1795
1796    S_GCC_OptX    : aliased constant S := "/NOOPTIMIZE "                    &
1797                                             "-O0,!-O1,!-O2,!-O3";
1798    --  NODOC (see /OPTIMIZE)
1799
1800    S_GCC_Output  : aliased constant S := "/OUTPUT_FILE=<"                  &
1801                                             "-gnatl=>";
1802    --        /OUTPUT_FILE=fname
1803    --
1804    --   This has the same effect as /LIST except that the output is written
1805    --   to a file instead of to standard output. If the given fname
1806    --   does not start with a period, then it is the full name of the file
1807    --   to be written. If fname starts with a period, the name of the file
1808    --   is the concatenation of to the name of the file being compiled with
1809    --   fname where the period is replace by an underline. For example, if
1810    --   file xyz.adb is compiled with -gnatl=.lst, then the output is written
1811    --   to file xyz.adb_lst.
1812
1813    S_GCC_Polling : aliased constant S := "/POLLING "                       &
1814                                             "-gnatP";
1815    --        /NOPOLLING (D)
1816    --        /POLLING
1817    --
1818    --   Enable polling. See the description of pragma Polling in the GNAT
1819    --   Reference Manual for full details.
1820
1821    S_GCC_Project : aliased constant S := "/PROJECT_FILE=<"                 &
1822                                             "-P>";
1823    --        /PROJECT_FILE=filename
1824    --
1825    --   Specifies the main project file to be used. The project files rooted
1826    --   at the main project file will be parsed before the invocation of the
1827    --   compiler. The source and object directories to be searched will be
1828    --   communicated to the compiler through logical names
1829    --   ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
1830
1831    S_GCC_Psta    : aliased constant S := "/PRINT_STANDARD "                &
1832                                             "-gnatS";
1833    --        /PRINT_STANDARD
1834    --
1835    --   cause the compiler to output a representation of package Standard
1836    --   in a form very close to standard Ada. It is not quite possible to
1837    --   do this and remain entirely Standard (since new numeric base types
1838    --   cannot be created in standard Ada), but the output is easily
1839    --   readable to any Ada programmer, and is useful to determine the
1840    --   characteristics of target dependent types in package Standard.
1841
1842    S_GCC_Report  : aliased constant S := "/REPORT_ERRORS="                 &
1843                                             "VERBOSE "                     &
1844                                                "-gnatv "                   &
1845                                             "BRIEF "                       &
1846                                                "-gnatb "                   &
1847                                             "FULL "                        &
1848                                                "-gnatf "                   &
1849                                             "IMMEDIATE "                   &
1850                                                "-gnatdO "                  &
1851                                             "DEFAULT "                     &
1852                                                "!-gnatb,!-gnatv";
1853    --        /NOREPORT_ERRORS (D)
1854    --        /REPORT_ERRORS[=(keyword[,...])]
1855    --
1856    --   Change the way errors are reported.  The following keywords are
1857    --   supported:
1858    --
1859    --        VERBOSE (D)  Verbose mode. Full error output with source lines
1860    --                     to SYS$OUTPUT.
1861    --
1862    --        BRIEF        Generate the brief format error messages to
1863    --                     SYS$OUTPUT as well as the verbose format message or
1864    --                     full listing.
1865    --
1866    --        FULL         Normally, the compiler suppresses error messages that
1867    --                     are likely to be redundant. This keyword causes all
1868    --                     error messages to be generated. One particular effect
1869    --                     is for the case of references to undefined variables.
1870    --                     If a given variable is referenced several times, the
1871    --                     normal format of messages produces one error.  With
1872    --                     FULL, each undefined reference produces a separate
1873    --                     error message.
1874    --
1875    --        IMMEDIATE    Normally, the compiler saves up error messages and
1876    --                     generates them at the end of compilation in proper
1877    --                     sequence.  This keyword causes error messages to be
1878    --                     generated as soon as they are detected. The use of
1879    --                     IMMEDIATE usually causes error messages to be
1880    --                     generated out of sequence. Use it when the compiler
1881    --                     blows up due to an internal error.  In this case, the
1882    --                     error messages may be lost. Sometimes blowups are
1883    --                     the result of mishandled error messages, so you may
1884    --                     want to run with this keyword to determine whether
1885    --                     any error messages were generated.
1886    --
1887    --      DEFAULT        Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
1888
1889    S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS "               &
1890                                             "!-gnatb,!-gnatv";
1891    --  NODOC (see /REPORT_ERRORS)
1892
1893    S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO="           &
1894                                             "DEFAULT "                     &
1895                                                "-gnatR "                   &
1896                                             "NONE "                        &
1897                                                "-gnatR0 "                  &
1898                                             "ARRAYS "                      &
1899                                                "-gnatR1 "                  &
1900                                             "ARRAYS_FILE "                 &
1901                                                "-gnatR1s "                 &
1902                                             "OBJECTS "                     &
1903                                                "-gnatR2 "                  &
1904                                             "OBJECTS_FILE "                &
1905                                                "-gnatR2s "                 &
1906                                             "SYMBOLIC "                    &
1907                                                "-gnatR3 "                  &
1908                                             "SYMBOLIC_FILE "               &
1909                                                "-gnatR3s";
1910    --        /NOREPRESENTATION_INFO (D)
1911    --        /REPRESENTATION_INFO[=(keyword[,...])]
1912    --
1913    --   This qualifier controls output from the compiler of a listing showing
1914    --   representation information for declared types and objects.
1915    --
1916    --        ARRAYS (D)      Size and alignment information is listed for
1917    --                        declared array and record types.
1918    --
1919    --        ARRAYS_FILE     Similar to ARRAYS, but the output is to a file
1920    --                        with the name 'file_rep' where 'file' is the name
1921    --                        of the corresponding source file.
1922    --
1923    --        NONE            no information is output (equivalent to omitting
1924    --                        the /REPRESENTATION_INFO qualifiers).
1925    --
1926    --        OBJECTS         Size and alignment information is listed for all
1927    --                        declared types and objects.
1928    --
1929    --        OBJECTS_FILE    Similar to OBJECTS, but the output is to a file
1930    --                        with the name 'file_rep' where 'file' is the name
1931    --                        of the corresponding source file.
1932    --
1933    --        SYMBOLIC        Symbolic expression information for values that
1934    --                        are computed at run time for variant records.
1935    --
1936    --        SYMBOLIC_FILE   Similar to SYMBOLIC, but the output is to a file
1937    --                        with the name 'file_rep' where 'file' is the name
1938    --                        of the corresponding source file.
1939    --
1940    --        DEFAULT         Equivalent to ARRAYS.
1941
1942    S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO "         &
1943                                             "!-gnatR";
1944    --  NODOC (see /REPRESENTATION_INFO)
1945
1946    S_GCC_RTS     : aliased constant S := "/RUNTIME_SYSTEM=|"               &
1947                                             "--RTS=|";
1948    --        /RUNTIME_SYSTEM=xxx
1949    --
1950    --    Build against an alternate runtime system named xxx or RTS-xxx.
1951
1952    S_GCC_Search  : aliased constant S := "/SEARCH=*"                       &
1953                                             "-I*";
1954    --        /SEARCH=(directory[,...])
1955    --
1956    --    When looking for source files also look in directories specified.
1957
1958    S_GCC_Style   : aliased constant S := "/STYLE_CHECKS="                  &
1959                                             "ALL_BUILTIN "                 &
1960                                                "-gnaty "                   &
1961                                             "1 "                           &
1962                                                "-gnaty1 "                  &
1963                                             "2 "                           &
1964                                                "-gnaty2 "                  &
1965                                             "3 "                           &
1966                                                "-gnaty3 "                  &
1967                                             "4 "                           &
1968                                                "-gnaty4 "                  &
1969                                             "5 "                           &
1970                                                "-gnaty5 "                  &
1971                                             "6 "                           &
1972                                                "-gnaty6 "                  &
1973                                             "7 "                           &
1974                                                "-gnaty7 "                  &
1975                                             "8 "                           &
1976                                                "-gnaty8 "                  &
1977                                             "9 "                           &
1978                                                "-gnaty9 "                  &
1979                                             "ATTRIBUTE "                   &
1980                                                "-gnatya "                  &
1981                                             "ARRAY_INDEXES "               &
1982                                                "-gnatyA "                  &
1983                                             "BLANKS "                      &
1984                                                "-gnatyb "                  &
1985                                             "COMMENTS "                    &
1986                                                "-gnatyc "                  &
1987                                             "DOS_LINE_ENDINGS "            &
1988                                                "-gnatyd "                  &
1989                                             "END "                         &
1990                                                "-gnatye "                  &
1991                                             "VTABS "                       &
1992                                                "-gnatyf "                  &
1993                                             "GNAT "                        &
1994                                                "-gnatyg "                  &
1995                                             "HTABS "                       &
1996                                                "-gnatyh "                  &
1997                                             "IF_THEN "                     &
1998                                                "-gnatyi "                  &
1999                                             "KEYWORD "                     &
2000                                                "-gnatyk "                  &
2001                                             "LAYOUT "                      &
2002                                                "-gnatyl "                  &
2003                                             "LINE_LENGTH "                 &
2004                                                "-gnatym "                  &
2005                                             "MODE_IN "                     &
2006                                                "-gnatyI "                  &
2007                                             "NONE "                        &
2008                                                "-gnatyN "                  &
2009                                             "STANDARD_CASING "             &
2010                                                "-gnatyn "                  &
2011                                             "ORDERED_SUBPROGRAMS "         &
2012                                                "-gnatyo "                  &
2013                                             "PRAGMA "                      &
2014                                                "-gnatyp "                  &
2015                                             "REFERENCES "                  &
2016                                                "-gnatyr "                  &
2017                                             "SPECS "                       &
2018                                                "-gnatys "                  &
2019                                             "TOKEN "                       &
2020                                                "-gnatyt "                  &
2021                                             "UNNECESSARY_BLANK_LINES "     &
2022                                                "-gnatyu "                  &
2023                                             "XTRA_PARENS "                 &
2024                                                "-gnatyx ";
2025    --        /NOSTYLE_CHECKS (D)
2026    --        /STYLE_CHECKS[=(keyword,[...])]
2027    --
2028    --   Normally, GNAT permits any code layout consistent with the reference
2029    --   manual requirements.  This qualifier imposes style checking on the
2030    --   input source code.  The following keywords are supported:
2031    --
2032    --      ALL_BUILTIN (D)      Equivalent to the following list of options:
2033    --                           3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
2034    --                           HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2035    --                           PRAGMA, REFERENCES, SPECS, TOKEN.
2036    --
2037    --      1 .. 9               Specify indentation level from 1 to 9.
2038    --                           The general style of required indentation is as
2039    --                           specified by the examples in the Ada Reference
2040    --                           Manual. Full line comments must be aligned with
2041    --                           the -- starting on a column that is a multiple
2042    --                           of the alignment level.
2043    --
2044    --      ATTRIBUTE            Check attribute casing.
2045    --                           Attribute names, including the case of keywords
2046    --                           such as digits used as attributes names,
2047    --                           must be written in mixed case, that is,
2048    --                           the initial letter and any letter following an
2049    --                           underscore must be uppercase.
2050    --                           All other letters must be lowercase.
2051    --
2052    --      ARRAY_INDEXES        Check indexes of array attributes.
2053    --                           For array attributes First, Last, Range,
2054    --                           or Length, the index number must be omitted
2055    --                           for one-dimensional arrays and is required
2056    --                           for multi-dimensional arrays.
2057    --
2058    --      BLANKS               Blanks not allowed at statement end.
2059    --                           Trailing blanks are not allowed at the end of
2060    --                           statements. The purpose of this rule, together
2061    --                           with option HTABS (no horizontal tabs), is to
2062    --                           enforce a canonical format for the use of
2063    --                           blanks to separate source tokens.
2064    --
2065    --      COMMENTS             Check comments.
2066    --                           Comments must meet the following set of rules:
2067    --
2068    --                             * The "--" that starts the column must either
2069    --                               start in column one, or else at least one
2070    --                               blank must precede this sequence.
2071    --
2072    --                             * Comments that follow other tokens on a line
2073    --                               must have at least one blank following the
2074    --                               "--" at the start of the comment.
2075    --
2076    --                             * Full line comments must have two blanks
2077    --                               following the "--" that starts the comment,
2078    --                               with the following exceptions.
2079    --
2080    --                             * A line consisting only of the "--"
2081    --                               characters, possibly preceded by blanks is
2082    --                               permitted.
2083    --
2084    --                             * A comment starting with "--x" where x is
2085    --                               a special character is permitted. This
2086    --                               allows proper processing of the output
2087    --                               generated by specialized tools including
2088    --                               gnatprep (where --! is used) and the SPARK
2089    --                               annnotation language (where --# is used).
2090    --                               For the purposes of this rule, a special
2091    --                               character is defined as being in one of the
2092    --                               ASCII ranges 16#21#..16#2F# or
2093    --                               16#3A#..16#3F#.
2094    --
2095    --                             * A line consisting entirely of minus signs,
2096    --                               possibly preceded by blanks, is permitted.
2097    --                               This allows the construction of box
2098    --                               comments where lines of minus signs are
2099    --                               used to form the top and bottom of the box.
2100    --
2101    --                             * If a comment starts and ends with "--" is
2102    --                               permitted as long as at least one blank
2103    --                               follows the initial "--". Together with
2104    --                               the preceding rule, this allows the
2105    --                               construction of box comments, as shown in
2106    --                               the following example:
2107    --
2108    --                               ---------------------------
2109    --                               -- This is a box comment --
2110    --                               ---------------------------
2111    --
2112    --      DOS_LINE_ENDINGS     Check that no DOS line terminators are present
2113    --                           All lines must be terminated by a single
2114    --                           ASCII.LF character. In particular the DOS line
2115    --                           terminator sequence CR / LF is not allowed).
2116    --
2117    --      END                  Check end/exit labels.
2118    --                           Optional labels on end statements ending
2119    --                           subprograms and on exit statements exiting
2120    --                           named loops, are required to be present.
2121    --
2122    --      GNAT                 Enforces a set of style conventions that
2123    --                           match the style used in the GNAT source code.
2124    --                           This maybe useful when developing code that
2125    --                           is eventually intended to be incorporated into
2126    --                           GNAT. For further details, see GNAT sources.
2127    --
2128    --      HTABS                No horizontal tabs.
2129    --                           Horizontal tab characters are not permitted in
2130    --                           the source text. Together with the BLANKS
2131    --                           (no blanks at end of line) option, this
2132    --                           enforces a canonical form for the use of blanks
2133    --                           to separate source tokens.
2134    --
2135    --      IF_THEN              Check if-then layout.
2136    --                           The keyword then must appear either on the
2137    --                           same line as the corresponding if, or on a line
2138    --                           on its own, lined up under the if with at least
2139    --                           one non-blank line in between containing all or
2140    --                           part of the condition to be tested.
2141    --
2142    --      KEYWORD              Check keyword casing.
2143    --                           All keywords must be in lower case (with the
2144    --                           exception of keywords such as digits used as
2145    --                           attribute names to which this check does not
2146    --                           apply).
2147    --
2148    --      LAYOUT               Check layout.
2149    --                           Layout of statement and declaration constructs
2150    --                           must follow the recommendations in the Ada
2151    --                           Reference Manual, as indicated by the form of
2152    --                           the syntax rules. For example an else keyword
2153    --                           must be lined up with the corresponding if
2154    --                           keyword.
2155    --
2156    --                           There are two respects in which the style rule
2157    --                           enforced by this check option are more liberal
2158    --                           than those in the Ada Reference Manual.
2159    --                           First in the case of record declarations,
2160    --                           it is permissible to put the record keyword on
2161    --                           the same line as the type keyword, and then
2162    --                           the end in end record must line up under type.
2163    --                           For example, either of the following two
2164    --                           layouts is acceptable:
2165    --
2166    --                           type q is record
2167    --                              a : integer;
2168    --                              b : integer;
2169    --                           end record;
2170    --
2171    --                           type q is
2172    --                              record
2173    --                                 a : integer;
2174    --                                 b : integer;
2175    --                              end record;
2176    --
2177    --                           Second, in the case of a block statement,
2178    --                           a permitted alternative is to put the block
2179    --                           label on the same line as the declare or begin
2180    --                           keyword, and then line the end keyword up under
2181    --                           the block label. For example both the following
2182    --                           are permitted:
2183    --
2184    --
2185    --
2186    --                           Block : declare
2187    --                              A : Integer := 3;
2188    --                           begin
2189    --                              Proc (A, A);
2190    --                           end Block;
2191    --
2192    --                           Block :
2193    --                              declare
2194    --                                 A : Integer := 3;
2195    --                              begin
2196    --                                 Proc (A, A);
2197    --                              end Block;
2198    --
2199    --                           The same alternative format is allowed for
2200    --                           loops. For example, both of the following are
2201    --                           permitted:
2202    --
2203    --
2204    --
2205    --                           Clear : while J < 10 loop
2206    --                              A (J) := 0;
2207    --                           end loop Clear;
2208    --
2209    --                           Clear :
2210    --                              while J < 10 loop
2211    --                                 A (J) := 0;
2212    --                              end loop Clear;
2213    --
2214    --
2215    --
2216    --      LINE_LENGTH          Check maximum line length.
2217    --                           The length of source lines must not exceed 79
2218    --                           characters, including any trailing blanks
2219    --                           The value of 79 allows convenient display on
2220    --                           an 80 character wide device or window, allowing
2221    --                           for possible special treatment of 80 character
2222    --                           lines.
2223    --
2224    --      NONE                 Clear any previously set style checks.
2225    --
2226    --      ORDERED_SUBPROGRAMS  Check order of subprogram bodies.
2227    --                           All subprogram bodies in a given scope (e.g.
2228    --                           a package body) must be in alphabetical order.
2229    --                           The ordering rule uses normal Ada rules for
2230    --                           comparing strings, ignoring casing of letters,
2231    --                           except that if there is a trailing numeric
2232    --                           suffix, then the value of this suffix is used
2233    --                           in the ordering (e.g. Junk2 comes before
2234    --                           Junk10).
2235    --
2236    --      PRAGMA               Check pragma casing.
2237    --                           Pragma names must be written in mixed case,
2238    --                           that is, the initial letter and any letter
2239    --                           following an underscore must be uppercase.
2240    --                           All other letters must be lowercase.
2241    --
2242    --      REFERENCES           Check references.
2243    --                           All identifier references must be cased in the
2244    --                           same way as the corresponding declaration.
2245    --                           No specific casing style is imposed on
2246    --                           identifiers. The only requirement is for
2247    --                           consistency of references with declarations.
2248    --
2249    --      SPECS                Check separate specs.
2250    --                           Separate declarations ("specs") are required
2251    --                           for subprograms (a body is not allowed to serve
2252    --                           as its own declaration). The only exception is
2253    --                           that parameterless library level procedures are
2254    --                           not required to have a separate declaration.
2255    --                           This exception covers the most frequent form of
2256    --                           main program procedures.
2257    --
2258    --      STANDARD_CASING      Check casing of entities in Standard.
2259    --                           Any identifier from Standard must be cased to
2260    --                           match the presentation in the Ada Reference
2261    --                           Manual (for example, Integer and ASCII.NUL).
2262    --
2263    --      TOKEN                Check token spacing.
2264    --                           The following token spacing rules are enforced:
2265    --
2266    --                             * The keywords abs and not must be followed
2267    --                               by a space.
2268    --
2269    --                             * The token => must be surrounded by spaces.
2270    --
2271    --                             * The token <> must be preceded by a space or
2272    --                               a left parenthesis.
2273    --
2274    --                             * Binary operators other than ** must be
2275    --                               surrounded by spaces. There is no
2276    --                               restriction on the layout of the ** binary
2277    --                               operator.
2278    --
2279    --                             * Colon must be surrounded by spaces.
2280    --
2281    --                             * Colon-equal (assignment) must be surrounded
2282    --                               by spaces.
2283    --
2284    --                             * Comma must be the first non-blank character
2285    --                               on the line, or be immediately preceded by
2286    --                               a non-blank character, and must be followed
2287    --                               by a space.
2288    --
2289    --                             * If the token preceding a left paren ends
2290    --                               with a letter or digit, then a space must
2291    --                               separate the two tokens.
2292    --
2293    --                             * A right parenthesis must either be the
2294    --                               first non-blank character on a line, or it
2295    --                               must be preceded by a non-blank character.
2296    --
2297    --                             * A semicolon must not be preceded by
2298    --                               a space, and must not be followed by
2299    --                               a non-blank character.
2300    --
2301    --                             * A unary plus or minus may not be followed
2302    --                               by a space.
2303    --
2304    --                             * A vertical bar must be surrounded by
2305    --                               spaces.
2306    --
2307    --                           In the above rules, appearing in column one is
2308    --                           always permitted, that is, counts as meeting
2309    --                           either a requirement for a required preceding
2310    --                           space, or as meeting a requirement for no
2311    --                           preceding space.
2312    --
2313    --                           Appearing at the end of a line is also always
2314    --                           permitted, that is, counts as meeting either
2315    --                           a requirement for a following space,
2316    --                           or as meeting a requirement for no following
2317    --                           space.
2318    --
2319    --      UNNECESSARY_BLANK_LINES
2320    --                           Check for unnecessary blank lines.
2321    --                           A blank line is considered unnecessary if it
2322    --                           appears at the end of the file, or if more
2323    --                           than one blank line occurs in sequence.
2324    --
2325    --      VTABS                No form feeds or vertical tabs.
2326    --                           Form feeds or vertical tab characters are not
2327    --                           permitted in the source text.
2328    --
2329    --      XTRA_PARENS          Check for the use of an unnecessary extra
2330    --                           level of parentheses (C - style) around
2331    --                           conditions in if statements, while statements
2332    --                           and exit statements.
2333
2334    S_GCC_StyleX  : aliased constant S := "/NOSTYLE_CHECKS "                &
2335                                             "!-gnatg,!-gnaty*";
2336    --  NODOC (see /STYLE_CHECKS)
2337
2338    S_GCC_Symbol  : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"'    &
2339                                             "-gnateD" & '"';
2340    --        /SYMBOL_PREPROCESSING="symbol=value"
2341    --
2342    --   Define or redefine a preprocessing symbol, associated with value.
2343    --   If "=value" is not specified, then the value of the symbol is True.
2344    --   A symbol is an identifier, following normal Ada (case-insensitive)
2345    --   rules for its syntax, and value is any sequence (including an empty
2346    --   sequence) of characters from the set (letters, digits, period,
2347    --   underline). Ada reserved words may be used as symbols, with the
2348    --   exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2349    --
2350    --   A symbol declared with this qualifier on the command line replaces
2351    --   a symbol with the same name either in a definition file or specified
2352    --   with a switch -D in the preprocessor data file.
2353    --
2354    --   This qualifier is similar to qualifier /ASSOCIATE of
2355    --   GNAT PREPROCESSING.
2356
2357    S_GCC_Syntax  : aliased constant S := "/SYNTAX_ONLY "                   &
2358                                             "-gnats";
2359    --        /NOSYNTAX_ONLY (D)
2360    --        /SYNTAX_ONLY
2361    --
2362    --   Run GNAT in syntax checking only mode.  You can check a series of
2363    --   files in a single command, and can use wild cards to specify such a
2364    --   group of files.
2365    --
2366    --   You may use other qualifiers in conjunction with this qualifier. In
2367    --   particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2368    --   format of any generated error messages.
2369    --
2370    --   The output is simply the error messages, if any. No object file or ALI
2371    --   file is generated by a syntax-only compilation. Also, no units other
2372    --   than the one specified are accessed. For example, if a unit "X" with's
2373    --   a unit "Y", compiling unit "X" in syntax check only mode does not
2374    --   access the source file containing unit "Y".
2375    --
2376    --   Normally, GNAT allows only a single unit in a source file. However,
2377    --   this restriction does not apply in syntax-check-only mode, and it is
2378    --   possible to check a file containing multiple compilation units
2379    --   concatenated together. This is primarily used by the GNAT CHOP
2380    --   command.
2381
2382    S_GCC_Table   : aliased constant S := "/TABLE_MULTIPLIER=#"             &
2383                                             "-gnatT#";
2384    --        /TABLE_MULTIPLIER=nnn
2385    --
2386    --   All compiler tables start at nnn times usual starting size.
2387
2388    S_GCC_Trace   : aliased constant S := "/TRACE_UNITS "                   &
2389                                             "-gnatdc";
2390    --        /TRACE_UNITS
2391    --        /NOTRACE_UNITS
2392    --
2393    --   This switch that does for the frontend what /VERBOSE does for the
2394    --   backend. The system prints the name of each unit, either a compilation
2395    --   unit or nested unit, as it is being analyzed.
2396
2397    S_GCC_Tree    : aliased constant S := "/TREE_OUTPUT "                   &
2398                                             "-gnatt";
2399    --        /TREE_OUTPUT
2400    --        /NOTREE_OUTPUT
2401    --
2402    --   Cause GNAT to write the internal tree for a unit to a file (with the
2403    --   filetype ATB for a body or ATS for a spec).  This is not normally
2404    --   required, but is used by separate analysis tools. Typically these
2405    --   tools do the necessary compilations automatically, so you should never
2406    --   have to specify this switch in normal operation.
2407
2408    S_GCC_Trys    : aliased constant S := "/TRY_SEMANTICS "                 &
2409                                             "-gnatq";
2410    --        /TRY_SEMANTICS
2411    --        /NOTRY_SEMANTICS
2412    --
2413    --   In normal operation mode the compiler first parses the program and
2414    --   determines if there are any syntax errors. If there are, appropriate
2415    --   error messages are generated and compilation is immediately
2416    --   terminated.  This qualifier tells GNAT to continue with semantic
2417    --   analysis even if syntax errors have been found.  This may enable the
2418    --   detection of more errors in a single run. On the other hand, the
2419    --   semantic analyzer is more likely to encounter some internal fatal
2420    --   error when given a syntactically invalid tree.
2421
2422    S_GCC_Units   : aliased constant S := "/UNITS_LIST "                    &
2423                                             "-gnatu";
2424    --        /NOUNITS_LIST (D)
2425    --        /UNITS_LIST
2426    --
2427    --   Print a list of units required by this compilation on SYS$OUTPUT.  The
2428    --   listing includes all units on which the unit being compiled depends
2429    --   either directly or indirectly.
2430
2431    S_GCC_Unique  : aliased constant S := "/UNIQUE_ERROR_TAG "              &
2432                                             "-gnatU";
2433    --        /NOUNIQUE_ERROR_TAG (D)
2434    --        /UNIQUE_ERROR_TAG
2435    --
2436    --   Tag compiler error messages with the string "error: ".
2437
2438    S_GCC_Upcase  : aliased constant S := "/UPPERCASE_EXTERNALS "           &
2439                                             "-gnatF";
2440    --        /NOUPPERCASE_EXTERNALS (D)
2441    --        /UPPERCASE_EXTERNALS
2442    --
2443    --   Fold default and explicit external names in pragmas Import and Export
2444    --   to uppercase for compatibility with the default behavior of DEC C.
2445
2446    S_GCC_Valid   : aliased constant S := "/VALIDITY_CHECKING="             &
2447                                             "DEFAULT "                     &
2448                                                "-gnatVd "                  &
2449                                             "NODEFAULT "                   &
2450                                                "-gnatVD "                  &
2451                                             "COPIES "                      &
2452                                                "-gnatVc "                  &
2453                                             "NOCOPIES "                    &
2454                                                "-gnatVC "                  &
2455                                             "FLOATS "                      &
2456                                                "-gnatVf "                  &
2457                                             "NOFLOATS "                    &
2458                                                "-gnatVF "                  &
2459                                             "IN_PARAMS "                   &
2460                                                "-gnatVi "                  &
2461                                             "NOIN_PARAMS "                 &
2462                                                "-gnatVI "                  &
2463                                             "MOD_PARAMS "                  &
2464                                                "-gnatVm "                  &
2465                                             "NOMOD_PARAMS "                &
2466                                                "-gnatVM "                  &
2467                                             "OPERANDS "                    &
2468                                                "-gnatVo "                  &
2469                                             "NOOPERANDS "                  &
2470                                                "-gnatVO "                  &
2471                                             "PARAMETERS "                  &
2472                                                "-gnatVp "                  &
2473                                             "NOPARAMETERS "                &
2474                                                "-gnatVP "                  &
2475                                             "RETURNS "                     &
2476                                                "-gnatVr "                  &
2477                                             "NORETURNS "                   &
2478                                                "-gnatVR "                  &
2479                                             "SUBSCRIPTS "                  &
2480                                                "-gnatVs "                  &
2481                                             "NOSUBSCRIPTS "                &
2482                                                "-gnatVS "                  &
2483                                             "TESTS "                       &
2484                                                "-gnatVt "                  &
2485                                             "NOTESTS "                     &
2486                                                "-gnatVT "                  &
2487                                             "ALL "                         &
2488                                                "-gnatVa "                  &
2489                                             "NONE "                        &
2490                                                "-gnatVn";
2491    --        /VALIDITY_CHECKING[=(keyword,[...])]
2492    --
2493    --   Control level of validity checking.
2494    --
2495    --        DEFAULT (D)     In this mode checks are made to prevent
2496    --                        erroneous behavior in accordance with the RM.
2497    --                        Notably extra checks may be needed for case
2498    --                        statements and subscripted array assignments.
2499    --
2500    --        NONE            No special checks for invalid values are
2501    --                        performed. This means that references to
2502    --                        uninitialized variables can cause erroneous
2503    --                        behavior from constructs like case statements
2504    --                        and subscripted array assignments. In this
2505    --                        mode, invalid values can lead to erroneous
2506    --                        behavior.
2507    --
2508    --        FULL            Every assignment is checked for validity, so
2509    --                        that it is impossible to assign invalid values.
2510    --                        The RM specifically allows such assignments,
2511    --                        but in this mode, invalid values can never be
2512    --                        assigned, and an attempt to perform such an
2513    --                        assignment immediately raises Constraint_Error.
2514    --                        This behavior is allowed (but not required) by
2515    --                        the RM. This mode is intended as a debugging aid,
2516    --                        and may be useful in helping to track down
2517    --                        uninitialized variables. It may be useful to
2518    --                        use this in conjunction with the Normalize_Scalars
2519    --                        pragma which attempts to initialize with invalid
2520    --                        values where possible.
2521
2522    S_GCC_Verbose : aliased constant S := "/VERBOSE "                       &
2523                                             "-v";
2524    --        /VERBOSE
2525    --        /NOVERBOSE
2526    --
2527    --   Show commands generated by the GCC driver. Normally used only for
2528    --   debugging purposes or if you need to be sure what version of the
2529    --   compiler you are executing.
2530
2531    S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2532                                           "-S,-verbose_asm,!-c";
2533    --        /NOASM (D)
2534    --        /ASM
2535    --
2536    --   Use to cause the assembler source file to be generated, using S as the
2537    --   filetype, instead of the object file. This may be useful if you need
2538    --   to examine the generated assembly code.
2539
2540    S_GCC_Warn    : aliased constant S := "/WARNINGS="                      &
2541                                             "DEFAULT "                     &
2542                                                "!-gnatws,!-gnatwe "        &
2543                                             "ALL "                         &
2544                                                "-gnatwa "                  &
2545                                             "NOALL "                       &
2546                                                "-gnatwA "                  &
2547                                             "ALL_GCC "                     &
2548                                                "-Wall "                    &
2549                                             "BAD_FIXED_VALUES "            &
2550                                                "-gnatwb "                  &
2551                                             "NO_BAD_FIXED_VALUES "         &
2552                                                "-gnatwB "                  &
2553                                             "CONDITIONALS "                &
2554                                                "-gnatwc "                  &
2555                                             "NOCONDITIONALS "              &
2556                                                "-gnatwC "                  &
2557                                             "MISSING_COMPONENT_CLAUSES "   &
2558                                                "-gnatw.c "                 &
2559                                             "NOMISSING_COMPONENT_CLAUSES " &
2560                                                "-gnatw.C "                 &
2561                                             "CONSTANT_VARIABLES "          &
2562                                                "-gnatwk "                  &
2563                                             "NOCONSTANT_VARIABLES "        &
2564                                                "-gnatwK "                  &
2565                                             "IMPLICIT_DEREFERENCE "        &
2566                                                "-gnatwd "                  &
2567                                             "NO_IMPLICIT_DEREFERENCE "     &
2568                                                "-gnatwD "                  &
2569                                             "ELABORATION "                 &
2570                                                "-gnatwl "                  &
2571                                             "NOELABORATION "               &
2572                                                "-gnatwL "                  &
2573                                             "ERRORS "                      &
2574                                                "-gnatwe "                  &
2575                                             "HIDING "                      &
2576                                                "-gnatwh "                  &
2577                                             "NOHIDING "                    &
2578                                                "-gnatwH "                  &
2579                                             "IMPLEMENTATION "              &
2580                                                "-gnatwi "                  &
2581                                             "NOIMPLEMENTATION "            &
2582                                                "-gnatwI "                  &
2583                                             "INEFFECTIVE_INLINE "          &
2584                                                "-gnatwp "                  &
2585                                             "NOINEFFECTIVE_INLINE "        &
2586                                                "-gnatwP "                  &
2587                                             "MISSING_PARENS "              &
2588                                                "-gnatwq "                  &
2589                                             "NOMISSING_PARENS "            &
2590                                                "-gnatwQ "                  &
2591                                             "MODIFIED_UNREF "              &
2592                                                "-gnatwm "                  &
2593                                             "NOMODIFIED_UNREF "            &
2594                                                "-gnatwM "                  &
2595                                             "NORMAL "                      &
2596                                                "-gnatwn "                  &
2597                                             "OBSOLESCENT "                 &
2598                                                "-gnatwj "                  &
2599                                             "NOOBSOLESCENT "               &
2600                                                "-gnatwJ "                  &
2601                                             "OPTIONAL "                    &
2602                                                "-gnatwa "                  &
2603                                             "NOOPTIONAL "                  &
2604                                                "-gnatwA "                  &
2605                                             "OVERLAYS "                    &
2606                                                "-gnatwo "                  &
2607                                             "NOOVERLAYS "                  &
2608                                                "-gnatwO "                  &
2609                                             "REDUNDANT "                   &
2610                                                "-gnatwr "                  &
2611                                             "NOREDUNDANT "                 &
2612                                                "-gnatwR "                  &
2613                                             "SUPPRESS "                    &
2614                                                "-gnatws "                  &
2615                                             "DELETED_CODE "                &
2616                                                "-gnatwt "                  &
2617                                             "NODELETED_CODE "              &
2618                                                "-gnatwT "                  &
2619                                             "UNINITIALIZED "               &
2620                                                "-Wuninitialized "          &
2621                                             "UNREFERENCED_FORMALS "        &
2622                                                "-gnatwf "                  &
2623                                             "NOUNREFERENCED_FORMALS "      &
2624                                                "-gnatwF "                  &
2625                                             "UNRECOGNIZED_PRAGMAS "        &
2626                                                "-gnatwg "                  &
2627                                             "NOUNRECOGNIZED_PRAGMAS "      &
2628                                                "-gnatwG "                  &
2629                                             "UNUSED "                      &
2630                                                "-gnatwu "                  &
2631                                             "NOUNUSED "                    &
2632                                                "-gnatwU "                  &
2633                                             "VARIABLES_UNINITIALIZED "     &
2634                                                "-gnatwv "                  &
2635                                             "NOVARIABLES_UNINITIALIZED "   &
2636                                                "-gnatwV "                  &
2637                                             "LOWBOUND_ASSUMED "            &
2638                                                "-gnatww "                  &
2639                                             "NOLOWBOUND_ASSUMED "          &
2640                                                "-gnatwW "                  &
2641                                             "IMPORT_EXPORT_PRAGMAS "       &
2642                                                "-gnatwx "                  &
2643                                             "NOIMPORT_EXPORT_PRAGMAS "     &
2644                                                "-gnatwX "                  &
2645                                             "LOCAL_RAISE_HANDLING "        &
2646                                                "-gnatw.x "                 &
2647                                             "NOLOCAL_RAISE_HANDLING "      &
2648                                                "-gnatw.X "                 &
2649                                             "ADA_2005_COMPATIBILITY "      &
2650                                                "-gnatwy "                  &
2651                                             "NOADA_2005_COMPATIBILITY "    &
2652                                                "-gnatwY "                  &
2653                                             "UNCHECKED_CONVERSIONS "       &
2654                                                "-gnatwz "                  &
2655                                             "NOUNCHECKED_CONVERSIONS "     &
2656                                                "-gnatwZ";
2657    --        /NOWARNINGS
2658    --
2659    --   Suppress the output of all warning messages from the GNAT front end.
2660    --   Note that it does not suppress warnings from the gcc back end.
2661    --
2662    --        /WARNINGS[=(keyword[,...])]
2663    --
2664    --   In addition to error messages, corresponding to illegalities as
2665    --   defined in the reference manual, the compiler detects two kinds of
2666    --   warning situations.  First, the compiler considers some constructs
2667    --   suspicious and generates a warning message to alert you to a possible
2668    --   error. Second, if the compiler detects a situation that is sure to
2669    --   raise an exception at runtime, it generates a warning message.
2670    --
2671    --   You may specify the following keywords to change this behavior:
2672    --
2673    --   DEFAULT (D)             The default behavior above.
2674    --
2675    --   ALL                     Activate all optional warnings.
2676    --                           Activates most optional warning messages,
2677    --                           see remaining list in this section for
2678    --                           details on optional warning messages that
2679    --                           can be individually controlled.
2680    --                           The warnings that are not turned on by
2681    --                           this option are BIASED_ROUNDING,
2682    --                           IMPLICIT_DEREFERENCE, HIDING and
2683    --                           ELABORATION. All other optional Ada
2684    --                           warnings are turned on.
2685    --
2686    --   NOALL                   Suppress all optional errors.
2687    --                           Suppresses all optional warning messages
2688    --                           that can be activated by option ALL.
2689    --
2690    --   ALL_GCC                 Request additional messages from the GCC
2691    --                           backend.  Most of these are not relevant
2692    --                           to Ada.
2693    --
2694    --   CONDITIONALS            Activate warnings for conditional
2695    --                           Expressions used in tests that are known
2696    --                           to be True or False at compile time. The
2697    --                           default is that such warnings are not
2698    --                           generated.
2699    --
2700    --   NOCONDITIONALS          Suppress warnings for conditional
2701    --                           expressions used in tests that are known
2702    --                           to be True or False at compile time.
2703    --
2704    --   IMPLICIT_DEREFERENCE    Activate warnings on implicit dereferencing.
2705    --                           The use of a prefix of an access type in an
2706    --                           indexed component, slice, or selected component
2707    --                           without an explicit .all will generate
2708    --                           a warning. With this warning enabled, access
2709    --                           checks occur only at points where an explicit
2710    --                           .all appears in the source code (assuming no
2711    --                           warnings are generated as a result of this
2712    --                           option). The default is that such warnings are
2713    --                           not generated. Note that /WARNINGS=ALL does not
2714    --                           affect the setting of this warning option.
2715    --
2716    --   NOIMPLICIT_DEREFERENCE  Suppress warnings on implicit dereferencing.
2717    --                           in indexed components, slices, and selected
2718    --                           components.
2719    --
2720    --   ELABORATION             Activate warnings on missing pragma
2721    --                           Elaborate_All statements. The default is
2722    --                           that such warnings are not generated.
2723    --
2724    --   NOELABORATION           Suppress warnings on missing pragma
2725    --                           Elaborate_All statements.
2726    --
2727    --   ERRORS                  Warning messages are to be treated as errors.
2728    --                           The warning string still appears, but the
2729    --                           warning messages are counted as errors, and
2730    --                           prevent the generation of an object file.
2731    --
2732    --   HIDING                  Activate warnings on hiding declarations.
2733    --                           A declaration is considered hiding if it is
2734    --                           for a non-overloadable entity, and it declares
2735    --                           an entity with the same name as some other
2736    --                           entity that is directly or use-visible. The
2737    --                           default is that such warnings are not
2738    --                           generated.
2739    --
2740    --   NOHIDING                Suppress warnings on hiding declarations.
2741    --
2742    --   IMPLEMENTATION          Activate warnings for a with of an internal
2743    --                           GNAT implementation unit, defined as any unit
2744    --                           from the Ada, Interfaces, GNAT, DEC or
2745    --                           System hierarchies that is not documented in
2746    --                           either the Ada Reference Manual or the GNAT
2747    --                           Programmer's Reference Manual. Such units are
2748    --                           intended only for internal implementation
2749    --                           purposes and should not be with'ed by user
2750    --                           programs. The default is that such warnings
2751    --                           are generated.
2752    --
2753    --   NOIMPLEMENTATION        Disables warnings for a with of an internal
2754    --                           GNAT implementation unit.
2755    --
2756    --   INEFFECTIVE_INLINE      Activate warnings on ineffective pragma Inlines
2757    --                           Activates warnings for failure of front end
2758    --                           inlining (activated by /INLINE=FULL) to inline
2759    --                           a particular call. There are many reasons for
2760    --                           not being able to inline a call, including most
2761    --                           commonly that the call is too complex to
2762    --                           inline. This warning can also be turned on
2763    --                           using /INLINE=FULL.
2764    --
2765    --   NOINEFFECTIVE_INLINE    Suppress warnings on ineffective pragma Inlines
2766    --                           Suppresses warnings on ineffective pragma
2767    --                           Inlines. If the inlining mechanism cannot
2768    --                           inline a call, it will simply ignore the
2769    --                           request silently.
2770    --
2771    --   MISSING_COMPONENT_CLAUSES
2772    --                           Activate warnings for cases when there are
2773    --                           component clauses for a record type, but not
2774    --                           for every component of the record.
2775    --
2776    --   NOMISSING_COMPONENT_CLAUSES
2777    --                           Suppress warnings for cases when there are
2778    --                           missing component clauses for a record type.
2779    --
2780    --   MISSING_PARENS
2781    --                           Activate warnings for cases where parentheses
2782    --                           are not used and the result is potential
2783    --                           ambiguity from a reader's point of view.
2784    --                           For example (not a > b) when a and b are
2785    --                           modular means (not (a) > b) and very likely
2786    --                           the programmer intended (not (a > b)).
2787    --
2788    --   NOMISSING_PARENS
2789    --                           Suppress warnings for cases where parentheses
2790    --                           are not used and the result is potential
2791    --                           ambiguity from a reader's point of view.
2792    --
2793    --   MODIFIED_UNREF          Activates warnings for variables that are
2794    --                           assigned (using an initialization value or with
2795    --                           one or more assignment statements) but whose
2796    --                           value is never read. The warning is suppressed
2797    --                           for volatile variables and also for variables
2798    --                           that are renamings of other variables or for
2799    --                           which an address clause is given. This warning
2800    --                           can also be turned on using /WARNINGS/OPTIONAL.
2801    --
2802    --   NOMODIFIED_UNREF        Disables warnings for variables that are
2803    --                           assigned or initialized, but never read.
2804    --
2805    --   NORMAL                  Sets normal warning mode, in which enabled
2806    --                           warnings are issued and treated as warnings
2807    --                           rather than errors. This is the default mode.
2808    --                           It can be used to cancel the effect of an
2809    --                           explicit /WARNINGS=SUPPRESS or
2810    --                           /WARNINGS=ERRORS. It also cancels the effect
2811    --                           of the implicit /WARNINGS=ERRORS that is
2812    --                           activated by the use of /STYLE=GNAT.
2813    --
2814    --   OBSOLESCENT             Activates warnings for calls to subprograms
2815    --                           marked with pragma Obsolescent and for use of
2816    --                           features in Annex J of the Ada Reference
2817    --                           Manual. In the case of Annex J, not all
2818    --                           features are flagged. In particular use of the
2819    --                           renamed packages (like Text_IO), use of package
2820    --                           ASCII and use of the attribute 'Constrained are
2821    --                           not flagged, since these are very common and
2822    --                           would generate many annoying positive warnings.
2823    --                           The default is that such warnings are not
2824    --                           generated.
2825    --
2826    --   NOOBSOLESCENT           Disables warnings on use of obsolescent
2827    --                           features.
2828    --
2829    --   OPTIONAL                Activate all optional warning messages.
2830    --                           See other options under this qualifier
2831    --                           for details on optional warning messages
2832    --                           that can be individually controlled. The
2833    --                           one exception is that /WARNINGS=OPTIONAL
2834    --                           doesn't activate warnings for hiding
2835    --                           variables (/WARNINGS=HIDING), so if this
2836    --                           warning is required it must be explicitly
2837    --                           set.
2838    --
2839    --   NOOPTIONAL              Suppress all optional warning messages.
2840    --                           See other options under this qualifier
2841    --                           for details on optional warning messages
2842    --                           that can be individually controlled.
2843    --
2844    --   OVERLAYS                Activate warnings for possibly unintended
2845    --                           initialization effects of defining address
2846    --                           clauses that cause one variable to overlap
2847    --                           another. The default is that such warnings
2848    --                           are generated.
2849    --
2850    --   NOOVERLAYS              Suppress warnings on possibly unintended
2851    --                           initialization effects of defining address
2852    --                           clauses that cause one variable to overlap
2853    --                           another.
2854    --
2855    --   REDUNDANT               Activate warnings for redundant constructs.
2856    --                           In particular assignments of a variable to
2857    --                           itself, and a type conversion that converts
2858    --                           an object to its own type. The default
2859    --                           is that such warnings are not generated.
2860    --
2861    --   NOREDUNDANT             Suppress warnings for redundant constructs.
2862    --
2863    --   SUPPRESS                Completely suppresse the output of all warning
2864    --                           messages.  Same as /NOWARNINGS.
2865    --
2866    --   UNCHECKED_CONVERSIONS   Activates warnings on unchecked conversions.
2867    --                           Causes warnings to be generated for
2868    --                           unchecked conversions when the two types are
2869    --                           known at compile time to have different sizes.
2870    --                           The default is that such warnings are
2871    --                           generated.
2872    --
2873    --   NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
2874    --
2875    --   UNINITIALIZED           Generate warnings for uninitialized variables.
2876    --                           This is a GCC option, not an Ada option.
2877    --                           You must also specify the /OPTIMIZE qualifier
2878    --                           with a value other than NONE (in other words,
2879    --                           this keyword works only if optimization is
2880    --                           turned on).
2881    --
2882    --   UNREFERENCED_FORMALS    Activate warnings on unreferenced formals.
2883    --                           Causes a warning to be generated if a formal
2884    --                           parameter is not referenced in the body of
2885    --                           the subprogram. This warning can also be turned
2886    --                           on using option ALL or UNUSED.
2887    --
2888    --   NOUNREFERENCED_FORMALS  Suppress warnings on unreferenced formals.
2889    --                           Suppresses warnings for unreferenced formal
2890    --                           parameters. Note that the combination UNUSED
2891    --                           followed by NOUNREFERENCED_FORMALS has the
2892    --                           effect of warning on unreferenced entities
2893    --                           other than subprogram formals.
2894    --
2895    --   UNUSED                  Activates warnings to be generated for entities
2896    --                           that are defined but not referenced, and for
2897    --                           units that are with'ed and not referenced. In
2898    --                           the case of packages, a warning is also
2899    --                           generated if no entities in the package are
2900    --                           referenced. This means that if the package
2901    --                           is referenced but the only references are in
2902    --                           use clauses or renames declarations, a warning
2903    --                           is still generated. A warning is also generated
2904    --                           for a generic package that is with'ed but never
2905    --                           instantiated.  In the case where a package or
2906    --                           subprogram body is compiled, and there is a
2907    --                           with on the corresponding spec that is only
2908    --                           referenced in the body, a warning is also
2909    --                           generated, noting that the with can be moved
2910    --                           to the body. The default is that such warnings
2911    --                           are not generated.
2912    --
2913    --   NOUNUSED                Suppress warnings for unused entities and
2914    --                           packages.
2915    --
2916    --   VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
2917    --                           Causes warnings to be generated when a variable
2918    --                           is accessed which may not be properly
2919    --                           uninitialized.
2920    --                           The default is that such warnings are
2921    --                           generated.
2922    --
2923    --   NOVARIABLES_UNINITIALIZED       Suppress warnings for uninitialized
2924    --                                   variables.
2925
2926    S_GCC_WarnX   : aliased constant S := "/NOWARNINGS "                    &
2927                                             "-gnatws";
2928    --  NODOC (see /WARNINGS)
2929
2930    S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS "          &
2931                                             "-w";
2932    --        /NO_BACK_END_WARNINGS
2933    --
2934    --   Inhibit all warning messages of the GCC back-end.
2935
2936    S_GCC_Wide    : aliased constant S := "/WIDE_CHARACTER_ENCODING="       &
2937                                              "BRACKETS "                   &
2938                                                 "-gnatWb "                 &
2939                                              "HEX "                        &
2940                                                 "-gnatWh "                 &
2941                                              "UPPER "                      &
2942                                                 "-gnatWu "                 &
2943                                              "SHIFT_JIS "                  &
2944                                                 "-gnatWs "                 &
2945                                              "UTF8 "                       &
2946                                                 "-gnatW8 "                 &
2947                                              "EUC "                        &
2948                                                 "-gnatWe";
2949    --        /NOWIDE_CHARACTER_ENCODING (D)
2950    --        /WIDE_CHARACTER_ENCODING[=encode-type]
2951    --
2952    --   Specifies the mechanism used to encode wide characters.  'encode-type'
2953    --   is one of the following:
2954    --
2955    --   BRACKETS (D)    A wide character is encoded as ["xxxx"] where XXXX
2956    --                   are four hexadecimal digits representing the coding
2957    --                   ('Pos value) of the character in type
2958    --                   Wide_Character. The hexadecimal digits may use upper
2959    --                   or lower case letters.
2960    --
2961    --                   This notation can also be used for upper half
2962    --                   Character values using the format ["xx"] where XX is
2963    --                   two hexadecimal digits representing the coding ('Pos
2964    --                   value) of the character in type Character (or
2965    --                   Wide_Character). The hexadecimal digits may use upper
2966    --                   of lower case.
2967    --
2968    --   NONE            No wide characters are allowed.  Same
2969    --                   as /NOWIDE_CHARCTER_ENCODING.
2970    --
2971    --   HEX             In this encoding, a wide character is represented by
2972    --                   the following five character sequence: ESC a b c d
2973    --                   Where 'a', 'b', 'c', and 'd' are the four hexadecimal
2974    --                   characters (using uppercase letters) of the wide
2975    --                   character code. For example, ESC A345 is used to
2976    --                   represent the wide character with code 16#A345#. This
2977    --                   scheme is compatible with use of the full
2978    --                   Wide_Character set.
2979    --
2980    --   UPPER           The wide character with encoding 16#abcd# where the
2981    --                   upper bit is on (in other words, "a" is in the range
2982    --                   8-F) is represented as two bytes, 16#ab# and 16#cd#.
2983    --                   The second byte may never be a format control
2984    --                   character, but is not required to be in the upper
2985    --                   half. This method can be also used for shift-JIS or
2986    --                   EUC, where the internal coding matches the external
2987    --                   coding.
2988    --
2989    --   SHIFT_JIS       A wide character is represented by a two-character
2990    --                   sequence, 16#ab# and 16#cd#, with the restrictions
2991    --                   described for upper-half encoding as described above.
2992    --                   The internal character code is the corresponding JIS
2993    --                   character according to the standard algorithm for
2994    --                   Shift-JIS conversion. Only characters defined in the
2995    --                   JIS code set table can be used with this encoding
2996    --                   method.
2997    --
2998    --   UTF8            A wide character is represented using
2999    --                   UCS Transformation Format 8 (UTF-8) as defined in Annex
3000    --                   R of ISO 10646-1/Am.2.  Depending on the character
3001    --                   value, the representation is a one, two, or three byte
3002    --                   sequence:
3003    --
3004    --                   16#0000#-16#007f#: 2#0xxxxxxx#
3005    --                   16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3006    --                   16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3007    --
3008    --                   where the xxx bits correspond to the left-padded bits
3009    --                   of the the 16-bit character value. Note that all lower
3010    --                   half ASCII characters are represented as ASCII bytes
3011    --                   and all upper half characters and other wide characters
3012    --                   are represented as sequences of upper-half (The full
3013    --                   UTF-8 scheme allows for encoding 31-bit characters as
3014    --                   6-byte sequences, but in this implementation, all UTF-8
3015    --                   sequences of four or more bytes length will be treated
3016    --                   as illegal).
3017    --
3018    --   EUC             A wide character is represented by a two-character
3019    --                   sequence 16#ab# and 16#cd#, with both characters being
3020    --                   in the upper half. The internal character code is the
3021    --                   corresponding JIS character according to the EUC
3022    --                   encoding algorithm. Only characters defined in the JIS
3023    --                   code set table can be used with this encoding method.
3024
3025    S_GCC_WideX   : aliased constant S := "/NOWIDE_CHARACTER_ENCODING "     &
3026                                              "-gnatWn";
3027    --  NODOC (see /WIDE_CHARACTER_ENCODING)
3028
3029    S_GCC_Xdebug  : aliased constant S := "/XDEBUG "                        &
3030                                              "-gnatD";
3031    --        /NOXDEBUG (D)
3032    --        /XDEBUG
3033    --
3034    --   Output expanded source files for source level debugging.
3035    --   The expanded source (see /EXPAND_SOURCE) is written to files
3036    --   with names formed by appending "_DG" to the input file name,
3037    --   The debugging information generated by the /DEBUG qualifier will then
3038    --   refer to the generated file. This allows source level debugging using
3039    --   the generated code which is sometimes useful for complex code, for
3040    --   example to find out exactly which part of a complex construction
3041    --   raised an exception.
3042
3043    S_GCC_Xref    : aliased constant S := "/XREF="                          &
3044                                             "GENERATE "                    &
3045                                                "!-gnatx "                  &
3046                                             "SUPPRESS "                    &
3047                                                "-gnatx";
3048    --        /XREF[=keyword]
3049    --
3050    --   Normally the compiler generates full cross-referencing information in
3051    --   the .ALI file. This information is used by a number of tools,
3052    --   including GNAT FIND and GNAT XREF.
3053    --
3054    --        GENERATE (D)            Generate cross-referencing information.
3055    --
3056    --        SUPPRESS                Suppress cross-referencing information.
3057    --                                This saves some space and may slightly
3058    --                                speed up compilation, but means that some
3059    --                                tools cannot be used.
3060
3061    GCC_Switches : aliased constant Switches :=
3062      (S_GCC_Ada_83  'Access,
3063       S_GCC_Ada_95  'Access,
3064       S_GCC_Ada_05  'Access,
3065       S_GCC_Asm     'Access,
3066       S_GCC_Checks  'Access,
3067       S_GCC_ChecksX 'Access,
3068       S_GCC_Compres 'Access,
3069       S_GCC_Config  'Access,
3070       S_GCC_Current 'Access,
3071       S_GCC_Debug   'Access,
3072       S_GCC_DebugX  'Access,
3073       S_GCC_Data    'Access,
3074       S_GCC_Dist    'Access,
3075       S_GCC_DistX   'Access,
3076       S_GCC_Error   'Access,
3077       S_GCC_ErrorX  'Access,
3078       S_GCC_Expand  'Access,
3079       S_GCC_Extend  'Access,
3080       S_GCC_Ext     'Access,
3081       S_GCC_File    'Access,
3082       S_GCC_Force   'Access,
3083       S_GCC_Full    'Access,
3084       S_GCC_GNAT    'Access,
3085       S_GCC_Help    'Access,
3086       S_GCC_Ident   'Access,
3087       S_GCC_IdentX  'Access,
3088       S_GCC_Immed   'Access,
3089       S_GCC_Inline  'Access,
3090       S_GCC_InlineX 'Access,
3091       S_GCC_Intsrc  'Access,
3092       S_GCC_Just    'Access,
3093       S_GCC_JustX   'Access,
3094       S_GCC_Length  'Access,
3095       S_GCC_List    'Access,
3096       S_GCC_Output  'Access,
3097       S_GCC_Mapping 'Access,
3098       S_GCC_Mess    'Access,
3099       S_GCC_Nesting 'Access,
3100       S_GCC_Noadc   'Access,
3101       S_GCC_Noload  'Access,
3102       S_GCC_Nostinc 'Access,
3103       S_GCC_Nostlib 'Access,
3104       S_GCC_Opt     'Access,
3105       S_GCC_OptX    'Access,
3106       S_GCC_Polling 'Access,
3107       S_GCC_Project 'Access,
3108       S_GCC_Psta    'Access,
3109       S_GCC_Report  'Access,
3110       S_GCC_ReportX 'Access,
3111       S_GCC_Repinfo 'Access,
3112       S_GCC_RepinfX 'Access,
3113       S_GCC_RTS     'Access,
3114       S_GCC_Search  'Access,
3115       S_GCC_Style   'Access,
3116       S_GCC_StyleX  'Access,
3117       S_GCC_Symbol  'Access,
3118       S_GCC_Syntax  'Access,
3119       S_GCC_Table   'Access,
3120       S_GCC_Trace   'Access,
3121       S_GCC_Tree    'Access,
3122       S_GCC_Trys    'Access,
3123       S_GCC_Units   'Access,
3124       S_GCC_Unique  'Access,
3125       S_GCC_Upcase  'Access,
3126       S_GCC_Valid   'Access,
3127       S_GCC_Verbose 'Access,
3128       S_GCC_Verb_Asm'Access,
3129       S_GCC_Warn    'Access,
3130       S_GCC_WarnX   'Access,
3131       S_GCC_Wide    'Access,
3132       S_GCC_WideX   'Access,
3133       S_GCC_No_Back 'Access,
3134       S_GCC_Xdebug  'Access,
3135       S_GCC_Xref    'Access);
3136
3137    ----------------------------
3138    -- Switches for GNAT ELIM --
3139    ----------------------------
3140
3141    S_Elim_All    : aliased constant S := "/ALL "                           &
3142                                             "-a";
3143    --        /NOALL (D)
3144    --        /ALL
3145    --
3146    --   Also look for subprograms from the GNAT run time that can be
3147    --   eliminated. Note that when 'gnat.adc' is produced using this switch,
3148    --   the entire program must be recompiled with qualifier /ALL_FILES of
3149    --   GNAT MAKE.
3150
3151    S_Elim_Bind   : aliased constant S := "/BIND_FILE=<"                    &
3152                                             "-b>";
3153    --        /BIND_FILE=file_name
3154    --
3155    --   Specifies file_name as the bind file to process. If this qualifier is
3156    --   not used, the name of the bind file is computed from the full expanded
3157    --   Ada name of a main subprogram.
3158
3159    S_Elim_Comp   : aliased constant S := "/COMPILER=@"                     &
3160                                             "--GCC=@";
3161    --        /COMPILER=path_name
3162    --
3163    --   Instructs GNAT ELIM to use a specific gcc compiler instead of one
3164    --   available on the path.
3165
3166    S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<"        &
3167                                             "-C>";
3168    --        /CONFIGURATION_PRAGMAS=path_name
3169    --
3170    --   Specifies a file that contains configuration pragmas.
3171    --   The file must be specified with absolute path.
3172
3173    S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
3174                                            "!-I-";
3175    --        /CURRENT_DIRECTORY (D)
3176    --        /NOCURRENT_DIRECTORY
3177    --
3178    --        Look for source files in the default directory.
3179
3180    S_Elim_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3181                                              "-X" & '"';
3182    --       /EXTERNAL_REFERENCE="name=val"
3183    --
3184    --   Specifies an external reference to the project manager. Useful only if
3185    --   /PROJECT_FILE is used.
3186    --
3187    --   Example:
3188    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3189
3190    S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@"                   &
3191                                             "--GNATMAKE=@";
3192    --        /GNATMAKE=path_name
3193    --
3194    --   Instructs GNAT MAKE to use a specific gnatmake instead of one available
3195    --   on the path.
3196
3197    S_Elim_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3198                                              "DEFAULT "                    &
3199                                                 "-vP0 "                    &
3200                                              "MEDIUM "                     &
3201                                                 "-vP1 "                    &
3202                                              "HIGH "                       &
3203                                                 "-vP2";
3204    --        /MESSAGES_PROJECT_FILE[=messages-option]
3205    --
3206    --   Specifies the "verbosity" of the parsing of project files.
3207    --   messages-option may be one of the following:
3208    --
3209    --      DEFAULT (D)  No messages are output if there is no error or warning.
3210    --
3211    --      MEDIUM       A small number of messages are output.
3212    --
3213    --      HIGH         A great number of messages are output, most of them not
3214    --                   being useful for the user.
3215
3216    S_Elim_Project : aliased constant S := "/PROJECT_FILE=<"                &
3217                                              "-P>";
3218    --        /PROJECT_FILE=filename
3219    --
3220    --   Specifies the main project file to be used. The project files rooted
3221    --   at the main project file will be parsed before the invocation of the
3222    --   gnatelim. The source directories to be searched will be communicated
3223    --   to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3224
3225    S_Elim_Quiet  : aliased constant S := "/QUIET "                         &
3226                                             "-q";
3227    --        /NOQUIET (D)
3228    --        /QUIET
3229    --
3230    --   Quiet mode: by default GNAT ELIM outputs to the standard error stream
3231    --   the number of program units left to be processed. This option turns
3232    --   this trace off.
3233
3234    S_Elim_Search : aliased constant S := "/SEARCH=*"                       &
3235                                             "-I*";
3236    --        /SEARCH=(directory, ...)
3237    --
3238    --   When looking for source files also look in the specified directories.
3239
3240    S_Elim_Verb   : aliased constant S := "/VERBOSE "                       &
3241                                             "-v";
3242    --        /NOVERBOSE (D)
3243    --        /VERBOSE
3244    --
3245    --   Verbose mode: GNAT ELIM version information is output as Ada comments
3246    --   to the standard output stream. Also, in addition to the number of
3247    --   program units left, GNAT ELIM will output the name of the current unit
3248    --   being processed.
3249
3250    Elim_Switches : aliased constant Switches :=
3251                      (S_Elim_All     'Access,
3252                       S_Elim_Bind    'Access,
3253                       S_Elim_Comp    'Access,
3254                       S_Elim_Config  'Access,
3255                       S_Elim_Current 'Access,
3256                       S_Elim_Ext     'Access,
3257                       S_Elim_GNATMAKE'Access,
3258                       S_Elim_Mess    'Access,
3259                       S_Elim_Project 'Access,
3260                       S_Elim_Quiet   'Access,
3261                       S_Elim_Search  'Access,
3262                       S_Elim_Verb    'Access);
3263
3264    ----------------------------
3265    -- Switches for GNAT FIND --
3266    ----------------------------
3267
3268    S_Find_All     : aliased constant S := "/ALL_FILES "                    &
3269                                             "-a";
3270    --        /NOALL_FILES (D)
3271    --        /ALL_FILES
3272    --
3273    --   If this switch is present, FIND and XREF will parse the read-only
3274    --   files found in the library search path. Otherwise, these files will
3275    --   be ignored. This option can be used to protect Gnat sources or your
3276    --   own libraries from being parsed, thus making FIND and XREF much
3277    --   faster, and their output much smaller.
3278
3279    S_Find_Deriv   : aliased constant S := "/DERIVED_TYPE_INFORMATION "     &
3280                                             "-d";
3281    --        /NODERIVED_TYPE_INFORMATION (D)
3282    --        /DERIVED_TYPE_INFORMATION
3283    --
3284    --   Output the parent type reference for each matching derived types.
3285
3286    S_Find_Expr    : aliased constant S := "/EXPRESSIONS "                  &
3287                                             "-e";
3288    --        /NOEXPRESSIONS (D)
3289    --        /EXPRESSIONS
3290    --
3291    --   By default, FIND accepts the simple regular expression set for pattern.
3292    --   If this switch is set, then the pattern will be considered as a full
3293    --   Unix-style regular expression.
3294
3295    S_Find_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3296                                             "-X" & '"';
3297    --        /EXTERNAL_REFERENCE="name=val"
3298    --
3299    --   Specifies an external reference to the project manager. Useful only if
3300    --   /PROJECT_FILE is used.
3301    --
3302    --   Example:
3303    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3304
3305    S_Find_Full    : aliased constant S := "/FULL_PATHNAME "                &
3306                                             "-f";
3307    --        /NOFULL_PATHNAME (D)
3308    --        /FULL_PATHNAME
3309    --
3310    --   If this switch is set, the output file names will be preceded by their
3311    --   directory (if the file was found in the search path). If this switch
3312    --   is not set, the directory will not be printed.
3313
3314    S_Find_Ignore  : aliased constant S := "/IGNORE_LOCALS "                &
3315                                             "-g";
3316    --        /NOIGNORE_LOCALS (D)
3317    --        /IGNORE_LOCALS
3318    --
3319    --   If this switch is set, information is output only for library-level
3320    --   entities, ignoring local entities. The use of this switch may
3321    --   accelerate FIND and XREF.
3322
3323    S_Find_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3324                                             "DEFAULT "                     &
3325                                                "-vP0 "                     &
3326                                             "MEDIUM "                      &
3327                                                "-vP1 "                     &
3328                                             "HIGH "                        &
3329                                                "-vP2";
3330    --        /MESSAGES_PROJECT_FILE[=messages-option]
3331    --
3332    --   Specifies the "verbosity" of the parsing of project files.
3333    --   messages-option may be one of the following:
3334    --
3335    --      DEFAULT (D)  No messages are output if there is no error or warning.
3336    --
3337    --      MEDIUM       A small number of messages are output.
3338    --
3339    --      HIGH         A great number of messages are output, most of them not
3340    --                   being useful for the user.
3341
3342    S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
3343                                             "-nostdinc";
3344    --        /NOSTD_INCLUDES
3345    --
3346    --   Do not look for sources in the system default directory.
3347
3348    S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
3349                                             "-nostdlib";
3350    --        /NOSTD_LIBRARIES
3351    --
3352    --   Do not look for library files in the system default directory.
3353
3354    S_Find_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
3355                                             "-aO*";
3356    --        /OBJECT_SEARCH=(directory,...)
3357    --
3358    --   When searching for library and object files, look in the specified
3359    --   directories. The order in which library files are searched is the same
3360    --   as for MAKE.
3361
3362    S_Find_Print   : aliased constant S := "/PRINT_LINES "                  &
3363                                             "-s";
3364    --        /NOPRINT_LINES (D)
3365    --        /PRINT_LINES
3366    --
3367    --   Output the content of the Ada source file lines were the entity was
3368    --   found.
3369
3370    S_Find_Project : aliased constant S := "/PROJECT=@"                     &
3371                                             "-p@";
3372    --        /PROJECT=file
3373    --
3374    --   Specify a project file to use. By default, FIND and XREF will try to
3375    --   locate a project file in the current directory.
3376    --
3377    --   If a project file is either specified or found by the tools, then the
3378    --   content of the source directory and object directory lines are added
3379    --   as if they had been specified respectively by /SOURCE_SEARCH and
3380    --   /OBJECT_SEARCH.
3381    --
3382    --   This qualifier is not compatible with /PROJECT_FILE
3383
3384    S_Find_Prj     : aliased constant S := "/PROJECT_FILE=<"               &
3385                                             "-P>";
3386    --        /PROJECT_FILE=filename
3387    --
3388    --   Specifies the main project file to be used. The project files rooted
3389    --   at the main project file will be parsed before looking for sources.
3390    --   The source and object directories to be searched will be communicated
3391    --   to gnatfind  through logical names ADA_PRJ_INCLUDE_FILE and
3392    --   ADA_PRJ_OBJECTS_FILE.
3393
3394    S_Find_Ref     : aliased constant S := "/REFERENCES "                   &
3395                                             "-r";
3396    --        /NOREFERENCES (D)
3397    --        /REFERENCES
3398    --
3399    --   By default, FIND will output only the information about the
3400    --   declaration, body or type completion of the entities. If this switch
3401    --   is set, the FIND will locate every reference to the entities in the
3402    --   files specified on the command line (or in every file in the search
3403    --   path if no file is given on the command line).
3404
3405    S_Find_Search  : aliased constant S := "/SEARCH=*"                      &
3406                                             "-I*";
3407    --        /SEARCH=(directory,...)
3408    --
3409    --   Equivalent to:
3410    --   /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3411
3412    S_Find_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
3413                                             "-aI*";
3414    --        /SOURCE_SEARCH=(directory,...)
3415    --
3416    --   When looking for source files also look in the specified directories.
3417    --   The order in which source file search is undertaken is the same as for
3418    --   MAKE.
3419
3420    S_Find_Types   : aliased constant S := "/TYPE_HIERARCHY "               &
3421                                             "-t";
3422    --        /NOTYPE_HIERARCHY (D)
3423    --        /TYPE_HIERARCHY
3424    --
3425    --   Output the type hierarchy for the specified type. It acts like the
3426    --   /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3427    --   to parent type. When this qualifier is specified it is not possible to
3428    --   specify more than one file.
3429
3430    Find_Switches : aliased constant Switches :=
3431      (S_Find_All     'Access,
3432       S_Find_Deriv   'Access,
3433       S_Find_Expr    'Access,
3434       S_Find_Ext     'Access,
3435       S_Find_Full    'Access,
3436       S_Find_Ignore  'Access,
3437       S_Find_Mess    'Access,
3438       S_Find_Nostinc 'Access,
3439       S_Find_Nostlib 'Access,
3440       S_Find_Object  'Access,
3441       S_Find_Print   'Access,
3442       S_Find_Project 'Access,
3443       S_Find_Prj     'Access,
3444       S_Find_Ref     'Access,
3445       S_Find_Search  'Access,
3446       S_Find_Source  'Access,
3447       S_Find_Types   'Access);
3448
3449    ------------------------------
3450    -- Switches for GNAT KRUNCH --
3451    ------------------------------
3452
3453    S_Krunch_Count  : aliased constant S := "/COUNT=#"                      &
3454                                             "`#";
3455    --        /COUNT=39 (D)
3456    --        /COUNT=nnn
3457    --
3458    --   Limit file names to nnn characters (where nnn is a decimal
3459    --   integer). The maximum file name length is 39, but if you want to
3460    --   generate a set of files that would be usable if ported to a system
3461    --   with some different maximum file length, then a different value can
3462    --   be specified.
3463
3464    Krunch_Switches : aliased constant Switches  :=
3465      (1 .. 1 => S_Krunch_Count  'Access);
3466
3467    ----------------------------
3468    -- Switches for GNAT LINK --
3469    ----------------------------
3470
3471    S_Link_Bind    : aliased constant S := "/BIND_FILE="                    &
3472                                             "ADA "                         &
3473                                                "-A "                       &
3474                                             "C "                           &
3475                                                "-C";
3476    --        /BIND_FILE=[bind-file-option]
3477    --
3478    --   Specifies the language of the binder generated file.
3479    --
3480    --        ADA (D)         Binder file is Ada.
3481    --
3482    --        C               Binder file is 'C'.
3483
3484    S_Link_Debug   : aliased constant S := "/DEBUG="                        &
3485                                             "ALL "                         &
3486                                                "-g3 "                      &
3487                                             "NONE "                        &
3488                                                "-g0 "                      &
3489                                             "TRACEBACK "                   &
3490                                                "-g1 "                      &
3491                                             "NOTRACEBACK "                 &
3492                                                "-g0";
3493    --        /NODEBUG (D)
3494    --        /DEBUG[=debug-option]
3495    --
3496    --   Specifies the amount of debugging information included. 'debug-option'
3497    --   is one of the following:
3498    --
3499    --        ALL (D)      Include full debugging information.
3500    --
3501    --        NONE         Provide no debugging information.  Same as /NODEBUG.
3502    --
3503    --        TRACEBACK    Provide sufficient debug information for a traceback.
3504    --
3505    --        NOTRACEBACK  Same as NONE.
3506
3507    S_Link_Nodebug : aliased constant S := "/NODEBUG "                      &
3508                                             "-g0";
3509    --  NODOC (see /DEBUG)
3510
3511    S_Link_Execut  : aliased constant S := "/EXECUTABLE=@"                  &
3512                                             "-o@";
3513    --        /EXECUTABLE=exec-name
3514    --
3515    --   'exec-name' specifies an alternative name for the generated executable
3516    --   program. If this qualifier switch is omitted, the executable is called
3517    --   the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3518    --   executable called TRY.EXE.
3519
3520    S_Link_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3521                                             "-X" & '"';
3522    --        /EXTERNAL_REFERENCE="name=val"
3523    --
3524    --   Specifies an external reference to the project manager. Useful only if
3525    --   /PROJECT_FILE is used.
3526    --
3527    --   Example:
3528    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3529
3530    S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"'             &
3531                                             "--for-linker=" & '"';
3532    --        /FOR_LINKER=<string>
3533    --
3534    --   Transmit the option <string> to the underlying linker.
3535
3536    S_Link_Force   : aliased constant S := "/FORCE_OBJECT_FILE_LIST "       &
3537                                             "-f";
3538    --        /NOFORCE_OBJECT_FILE_LIST (D)
3539    --        /FORCE_OBJECT_FILE_LIST
3540    --
3541    --   Forces the generation of a file that contains commands for the linker.
3542    --   This is useful in some cases to deal with special situations where the
3543    --   command line length is exceeded.
3544
3545    S_Link_Ident   : aliased constant S := "/IDENTIFICATION=" & '"'         &
3546                                             "--for-linker=IDENT="          &
3547                                             '"';
3548    --        /IDENTIFICATION="<string>"
3549    --
3550    --   "<string>" specifies the string to be stored in the image file ident-
3551    --   ification field in the image header. It overrides any pragma Ident
3552    --   specified string.
3553
3554    S_Link_Libdir  : aliased constant S := "/LIBDIR=*"                      &
3555                                             "-L*";
3556    --        /LIBDIR=(directory, ...)
3557    --
3558    --   Look for libraries in the specified directories.
3559
3560    S_Link_Library : aliased constant S := "/LIBRARY=|"                     &
3561                                             "-l|";
3562    --        /LYBRARY=xyz
3563    --
3564    --   Link with library named "xyz".
3565
3566    S_Link_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3567                                             "DEFAULT "                     &
3568                                                "-vP0 "                     &
3569                                             "MEDIUM "                      &
3570                                                "-vP1 "                     &
3571                                             "HIGH "                        &
3572                                                "-vP2";
3573    --        /MESSAGES_PROJECT_FILE[=messages-option]
3574    --
3575    --   Specifies the "verbosity" of the parsing of project files.
3576    --   messages-option may be one of the following:
3577    --
3578    --      DEFAULT (D)  No messages are output if there is no error or warning.
3579    --
3580    --      MEDIUM       A small number of messages are output.
3581    --
3582    --      HIGH         A great number of messages are output, most of them not
3583    --                   being useful for the user.
3584
3585    S_Link_Nocomp  : aliased constant S := "/NOCOMPILE "                    &
3586                                             "-n";
3587    --        /NOCOMPILE
3588    --
3589    --   Do not compile the file generated by the binder.
3590    --   This may be used when a link is rerun with different options,
3591    --   but there is no need to recompile the binder generated file.
3592
3593    S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC "               &
3594                                             "--for-linker=--noinhibit-exec";
3595    --        /NOINHIBIT-EXEC
3596    --
3597    --   Delete executable if there are errors or warnings.
3598
3599    S_Link_Nofiles : aliased constant S := "/NOSTART_FILES "                &
3600                                             "-nostartfiles";
3601    --        /NOSTART_FILES
3602    --
3603    --   Link in default image initialization and startup functions.
3604
3605    S_Link_Project : aliased constant S := "/PROJECT_FILE=<"                &
3606                                             "-P>";
3607    --        /PROJECT_FILE=filename
3608    --
3609    --   Specifies the main project file to be used. The project files rooted
3610    --   at the main project file will be parsed before the invocation of the
3611    --   linker.
3612    --   The source and object directories to be searched will be communicated
3613    --   to the linker through logical names ADA_PRJ_INCLUDE_FILE and
3614    --   ADA_PRJ_OBJECTS_FILE.
3615
3616    S_Link_Return  : aliased constant S := "/RETURN_CODES="                 &
3617                                             "POSIX "                       &
3618                                                "!-mvms-return-codes "      &
3619                                             "VMS "                         &
3620                                                "-mvms-return-codes";
3621    --        /RETURN_CODES=POSIX (D)
3622    --        /RETURN_CODES=VMS
3623    --
3624    --   Specifies the style of codes returned by
3625    --   Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
3626    --   and match the Bind qualifer with the same name.
3627    --
3628    --        POSIX (D)   Return Posix compatible exit codes.
3629    --
3630    --        VMS         Return VMS compatible exit codes. The value returned
3631    --                    is identically equal to the Set_Exit_Status parameter.
3632
3633    S_Link_Static  : aliased constant S := "/STATIC "                       &
3634                                             "--for-linker=-static";
3635    --        /NOSTATIC (D)
3636    --        /STATIC
3637    --
3638    --   Indicate to the linker that the link is static.
3639
3640    S_Link_Verb    : aliased constant S := "/VERBOSE "                      &
3641                                             "-v";
3642    --        /NOVERBOSE (D)
3643    --        /VERBOSE
3644    --
3645    --   Causes additional information to be output, including a full list of
3646    --   the included object files. This switch option is most useful when you
3647    --   want to see what set of object files are being used in the link step.
3648
3649    S_Link_ZZZZZ   : aliased constant S := "/<other> "                      &
3650                                             "--for-linker=";
3651    --        /<other>
3652    --
3653    --   Any other switch that will be transmited to the underlying linker.
3654
3655    Link_Switches : aliased constant Switches :=
3656      (S_Link_Bind    'Access,
3657       S_Link_Debug   'Access,
3658       S_Link_Nodebug 'Access,
3659       S_Link_Execut  'Access,
3660       S_Link_Ext     'Access,
3661       S_Link_Forlink 'Access,
3662       S_Link_Force   'Access,
3663       S_Link_Ident   'Access,
3664       S_Link_Libdir  'Access,
3665       S_Link_Library 'Access,
3666       S_Link_Mess    'Access,
3667       S_Link_Nocomp  'Access,
3668       S_Link_Nofiles 'Access,
3669       S_Link_Noinhib 'Access,
3670       S_Link_Project 'Access,
3671       S_Link_Return  'Access,
3672       S_Link_Static  'Access,
3673       S_Link_Verb    'Access,
3674       S_Link_ZZZZZ   'Access);
3675
3676    ----------------------------
3677    -- Switches for GNAT LIST --
3678    ----------------------------
3679
3680    S_List_All     : aliased constant S := "/ALL_UNITS "                    &
3681                                             "-a";
3682    --        /NOALL_UNITS (D)
3683    --        /ALL_UNITS
3684    --
3685    --   Consider all units, including those of the predefined Ada library.
3686    --   Especially useful with /DEPENDENCIES.
3687
3688    S_List_Allproj : aliased constant S := "/ALL_PROJECTS "                 &
3689                                             "-U";
3690    --        /NOALL_PROJECTS (D)
3691    --        /ALL_PROJECTS
3692    --
3693    --   When used with a project file and no file specified, indicate
3694    --   that gnatls should be called for all sources of all projects in
3695    --   the project tree.
3696
3697    S_List_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
3698                                             "!-I-";
3699    --        /CURRENT_DIRECTORY (D)
3700    --        /NOCURRENT_DIRECTORY
3701    --
3702    --   Look for source, library or object files in the default directory.
3703
3704    S_List_Depend  : aliased constant S := "/DEPENDENCIES "                 &
3705                                             "-d";
3706    --        /NODEPENDENCIES (D)
3707    --        /DEPENDENCIES
3708
3709    S_List_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3710                                             "-X" & '"';
3711    --        /EXTERNAL_REFERENCE="name=val"
3712    --
3713    --   Specifies an external reference to the project manager. Useful only if
3714    --   /PROJECT_FILE is used.
3715    --
3716    --   Example:
3717    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3718
3719    S_List_Files   : aliased constant S := "/FILES=@"                       &
3720                                             "-files=@";
3721    --        /FILES=filename
3722    --
3723    --   Take as arguments the files that are listed in the specified
3724    --   text file.
3725
3726    S_List_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3727                                             "DEFAULT "                     &
3728                                                "-vP0 "                     &
3729                                             "MEDIUM "                      &
3730                                                "-vP1 "                     &
3731                                             "HIGH "                        &
3732                                                "-vP2";
3733    --        /MESSAGES_PROJECT_FILE[=messages-option]
3734    --
3735    --   Specifies the "verbosity" of the parsing of project files.
3736    --   messages-option may be one of the following:
3737    --
3738    --      DEFAULT (D)  No messages are output if there is no error or warning.
3739    --
3740    --      MEDIUM       A small number of messages are output.
3741    --
3742    --      HIGH         A great number of messages are output, most of them not
3743    --                   being useful for the user.
3744
3745    S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
3746                                             "-nostdinc";
3747    --        /NOSTD_INCLUDES
3748    --
3749    --   Do not look for sources of the run time in the standard directory.
3750
3751    S_List_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
3752                                             "-aO*";
3753    --        /OBJECT_SEARCH=(directory,...)
3754    --
3755    --   When looking for library and object files look also in the specified
3756    --   directories.
3757
3758    S_List_Output  : aliased constant S := "/OUTPUT="                       &
3759                                             "SOURCES "                     &
3760                                                "-s "                       &
3761                                             "DEPEND "                      &
3762                                                "-d "                       &
3763                                             "OBJECTS "                     &
3764                                                "-o "                       &
3765                                             "UNITS "                       &
3766                                                "-u "                       &
3767                                             "OPTIONS "                     &
3768                                                "-h "                       &
3769                                             "VERBOSE "                     &
3770                                                "-v ";
3771    --        /OUTPUT=(option,option,...)
3772    --
3773    --        SOURCES (D)     Only output information about source files.
3774    --
3775    --        DEPEND          List sources from which specified units depend on.
3776    --
3777    --        OBJECTS         Only output information about object files.
3778    --
3779    --        UNITS           Only output information about compilation units.
3780    --
3781    --        OPTIONS         Output the list of options.
3782    --
3783    --        VERBOSE         Output the complete source and object paths.
3784    --                        Do not use the default column layout but instead
3785    --                        use long format giving as much as information
3786    --                        possible on each requested units, including
3787    --                        special characteristics.
3788
3789    S_List_Project : aliased constant S := "/PROJECT_FILE=<"                &
3790                                             "-P>";
3791    --        /PROJECT_FILE=filename
3792    --
3793    --   Specifies the main project file to be used. The project files rooted
3794    --   at the main project file will be parsed before doing any listing.
3795    --   The source and object directories to be searched will be communicated
3796    --   to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
3797    --   ADA_PRJ_OBJECTS_FILE.
3798
3799    S_List_Search  : aliased constant S := "/SEARCH=*"                      &
3800                                             "-I*";
3801    --        /SEARCH=(directory,...)
3802    --
3803    --   Search the specified directories for both source and object files.
3804
3805    S_List_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
3806                                             "-aI*";
3807    --        /SOURCE_SEARCH=(directory,...)
3808    --
3809    --   When looking for source files also look in the specified directories.
3810
3811    List_Switches : aliased constant Switches :=
3812      (S_List_All     'Access,
3813       S_List_Allproj 'Access,
3814       S_List_Current 'Access,
3815       S_List_Depend  'Access,
3816       S_List_Ext     'Access,
3817       S_List_Files   'Access,
3818       S_List_Mess    'Access,
3819       S_List_Nostinc 'Access,
3820       S_List_Object  'Access,
3821       S_List_Output  'Access,
3822       S_List_Project 'Access,
3823       S_List_Search  'Access,
3824       S_List_Source  'Access);
3825
3826    ----------------------------
3827    -- Switches for GNAT MAKE --
3828    ----------------------------
3829
3830    S_Make_Actions : aliased constant S := "/ACTIONS="                      &
3831                                             "COMPILE "                     &
3832                                                "-c "                       &
3833                                             "BIND "                        &
3834                                                "-b "                       &
3835                                             "LINK "                        &
3836                                                "-l ";
3837    --        /ACTIONS=(keyword[,...])
3838    --
3839    --  GNAT MAKE default behavior is to check if the sources are up to date,
3840    --  compile those sources that are not up to date, bind the main source,
3841    --  then link the executable.
3842    --
3843    --  With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
3844    --  two of these three steps:
3845    --
3846    --  o Compile
3847    --  o Bind
3848    --  o Link
3849    --
3850    --
3851    --   You may specify one or more of the following keywords to the /ACTIONS
3852    --   qualifier:
3853    --
3854    --   BIND            Bind only. Can be combined with /ACTIONS=COMPILE
3855    --                   to do compilation and binding, but no linking.
3856    --                   Can be combined with /ACTIONS=LINK to do binding and
3857    --                   linking. When not combined with /ACTIONS=COMPILE,
3858    --                   all the units in the closure of the main program must
3859    --                   have been previously compiled and must be up to date.
3860    --
3861    --   COMPILE         Compile only. Do not perform binding, except when
3862    --                   /ACTIONS=BIND is also specified. Do not perform
3863    --                   linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
3864    --                   are also specified.
3865    --
3866    --   LINK            Link only. Can be combined with /ACTIONS=BIND to do
3867    --                   binding and linking. Linking will not be performed
3868    --                   if combined with /ACTIONS=COMPILE but not with
3869    --                   /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
3870    --                   all the units in the closure of the main program must
3871    --                   have been previously compiled and must be up to date,
3872    --                   and the main program need to have been bound.
3873
3874    S_Make_All     : aliased constant S := "/ALL_FILES "                    &
3875                                             "-a";
3876    --        /NOALL_FILES (D)
3877    --        /ALL_FILES
3878    --
3879    --   Consider all files in the make process, even the GNAT internal system
3880    --   files (for example, the predefined Ada library files). By default,
3881    --   GNAT MAKE does not check these files (however, if there is an
3882    --   installation problem, it will be caught when GNAT MAKE binds your
3883    --   program). You may have to specify this qualifier if you are working on
3884    --   GNAT itself.  The vast majority of GNAT MAKE users never need to
3885    --   specify this switch.  All GNAT internal files with will be compiled
3886    --   with /STYLE_CHECK=GNAT.
3887
3888    S_Make_Allproj : aliased constant S := "/ALL_PROJECTS "                 &
3889                                             "-U";
3890    --        /NOALL_PROJECTS (D)
3891    --        /ALL_PROJECTS
3892    --
3893    --   Implies /Unique.
3894    --   When used without project files, it is equivalent to /UNIQUE.
3895    --   When used with a project file with no main (neither on the command
3896    --   line nor in the attribute Main) check every source of every project,
3897    --   recompile all sources that are not up to date and rebuild libraries
3898    --   if necessary.
3899
3900    S_Make_Bind    : aliased constant S := "/BINDER_QUALIFIERS=?"           &
3901                                             "-bargs BIND";
3902    --        /BINDER_QUALIFIERS
3903    --
3904    --   Any qualifiers specified after this qualifier other than
3905    --   /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3906    --   passed to any GNAT BIND commands generated by GNAT MAKE.
3907
3908    S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT "         &
3909                                             "-B";
3910    --        /BND_LNK_FULL_PROJECT
3911    --
3912    --   Bind and link all sources of a project, without any consideration
3913    --   to attribute Main, if there is one. This qualifier need to be
3914    --   used in conjunction with the /PROJECT_FILE= qualifier and cannot
3915    --   be used with a main subprogram on the command line or for
3916    --   a library project file. As the binder is invoked with the option
3917    --   meaning "No Ada main subprogram", the user must ensure that the
3918    --   proper options are specified to the linker. This qualifier is
3919    --   normally used when the main subprogram is in a foreign language
3920    --   such as C.
3921
3922    S_Make_Comp    : aliased constant S := "/COMPILER_QUALIFIERS=?"         &
3923                                             "-cargs COMPILE";
3924    --        /COMPILER_QUALIFIERS
3925    --
3926    --   Any qualifiers specified after this qualifier other than
3927    --   /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3928    --   passed to any GNAT COMPILE commands generated by GNAT MAKE.
3929
3930    S_Make_Cond    : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*"   &
3931                                             "-A*";
3932    --        /CONDITIONAL_SOURCE_SEARCH=dir
3933    --
3934    --   Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
3935
3936    S_Make_Cont    : aliased constant S := "/CONTINUE_ON_ERROR "            &
3937                                             "-k";
3938    --        /NOCONTINUE_ON_ERROR (D)
3939    --        /CONTINUE_ON_ERROR
3940    --
3941    --   Keep going. Continue as much as possible after a compilation error.
3942    --   To ease the programmer's task in case of compilation errors, the list
3943    --   of sources for which the compile fails is given when GNAT MAKE
3944    --   terminates.
3945
3946    S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
3947                                             "!-I-";
3948    --        /CURRENT_DIRECTORY (D)
3949    --        /NOCURRENT_DIRECTORY
3950    --
3951    --   Look for source, library or object files in the default directory.
3952
3953    S_Make_Dep     : aliased constant S := "/DEPENDENCIES_LIST "            &
3954                                             "-M";
3955    --        /NODEPENDENCIES_LIST (D)
3956    --        /DEPENDENCIES_LIST
3957    --
3958    --   Check if all objects are up to date. If they are, output the object
3959    --   dependences to SYS$OUTPUT in a form that can be directly exploited in
3960    --   a Unix-style Makefile. By default, each source file is prefixed with
3961    --   its (relative or absolute) directory name. This name is whatever you
3962    --   specified in the various /SOURCE_SEARCH and /SEARCH qualifiers.  If
3963    --   you also speficy the /QUIET qualifier, only the source file names,
3964    --   without relative paths, are output. If you just specify the
3965    --   /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
3966    --   files are omitted.  This is typically what you want. If you also
3967    --   specify the /ALL_FILES qualifier, dependencies of the GNAT internal
3968    --   files are also listed. Note that dependencies of the objects in
3969    --   external Ada libraries (see the /SKIP_MISSING qualifier) are never
3970    --   reported.
3971
3972    S_Make_Dirobj  : aliased constant S := "/DIRECTORY_OBJECTS=@"           &
3973                                             "-D@";
3974    --        /DIRECTORY_OBJECTS=<file>
3975    --
3976    --   Put all object files and .ALI files in <file>.
3977    --   This qualifier is not compatible with /PROJECT_FILE.
3978
3979    S_Make_Doobj   : aliased constant S := "/DO_OBJECT_CHECK "              &
3980                                             "-n";
3981    --        /NODO_OBJECT_CHECK (D)
3982    --        /DO_OBJECT_CHECK
3983    --
3984    --   Don't compile, bind, or link. Output a single command that will
3985    --   recompile an out of date unit, if any. Repeated use of this option,
3986    --   followed by carrying out the indicated compilation, will eventually
3987    --   result in recompiling all required units.
3988    --
3989    --   If any ALI is missing during the process, GNAT MAKE halts and
3990    --   displays an error message.
3991
3992    S_Make_Execut  : aliased constant S := "/EXECUTABLE=@"                  &
3993                                             "-o@";
3994    --        /EXECUTABLE=exec-name
3995    --
3996    --   The name of the final executable program will be 'exec_name'. If this
3997    --   qualifier is omitted the default name for the executable will be the
3998    --   name of the input file with an EXE filetype.  You may prefix
3999    --   'exec_name' with a relative or absolute directory path.
4000
4001    S_Make_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
4002                                             "-X" & '"';
4003    --        /EXTERNAL_REFERENCE="name=val"
4004    --
4005    --   Specifies an external reference to the project manager. Useful only if
4006    --   /PROJECT_FILE is used.
4007    --
4008    --   Example:
4009    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
4010
4011    S_Make_Force   : aliased constant S := "/FORCE_COMPILE "                &
4012                                             "-f";
4013    --        /NOFORCE_COMPILE (D)
4014    --        /FORCE_COMPILE
4015    --
4016    --   Force recompilations. Recompile all sources, even though some object
4017    --   files may be up to date, but don't recompile predefined or GNAT
4018    --   internal files unless the /ALL_FILES qualfier is also specified.
4019
4020    S_Make_Full    : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES "  &
4021                                             "-F";
4022    --        /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4023    --        /FULL_PATH_IN_BRIEF_MESSAGES
4024    --
4025    --   When using project files, if some errors or warnings are detected
4026    --   during parsing and verbose mode is not in effect (no use of qualifier
4027    --   /VERBOSE), then error lines start with the full path name of the
4028    --   project file, rather than its simple file name.
4029
4030    S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY "               &
4031                                           "-vh";
4032    --        /NOHIGH_VERBOSITY (D)
4033    --        /HIGH_VERBOSITY
4034    --
4035    --   Displays the reason for all recompilations GNAT MAKE decides are
4036    --   necessary, in high verbosity. Equivalent to /VERBOSE.
4037
4038    S_Make_Inplace : aliased constant S := "/IN_PLACE "                     &
4039                                             "-i";
4040    --        /NOIN_PLACE (D)
4041    --        /IN_PLACE
4042    --
4043    --   In normal mode, GNAT MAKE compiles all object files and ALI files
4044    --   into the current directory. If the /IN_PLACE switch is used,
4045    --   then instead object files and ALI files that already exist are over-
4046    --   written in place. This means that once a large project is organized
4047    --   into separate directories in the desired manner, then GNAT MAKE will
4048    --   automatically maintain and update this organization. If no ALI files
4049    --   are found on the Ada object path, the new object and ALI files are
4050    --   created in the directory containing the source being compiled.
4051
4052    S_Make_Index   : aliased constant S := "/SOURCE_INDEX=#"               &
4053                                              "-eI#";
4054    --        /SOURCE_INDEX=nnn
4055    --
4056    --   Specifies the index of the units in the source file
4057    --   By default, source files are mono-unit and there is no index
4058    --   When /SOURCE_INDEX=nnn is specified, only one main may be specified
4059    --   on the command line.
4060
4061    S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*"              &
4062                                             "-L*";
4063    --        /LIBRARY_SEARCH=(directory[,...])
4064    --
4065    --   Add the specified directories to the list of directories in which the
4066    --   linker will search for libraries.
4067
4068    S_Make_Link    : aliased constant S := "/LINKER_QUALIFIERS=?"           &
4069                                             "-largs LINK";
4070    --        /LINKER_QUALIFIERS
4071    --
4072    --   Any qualifiers specified after this qualifier other than
4073    --   /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4074    --   passed to any GNAT LINK commands generated by GNAT LINK.
4075
4076    S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY "               &
4077                                            "-vl";
4078    --        /NOLOW_VERBOSITY (D)
4079    --        /LOW_VERBOSITY
4080    --
4081    --   Displays the reason for all recompilations GNAT MAKE decides are
4082    --   necessary, in low verbosity, that is with less output than
4083    --   /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4084
4085    S_Make_Make    : aliased constant S := "/MAKE_QUALIFIERS=?"             &
4086                                             "-margs MAKE";
4087    --        /MAKE_QUALIFIERS
4088    --
4089    --   Any qualifiers specified after this qualifier other than
4090    --   /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4091    --   are for the benefit of GNAT MAKE itself.
4092
4093    S_Make_Mapping : aliased constant S := "/MAPPING "                      &
4094                                             "-C";
4095    --        /NOMAPPING (D)
4096    --        /MAPPING
4097    --
4098    --   Use a mapping file.  A mapping file is a way to communicate to the
4099    --   compiler two mappings: from unit names to file names (without any
4100    --   directory information) and from file names to path names (with full
4101    --   directory information). These mappings are used by the compiler to
4102    --   short-circuit the path search. When GNAT MAKE is invoked with this
4103    --   qualifier, it will create a mapping file, initially populated by the
4104    --   project manager, if /PROJECT_File= is used, otherwise initially empty.
4105    --   Each invocation of the compiler will add the newly accessed sources to
4106    --   the mapping file. This will improve the source search during the next
4107    --   invocations of the compiler
4108
4109    S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY "            &
4110                                            "-vm";
4111    --        /NOMEDIUM_VERBOSITY (D)
4112    --        /MEDIUM_VERBOSITY
4113    --
4114    --   Displays the reason for all recompilations GNAT MAKE decides are
4115    --   necessary, in medium verbosity, that is with potentially less output
4116    --   than /HIGH_VERBOSITY or /VERBOSE.
4117
4118    S_Make_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
4119                                             "DEFAULT "                     &
4120                                                "-vP0 "                     &
4121                                             "MEDIUM "                      &
4122                                                "-vP1 "                     &
4123                                             "HIGH "                        &
4124                                                "-vP2";
4125    --        /MESSAGES_PROJECT_FILE[=messages-option]
4126    --
4127    --   Specifies the "verbosity" of the parsing of project files.
4128    --   messages-option may be one of the following:
4129    --
4130    --      DEFAULT (D)  No messages are output if there is no error or warning.
4131    --
4132    --      MEDIUM       A small number of messages are output.
4133    --
4134    --      HIGH         A great number of messages are output, most of them not
4135    --                   being useful for the user.
4136
4137    S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION "        &
4138                                             "-m";
4139    --        /NOMINIMAL_RECOMPILATION (D)
4140    --        /MINIMAL_RECOMPILATION
4141    --
4142    --   Specifies that the minimum necessary amount of recompilation
4143    --   be performed. In this mode GNAT MAKE ignores time stamp differences
4144    --   when the only modifications to a source file consist in
4145    --   adding/removing comments, empty lines, spaces or tabs.
4146
4147    S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS "          &
4148                                             "-p";
4149    --        /NOCREATE_MISSING_DIRS (D)
4150    --        /CREATE_MISSING_DIRS
4151    --
4152    --   When an object directory, a library directory or an exec directory
4153    --   in missing, attempt to create the directory.
4154
4155    S_Make_Nolink  : aliased constant S := "/NOLINK "                       &
4156                                             "-c";
4157    --        /NOLINK
4158    --
4159    --   Compile only. Do not perform binding and linking. If the root unit is
4160    --   not a main unit, this is the default.  Otherwise GNAT MAKE will
4161    --   attempt binding and linking unless all objects are up to date and the
4162    --   executable is more recent than the objects.
4163    --   This is equivalent to /ACTIONS=COMPILE
4164
4165    S_Make_Nomain  : aliased constant S := "/NOMAIN "                       &
4166                                             "-z";
4167    --        /NOMAIN
4168    --
4169    --   No main subprogram. Bind and link the program even if the unit name
4170    --   given on the command line is a package name. The resulting executable
4171    --   will execute the elaboration routines of the package and its closure,
4172    --   then the finalization routines.
4173
4174    S_Make_Nonpro  : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4175                                             "-x";
4176    --        /NON_PROJECT_UNIT_COMPILATION
4177    --
4178    --    Normally, when using project files, a unit that is not part of any
4179    --    project file, cannot be compile. These units may be compile, when
4180    --    needed, if this qualifier is specified.
4181
4182    S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
4183                                             "-nostdinc";
4184    --        /NOSTD_INCLUDES
4185    --
4186    --    Do not look for sources the in the system default directory.
4187
4188    S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
4189                                             "-nostdlib";
4190    --        /NOSTD_LIBRARIES
4191    --
4192    --    Do not look for library files in the system default directory.
4193
4194    S_Make_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
4195                                             "-aO*";
4196    --        /OBJECT_SEARCH=(directory[,...])
4197    --
4198    --   When looking for library and object files look also in the specified
4199    --   directories.
4200
4201    S_Make_Proc    : aliased constant S := "/PROCESSES=#"                   &
4202                                             "-j#";
4203    --        /NOPROCESSES (D)
4204    --        /PROCESSES=NNN
4205    --
4206    --   Use NNN processes to carry out the (re)complations. If you have a
4207    --   multiprocessor machine, compilations will occur in parallel.  In the
4208    --   event of compilation errors, messages from various compilations might
4209    --   get interspersed (but GNAT MAKE will give you the full ordered list of
4210    --   failing compiles at the end). This can at times be annoying.  To get a
4211    --   clean list of error messages don't use this qualifier.
4212
4213    S_Make_Nojobs  : aliased constant S := "/NOPROCESSES "                  &
4214                                             "-j1";
4215    --  NODOC (see /PROCESS)
4216
4217    S_Make_Project : aliased constant S := "/PROJECT_FILE=<"                &
4218                                             "-P>";
4219    --        /PROJECT_FILE=filename
4220    --
4221    --   Specifies the main project file to be used. The project files rooted
4222    --   at the main project file will be parsed before any other processing to
4223    --   set the building environment.
4224
4225    S_Make_Quiet   : aliased constant S := "/QUIET "                        &
4226                                             "-q";
4227    --        /NOQUIET (D)
4228    --        /QUIET
4229    --
4230    --   When this qualifiers is specified, the commands carried out by GNAT
4231    --   MAKE are not displayed.
4232
4233    S_Make_Reason  : aliased constant S := "/REASONS "                      &
4234                                             "-v";
4235    --        /NOREASONS (D)
4236    --        /REASONS
4237    --
4238    --   Displays the reason for all recompilations GNAT MAKE decides are
4239    --   necessary.
4240
4241    S_Make_RTS     : aliased constant S := "/RUNTIME_SYSTEM=|"              &
4242                                             "--RTS=|";
4243    --        /RUNTIME_SYSTEM=xxx
4244    --
4245    --    Build against an alternate runtime system named xxx or RTS-xxx.
4246
4247    S_Make_Search  : aliased constant S := "/SEARCH=*"                      &
4248                                             "-I*";
4249    --        /SEARCH=(directory[,...])
4250    --
4251    --   Search the specified directories for both source and object files.
4252
4253    S_Make_Skip    : aliased constant S := "/SKIP_MISSING=*"                &
4254                                             "-aL*";
4255    --        /SKIP_MISSING=(directory[,...])
4256    --
4257    --   Skip missing library sources if ALI in 'directory'.
4258
4259    S_Make_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
4260                                             "-aI*";
4261    --        /SOURCE_SEARCH=(directory[,...])
4262    --
4263    --   When looking for source files also look in the specified directories.
4264
4265    S_Make_Stand   : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
4266                                             "-eS";
4267    --        /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
4268    --        /STANDARD_OUTPUT_FOR_COMMANDS
4269    --
4270    --   Output the commands for the compiler, the binder and the linker
4271    --   on SYS$OUTPUT, instead of SYS$ERROR.
4272
4273    S_Make_Switch  : aliased constant S := "/SWITCH_CHECK "                 &
4274                                             "-s";
4275    --        /NOSWITCH_CHECK (D)
4276    --        /SWITCH_CHECK
4277    --
4278    --   Recompile if compiler switches have changed since last compilation.
4279    --   All compiler switches but -I and -o are taken into account in the
4280    --   following way: orders between different "first letter" switches are
4281    --   ignored, but orders between same switches are taken into account.
4282    --   For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4283    --   to -O -g.
4284
4285    S_Make_Unique  : aliased constant S := "/UNIQUE "                       &
4286                                             "-u";
4287    --        /NOUNIQUE (D)
4288    --        /UNIQUE
4289    --
4290    --  Recompile at most the main file. It implies /ACTIONS=COMPILE.
4291    --  Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4292    --  directly.
4293
4294    S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@"            &
4295                                             "-C=@";
4296    --        /USE_MAPPING_FILE=file_name
4297    --
4298    --   Use a specific mapping file. The file 'file_name', specified as a path
4299    --   name (absolute or relative) by this qualifier, should already exist,
4300    --   otherwise the qualifier is ineffective. The specified mapping file
4301    --   will be communicated to the compiler. This switch is not compatible
4302    --   with a project file (/PROJECT_FILE=) or with multiple compiling
4303    --   processes (/PROCESSES=nnn, when nnn is greater than 1).
4304
4305    S_Make_Verbose : aliased constant S := "/VERBOSE "                      &
4306                                             "-v";
4307    --        /NOVERBOSE (D)
4308    --        /VERBOSE
4309    --
4310    --   Displays the reason for all recompilations GNAT MAKE decides are
4311    --   necessary.
4312
4313    Make_Switches : aliased constant Switches :=
4314      (S_Make_Actions 'Access,
4315       S_Make_All     'Access,
4316       S_Make_Allproj 'Access,
4317       S_Make_Bind    'Access,
4318       S_Make_Comp    'Access,
4319       S_Make_Cond    'Access,
4320       S_Make_Cont    'Access,
4321       S_Make_Current 'Access,
4322       S_Make_Dep     'Access,
4323       S_Make_Dirobj  'Access,
4324       S_Make_Doobj   'Access,
4325       S_Make_Execut  'Access,
4326       S_Make_Ext     'Access,
4327       S_Make_Force   'Access,
4328       S_Make_Full    'Access,
4329       S_Make_Hi_Verb 'Access,
4330       S_Make_Inplace 'Access,
4331       S_Make_Index   'Access,
4332       S_Make_Library 'Access,
4333       S_Make_Link    'Access,
4334       S_Make_Low_Verb'Access,
4335       S_Make_Make    'Access,
4336       S_Make_Mapping 'Access,
4337       S_Make_Med_Verb'Access,
4338       S_Make_Mess    'Access,
4339       S_Make_Minimal 'Access,
4340       S_Make_Missing 'Access,
4341       S_Make_Nolink  'Access,
4342       S_Make_Nomain  'Access,
4343       S_Make_Nonpro  'Access,
4344       S_Make_Nostinc 'Access,
4345       S_Make_Nostlib 'Access,
4346       S_Make_Object  'Access,
4347       S_Make_Proc    'Access,
4348       S_Make_Nojobs  'Access,
4349       S_Make_Project 'Access,
4350       S_Make_Quiet   'Access,
4351       S_Make_Reason  'Access,
4352       S_Make_RTS     'Access,
4353       S_Make_Search  'Access,
4354       S_Make_Skip    'Access,
4355       S_Make_Source  'Access,
4356       S_Make_Stand   'Access,
4357       S_Make_Switch  'Access,
4358       S_Make_Unique  'Access,
4359       S_Make_Use_Map 'Access,
4360       S_Make_Verbose 'Access);
4361
4362    ------------------------------
4363    -- Switches for GNAT METRIC --
4364    ------------------------------
4365
4366    S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS "              &
4367                                                "-U";
4368    --        /NOALL_PROJECTS (D)
4369    --        /ALL_PROJECTS
4370    --   When GNAT METRIC is used with a Project File and no source is
4371    --   specified, the underlying tool gnatmetric is called for all the
4372    --   sources of all the Project Files in the project tree.
4373
4374    S_Metric_Debug    : aliased constant S := "/DEBUG_OUTPUT "               &
4375                                              "-dv";
4376    --      /DEBUG_OUTPUT
4377    --
4378    --   Generate the debug information
4379
4380    S_Metric_Direct   : aliased constant S := "/DIRECTORY=@"                 &
4381                                              "-d=@";
4382    --      /DIRECTORY=pathname
4383    --
4384    --   Put the files with detailed metric information into the specified
4385    --   directory
4386
4387    S_Metric_Element : aliased constant S := "/ELEMENT_METRICS="             &
4388                                              "ALL "                         &
4389                                               "!-ed,!-es,!-enl,!-eps,"      &
4390                                               "!-eas,!-ept,!-eat,!-enu,"    &
4391                                               "!-ec "                       &
4392                                              "DECLARATION_TOTAL "           &
4393                                               "-ed "                        &
4394                                              "STATEMENT_TOTAL "             &
4395                                               "-es "                        &
4396                                              "LOOP_NESTING_MAX "            &
4397                                               "-enl "                       &
4398                                              "INT_SUBPROGRAMS "             &
4399                                               "-eps "                       &
4400                                              "SUBPROGRAMS_ALL "             &
4401                                               "-eas "                       &
4402                                              "INT_TYPES "                   &
4403                                               "-ept "                       &
4404                                              "TYPES_ALL "                   &
4405                                               "-eat "                       &
4406                                              "PROGRAM_NESTING_MAX "         &
4407                                               "-enu "                       &
4408                                              "CONSTRUCT_NESTING_MAX "       &
4409                                               "-ec";
4410    --       /ELEMENT_METRICS=(option, option ...)
4411    --
4412    --   Specifies the element metrics to be computed (if not set, all the
4413    --   element metrics are set on, otherwise only specified metrics are
4414    --   computed and reported)
4415    --
4416    --   option may be one of the following:
4417    --
4418    --     ALL (D)               All the element metrics are computed
4419    --     DECLARATION_TOTAL     Compute the total number of declarations
4420    --     STATEMENT_TOTAL       Compute the total number of statements
4421    --     LOOP_NESTING_MAX      Compute the maximal loop nesting level
4422    --     INT_SUBPROGRAMS       Compute the number of interface subprograms
4423    --     SUBPROGRAMS_ALL       Compute the number of all the subprograms
4424    --     INT_TYPES             Compute the number of interface types
4425    --     TYPES_ALL             Compute the number of all the types
4426    --     PROGRAM_NESTING_MAX   Compute the maximal program unit nesting level
4427    --
4428    --   All combinations of element metrics options are allowed.
4429
4430    S_Metric_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'    &
4431                                              "-X" & '"';
4432    --       /EXTERNAL_REFERENCE="name=val"
4433    --
4434    --   Specifies an external reference to the project manager. Useful only if
4435    --   /PROJECT_FILE is used.
4436    --
4437    --   Example:
4438    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
4439
4440    S_Metric_Files   : aliased constant S := "/FILES=@"                 &
4441                                              "-files=@";
4442    --      /FILES=filename
4443    --
4444    --   Take as arguments the files that are listed in the specified
4445    --   text file.
4446
4447    S_Metric_Format  : aliased constant S := "/FORMAT_OUTPUT="               &
4448                                              "DEFAULT "                     &
4449                                               "!-x,!-nt,!-sfn "             &
4450                                              "XML "                         &
4451                                               "-x "                         &
4452                                              "NO_TEXT "                     &
4453                                               "-nt "                        &
4454                                              "SHORT_SOURCE_FILE_NAME "      &
4455                                               "-sfn";
4456    --       /FORMAT_OUTPUT=(option, option ...)
4457    --
4458    --   Specifies the details of the tool output
4459    --
4460    --   option may be one of the following:
4461    --
4462    --     DEFAULT (D)             Generate the text output only, use full
4463    --                             argument source names in global information
4464    --     XML                     Generate the output in XML format
4465    --     NO_TEXT                 Do not generate the text output (implies XML)
4466    --     SHORT_SOURCE_FILE_NAME  Use short argument source names in output
4467
4468    S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@"              &
4469                                              "-og@";
4470    --        /GLOBAL_OUTPUT=filename
4471    --
4472    --   Put the textual global metric information into the specified file
4473
4474    S_Metric_Line     : aliased constant S := "/LINE_METRICS="               &
4475                                                 "ALL "                      &
4476                                                  "!-la,!-lcode,!-lcomm,"    &
4477                                                  "!-leol,!-lb "             &
4478                                                 "LINES_ALL "                &
4479                                                  "-la "                     &
4480                                                 "CODE_LINES "               &
4481                                                  "-lcode "                  &
4482                                                 "COMENT_LINES "             &
4483                                                  "-lcomm "                  &
4484                                                 "MIXED_CODE_COMMENTS "      &
4485                                                  "-leol "                   &
4486                                                 "BLANK_LINES "              &
4487                                                  "-lb ";
4488    --      /LINE_METRICS=(option, option ...)
4489
4490    --   Specifies the line metrics to be computed (if not set, all the line
4491    --   metrics are set on, otherwise only specified metrics are computed and
4492    --   reported)
4493    --
4494    --   option may be one of the following:
4495    --
4496    --     ALL (D)              All the line metrics are computed
4497    --     LINES_ALL            All lines are computed
4498    --     CODE_LINES           Lines with Ada code are computed
4499    --     COMENT_LINES         All comment lines are computed
4500    --     MIXED_CODE_COMMENTS  All lines containing both code and comment are
4501    --                          computed
4502    --     BLANK_LINES          Blank lines are computed
4503    --
4504    --   All combinations of line metrics options are allowed.
4505
4506    S_Metric_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="       &
4507                                              "DEFAULT "                     &
4508                                                 "-vP0 "                     &
4509                                              "MEDIUM "                      &
4510                                                 "-vP1 "                     &
4511                                              "HIGH "                        &
4512                                                 "-vP2";
4513    --        /MESSAGES_PROJECT_FILE[=messages-option]
4514    --
4515    --   Specifies the "verbosity" of the parsing of project files.
4516    --   messages-option may be one of the following:
4517    --
4518    --      DEFAULT (D)  No messages are output if there is no error or warning.
4519    --
4520    --      MEDIUM       A small number of messages are output.
4521    --
4522    --      HIGH         A great number of messages are output, most of them not
4523    --                   being useful for the user.
4524
4525    S_Metric_Project : aliased constant S := "/PROJECT_FILE=<"               &
4526                                              "-P>";
4527    --        /PROJECT_FILE=filename
4528    --
4529    --   Specifies the main project file to be used. The project files rooted
4530    --   at the main project file will be parsed before the invocation of the
4531    --   binder.
4532
4533    S_Metric_Quiet    : aliased constant S := "/QUIET "                      &
4534                                              "-q";
4535    --        /NOQUIET (D)
4536    --        /QUIET
4537    --
4538    --   Quiet mode: by default GNAT METRIC outputs to the standard error stream
4539    --   the number of program units left to be processed. This option turns
4540    --   this trace off.
4541
4542    S_Metric_Suffix  : aliased constant S := "/SUFFIX_DETAILS=" & '"'        &
4543                                              "-o" & '"';
4544    --        /SUFFIX_DETAILS=suffix
4545    --
4546    --   Use the given suffix as the suffix for the name of the file to place
4547    --   the detailed metrics into.
4548
4549    S_Metric_Suppress : aliased constant S :=  "/SUPPRESS="                  &
4550                                                "NOTHING "                   &
4551                                                 "!-nocc,!-noec,!-nonl,"     &
4552                                                 "!-ne,!-nolocal "           &
4553                                                "CYCLOMATIC_COMPLEXITY "     &
4554                                                 "-nocc "                    &
4555                                                "ESSENTIAL_COMPLEXITY "      &
4556                                                 "-noec "                    &
4557                                                "MAXIMAL_LOOP_NESTING "      &
4558                                                 "-nonl "                    &
4559                                                "EXITS_AS_GOTOS "            &
4560                                                 "-ne "                      &
4561                                                "LOCAL_DETAILS "             &
4562                                                 "-nolocal ";
4563    --      /SUPPRESS=(option, option ...)
4564    --
4565    --   Specifies the metric that should not be computed
4566    --
4567    --   option may be one of the following:
4568    --
4569    --     NOTHING (D)             Do not suppress computation of any metric
4570    --     CYCLOMATIC_COMPLEXITY   Do not compute the Cyclomatic Complexity
4571    --     ESSENTIAL_COMPLEXITY    Do not compute the Essential Complexity
4572    --     MAXIMAL_LOOP_NESTING    Do not compute the maximal loop nesting
4573    --     EXITS_AS_GOTOS          Do not count EXIT statements as GOTOs when
4574    --                             computing the  Essential Complexity
4575    --     LOCAL_DETAILS           Do not compute the detailed metrics for local
4576    --                             program units
4577    --
4578    --   All combinations of options are allowed.
4579
4580    S_Metric_Verbose  : aliased constant S := "/VERBOSE "                    &
4581                                              "-v";
4582    --        /NOVERBOSE (D)
4583    --        /VERBOSE
4584    --
4585    --   Verbose mode.
4586
4587    S_Metric_XMLout  : aliased constant S := "/XML_OUTPUT=@"                 &
4588                                              "-ox@";
4589    --        /XML_OUTPUT=filename
4590    --
4591    --   Place the XML output into the specified file
4592
4593    Metric_Switches : aliased constant Switches :=
4594      (S_Metric_All_Prjs 'Access,
4595       S_Metric_Debug    'Access,
4596       S_Metric_Direct   'Access,
4597       S_Metric_Element  'Access,
4598       S_Metric_Ext      'Access,
4599       S_Metric_Files    'Access,
4600       S_Metric_Format   'Access,
4601       S_Metric_Globout  'Access,
4602       S_Metric_Line     'Access,
4603       S_Metric_Mess     'Access,
4604       S_Metric_Project  'Access,
4605       S_Metric_Quiet    'Access,
4606       S_Metric_Suffix   'Access,
4607       S_Metric_Suppress 'Access,
4608       S_Metric_Verbose  'Access,
4609       S_Metric_XMLout   'Access);
4610
4611    ----------------------------
4612    -- Switches for GNAT NAME --
4613    ----------------------------
4614
4615    S_Name_Conf    : aliased constant S := "/CONFIG_FILE=<"                 &
4616                                             "-c>";
4617    --        /CONFIG_FILE=path_name
4618    --
4619    --   Create a configuration pragmas file 'path_name' (instead of the default
4620    --   'gnat.adc'). 'path_name' may include directory information. 'path_name'
4621    --   must be writable. There may be only one qualifier /CONFIG_FILE.
4622    --   This qualifier is not compatible with qualifier /PROJECT_FILE.
4623
4624    S_Name_Dirs    : aliased constant S := "/SOURCE_DIRS=*"                 &
4625                                             "-d*";
4626    --        /SOURCE_DIRS=(directory, ...)
4627    --
4628    --   Look for source files in the specified directories. When this qualifier
4629    --   is specified, the current working directory will not be searched for
4630    --   source files, unless it is explicitly specified with a qualifier
4631    --   /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
4632    --   specified. If a directory is specified as a relative path, it is
4633    --   relative to the directory of the configuration pragmas file specified
4634    --   with qualifier /CONFIG_FILE, or to the directory of the project file
4635    --   specified with qualifier /PROJECT_FILE or, if neither qualifier
4636    --   /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
4637    --   to the current working directory. The directories specified with
4638    --   qualifiers /SOURCE_DIRS must exist and be readable.
4639
4640    S_Name_Dfile   : aliased constant S := "/DIRS_FILE=<"                   &
4641                                             "-D>";
4642    --        /DIRS_FILE=file_name
4643    --
4644    --   Look for source files in all directories listed in text file
4645    --   'file_name'. 'file_name' must be an existing, readable text file.
4646    --   Each non empty line in the specified file must be a directory.
4647    --   Specifying qualifier /DIRS_FILE is equivalent to specifying as many
4648    --   qualifiers /SOURCE_DIRS as there are non empty lines in the specified
4649    --   text file.
4650
4651    S_Name_Frng    : aliased constant S := "/FOREIGN_PATTERN=" & '"'        &
4652                                             "-f" & '"';
4653    --        /FOREIGN_PATTERN=<string>
4654    --
4655    --   Specify a foreign pattern.
4656    --   Using this qualifier, it is possible to add sources of languages other
4657    --   than Ada to the list of sources of a project file. It is only useful
4658    --   if a qualifier /PROJECT_FILE is used. For example,
4659    --
4660    --   GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
4661    --
4662    --   will look for Ada units in all files with the '.ADA' extension, and
4663    --   will add to the list of file for project PRJ.GPR the C files with
4664    --   extension ".C".
4665
4666    S_Name_Help    : aliased constant S := "/HELP "                         &
4667                                             "-h";
4668    --        /NOHELP (D)
4669    --        /HELP
4670    --
4671    --   Output usage information to the standard output stream.
4672
4673    S_Name_Proj    : aliased constant S := "/PROJECT_FILE=<"                &
4674                                             "-P>";
4675    --        /PROJECT_FILE=file_name
4676    --
4677    --   Create or update a project file. 'file_name' may include directory
4678    --   information. The specified file must be writable. There may be only
4679    --   one qualifier /PROJECT_FILE. When a qualifier /PROJECT_DILE is
4680    --   specified, no qualifier /CONFIG_FILE may be specified.
4681
4682    S_Name_Verbose : aliased constant S := "/VERBOSE "                      &
4683                                             "-v";
4684    --        /NOVERBOSE (D)
4685    --        /VERBOSE
4686    --
4687    --   Verbose mode. Output detailed explanation of behavior to the standard
4688    --   output stream. This includes name of the file written, the name of the
4689    --   directories to search and, for each file in those directories whose
4690    --   name matches at least one of the Naming Patterns, an indication of
4691    --   whether the file contains a unit, and if so the name of the unit.
4692
4693    S_Name_Excl    : aliased constant S := "/EXCLUDED_PATTERN=" & '"'       &
4694                                             "-x" & '"';
4695    --      /EXCLUDED_PATTERN=<string>
4696    --
4697    --   Specify an excluded pattern.
4698    --   Using this qualifier, it is possible to exclude some files that would
4699    --   match the Naming patterns. For example,
4700    --
4701    --   GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
4702    --
4703    --   will look for Ada units in all files with the '.ADA' extension, except
4704    --   those whose names end with '_NT.ADA'.
4705
4706    Name_Switches : aliased constant Switches :=
4707      (S_Name_Conf         'Access,
4708       S_Name_Dirs         'Access,
4709       S_Name_Dfile        'Access,
4710       S_Name_Frng         'Access,
4711       S_Name_Help         'Access,
4712       S_Name_Proj         'Access,
4713       S_Name_Verbose      'Access,
4714       S_Name_Excl         'Access);
4715
4716    ----------------------------------
4717    -- Switches for GNAT PREPROCESS --
4718    ----------------------------------
4719
4720    S_Prep_Assoc   : aliased constant S := "/ASSOCIATE=" & '"'              &
4721                                             "-D" & '"';
4722    --        /ASSOCIATE="name=val"
4723    --
4724    --   Defines a new symbol, associated with value. If no value is given
4725    --   on the command line, then symbol is considered to be True.
4726    --   This qualifier can be used in place of a definition file.
4727
4728    S_Prep_Blank   : aliased constant S := "/BLANK_LINES "                  &
4729                                             "-b";
4730    --        /NOBLANK_LINES (D)
4731    --        /BLANK_LINES
4732    --
4733    --   Causes both preprocessor lines and the lines deleted by preprocessing
4734    --   to be replaced by blank lines in the output source file, thus
4735    --   preserving line numbers in the output file.
4736
4737    S_Prep_Com     : aliased constant S := "/COMMENTS "                     &
4738                                             "-c";
4739    --        /NOCOMMENTS (D)
4740    --        /COMMENTS
4741    --
4742    --   /COMMENTS causes both preprocessor lines and the lines deleted
4743    --   by preprocessing to be retained in the output source as comments marked
4744    --   with the special string "--! ". This option will result in line numbers
4745    --   being preserved in the output file.
4746    --
4747    --   /NOCOMMENTS causes both preprocessor lines and the lines deleted by
4748    --   preprocessing to be replaced by blank lines in the output source file,
4749    --   thus preserving line numbers in the output file.
4750
4751    S_Prep_Ref     : aliased constant S := "/REFERENCE "                    &
4752                                             "-r";
4753    --        /NOREFERENCE (D)
4754    --        /REFERENCE
4755    --
4756    --   Causes a "Source_Reference" pragma to be generated that references the
4757    --   original input file, so that error messages will use the file name of
4758    --   this original file.  Also implies /BLANK_LINES if /COMMENTS is not
4759    --   specified.
4760
4761    S_Prep_Remove  : aliased constant S := "/REMOVE "                       &
4762                                             "!-b,!-c";
4763    --        /REMOVE (D)
4764    --        /NOREMOVE
4765    --
4766    --   Preprocessor lines and deleted lines are completely removed from the
4767    --   output.
4768
4769    S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS "          &
4770                                             "-C";
4771    --        /NOREPLACE_IN_COMMENTS (D)
4772    --        /REPLACE_IN_COMMENTS
4773    --
4774    --   Causes preprocessor to scan comments and perform replacements on
4775    --   any $symbol occurrences within the comment text.
4776
4777    S_Prep_Symbols : aliased constant S := "/SYMBOLS "                      &
4778                                             "-s";
4779    --        /NOSYMBOLS (D)
4780    --        /SYMBOLS
4781    --
4782    --   Causes a sorted list of symbol names and values to be listed on
4783    --   SYS$OUTPUT.
4784
4785    S_Prep_Undef   : aliased constant S := "/UNDEFINED "                    &
4786                                             "-u";
4787    --        /NOUNDEFINED (D)
4788    --        /UNDEFINED
4789
4790    Prep_Switches : aliased constant Switches :=
4791      (S_Prep_Assoc   'Access,
4792       S_Prep_Blank   'Access,
4793       S_Prep_Com     'Access,
4794       S_Prep_Ref     'Access,
4795       S_Prep_Remove  'Access,
4796       S_Prep_Replace 'Access,
4797       S_Prep_Symbols 'Access,
4798       S_Prep_Undef   'Access);
4799
4800    ------------------------------
4801    -- Switches for GNAT PRETTY --
4802    ------------------------------
4803
4804    S_Pretty_Align  : aliased constant S := "/ALIGN="                       &
4805                                            "DEFAULT "                      &
4806                                                "-A12345 "                  &
4807                                            "OFF "                          &
4808                                                "-A0 "                      &
4809                                            "COLONS "                       &
4810                                                "-A1 "                      &
4811                                            "DECLARATIONS "                 &
4812                                                "-A2 "                      &
4813                                            "STATEMENTS "                   &
4814                                                "-A3 "                      &
4815                                            "ARROWS "                       &
4816                                                "-A4 "                      &
4817                                            "COMPONENT_CLAUSES "            &
4818                                                "-A5";
4819    --        /ALIGN[=align-option, align-option, ...]
4820    --
4821    --   Set alignments. By default, all alignments (colons in declarations,
4822    --   initialisations in declarations, assignments and arrow delimiters) are
4823    --   ON.
4824    --
4825    --   align-option may be one of the following:
4826    --
4827    --      OFF (D)           Set all alignments to OFF
4828    --      COLONS            Set alignments of colons in declarations to ON
4829    --      DECLARATIONS      Set alignments of initialisations in declarations
4830    --                        to ON
4831    --      STATEMENTS        Set alignments of assignments statements to ON
4832    --      ARROWS            Set alignments of arrow delimiters to ON.
4833    --      COMPONENT_CLAUSES Set alignments of AT keywords in component
4834    --                        clauses ON
4835    --
4836    --   Specifying one of the ON options without first specifying the OFF
4837    --   option has no effect, because by default all alignments are set to ON.
4838
4839    S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS "             &
4840                                               "-U";
4841    --        /NOALL_PROJECTS (D)
4842    --        /ALL_PROJECTS
4843    --   When GNAT PRETTY is used with a Project File and no source is
4844    --   specified, the underlying tool gnatpp is called for all the
4845    --   sources of all the Project Files in the project tree.
4846
4847    S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING="            &
4848                                            "MIXED_CASE "                   &
4849                                                "-aM "                      &
4850                                            "LOWER_CASE "                   &
4851                                                "-aL "                      &
4852                                            "UPPER_CASE "                   &
4853                                                "-aU";
4854    --        /ATTRIBUTE_CASING[=casing-option]
4855    --
4856    --   Set the case of the attributes. By default the attributes are in mixed
4857    --   case.
4858    --   casing-option may be one of the following:
4859    --
4860    --      MIXED_CASE (D)
4861    --      LOWER_CASE
4862    --      UPPER_CASE
4863
4864    S_Pretty_Comments  : aliased constant S := "/COMMENTS_LAYOUT="          &
4865                                               "UNTOUCHED "                 &
4866                                                  "-c0 "                    &
4867                                               "DEFAULT "                   &
4868                                                  "-c1 "                    &
4869                                               "STANDARD_INDENT "           &
4870                                                  "-c2 "                    &
4871                                               "GNAT_BEGINNING "            &
4872                                                  "-c3 "                    &
4873                                               "REFORMAT "                  &
4874                                                  "-c4";
4875    --        /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
4876    --
4877    --   Set the comment layout. By default, comments use the GNAT style
4878    --   comment line indentation.
4879    --
4880    --   layout-option may be one of the following:
4881    --
4882    --     UNTOUCHED           All the comments remain unchanged
4883    --     DEFAULT (D)         GNAT style comment line indentation
4884    --     STANDARD_INDENT     Standard comment line indentation
4885    --     GNAT_BEGINNING      GNAT style comment beginning
4886    --     REFORMAT            Reformat comment blocks
4887    --
4888    --     All combinations of layout options are allowed, except for DEFAULT
4889    --     and STANDARD_INDENT which are mutually exclusive, and also if
4890    --     UNTOUCHED is specified, this must be the only option.
4891    --
4892    --     The difference between "GNAT style comment line indentation" and
4893    --     "standard comment line indentation" is the following: for standard
4894    --     comment indentation, any comment line is indented as if it were
4895    --     a declaration or statement at the same place.
4896    --     For GNAT style comment indentation, comment lines which are
4897    --     immediately followed by if or case statement alternative, record
4898    --     variant or 'begin' keyword are indented as the keyword that follows
4899    --     them.:
4900    --
4901    --     Standard indentation:
4902    --
4903    --        if A then
4904    --           null;
4905    --           -- some comment
4906    --        else
4907    --           null;
4908    --        end if;
4909    --
4910    --     GNAT style indentation:
4911    --
4912    --        if A then
4913    --           null;
4914    --        -- some comment
4915    --        else
4916    --           null;
4917    --        end if;
4918    --
4919    --     Option "GNAT style comment beginning" means that for each comment
4920    --     which is not considered as non-formattable separator (that is, the
4921    --     comment line contains only dashes, or a comment line ends with two
4922    --     dashes), there will be at least two spaces between starting "--" and
4923    --     the first non-blank character of the comment.
4924
4925    S_Pretty_Config    : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
4926                                               "-gnatec>";
4927    --        /CONFIGURATION_PRAGMAS_FILE=file
4928    --
4929    --   Specify a configuration pragmas file that need to be passed to the
4930    --   compiler.
4931
4932    S_Pretty_Constr    : aliased constant S := "/CONSTRUCT_LAYOUT="         &
4933                                                "GNAT "                     &
4934                                                   "-l1 "                   &
4935                                                "COMPACT "                  &
4936                                                   "-l2 "                   &
4937                                                "UNCOMPACT "                &
4938                                                    "-l3";
4939    --        /CONSTRUCT_LAYOUT[=construct-option]
4940    --
4941    --   Set construct layout. Default is GNAT style layout.
4942    --   construct-option may be one of the following:
4943    --
4944    --      GNAT (D)
4945    --      COMPACT
4946    --      UNCOMPACT
4947    --
4948    --   The difference between GNAT style and Compact layout on one hand
4949    --   and Uncompact layout on the other hand can be illustrated by the
4950    --   following examples:
4951    --
4952    --       GNAT style and                          Uncompact layout
4953    --       Compact layout
4954    --
4955    --       type q is record                        type q is
4956    --          a : integer;                            record
4957    --          b : integer;                               a : integer;
4958    --       end record;                                   b : integer;
4959    --                                                  end record;
4960    --
4961    --
4962    --       Block : declare                         Block :
4963    --          A : Integer := 3;                       declare
4964    --       begin                                         A : Integer := 3;
4965    --          Proc (A, A);                            begin
4966    --       end Block;                                    Proc (A, A);
4967    --                                                  end Block;
4968    --
4969    --       Clear : for J in 1 .. 10 loop           Clear :
4970    --          A (J) := 0;                             for J in 1 .. 10 loop
4971    --       end loop Clear;                               A (J) := 0;
4972    --                                                  end loop Clear;
4973    --
4974    --
4975    --   A further difference between GNAT style layout and compact layout is
4976    --   that in GNAT style layout compound statements, return statements and
4977    --   bodies are always separated by empty lines.
4978
4979    S_Pretty_Comind    : aliased constant S := "/CONTINUATION_INDENT=#"     &
4980                                                  "-cl#";
4981    --        /CONTINUATION_INDENT=nnn
4982    --
4983    --   Indentation level for continuation lines, nnn from 1 .. 9.
4984    --   The default value is one less then the (normal) indentation level,
4985    --   unless the indentation is set to 1: in that case the default value for
4986    --   continuation line indentation is also 1.
4987
4988    S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS "          &
4989                                                  "--no-separate-is";
4990    --        /NO_SEPARATE_IS
4991    --
4992    --   Do not place the IS keyword on a separate line in a subprogram body in
4993    --   case if the specification occupies more then one line.
4994
4995    S_Pretty_Eol       : aliased constant S := "/END_OF_LINE="              &
4996                                                 "DOS "                     &
4997                                                    "--eol=dos "            &
4998                                                 "UNIX "                    &
4999                                                    "--eol=unix "           &
5000                                                 "CRLF "                    &
5001                                                    "--eol=crlf "           &
5002                                                 "LF "                      &
5003                                                    "--eol=lf";
5004    --        /END_OF_LINE=[option]
5005    --
5006    --   Specifies the form of the line terminators in the produced source.
5007    --   By default, the form of the line terminator depends on the platforms.
5008    --   On Unix and VMS, it is a Line Feed (LF) chararcter. On Windows (DOS),
5009    --   It is a Carriage Return (CR) followed by a Line Feed.
5010    --   The Options DOS and CRLF are equivalent. The options UNIX and LF are
5011    --   also equivalent.
5012
5013    S_Pretty_Ext       : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5014                                             "-X" & '"';
5015    --        /EXTERNAL_REFERENCE="name=val"
5016    --
5017    --   Specifies an external reference to the project manager. Useful only if
5018    --   /PROJECT_FILE is used.
5019    --
5020    --   Example:
5021    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
5022
5023    S_Pretty_Current   : aliased constant S := "/CURRENT_DIRECTORY "        &
5024                                               "!-I-";
5025    --        /CURRENT_DIRECTORY (D)
5026    --
5027    --   Look for source files in the current working directory.
5028    --
5029    --        /NOCURRENT_DIRECTORY
5030    --   Do not look for source files in the current working directory.
5031
5032    S_Pretty_Dico      : aliased constant S := "/DICTIONARY=*"              &
5033                                               "-D*";
5034    --        /DICTIONARY=(file_name, ...)
5035    --
5036    --   Use each specified file as a dictionary file that defines the casing
5037    --   for a set of specified names, thereby overriding the effect on these
5038    --   names by any explicit or implicit /NAME_CASING qualifier.
5039    --
5040    --   GNAT PRETTY implicitly uses a default dictionary file to define the
5041    --   casing for the Ada predefined names and the names declared in the GNAT
5042    --   libraries.
5043    --
5044    --   The structure of a dictionary file, and details on the conventions
5045    --   used in the default dictionary file, are defined in the GNAT User's
5046    --   Guide.
5047
5048    S_Pretty_Encoding  : aliased constant S := "/RESULT_ENCODING="          &
5049                                               "BRACKETS "                  &
5050                                                  "-Wb "                    &
5051                                               "HEX "                       &
5052                                                  "-Wh "                    &
5053                                               "UPPER "                     &
5054                                                  "-Wu "                    &
5055                                               "SHIFT_JIS "                 &
5056                                                  "-Ws "                    &
5057                                               "EUC "                       &
5058                                                  "-We "                    &
5059                                               "UTF8 "                      &
5060                                                  "-W8";
5061    --        /RESULT_ENCODING[=encoding-type]
5062    --
5063    --   Specify the wide character encoding method used when writtimg the
5064    --   reformatted code in the result file. 'encoding-type' is one of the
5065    --   following:
5066    --
5067    --      BRACKETS (D)      Brackets encoding.
5068    --
5069    --      HEX               Hex ESC encoding.
5070    --
5071    --      UPPER             Upper half encoding.
5072    --
5073    --      SHIFT_JIS         Shift-JIS encoding.
5074    --
5075    --      EUC               EUC Encoding.
5076    --
5077    --      UTF8              UTF-8 encoding.
5078    --
5079    --   See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
5080    --   about the different character encoding methods.
5081
5082    S_Pretty_Files     : aliased constant S := "/FILES=@"                   &
5083                                                  "-files=@";
5084    --      /FILES=filename
5085    --
5086    --   Take as arguments the files that are listed in the specified
5087    --   text file.
5088
5089    S_Pretty_Forced    : aliased constant S := "/FORCED_OUTPUT=@"           &
5090                                                  "-of@";
5091    --        /FORCED_OUTPUT=file
5092    --
5093    --   Write the output into the specified file, overriding any possibly
5094    --   existing file.
5095
5096    S_Pretty_Formfeed  : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
5097                                               "-ff";
5098    --        /FORM_FEED_AFTER_PRAGMA_PAGE
5099    --
5100    --   When there is a pragma Page in the source, insert a Form Feed
5101    --   character immediately after the semicolon that follows the pragma
5102    --   Page.
5103
5104    S_Pretty_Indent    : aliased constant S := "/INDENTATION_LEVEL=#"       &
5105                                                 "-i#";
5106    --        /INDENTATION_LEVEL=nnn
5107    --
5108    --   Specify the number of spaces to add for each indentation level.
5109    --   nnn must be between 1 and 9. The default is 3.
5110
5111    S_Pretty_Keyword   : aliased constant S := "/KEYWORD_CASING="           &
5112                                               "LOWER_CASE "                &
5113                                                  "-kL "                    &
5114                                               "UPPER_CASE "                &
5115                                                  "-kU";
5116    --        /KEYWORD_CASING[=keyword-option]
5117    --
5118    --   Specify the case of Ada keywords. The default is keywords in lower
5119    --   case.
5120    --   keyword-option may be one of the following:
5121    --
5122    --      LOWER_CASE (D)
5123    --      UPPER_CASE
5124
5125    S_Pretty_Maxlen    : aliased constant S := "/LINE_LENGTH_MAX=#"         &
5126                                                  "-M#";
5127    --        /LINE_LENGTH_MAX=nnn
5128    --
5129    --   Set the maximum line length, nnn from 32 ..256. The default is 79.
5130
5131    S_Pretty_Maxind    : aliased constant S := "/MAX_INDENT=#"              &
5132                                                  "-T#";
5133    --        /MAX_INDENT=nnn
5134    --
5135    --   Do not use an additional indentation level for case alternatives
5136    --   and variants if their number is nnn or more. The default is  10.
5137    --   If nnn is zero, an additional indentation level is  used for any number
5138    --   of case alternatives and variants.
5139
5140    S_Pretty_Mess      : aliased constant S := "/MESSAGES_PROJECT_FILE="    &
5141                                             "DEFAULT "                     &
5142                                                "-vP0 "                     &
5143                                             "MEDIUM "                      &
5144                                                "-vP1 "                     &
5145                                             "HIGH "                        &
5146                                                "-vP2";
5147    --        /MESSAGES_PROJECT_FILE[=messages-option]
5148    --
5149    --   Specifies the "verbosity" of the parsing of project files.
5150    --   messages-option may be one of the following:
5151    --
5152    --      DEFAULT (D)  No messages are output if there is no error or warning.
5153    --
5154    --      MEDIUM       A small number of messages are output.
5155    --
5156    --      HIGH         A great number of messages are output, most of them not
5157    --                   being useful for the user.
5158
5159    S_Pretty_Names     : aliased constant S := "/NAME_CASING="              &
5160                                               "AS_DECLARED "               &
5161                                                  "-nD "                    &
5162                                               "LOWER_CASE "                &
5163                                                  "-nL "                    &
5164                                               "UPPER_CASE "                &
5165                                                  "-nU "                    &
5166                                               "MIXED_CASE "                &
5167                                                  "-nM";
5168    --        /NAME_CASING[=name-option]
5169    --
5170    --   Specify the casing of names.
5171    --   'name-option' may be one of:
5172    --
5173    --      AS_DECLARED (D)   Name casing for defining occurrences are as they
5174    --                        appear in the source file.
5175    --
5176    --      LOWER_CASE        Names are in lower case.
5177    --
5178    --      UPPER_CASE        Names are in upper case.
5179    --
5180    --      MIXED_CASE        Names are in mixed case.
5181
5182    S_Pretty_No_Backup : aliased constant S := "/NO_BACKUP "               &
5183                                                  "-rnb";
5184    --        /REPLACE_NO_BACKUP
5185    --
5186    --   Replace the argument source with the pretty-printed source without
5187    --   creating any backup copy of the argument source.
5188
5189    S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS "         &
5190                                                  "-e";
5191    --        /NO_MISSED_LABELS
5192    --
5193    --   Do not insert missing end/exit labels. The end label is the name of
5194    --   a construct that may optionally appear at the end of the construct.
5195    --   This includes the names of packages and subprograms.
5196    --   Similarly, the exit label is the name of a loop that may appear as the
5197    --   argument of an exit statement within the loop. By default, GNAT PRETTY
5198    --   inserts these end/exit labels when they are absent in the original
5199    --   source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
5200    --   so that the formatted source reflects the original.
5201
5202    S_Pretty_Notabs    : aliased constant S := "/NOTABS "                   &
5203                                                  "-notabs";
5204    --        /NOTABS
5205    --
5206    --   Replace all tabulations in comments with spaces.
5207
5208    S_Pretty_Output    : aliased constant S := "/OUTPUT=@"                  &
5209                                               "-o@";
5210    --        /OUTPUT=file
5211    --
5212    --   Write the output to the specified file. If the file already exists,
5213    --   an error is reported.
5214
5215    S_Pretty_Override  : aliased constant S := "/OVERRIDING_REPLACE "       &
5216                                                  "-rf";
5217    --        /NOOVERRIDING_REPLACE (D)
5218    --        /OVERRIDING_REPLACE
5219    --
5220    --   Replace the argument source with the pretty-printed source and copy the
5221    --   argument source into filename.NPP, overriding any existing file if
5222    --   needed.
5223
5224    S_Pretty_Pragma    : aliased constant S := "/PRAGMA_CASING="            &
5225                                               "MIXED_CASE "                &
5226                                                  "-pM "                    &
5227                                               "LOWER_CASE "                &
5228                                                  "-pL "                    &
5229                                               "UPPER_CASE "                &
5230                                                  "-pU";
5231    --        /PRAGMA_CASING[=pragma-option]
5232    --
5233    --   Set the case of pragma identifiers. The default is Mixed case.
5234    --   pragma-option may be one of the following:
5235    --
5236    --      MIXED_CASE (D)
5237    --      LOWER_CASE
5238    --      UPPER_CASE
5239
5240    S_Pretty_Project   : aliased constant S := "/PROJECT_FILE=<"            &
5241                                                 "-P>";
5242    --        /PROJECT_FILE=filename
5243    --
5244    --   Specifies the main project file to be used. The project files rooted
5245    --   at the main project file will be parsed before any other processing to
5246    --   set the building environment.
5247
5248    S_Pretty_Replace   : aliased constant S := "/REPLACE "                  &
5249                                                  "-r";
5250    --        /NOREPLACE (D)
5251    --        /REPLACE
5252    --
5253    --   Replace the argument source with the pretty-printed source and copy the
5254    --   argument source into filename.NPP. If filename.NPP already exists,
5255    --   report an error and exit.
5256
5257    S_Pretty_RTS       : aliased constant S := "/RUNTIME_SYSTEM=|"          &
5258                                                "--RTS=|";
5259    --        /RUNTIME_SYSTEM=xxx
5260    --
5261    --    Compile against an alternate runtime system named xxx or RTS-xxx.
5262
5263    S_Pretty_Search    : aliased constant S := "/SEARCH=*"                  &
5264                                               "-I*";
5265    --        /SEARCH=(directory[,...])
5266    --
5267    --    When looking for source files also look in directories specified.
5268
5269    S_Pretty_Specific  : aliased constant S := "/SPECIFIC_CASING "          &
5270                                               "-D-";
5271    --        /SPECIFIC_CASING
5272    --
5273    --   Do not use the default dictionary file; instead, use the casing
5274    --   defined by a qualifier /NAME_CASING and/or any explicit dictionary
5275    --   file specified by a qualifier /DICTIONARY.
5276
5277    S_Pretty_Standard  : aliased constant S := "/STANDARD_OUTPUT "          &
5278                                               "-pipe";
5279    --        /NOSTANDARD_OUTPUT (D)
5280    --        /STANDARD_OUTPUT
5281    --
5282    --   Redirect the output to the standard output.
5283
5284    S_Pretty_Verbose   : aliased constant S := "/VERBOSE "                  &
5285                                               "-v";
5286    --        /NOVERBOSE (D)
5287    --        /VERBOSE
5288    --
5289    --   Verbose mode; GNAT PRETTY generates version information and then a
5290    --   trace of the actions it takes to produce or obtain the ASIS tree.
5291
5292    S_Pretty_Warnings  : aliased constant S := "/WARNINGS "                 &
5293                                               "-w";
5294    --        /NOWARNINGS (D)
5295    --        /WARNINGS
5296    --
5297    --   Issue a warning to the standard error stream if it is not possible
5298    --   to provide the required layout in the result source.
5299    --   By default such warnings are not activated.
5300
5301    Pretty_Switches : aliased constant Switches :=
5302      (S_Pretty_Align     'Access,
5303       S_Pretty_All_Prjs  'Access,
5304       S_Pretty_Attrib    'Access,
5305       S_Pretty_Comments  'Access,
5306       S_Pretty_Compact_Is'Access,
5307       S_Pretty_Config    'Access,
5308       S_Pretty_Constr    'Access,
5309       S_Pretty_Comind    'Access,
5310       S_Pretty_Current   'Access,
5311       S_Pretty_Dico      'Access,
5312       S_Pretty_Eol       'Access,
5313       S_Pretty_Ext       'Access,
5314       S_Pretty_Encoding  'Access,
5315       S_Pretty_Files     'Access,
5316       S_Pretty_Forced    'Access,
5317       S_Pretty_Formfeed  'Access,
5318       S_Pretty_Indent    'Access,
5319       S_Pretty_Keyword   'Access,
5320       S_Pretty_Maxlen    'Access,
5321       S_Pretty_Maxind    'Access,
5322       S_Pretty_Mess      'Access,
5323       S_Pretty_Names     'Access,
5324       S_Pretty_No_Backup 'Access,
5325       S_Pretty_No_Labels 'Access,
5326       S_Pretty_Notabs    'Access,
5327       S_Pretty_Output    'Access,
5328       S_Pretty_Override  'Access,
5329       S_Pretty_Pragma    'Access,
5330       S_Pretty_Replace   'Access,
5331       S_Pretty_Project   'Access,
5332       S_Pretty_RTS       'Access,
5333       S_Pretty_Search    'Access,
5334       S_Pretty_Specific  'Access,
5335       S_Pretty_Standard  'Access,
5336       S_Pretty_Verbose   'Access,
5337       S_Pretty_Warnings  'Access);
5338
5339    ------------------------------
5340    -- Switches for GNAT SHARED --
5341    ------------------------------
5342
5343    S_Shared_Debug   : aliased constant S := "/DEBUG="                      &
5344                                             "ALL "                         &
5345                                                "-g3 "                      &
5346                                             "NONE "                        &
5347                                                "-g0 "                      &
5348                                             "TRACEBACK "                   &
5349                                                "-g1 "                      &
5350                                             "NOTRACEBACK "                 &
5351                                                "-g0";
5352    --        /DEBUG[=debug-option]
5353    --        /NODEBUG
5354    --
5355    --   Specifies the amount of debugging information included. 'debug-option'
5356    --   is one of the following:
5357    --
5358    --        ALL (D)      Include full debugging information.
5359    --
5360    --        NONE         Provide no debugging information. Same as /NODEBUG.
5361    --
5362    --        TRACEBACK    Provide sufficient debug information for a traceback.
5363    --
5364    --        NOTRACEBACK  Same as NONE.
5365
5366    S_Shared_Image  : aliased constant S := "/IMAGE=@"                      &
5367                                             "-o@";
5368    --        /IMAGE=image-name
5369    --
5370    --   'image-name' specifies the name for the generated shared library.
5371
5372    S_Shared_Ident   : aliased constant S := "/IDENTIFICATION=" & '"'       &
5373                                             "--for-linker=IDENT="          &
5374                                             '"';
5375    --        /IDENTIFICATION="<string>"
5376    --
5377    --   "<string>" specifies the string to be stored in the image file ident-
5378    --   ification field in the image header. It overrides any pragma Ident
5379    --   specified string.
5380
5381    S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES "              &
5382                                             "-nostartfiles";
5383    --        /NOSTART_FILES
5384    --
5385    --   Link in default image initialization and startup functions.
5386
5387    S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE "            &
5388                                             "--for-linker=--noinhibit-exec";
5389    --        /NOINHIBIT-IMAGE
5390    --
5391    --   Delete image if there are errors or warnings.
5392
5393    S_Shared_Verb    : aliased constant S := "/VERBOSE "                    &
5394                                             "-v";
5395    --        /NOVERBOSE (D)
5396    --        /VERBOSE
5397    --
5398    --   Causes additional information to be output, including a full list of
5399    --   the included object files. This switch option is most useful when you
5400    --   want to see what set of object files are being used in the link step.
5401
5402    S_Shared_ZZZZZ   : aliased constant S := "/<other> "                    &
5403                                             "--for-linker=";
5404    --        /<other>
5405    --
5406    --   Any other switch transmitted to the underlying linker.
5407
5408    Shared_Switches : aliased constant Switches :=
5409      (S_Shared_Debug   'Access,
5410       S_Shared_Image   'Access,
5411       S_Shared_Ident   'Access,
5412       S_Shared_Nofiles 'Access,
5413       S_Shared_Noinhib 'Access,
5414       S_Shared_Verb    'Access,
5415       S_Shared_ZZZZZ   'Access);
5416
5417    -----------------------------
5418    -- Switches for GNAT STACK --
5419    -----------------------------
5420
5421    S_Stack_All        : aliased constant S := "/ALL_SUBPROGRAMS "          &
5422                                                 "-a";
5423    --        /NOALL_SUBPROGRAMS (D)
5424    --        /ALL_SUBPROGRAMS
5425    --
5426    --   Consider all subprograms as entry points.
5427
5428    S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES "               &
5429                                                 "-ca";
5430    --        /NOALL_CYCLES (D)
5431    --        /ALL_CYCLES
5432    --
5433    --   Extract all possible cycles in the call graph.
5434
5435    S_Stack_All_Prjs   : aliased constant S := "/ALL_PROJECTS "             &
5436                                                 "-U";
5437    --        /NOALL_PROJECTS (D)
5438    --        /ALL_PROJECTS
5439    --
5440    --   When GNAT STACK is used with a Project File and no source is
5441    --   specified, the underlying tool gnatstack is called for all the
5442    --   units of all the Project Files in the project tree.
5443
5444    S_Stack_Debug      : aliased constant S := "/DEBUG "                    &
5445                                                 "-g";
5446    --        /NODEBUG (D)
5447    --        /DEBUG
5448    --
5449    --   Generate internal debug information.
5450
5451    S_Stack_Directory  : aliased constant S := "/DIRECTORY=*"               &
5452                                                 "-aO*";
5453    --        /DIRECTORY=(direc[,...])
5454    --
5455    --   When looking for .ci files look also in directories specified.
5456
5457    S_Stack_Entries    : aliased constant S := "/ENTRIES=*"                 &
5458                                                 "-e*";
5459    --
5460    --        /ENTRY=(entry_point[,...])
5461    --
5462    --   Name of symbol to be used as entry point for the analysis.
5463
5464    S_Stack_Files      : aliased constant S := "/FILES=@"                   &
5465                                                 "-files=@";
5466    --      /FILES=filename
5467    --
5468    --   Take as arguments the files that are listed in the specified
5469    --   text file.
5470
5471    S_Stack_Help       : aliased constant S := "/HELP "                     &
5472                                                 "-h";
5473    --        /NOHELP (D)
5474    --        /HELP
5475    --
5476    --   Output a message explaining the usage of gnatstack.
5477
5478    S_Stack_List       : aliased constant S := "/LIST=#"                    &
5479                                                 "-l#";
5480    --        /LIST=nnn
5481    --
5482    --   Print the nnn subprograms requiring the biggest local stack usage. By
5483    --   default none will be displayed.
5484
5485    S_Stack_Order      : aliased constant S := "/ORDER="                    &
5486                                               "STACK "                     &
5487                                                  "-os "                    &
5488                                               "ALPHABETICAL "              &
5489                                                  "-oa";
5490    --        /ORDER[=order-option]
5491    --
5492    --   Specifies the order for displaying the different call graphs.
5493    --   order-option may be one of the following:
5494    --
5495    --      STACK (D)    Select stack usage order
5496    --
5497    --      ALPHABETICAL Select alphabetical order
5498
5499    S_Stack_Path       : aliased constant S := "/PATH "                     &
5500                                                 "-p";
5501    --        /NOPATH (D)
5502    --        /PATH
5503    --
5504    --   Print all the subprograms that make up the worst-case path for every
5505    --   entry point.
5506
5507    S_Stack_Project    : aliased constant S := "/PROJECT_FILE=<"            &
5508                                                 "-P>";
5509    --        /PROJECT_FILE=filename
5510    --
5511    --   Specifies the main project file to be used. The project files rooted
5512    --   at the main project file will be parsed before the invocation of
5513    --   gnatstack.
5514
5515    S_Stack_Output     : aliased constant S := "/OUTPUT=@"                  &
5516                                                 "-f@";
5517    --        /OUTPUT=filename
5518    --
5519    --   Name of the file containing the generated graph (VCG format).
5520
5521    S_Stack_Regexp     : aliased constant S := "/EXPRESSION=|"              &
5522                                                 "-r|";
5523    --
5524    --        /EXPRESSION=regular-expression
5525    --
5526    --   Any symbol matching the regular expression will be considered as a
5527    --   potential entry point for the analysis.
5528
5529    S_Stack_Unbounded  : aliased constant S := "/UNBOUNDED=#"               &
5530                                                 "-d#";
5531    --        /UNBOUNDED=nnn
5532    --
5533    --   Default stack size to be used for unbounded (dynamic) frames.
5534
5535    S_Stack_Unknown    : aliased constant S := "/UNKNOWN=#"                 &
5536                                                 "-u#";
5537    --        /UNKNOWN=nnn
5538    --
5539    --   Default stack size to be used for unknown (external) calls.
5540
5541    S_Stack_Verbose    : aliased constant S := "/VERBOSE "                  &
5542                                                 "-v";
5543    --        /NOVERBOSE (D)
5544    --        /VERBOSE
5545    --
5546    --   Specifies the amount of information to be displayed about the
5547    --   different subprograms. In verbose mode the full location of the
5548    --   subprogram will be part of the output, as well as detailed information
5549    --   about inaccurate data.
5550
5551    S_Stack_Warnings   : aliased constant S := "/WARNINGS="                 &
5552                                               "ALL "                       &
5553                                                  "-Wa "                    &
5554                                               "CYCLES "                    &
5555                                                  "-Wc "                    &
5556                                               "UNBOUNDED "                 &
5557                                                  "-Wu "                    &
5558                                               "EXTERNAL "                  &
5559                                                  "-We "                    &
5560                                               "INDIRECT "                  &
5561                                                  "-Wi";
5562    --        /WARNINGS[=(keyword[,...])]
5563    --
5564    --    The following keywords are supported:
5565    --
5566    --        ALL        Turn on all optional warnings
5567    --
5568    --        CYCLES     Turn on warnings for cycles
5569    --
5570    --        UNBOUNDED  Turn on warnings for unbounded frames
5571    --
5572    --        EXTERNAL   Turn on warnings for external calls
5573    --
5574    --        INDIRECT   Turn on warnings for indirect calls
5575
5576    Stack_Switches : aliased constant Switches :=
5577      (S_Stack_All        'Access,
5578       S_Stack_All_Cycles 'Access,
5579       S_Stack_All_Prjs   'Access,
5580       S_Stack_Debug      'Access,
5581       S_Stack_Directory  'Access,
5582       S_Stack_Entries    'Access,
5583       S_Stack_Files      'Access,
5584       S_Stack_Help       'Access,
5585       S_Stack_List       'Access,
5586       S_Stack_Order      'Access,
5587       S_Stack_Path       'Access,
5588       S_Stack_Project    'Access,
5589       S_Stack_Output     'Access,
5590       S_Stack_Regexp     'Access,
5591       S_Stack_Unbounded  'Access,
5592       S_Stack_Unknown    'Access,
5593       S_Stack_Verbose    'Access,
5594       S_Stack_Warnings   'Access);
5595
5596    ----------------------------
5597    -- Switches for GNAT STUB --
5598    ----------------------------
5599
5600    S_Stub_Config  : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<"  &
5601                                             "-gnatec>";
5602    --        /CONFIGURATION_PRAGMAS_FILE=filespec
5603    --
5604    --   Specifies a configuration pragmas file that must be taken into account
5605    --   when compiling.
5606
5607    S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
5608                                             "!-I-";
5609    --        /CURRENT_DIRECTORY (D)
5610    --        /NOCURRENT_DIRECTORY
5611    --
5612    --   Look for source, library or object files in the default directory.
5613
5614    S_Stub_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
5615                                             "-X" & '"';
5616    --        /EXTERNAL_REFERENCE="name=val"
5617    --
5618    --   Specifies an external reference to the project manager. Useful only if
5619    --   /PROJECT_FILE is used.
5620    --
5621    --   Example:
5622    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
5623
5624    S_Stub_Full    : aliased constant S := "/FULL "                         &
5625                                             "-f";
5626    --        /NOFULL (D)
5627    --        /FULL
5628    --
5629    --   If the destination directory already contains a file with the name of
5630    --   the body file for the argument file spec, replace it with the generated
5631    --   body stub. If /FULL is not used and there is already a body file, this
5632    --   existing body file is not replaced.
5633
5634    S_Stub_Header  : aliased constant S := "/HEADER="                       &
5635                                             "GENERAL "                     &
5636                                                "-hg "                      &
5637                                             "SPEC "                        &
5638                                                "-hs";
5639    --        /HEADER[=header-option]
5640    --
5641    --   Specifies the form of the comment header above the generated body stub.
5642    --   If no /HEADER qualifier is specified, there is no comment header.
5643    --   header-option is one of the following:
5644    --
5645    --
5646    --      GENERAL (D)  Put a sample comment header into the body stub.
5647    --
5648    --      SPEC         Put the comment header (i.e., all the comments
5649    --                   preceding the compilation unit) from the source of the
5650    --                   library unit declaration into the body stub.
5651
5652    S_Stub_Indent  : aliased constant S := "/INDENTATION=#"                 &
5653                                             "-i#";
5654    --        /INDENTATION=nnn
5655    --
5656    --   (nnn is a non-negative integer). Set the indentation level in the
5657    --   generated body stub to nnn. nnn=0 means "no indentation".
5658    --   Default insdentation is 3.
5659
5660    S_Stub_Keep    : aliased constant S := "/KEEP "                         &
5661                                             "-k";
5662    --        /NOKEEP (D)
5663    --        /KEEP
5664    --
5665    --   Do not delete the tree file (i.e., the snapshot of the compiler
5666    --   internal structures used by gnatstub) after creating the body stub.
5667
5668    S_Stub_Length  : aliased constant S := "/LINE_LENGTH=#"                 &
5669                                             "-l#";
5670    --        /LINE_LENGTH=nnn
5671    --
5672    --   (n is a non-negative integer). Set the maximum line length in the body
5673    --   stub to nnn. Default is 78.
5674
5675    S_Stub_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
5676                                             "DEFAULT "                     &
5677                                                "-vP0 "                     &
5678                                             "MEDIUM "                      &
5679                                                "-vP1 "                     &
5680                                             "HIGH "                        &
5681                                                "-vP2";
5682    --        /MESSAGES_PROJECT_FILE[=messages-option]
5683    --
5684    --   Specifies the "verbosity" of the parsing of project files.
5685    --   messages-option may be one of the following:
5686    --
5687    --      DEFAULT (D)  No messages are output if there is no error or warning.
5688    --
5689    --      MEDIUM       A small number of messages are output.
5690    --
5691    --      HIGH         A great number of messages are output, most of them not
5692    --                   being useful for the user.
5693
5694    S_Stub_Output  : aliased constant S := "/OUTPUT=@"                      &
5695                                             "-o@";
5696    --        /OUTPUT=filespec
5697    --
5698    --   Body file name. This should be set if the argument file name does not
5699    --   follow the GNAT file naming conventions. If this switch is omitted,
5700    --   the default name for the body will be obtained from the argument file
5701    --   name according to the GNAT file naming conventions.
5702
5703    S_Stub_Project : aliased constant S := "/PROJECT_FILE=<"                &
5704                                             "-P>";
5705    --        /PROJECT_FILE=filename
5706    --
5707    --   Specifies the main project file to be used. The project files rooted
5708    --   at the main project file will be parsed before any other processing.
5709    --   The source and object directories to be searched will be communicated
5710    --   to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
5711    --   ADA_PRJ_OBJECTS_FILE.
5712
5713    S_Stub_Quiet   : aliased constant S := "/QUIET "                        &
5714                                             "-q";
5715    --        /NOQUIET (D)
5716    --        /QUIET
5717    --
5718    --   Quiet mode: do not generate a confirmation when a body is successfully
5719    --   created, and do not generate a message when a body is not required for
5720    --   an argument unit.
5721
5722    S_Stub_Search  : aliased constant S := "/SEARCH=*"                      &
5723                                             "-I*";
5724    --        /SEARCH=(directory[,...])
5725    --
5726    --    When looking for source files also look in directories specified.
5727
5728    S_Stub_Tree    : aliased constant S := "/TREE_FILE="                    &
5729                                             "OVERWRITE "                   &
5730                                                "-t "                       &
5731                                             "SAVE "                        &
5732                                                "-k "                       &
5733                                             "REUSE "                       &
5734                                                "-r";
5735    --        /TREE_FILE[=treefile-option]
5736    --
5737    --   Specify what to do with the tree file.
5738    --   treefile-option is one of the following:
5739    --
5740    --      OVERWRITE (D)  Overwrite the existing tree file. If the current
5741    --                     directory already contains the file which, according
5742    --                     to the GNAT file naming rules should be considered
5743    --                     as a tree file for the argument source file,
5744    --                     gnatstub will refuse to create the tree file needed
5745    --                     to create a sample body unless this option is chosen.
5746    --
5747    --      SAVE           Do not remove the tree file (i.e., the snapshot
5748    --                     of the compiler internal structures used by gnatstub)
5749    --                     after creating the body stub.
5750    --
5751    --      REUSE          Reuse the tree file (if it exists) instead of
5752    --                     creating it.
5753    --                     Instead of creating the tree file for the library
5754    --                     unit declaration, gnatstub tries to find it in the
5755    --                     current directory and use it for creating a body.
5756    --                     If the tree file is not found, no body is created.
5757    --                     This option also implies `SAVE', whether or not the
5758    --                     latter is set explicitly.
5759
5760    S_Stub_Verbose : aliased constant S := "/VERBOSE "                      &
5761                                             "-v";
5762    --        /NOVERBOSE (D)
5763    --        /VERBOSE
5764    --
5765    --   Verbose mode: generate version information.
5766
5767    Stub_Switches : aliased constant Switches :=
5768      (S_Stub_Config  'Access,
5769       S_Stub_Current 'Access,
5770       S_Stub_Ext     'Access,
5771       S_Stub_Full    'Access,
5772       S_Stub_Header  'Access,
5773       S_Stub_Indent  'Access,
5774       S_Stub_Keep    'Access,
5775       S_Stub_Length  'Access,
5776       S_Stub_Mess    'Access,
5777       S_Stub_Output  'Access,
5778       S_Stub_Project 'Access,
5779       S_Stub_Quiet   'Access,
5780       S_Stub_Search  'Access,
5781       S_Stub_Tree    'Access,
5782       S_Stub_Verbose 'Access);
5783
5784    ----------------------------
5785    -- Switches for GNAT XREF --
5786    ----------------------------
5787
5788    S_Xref_All     : aliased constant S := "/ALL_FILES "                    &
5789                                             "-a";
5790    --        /NOALL_FILES (D)
5791    --        /ALL_FILES
5792    --
5793    --   If this switch is present, FIND and XREF will parse the read-only
5794    --   files found in the library search path. Otherwise, these files will
5795    --   be ignored. This option can be used to protect Gnat sources or your
5796    --   own libraries from being parsed, thus making FIND and XREF much
5797    --   faster, and their output much smaller.
5798
5799    S_Xref_Deriv   : aliased constant S := "/DERIVED_TYPES "                &
5800                                             "-d";
5801    --        /NODERIVED_TYPES (D)
5802    --        /DERIVED_TYPES
5803    --
5804    --   Output the parent type reference for each matching derived types.
5805
5806    S_Xref_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
5807                                             "-X" & '"';
5808    --        /EXTERNAL_REFERENCE="name=val"
5809    --
5810    --   Specifies an external reference to the project manager. Useful only if
5811    --   /PROJECT_FILE is used.
5812    --
5813    --   Example:
5814    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
5815
5816    S_Xref_Full    : aliased constant S := "/FULL_PATHNAME "                &
5817                                             "-f";
5818    --        /NOFULL_PATHNAME (D)
5819    --        /FULL_PATHNAME
5820    --
5821    --   If this switch is set, the output file names will be preceded by their
5822    --   directory (if the file was found in the search path). If this switch
5823    --   is not set, the directory will not be printed.
5824
5825    S_Xref_Global  : aliased constant S := "/IGNORE_LOCALS "                &
5826                                             "-g";
5827    --        /NOIGNORE_LOCALS (D)
5828    --        /IGNORE_LOCALS
5829    --
5830    --   If this switch is set, information is output only for library-level
5831    --   entities, ignoring local entities. The use of this switch may
5832    --   accelerate FIND and XREF.
5833
5834    S_Xref_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
5835                                             "DEFAULT "                     &
5836                                                "-vP0 "                     &
5837                                             "MEDIUM "                      &
5838                                                "-vP1 "                     &
5839                                             "HIGH "                        &
5840                                                "-vP2";
5841    --        /MESSAGES_PROJECT_FILE[=messages-option]
5842    --
5843    --   Specifies the "verbosity" of the parsing of project files.
5844    --   messages-option may be one of the following:
5845    --
5846    --      DEFAULT (D)  No messages are output if there is no error or warning.
5847    --
5848    --      MEDIUM       A small number of messages are output.
5849    --
5850    --      HIGH         A great number of messages are output, most of them not
5851    --                   being useful for the user.
5852
5853    S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
5854                                             "-nostdinc";
5855    --        /NOSTD_INCLUDES
5856    --
5857    --   Do not look for sources in the system default directory.
5858
5859    S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
5860                                             "-nostdlib";
5861    --        /NOSTD_LIBRARIES
5862    --
5863    --   Do not look for library files in the system default directory.
5864
5865    S_Xref_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
5866                                             "-aO*";
5867    --        /OBJECT_SEARCH=(directory,...)
5868    --
5869    --   When searching for library and object files, look in the specified
5870    --   directories. The order in which library files are searched is the same
5871    --   as for MAKE.
5872
5873    S_Xref_Project : aliased constant S := "/PROJECT=@"                     &
5874                                             "-p@";
5875    --        /PROJECT=file
5876    --
5877    --   Specify a project file to use. By default, FIND and XREF will try to
5878    --   locate a project file in the current directory.
5879    --
5880    --   If a project file is either specified or found by the tools, then the
5881    --   content of the source directory and object directory lines are added
5882    --   as if they had been specified respectively by /SOURCE_SEARCH and
5883    --   /OBJECT_SEARCH.
5884
5885    S_Xref_Prj     : aliased constant S := "/PROJECT_FILE=<"                &
5886                                             "-P>";
5887    --        /PROJECT_FILE=filename
5888    --
5889    --   Specifies the main project file to be used. The project files rooted
5890    --   at the main project file will be parsed before doing any processing.
5891    --   The source and object directories to be searched will be communicated
5892    --   to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
5893    --   ADA_PRJ_OBJECTS_FILE.
5894
5895    S_Xref_Search  : aliased constant S := "/SEARCH=*"                      &
5896                                             "-I*";
5897    --        /SEARCH=(directory,...)
5898    --
5899    --   Equivalent to:
5900    --           /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
5901
5902    S_Xref_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
5903                                             "-aI*";
5904    --        /SOURCE_SEARCH=(directory,...)
5905    --
5906    --   When looking for source files also look in the specified directories.
5907    --   The order in which source file search is undertaken is the same as for
5908    --   MAKE.
5909
5910    S_Xref_Output  : aliased constant S := "/UNUSED "                       &
5911                                             "-u";
5912    --        /SOURCE_SEARCH=(directory,...)
5913    --
5914    --   When looking for source files also look in the specified directories.
5915    --   The order in which source file search is undertaken is the same as for
5916    --   MAKE.
5917
5918    S_Xref_Tags    : aliased constant S := "/TAGS "                         &
5919                                             "-v";
5920    --        /NOTAGS (D)
5921    --        /TAGS
5922    --
5923    --   Print a 'tags' file for vi.
5924
5925    Xref_Switches : aliased constant Switches :=
5926      (S_Xref_All     'Access,
5927       S_Xref_Deriv   'Access,
5928       S_Xref_Ext     'Access,
5929       S_Xref_Full    'Access,
5930       S_Xref_Global  'Access,
5931       S_Xref_Mess    'Access,
5932       S_Xref_Nostinc 'Access,
5933       S_Xref_Nostlib 'Access,
5934       S_Xref_Object  'Access,
5935       S_Xref_Project 'Access,
5936       S_Xref_Prj     'Access,
5937       S_Xref_Search  'Access,
5938       S_Xref_Source  'Access,
5939       S_Xref_Output  'Access,
5940       S_Xref_Tags    'Access);
5941
5942 end VMS_Data;