OSDN Git Service

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