OSDN Git Service

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