OSDN Git Service

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