OSDN Git Service

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