OSDN Git Service

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