OSDN Git Service

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