OSDN Git Service

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