OSDN Git Service

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