OSDN Git Service

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