OSDN Git Service

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