OSDN Git Service

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