OSDN Git Service

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