OSDN Git Service

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