OSDN Git Service

2004-01-05 Robert Dewar <dewar@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-2003 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                                             "STANDARD_CASING "             &
1765                                                "-gnatyn "                  &
1766                                             "ORDERED_SUBPROGRAMS "         &
1767                                                "-gnatyo "                  &
1768                                             "NONE "                        &
1769                                                "!-gnatg,!-gnaty* "         &
1770                                             "PRAGMA "                      &
1771                                                "-gnatyp "                  &
1772                                             "REFERENCES "                  &
1773                                                "-gnatyr "                  &
1774                                             "SPECS "                       &
1775                                                "-gnatys "                  &
1776                                             "TOKEN "                       &
1777                                                "-gnatyt ";
1778    --        /NOSTYLE_CHECKS (D)
1779    --        /STYLE_CHECKS[=(keyword,[...])]
1780    --
1781    --   Normally, GNAT permits any code layout consistent with the reference
1782    --   manual requirements.  This qualifier imposes style checking on the
1783    --   input source code.  The following keywords are supported:
1784    --
1785    --      ALL_BUILTIN (D)      Equivalent to the following list of options:
1786    --                           3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
1787    --                           HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
1788    --                           PRAGMA, REFERENCES, SPECS, TOKEN.
1789    --
1790    --      1 .. 9               Specify indentation level from 1 to 9.
1791    --                           The general style of required indentation is as
1792    --                           specified by the examples in the Ada Reference
1793    --                           Manual. Full line comments must be aligned with
1794    --                           the -- starting on a column that is a multiple
1795    --                           of the alignment level.
1796    --
1797    --      ATTRIBUTE            Check attribute casing.
1798    --                           Attribute names, including the case of keywords
1799    --                           such as digits used as attributes names,
1800    --                           must be written in mixed case, that is,
1801    --                           the initial letter and any letter following an
1802    --                           underscore must be uppercase.
1803    --                           All other letters must be lowercase.
1804    --
1805    --      BLANKS               Blanks not allowed at statement end.
1806    --                           Trailing blanks are not allowed at the end of
1807    --                           statements. The purpose of this rule, together
1808    --                           with option HTABS (no horizontal tabs), is to
1809    --                           enforce a canonical format for the use of
1810    --                           blanks to separate source tokens.
1811    --
1812    --      COMMENTS             Check comments.
1813    --                           Comments must meet the following set of rules:
1814    --
1815    --                             * The "--" that starts the column must either
1816    --                               start in column one, or else at least one
1817    --                               blank must precede this sequence.
1818    --
1819    --                             * Comments that follow other tokens on a line
1820    --                               must have at least one blank following the
1821    --                               "--" at the start of the comment.
1822    --
1823    --                             * Full line comments must have two blanks
1824    --                               following the "--" that starts the comment,
1825    --                               with the following exceptions.
1826    --
1827    --                             * A line consisting only of the "--"
1828    --                               characters, possibly preceded by blanks is
1829    --                               permitted.
1830    --
1831    --                             * A comment starting with "--x" where x is
1832    --                               a special character is permitted. This
1833    --                               allows proper processing of the output
1834    --                               generated by specialized tools including
1835    --                               gnatprep (where --! is used) and the SPARK
1836    --                               annnotation language (where --# is used).
1837    --                               For the purposes of this rule, a special
1838    --                               character is defined as being in one of the
1839    --                               ASCII ranges 16#21#..16#2F# or
1840    --                               16#3A#..16#3F#.
1841    --
1842    --                             * A line consisting entirely of minus signs,
1843    --                               possibly preceded by blanks, is permitted.
1844    --                               This allows the construction of box
1845    --                               comments where lines of minus signs are
1846    --                               used to form the top and bottom of the box.
1847    --
1848    --                             * If a comment starts and ends with "--" is
1849    --                               permitted as long as at least one blank
1850    --                               follows the initial "--". Together with
1851    --                               the preceding rule, this allows the
1852    --                               construction of box comments, as shown in
1853    --                               the following example:
1854    --
1855    --
1856    --                           ---------------------------
1857    --                           -- This is a box comment --
1858    --                           -- with two text lines.  --
1859    --                           ---------------------------
1860    --
1861    --      END                  Check end/exit labels.
1862    --                           Optional labels on end statements ending
1863    --                           subprograms and on exit statements exiting
1864    --                           named loops, are required to be present.
1865    --
1866    --      GNAT                 Enforces a set of style conventions that
1867    --                           correspond to the style used in the GNAT
1868    --                           source code.  All compiler units are always
1869    --                           compile with this keyword specified.
1870    --
1871    --                           You can find the full documentation for the
1872    --                           style conventions imposed by this keyword
1873    --                           in the body of the package "Style" in the
1874    --                           compiler sources.
1875    --
1876    --                           You should not normally use this keyword.
1877    --                           However, you MUST use it for compiling any
1878    --                           language-defined unit, or for adding children
1879    --                           to any language-defined unit other than
1880    --                           "Standard".
1881    --
1882    --      HTABS                No horizontal tabs.
1883    --                           Horizontal tab characters are not permitted in
1884    --                           the source text. Together with the BLANKS
1885    --                           (no blanks at end of line) option, this
1886    --                           enforces a canonical form for the use of blanks
1887    --                           to separate source tokens.
1888    --
1889    --      IF_THEN              Check if-then layout.
1890    --                           The keyword then must appear either on the
1891    --                           same line as the corresponding if, or on a line
1892    --                           on its own, lined up under the if with at least
1893    --                           one non-blank line in between containing all or
1894    --                           part of the condition to be tested.
1895    --
1896    --      KEYWORD              Check keyword casing.
1897    --                           All keywords must be in lower case (with the
1898    --                           exception of keywords such as digits used as
1899    --                           attribute names to which this check does not
1900    --                           apply).
1901    --
1902    --      LAYOUT               Check layout.
1903    --                           Layout of statement and declaration constructs
1904    --                           must follow the recommendations in the Ada
1905    --                           Reference Manual, as indicated by the form of
1906    --                           the syntax rules. For example an else keyword
1907    --                           must be lined up with the corresponding if
1908    --                           keyword.
1909    --
1910    --                           There are two respects in which the style rule
1911    --                           enforced by this check option are more liberal
1912    --                           than those in the Ada Reference Manual.
1913    --                           First in the case of record declarations,
1914    --                           it is permissible to put the record keyword on
1915    --                           the same line as the type keyword, and then
1916    --                           the end in end record must line up under type.
1917    --                           For example, either of the following two
1918    --                           layouts is acceptable:
1919    --
1920    --                           type q is record
1921    --                              a : integer;
1922    --                              b : integer;
1923    --                           end record;
1924    --
1925    --                           type q is
1926    --                              record
1927    --                                 a : integer;
1928    --                                 b : integer;
1929    --                              end record;
1930    --
1931    --                           Second, in the case of a block statement,
1932    --                           a permitted alternative is to put the block
1933    --                           label on the same line as the declare or begin
1934    --                           keyword, and then line the end keyword up under
1935    --                           the block label. For example both the following
1936    --                           are permitted:
1937    --
1938    --
1939    --
1940    --                           Block : declare
1941    --                              A : Integer := 3;
1942    --                           begin
1943    --                              Proc (A, A);
1944    --                           end Block;
1945    --
1946    --                           Block :
1947    --                              declare
1948    --                                 A : Integer := 3;
1949    --                              begin
1950    --                                 Proc (A, A);
1951    --                              end Block;
1952    --
1953    --                           The same alternative format is allowed for
1954    --                           loops. For example, both of the following are
1955    --                           permitted:
1956    --
1957    --
1958    --
1959    --                           Clear : while J < 10 loop
1960    --                              A (J) := 0;
1961    --                           end loop Clear;
1962    --
1963    --                           Clear :
1964    --                              while J < 10 loop
1965    --                                 A (J) := 0;
1966    --                              end loop Clear;
1967    --
1968    --
1969    --
1970    --      LINE_LENGTH          Check maximum line length.
1971    --                           The length of source lines must not exceed 79
1972    --                           characters, including any trailing blanks
1973    --                           The value of 79 allows convenient display on
1974    --                           an 80 character wide device or window, allowing
1975    --                           for possible special treatment of 80 character
1976    --                           lines.
1977    --
1978    --      ORDERED_SUBPROGRAMS  Check order of subprogram bodies.
1979    --                           All subprogram bodies in a given scope (e.g.
1980    --                           a package body) must be in alphabetical order.
1981    --                           The ordering rule uses normal Ada rules for
1982    --                           comparing strings, ignoring casing of letters,
1983    --                           except that if there is a trailing numeric
1984    --                           suffix, then the value of this suffix is used
1985    --                           in the ordering (e.g. Junk2 comes before
1986    --                           Junk10).
1987    --
1988    --      NONE                 The default behavior.  Same as /NOSTYLE_CHECKS.
1989    --
1990    --      PRAGMA               Check pragma casing.
1991    --                           Pragma names must be written in mixed case,
1992    --                           that is, the initial letter and any letter
1993    --                           following an underscore must be uppercase.
1994    --                           All other letters must be lowercase.
1995    --
1996    --      REFERENCES           Check references.
1997    --                           All identifier references must be cased in the
1998    --                           same way as the corresponding declaration.
1999    --                           No specific casing style is imposed on
2000    --                           identifiers. The only requirement is for
2001    --                           consistency of references with declarations.
2002    --
2003    --      RM_COLUMN_LAYOUT     Enforce the layout conventions suggested by
2004    --                           the examples and syntax rules of the Ada
2005    --                           Language Reference Manual. For example, an
2006    --                           "else" must line up with an "if" and code in
2007    --                           the "then" and "else" parts must be indented.
2008    --                           The compiler considers violations of the
2009    --                           layout rules a syntax error if you specify
2010    --                           this keyword.
2011    --
2012    --      SPECS                Check separate specs.
2013    --                           Separate declarations ("specs") are required
2014    --                           for subprograms (a body is not allowed to serve
2015    --                           as its own declaration). The only exception is
2016    --                           that parameterless library level procedures are
2017    --                           not required to have a separate declaration.
2018    --                           This exception covers the most frequent form of
2019    --                           main program procedures.
2020    --
2021    --      STANDARD_CASING      Check casing of entities in Standard.
2022    --                           Any identifier from Standard must be cased to
2023    --                           match the presentation in the Ada Reference
2024    --                           Manual (for example, Integer and ASCII.NUL).
2025    --
2026    --      TOKEN                Check token spacing.
2027    --                           The following token spacing rules are enforced:
2028    --
2029    --                             * The keywords abs and not must be followed
2030    --                               by a space.
2031    --
2032    --                             * The token => must be surrounded by spaces.
2033    --
2034    --                             * The token <> must be preceded by a space or
2035    --                               a left parenthesis.
2036    --
2037    --                             * Binary operators other than ** must be
2038    --                               surrounded by spaces. There is no
2039    --                               restriction on the layout of the ** binary
2040    --                               operator.
2041    --
2042    --                             * Colon must be surrounded by spaces.
2043    --
2044    --                             * Colon-equal (assignment) must be surrounded
2045    --                               by spaces.
2046    --
2047    --                             * Comma must be the first non-blank character
2048    --                               on the line, or be immediately preceded by
2049    --                               a non-blank character, and must be followed
2050    --                               by a space.
2051    --
2052    --                             * If the token preceding a left paren ends
2053    --                               with a letter or digit, then a space must
2054    --                               separate the two tokens.
2055    --
2056    --                             * A right parenthesis must either be the
2057    --                               first non-blank character on a line, or it
2058    --                               must be preceded by a non-blank character.
2059    --
2060    --                             * A semicolon must not be preceded by
2061    --                               a space, and must not be followed by
2062    --                               a non-blank character.
2063    --
2064    --                             * A unary plus or minus may not be followed
2065    --                               by a space.
2066    --
2067    --                             * A vertical bar must be surrounded by
2068    --                               spaces.
2069    --
2070    --                           In the above rules, appearing in column one is
2071    --                           always permitted, that is, counts as meeting
2072    --                           either a requirement for a required preceding
2073    --                           space, or as meeting a requirement for no
2074    --                           preceding space.
2075    --
2076    --                           Appearing at the end of a line is also always
2077    --                           permitted, that is, counts as meeting either
2078    --                           a requirement for a following space,
2079    --                           or as meeting a requirement for no following
2080    --                           space.
2081    --
2082    --      VTABS                No form feeds or vertical tabs.
2083    --                           Form feeds or vertical tab characters are not
2084    --                           permitted in the source text.
2085
2086    S_GCC_StyleX  : aliased constant S := "/NOSTYLE_CHECKS "                &
2087                                             "!-gnatg,!-gnaty*";
2088    --  NODOC (see /STYLE_CHECKS)
2089
2090    S_GCC_Symbol  : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"'    &
2091                                             "-gnateD" & '"';
2092    --        /SYMBOL_PREPROCESSING="symbol=value"
2093    --
2094    --   Define or redefine a preprocessing symbol, associated with value.
2095    --   If "=value" is not specified, then the value of the symbol is True.
2096    --   A symbol is an identifier, following normal Ada (case-insensitive)
2097    --   rules for its syntax, and value is any sequence (including an empty
2098    --   sequence) of characters from the set (letters, digits, period,
2099    --   underline). Ada reserved words may be used as symbols, with the
2100    --   exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2101    --
2102    --   A symbol declared with this qualifier on the command line replaces
2103    --   a symbol with the same name either in a definition file or specified
2104    --   with a switch -D in the preprocessor data file.
2105    --
2106    --   This qualifier is similar to qualifier /ASSOCIATE of
2107    --   GNAT PREPROCESSING.
2108
2109    S_GCC_Syntax  : aliased constant S := "/SYNTAX_ONLY "                   &
2110                                             "-gnats";
2111    --        /NOSYNTAX_ONLY (D)
2112    --        /SYNTAX_ONLY
2113    --
2114    --   Run GNAT in syntax checking only mode.  You can check a series of
2115    --   files in a single command, and can use wild cards to specify such a
2116    --   group of files.
2117    --
2118    --   You may use other qualifiers in conjunction with this qualifier. In
2119    --   particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2120    --   format of any generated error messages.
2121    --
2122    --   The output is simply the error messages, if any. No object file or ALI
2123    --   file is generated by a syntax-only compilation. Also, no units other
2124    --   than the one specified are accessed. For example, if a unit "X" with's
2125    --   a unit "Y", compiling unit "X" in syntax check only mode does not
2126    --   access the source file containing unit "Y".
2127    --
2128    --   Normally, GNAT allows only a single unit in a source file. However,
2129    --   this restriction does not apply in syntax-check-only mode, and it is
2130    --   possible to check a file containing multiple compilation units
2131    --   concatenated together. This is primarily used by the GNAT CHOP
2132    --   command.
2133
2134    S_GCC_Table   : aliased constant S := "/TABLE_MULTIPLIER=#"             &
2135                                             "-gnatT#";
2136    --        /TABLE_MULTIPLIER=nnn
2137    --
2138    --   All compiler tables start at nnn times usual starting size.
2139
2140    S_GCC_Trace   : aliased constant S := "/TRACE_UNITS "                   &
2141                                             "-gnatdc";
2142    --        /TRACE_UNITS
2143    --        /NOTRACE_UNITS
2144    --
2145    --   This switch that does for the frontend what /VERBOSE does for the
2146    --   backend. The system prints the name of each unit, either a compilation
2147    --   unit or nested unit, as it is being analyzed.
2148
2149    S_GCC_Tree    : aliased constant S := "/TREE_OUTPUT "                   &
2150                                             "-gnatt";
2151    --        /TREE_OUTPUT
2152    --        /NOTREE_OUTPUT
2153    --
2154    --   Cause GNAT to write the internal tree for a unit to a file (with the
2155    --   filetype ATB for a body or ATS for a spec).  This is not normally
2156    --   required, but is used by separate analysis tools. Typically these
2157    --   tools do the necessary compilations automatically, so you should never
2158    --   have to specify this switch in normal operation.
2159
2160    S_GCC_Trys    : aliased constant S := "/TRY_SEMANTICS "                 &
2161                                             "-gnatq";
2162    --        /TRY_SEMANTICS
2163    --        /NOTRY_SEMANTICS
2164    --
2165    --   In normal operation mode the compiler first parses the program and
2166    --   determines if there are any syntax errors. If there are, appropriate
2167    --   error messages are generated and compilation is immediately
2168    --   terminated.  This qualifier tells GNAT to continue with semantic
2169    --   analysis even if syntax errors have been found.  This may enable the
2170    --   detection of more errors in a single run. On the other hand, the
2171    --   semantic analyzer is more likely to encounter some internal fatal
2172    --   error when given a syntactically invalid tree.
2173
2174    S_GCC_Units   : aliased constant S := "/UNITS_LIST "                    &
2175                                             "-gnatu";
2176    --        /NOUNITS_LIST (D)
2177    --        /UNITS_LIST
2178    --
2179    --   Print a list of units required by this compilation on SYS$OUTPUT.  The
2180    --   listing includes all units on which the unit being compiled depends
2181    --   either directly or indirectly.
2182
2183    S_GCC_Unique  : aliased constant S := "/UNIQUE_ERROR_TAG "              &
2184                                             "-gnatU";
2185    --        /NOUNIQUE_ERROR_TAG (D)
2186    --        /UNIQUE_ERROR_TAG
2187    --
2188    --   Tag compiler error messages with the string "error: ".
2189
2190    S_GCC_Upcase  : aliased constant S := "/UPPERCASE_EXTERNALS "           &
2191                                             "-gnatF";
2192    --        /NOUPPERCASE_EXTERNALS (D)
2193    --        /UPPERCASE_EXTERNALS
2194    --
2195    --   Fold default and explicit external names in pragmas Import and Export
2196    --   to uppercase for compatibility with the default behavior of DEC C.
2197
2198    S_GCC_Valid   : aliased constant S := "/VALIDITY_CHECKING="             &
2199                                             "DEFAULT "                     &
2200                                                "-gnatVd "                  &
2201                                             "NODEFAULT "                   &
2202                                                "-gnatVD "                  &
2203                                             "COPIES "                      &
2204                                                "-gnatVc "                  &
2205                                             "NOCOPIES "                    &
2206                                                "-gnatVC "                  &
2207                                             "FLOATS "                      &
2208                                                "-gnatVf "                  &
2209                                             "NOFLOATS "                    &
2210                                                "-gnatVF "                  &
2211                                             "IN_PARAMS "                   &
2212                                                "-gnatVi "                  &
2213                                             "NOIN_PARAMS "                 &
2214                                                "-gnatVI "                  &
2215                                             "MOD_PARAMS "                  &
2216                                                "-gnatVm "                  &
2217                                             "NOMOD_PARAMS "                &
2218                                                "-gnatVM "                  &
2219                                             "OPERANDS "                    &
2220                                                "-gnatVo "                  &
2221                                             "NOOPERANDS "                  &
2222                                                "-gnatVO "                  &
2223                                             "PARAMETERS "                  &
2224                                                "-gnatVp "                  &
2225                                             "NOPARAMETERS "                &
2226                                                "-gnatVP "                  &
2227                                             "RETURNS "                     &
2228                                                "-gnatVr "                  &
2229                                             "NORETURNS "                   &
2230                                                "-gnatVR "                  &
2231                                             "SUBSCRIPTS "                  &
2232                                                "-gnatVs "                  &
2233                                             "NOSUBSCRIPTS "                &
2234                                                "-gnatVS "                  &
2235                                             "TESTS "                       &
2236                                                "-gnatVt "                  &
2237                                             "NOTESTS "                     &
2238                                                "-gnatVT "                  &
2239                                             "ALL "                         &
2240                                                "-gnatVa "                  &
2241                                             "NONE "                        &
2242                                                "-gnatVn";
2243    --        /VALIDITY_CHECKING[=(keyword,[...])]
2244    --
2245    --   Control level of validity checking.
2246    --
2247    --        DEFAULT (D)     In this mode checks are made to prevent
2248    --                        erroneous behavior in accordance with the RM.
2249    --                        Notably extra checks may be needed for case
2250    --                        statements and subscripted array assignments.
2251    --
2252    --        NONE            No special checks for invalid values are
2253    --                        performed. This means that references to
2254    --                        uninitialized variables can cause erroneous
2255    --                        behavior from constructs like case statements
2256    --                        and subscripted array assignments. In this
2257    --                        mode, invalid values can lead to erroneous
2258    --                        behavior.
2259    --
2260    --        FULL            Every assignment is checked for validity, so
2261    --                        that it is impossible to assign invalid values.
2262    --                        The RM specifically allows such assignments,
2263    --                        but in this mode, invalid values can never be
2264    --                        assigned, and an attempt to perform such an
2265    --                        assignment immediately raises Constraint_Error.
2266    --                        This behavior is allowed (but not required) by
2267    --                        the RM. This mode is intended as a debugging aid,
2268    --                        and may be useful in helping to track down
2269    --                        uninitialized variables. It may be useful to
2270    --                        use this in conjunction with the Normalize_Scalars
2271    --                        pragma which attempts to initialize with invalid
2272    --                        values where possible.
2273
2274    S_GCC_Verbose : aliased constant S := "/VERBOSE "                       &
2275                                             "-v";
2276    --        /VERBOSE
2277    --        /NOVERBOSE
2278    --
2279    --   Show commands generated by the GCC driver. Normally used only for
2280    --   debugging purposes or if you need to be sure what version of the
2281    --   compiler you are executing.
2282
2283    S_GCC_Warn    : aliased constant S := "/WARNINGS="                      &
2284                                             "DEFAULT "                     &
2285                                                "!-gnatws,!-gnatwe "        &
2286                                             "ALL "                         &
2287                                                "-gnatwa "                  &
2288                                             "NOALL "                       &
2289                                                "-gnatwA "                  &
2290                                             "ALL_GCC "                     &
2291                                                "-Wall "                    &
2292                                             "CONDITIONALS "                &
2293                                                "-gnatwc "                  &
2294                                             "NOCONDITIONALS "              &
2295                                                "-gnatwC "                  &
2296                                             "CONSTANT_VARIABLES "          &
2297                                                "-gnatwk "                  &
2298                                             "NOCONSTANT_VARIABLES "        &
2299                                                "-gnatwK "                  &
2300                                             "IMPLICIT_DEREFERENCE "        &
2301                                                "-gnatwd "                  &
2302                                             "NO_IMPLICIT_DEREFERENCE "     &
2303                                                "-gnatwD "                  &
2304                                             "ELABORATION "                 &
2305                                                "-gnatwl "                  &
2306                                             "NOELABORATION "               &
2307                                                "-gnatwL "                  &
2308                                             "ERRORS "                      &
2309                                                "-gnatwe "                  &
2310                                             "HIDING "                      &
2311                                                "-gnatwh "                  &
2312                                             "NOHIDING "                    &
2313                                                "-gnatwH "                  &
2314                                             "IMPLEMENTATION "              &
2315                                                "-gnatwi "                  &
2316                                             "NOIMPLEMENTATION "            &
2317                                                "-gnatwI "                  &
2318                                             "INEFFECTIVE_INLINE "          &
2319                                                "-gnatwp "                  &
2320                                             "NOINEFFECTIVE_INLINE "        &
2321                                                "-gnatwP "                  &
2322                                             "MODIFIED_UNREF "              &
2323                                                "-gnatwm "                  &
2324                                             "NOMODIFIED_UNREF "            &
2325                                                "-gnatwM "                  &
2326                                             "OPTIONAL "                    &
2327                                                "-gnatwa "                  &
2328                                             "NOOPTIONAL "                  &
2329                                                "-gnatwA "                  &
2330                                             "NORMAL "                      &
2331                                                "-gnatwn "                  &
2332                                             "OBSOLESCENT "                 &
2333                                                "-gnatwj "                  &
2334                                             "NOOBSOLESCENT "               &
2335                                                "-gnatwJ "                  &
2336                                             "OVERLAYS "                    &
2337                                                "-gnatwo "                  &
2338                                             "NOOVERLAYS "                  &
2339                                                "-gnatwO "                  &
2340                                             "REDUNDANT "                   &
2341                                                "-gnatwr "                  &
2342                                             "NOREDUNDANT "                 &
2343                                                "-gnatwR "                  &
2344                                             "SUPPRESS "                    &
2345                                                "-gnatws "                  &
2346                                             "UNINITIALIZED "               &
2347                                                "-Wuninitialized "          &
2348                                             "UNREFERENCED_FORMALS "        &
2349                                                "-gnatwf "                  &
2350                                             "NOUNREFERENCED_FORMALS "      &
2351                                                "-gnatwF "                  &
2352                                             "UNRECOGNIZED_PRAGMAS "        &
2353                                                "-gnatwg "                  &
2354                                             "NOUNRECOGNIZED_PRAGMAS "      &
2355                                                "-gnatwG "                  &
2356                                             "UNUSED "                      &
2357                                                "-gnatwu "                  &
2358                                             "NOUNUSED "                    &
2359                                                "-gnatwU "                  &
2360                                             "VARIABLES_UNINITIALIZED "     &
2361                                                "-gnatwv "                  &
2362                                             "NOVARIABLES_UNINITIALIZED "   &
2363                                                "-gnatwV "                  &
2364                                             "IMPORT_EXPORT_PRAGMAS "       &
2365                                                "-gnatwx "                  &
2366                                             "NOIMPORT_EXPORT_PRAGMAS "     &
2367                                                "-gnatwX "                  &
2368                                             "UNCHECKED_CONVERSIONS "       &
2369                                                "-gnatwz "                  &
2370                                             "NOUNCHECKED_CONVERSIONS "     &
2371                                                "-gnatwZ";
2372    --        /NOWARNINGS
2373    --
2374    --   Suppress the output of all warning messages from the GNAT front end.
2375    --   Note that it does not suppress warnings from the gcc back end.
2376    --
2377    --        /WARNINGS[=(keyword[,...])]
2378    --
2379    --   In addition to error messages, corresponding to illegalities as
2380    --   defined in the reference manual, the compiler detects two kinds of
2381    --   warning situations.  First, the compiler considers some constructs
2382    --   suspicious and generates a warning message to alert you to a possible
2383    --   error. Second, if the compiler detects a situation that is sure to
2384    --   raise an exception at runtime, it generates a warning message.
2385    --
2386    --   You may specify the following keywords to change this behavior:
2387    --
2388    --   DEFAULT (D)             The default behavior above.
2389    --
2390    --   ALL                     Activate all optional warnings.
2391    --                           Activates most optional warning messages,
2392    --                           see remaining list in this section for
2393    --                           details on optional warning messages that
2394    --                           can be individually controlled.
2395    --                           The warnings that are not turned on by
2396    --                           this option are BIASED_ROUNDING,
2397    --                           IMPLICIT_DEREFERENCE, HIDING and
2398    --                           ELABORATION. All other optional Ada
2399    --                           warnings are turned on.
2400    --
2401    --   NOALL                   Suppress all optional errors.
2402    --                           Suppresses all optional warning messages
2403    --                           that can be activated by option ALL.
2404    --
2405    --   ALL_GCC                 Request additional messages from the GCC
2406    --                           backend.  Most of these are not relevant
2407    --                           to Ada.
2408    --
2409    --   CONDITIONALS            Activate warnings for conditional
2410    --                           Expressions used in tests that are known
2411    --                           to be True or False at compile time. The
2412    --                           default is that such warnings are not
2413    --                           generated.
2414    --
2415    --   NOCONDITIONALS          Suppress warnings for conditional
2416    --                           expressions used in tests that are known
2417    --                           to be True or False at compile time.
2418    --
2419    --   IMPLICIT_DEREFERENCE    Activate warnings on implicit dereferencing.
2420    --                           The use of a prefix of an access type in an
2421    --                           indexed component, slice, or selected component
2422    --                           without an explicit .all will generate
2423    --                           a warning. With this warning enabled, access
2424    --                           checks occur only at points where an explicit
2425    --                           .all appears in the source code (assuming no
2426    --                           warnings are generated as a result of this
2427    --                           option). The default is that such warnings are
2428    --                           not generated. Note that /WARNINGS=ALL does not
2429    --                           affect the setting of this warning option.
2430    --
2431    --   NOIMPLICIT_DEREFERENCE  Suppress warnings on implicit dereferencing.
2432    --                           in indexed components, slices, and selected
2433    --                           components.
2434    --
2435    --   ELABORATION             Activate warnings on missing pragma
2436    --                           Elaborate_All statements. The default is
2437    --                           that such warnings are not generated.
2438    --
2439    --   NOELABORATION           Suppress warnings on missing pragma
2440    --                           Elaborate_All statements.
2441    --
2442    --   ERRORS                  Warning messages are to be treated as errors.
2443    --                           The warning string still appears, but the
2444    --                           warning messages are counted as errors, and
2445    --                           prevent the generation of an object file.
2446    --
2447    --   HIDING                  Activate warnings on hiding declarations.
2448    --                           A declaration is considered hiding if it is
2449    --                           for a non-overloadable entity, and it declares
2450    --                           an entity with the same name as some other
2451    --                           entity that is directly or use-visible. The
2452    --                           default is that such warnings are not
2453    --                           generated.
2454    --
2455    --   NOHIDING                Suppress warnings on hiding declarations.
2456    --
2457    --   IMPLEMENTATION          Activate warnings for a with of an internal
2458    --                           GNAT implementation unit, defined as any unit
2459    --                           from the Ada, Interfaces, GNAT, DEC or
2460    --                           System hierarchies that is not documented in
2461    --                           either the Ada Reference Manual or the GNAT
2462    --                           Programmer's Reference Manual. Such units are
2463    --                           intended only for internal implementation
2464    --                           purposes and should not be with'ed by user
2465    --                           programs. The default is that such warnings
2466    --                           are generated.
2467    --
2468    --   NOIMPLEMENTATION        Disables warnings for a with of an internal
2469    --                           GNAT implementation unit.
2470    --
2471    --   INEFFECTIVE_INLINE      Activate warnings on ineffective pragma Inlines
2472    --                           Activates warnings for failure of front end
2473    --                           inlining (activated by /INLINE=FULL) to inline
2474    --                           a particular call. There are many reasons for
2475    --                           not being able to inline a call, including most
2476    --                           commonly that the call is too complex to
2477    --                           inline. This warning can also be turned on
2478    --                           using /INLINE=FULL.
2479    --
2480    --   NOINEFFECTIVE_INLINE    Suppress warnings on ineffective pragma Inlines
2481    --                           Suppresses warnings on ineffective pragma
2482    --                           Inlines. If the inlining mechanism cannot
2483    --                           inline a call, it will simply ignore the
2484    --                           request silently.
2485    --
2486    --   MODIFIED_UNREF          Activates warnings for variables that are
2487    --                           assigned (using an initialization value or with
2488    --                           one or more assignment statements) but whose
2489    --                           value is never read. The warning is suppressed
2490    --                           for volatile variables and also for variables
2491    --                           that are renamings of other variables or for
2492    --                           which an address clause is given. This warning
2493    --                           can also be turned on using /WARNINGS/OPTIONAL.
2494    --
2495    --   NOMODIFIED_UNREF        Disables warnings for variables that are
2496    --                           assigned or initialized, but never read.
2497    --
2498    --   NORMAL                  Sets normal warning mode, in which enabled
2499    --                           warnings are issued and treated as warnings
2500    --                           rather than errors. This is the default mode.
2501    --                           It can be used to cancel the effect of an
2502    --                           explicit /WARNINGS=SUPPRESS or
2503    --                           /WARNINGS=ERRORS. It also cancels the effect
2504    --                           of the implicit /WARNINGS=ERRORS that is
2505    --                           activated by the use of /STYLE=GNAT.
2506    --
2507    --   OBSOLESCENT             Activates warnings for calls to subprograms
2508    --                           marked with pragma Obsolescent and for use of
2509    --                           features in Annex J of the Ada Reference
2510    --                           Manual. In the case of Annex J, not all
2511    --                           features are flagged. In particular use of the
2512    --                           renamed packages (like Text_IO), use of package
2513    --                           ASCII and use of the attribute 'Constrained are
2514    --                           not flagged, since these are very common and
2515    --                           would generate many annoying positive warnings.
2516    --                           The default is that such warnings are not
2517    --                           generated.
2518    --
2519    --   NOOBSOLESCENT           Disables warnings on use of obsolescent
2520    --                           features.
2521    --
2522    --   OPTIONAL                Activate all optional warning messages.
2523    --                           See other options under this qualifier
2524    --                           for details on optional warning messages
2525    --                           that can be individually controlled. The
2526    --                           one exception is that /WARNINGS=OPTIONAL
2527    --                           doesn't activate warnings for hiding
2528    --                           variables (/WARNINGS=HIDING), so if this
2529    --                           warning is required it must be explicitly
2530    --                           set.
2531    --
2532    --   NOOPTIONAL              Suppress all optional warning messages.
2533    --                           See other options under this qualifier
2534    --                           for details on optional warning messages
2535    --                           that can be individually controlled.
2536    --
2537    --   OVERLAYS                Activate warnings for possibly unintended
2538    --                           initialization effects of defining address
2539    --                           clauses that cause one variable to overlap
2540    --                           another. The default is that such warnings
2541    --                           are generated.
2542    --
2543    --   NOOVERLAYS              Suppress warnings on possibly unintended
2544    --                           initialization effects of defining address
2545    --                           clauses that cause one variable to overlap
2546    --                           another.
2547    --
2548    --   REDUNDANT               Activate warnings for redundant constructs.
2549    --                           In particular assignments of a variable to
2550    --                           itself, and a type conversion that converts
2551    --                           an object to its own type. The default
2552    --                           is that such warnings are not generated.
2553    --
2554    --   NOREDUNDANT             Suppress warnings for redundant constructs.
2555    --
2556    --   SUPPRESS                Completely suppresse the output of all warning
2557    --                           messages.  Same as /NOWARNINGS.
2558    --
2559    --   UNCHECKED_CONVERSIONS   Activates warnings on unchecked conversions.
2560    --                           Causes warnings to be generated for
2561    --                           unchecked conversions when the two types are
2562    --                           known at compile time to have different sizes.
2563    --                           The default is that such warnings are
2564    --                           generated.
2565    --
2566    --   NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
2567    --
2568    --   UNINITIALIZED           Generate warnings for uninitialized variables.
2569    --                           This is a GCC option, not an Ada option.
2570    --                           You must also specify the /OPTIMIZE qualifier
2571    --                           with a value other than NONE (in other words,
2572    --                           this keyword works only if optimization is
2573    --                           turned on).
2574    --
2575    --   UNREFERENCED_FORMALS    Activate warnings on unreferenced formals.
2576    --                           Causes a warning to be generated if a formal
2577    --                           parameter is not referenced in the body of
2578    --                           the subprogram. This warning can also be turned
2579    --                           on using option ALL or UNUSED.
2580    --
2581    --   NOUNREFERENCED_FORMALS  Suppress warnings on unreferenced formals.
2582    --                           Suppresses warnings for unreferenced formal
2583    --                           parameters. Note that the combination UNUSED
2584    --                           followed by NOUNREFERENCED_FORMALS has the
2585    --                           effect of warning on unreferenced entities
2586    --                           other than subprogram formals.
2587    --
2588    --   UNUSED                  Activates warnings to be generated for entities
2589    --                           that are defined but not referenced, and for
2590    --                           units that are with'ed and not referenced. In
2591    --                           the case of packages, a warning is also
2592    --                           generated if no entities in the package are
2593    --                           referenced. This means that if the package
2594    --                           is referenced but the only references are in
2595    --                           use clauses or renames declarations, a warning
2596    --                           is still generated. A warning is also generated
2597    --                           for a generic package that is with'ed but never
2598    --                           instantiated.  In the case where a package or
2599    --                           subprogram body is compiled, and there is a
2600    --                           with on the corresponding spec that is only
2601    --                           referenced in the body, a warning is also
2602    --                           generated, noting that the with can be moved
2603    --                           to the body. The default is that such warnings
2604    --                           are not generated.
2605    --
2606    --   NOUNUSED                Suppress warnings for unused entities and
2607    --                           packages.
2608    --
2609    --   VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
2610    --                           Causes warnings to be generated when a variable
2611    --                           is accessed which may not be properly
2612    --                           uninitialized.
2613    --                           The default is that such warnings are
2614    --                           generated.
2615    --
2616    --   NOVARIABLES_UNINITIALIZED       Suppress warnings for uninitialized
2617    --                                   variables.
2618
2619    S_GCC_WarnX   : aliased constant S := "/NOWARNINGS "                    &
2620                                             "-gnatws";
2621    --  NODOC (see /WARNINGS)
2622
2623    S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS "          &
2624                                             "-w";
2625    --        /NO_BACK_END_WARNINGS
2626    --
2627    --   Inhibit all warning messages of the GCC back-end.
2628
2629    S_GCC_Wide    : aliased constant S := "/WIDE_CHARACTER_ENCODING="       &
2630                                              "BRACKETS "                   &
2631                                                 "-gnatWb "                 &
2632                                              "NONE "                       &
2633                                                 "-gnatWn "                 &
2634                                              "HEX "                        &
2635                                                 "-gnatWh "                 &
2636                                              "UPPER "                      &
2637                                                 "-gnatWu "                 &
2638                                              "SHIFT_JIS "                  &
2639                                                 "-gnatWs "                 &
2640                                              "UTF8 "                       &
2641                                                 "-gnatW8 "                 &
2642                                              "EUC "                        &
2643                                                 "-gnatWe";
2644    --        /NOWIDE_CHARACTER_ENCODING (D)
2645    --        /WIDE_CHARACTER_ENCODING[=encode-type]
2646    --
2647    --   Specifies the mechanism used to encode wide characters.  'encode-type'
2648    --   is one of the following:
2649    --
2650    --   BRACKETS (D)    A wide character is encoded as ["xxxx"] where XXXX
2651    --                   are four hexadecimal digits representing the coding
2652    --                   ('Pos value) of the character in type
2653    --                   Wide_Character. The hexadecimal digits may use upper
2654    --                   or lower case letters.
2655    --
2656    --                   This notation can also be used for upper half
2657    --                   Character values using the format ["xx"] where XX is
2658    --                   two hexadecimal digits representing the coding ('Pos
2659    --                   value) of the character in type Character (or
2660    --                   Wide_Character). The hexadecimal digits may use upper
2661    --                   of lower case.
2662    --
2663    --   NONE            No wide characters are allowed.  Same
2664    --                   as /NOWIDE_CHARCTER_ENCODING.
2665    --
2666    --   HEX             In this encoding, a wide character is represented by
2667    --                   the following five character sequence: ESC a b c d
2668    --                   Where 'a', 'b', 'c', and 'd' are the four hexadecimal
2669    --                   characters (using uppercase letters) of the wide
2670    --                   character code. For example, ESC A345 is used to
2671    --                   represent the wide character with code 16#A345#. This
2672    --                   scheme is compatible with use of the full
2673    --                   Wide_Character set.
2674    --
2675    --   UPPER           The wide character with encoding 16#abcd# where the
2676    --                   upper bit is on (in other words, "a" is in the range
2677    --                   8-F) is represented as two bytes, 16#ab# and 16#cd#.
2678    --                   The second byte may never be a format control
2679    --                   character, but is not required to be in the upper
2680    --                   half. This method can be also used for shift-JIS or
2681    --                   EUC, where the internal coding matches the external
2682    --                   coding.
2683    --
2684    --   SHIFT_JIS       A wide character is represented by a two-character
2685    --                   sequence, 16#ab# and 16#cd#, with the restrictions
2686    --                   described for upper-half encoding as described above.
2687    --                   The internal character code is the corresponding JIS
2688    --                   character according to the standard algorithm for
2689    --                   Shift-JIS conversion. Only characters defined in the
2690    --                   JIS code set table can be used with this encoding
2691    --                   method.
2692    --
2693    --   UTF8            A wide character is represented using
2694    --                   UCS Transformation Format 8 (UTF-8) as defined in Annex
2695    --                   R of ISO 10646-1/Am.2.  Depending on the character
2696    --                   value, the representation is a one, two, or three byte
2697    --                   sequence:
2698    --
2699    --                   16#0000#-16#007f#: 2#0xxxxxxx#
2700    --                   16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
2701    --                   16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
2702    --
2703    --                   where the xxx bits correspond to the left-padded bits
2704    --                   of the the 16-bit character value. Note that all lower
2705    --                   half ASCII characters are represented as ASCII bytes
2706    --                   and all upper half characters and other wide characters
2707    --                   are represented as sequences of upper-half (The full
2708    --                   UTF-8 scheme allows for encoding 31-bit characters as
2709    --                   6-byte sequences, but in this implementation, all UTF-8
2710    --                   sequences of four or more bytes length will be treated
2711    --                   as illegal).
2712    --
2713    --   EUC             A wide character is represented by a two-character
2714    --                   sequence 16#ab# and 16#cd#, with both characters being
2715    --                   in the upper half. The internal character code is the
2716    --                   corresponding JIS character according to the EUC
2717    --                   encoding algorithm. Only characters defined in the JIS
2718    --                   code set table can be used with this encoding method.
2719
2720    S_GCC_WideX   : aliased constant S := "/NOWIDE_CHARACTER_ENCODING "     &
2721                                              "-gnatWn";
2722    --  NODOC (see /WIDE_CHARACTER_ENCODING)
2723
2724    S_GCC_Xdebug  : aliased constant S := "/XDEBUG "                        &
2725                                              "-gnatD";
2726    --        /NOXDEBUG (D)
2727    --        /XDEBUG
2728    --
2729    --   Output expanded source files for source level debugging.
2730    --   The expanded source (see /EXPAND_SOURCE) is written to files
2731    --   with names formed by appending "_DG" to the input file name,
2732    --   The debugging information generated by the /DEBUG qualifier will then
2733    --   refer to the generated file. This allows source level debugging using
2734    --   the generated code which is sometimes useful for complex code, for
2735    --   example to find out exactly which part of a complex construction
2736    --   raised an exception.
2737
2738    S_GCC_Xref    : aliased constant S := "/XREF="                          &
2739                                             "GENERATE "                    &
2740                                                "!-gnatx "                  &
2741                                             "SUPPRESS "                    &
2742                                                "-gnatx";
2743    --        /XREF[=keyword]
2744    --
2745    --   Normally the compiler generates full cross-referencing information in
2746    --   the .ALI file. This information is used by a number of tools,
2747    --   including GNAT FIND and GNAT XREF.
2748    --
2749    --        GENERATE (D)            Generate cross-referencing information.
2750    --
2751    --        SUPPRESS                Suppress cross-referencing information.
2752    --                                This saves some space and may slightly
2753    --                                speed up compilation, but means that some
2754    --                                tools cannot be used.
2755
2756    S_GCC_Zero    : aliased constant S := "/ZERO_COST_EXCEPTIONS "          &
2757                                              "-gnatZ";
2758    --        /ZERO_COST_EXCEPTIONS
2759    --        /NOZERO_COST_EXCEPTIONS
2760    --
2761    --   As zero-cost exceptions is the default on VMS, this qualifier has
2762    --   no effect, except that it cancels the effect of a previous
2763    --   /LONGJMP_SETJUMP qualifier.
2764
2765    GCC_Switches : aliased constant Switches :=
2766      (S_GCC_Ada_83  'Access,
2767       S_GCC_Ada_95  'Access,
2768       S_GCC_Asm     'Access,
2769       S_GCC_Checks  'Access,
2770       S_GCC_ChecksX 'Access,
2771       S_GCC_Compres 'Access,
2772       S_GCC_Config  'Access,
2773       S_GCC_Current 'Access,
2774       S_GCC_Debug   'Access,
2775       S_GCC_DebugX  'Access,
2776       S_GCC_Data    'Access,
2777       S_GCC_Dist    'Access,
2778       S_GCC_DistX   'Access,
2779       S_GCC_Error   'Access,
2780       S_GCC_ErrorX  'Access,
2781       S_GCC_Expand  'Access,
2782       S_GCC_Extend  'Access,
2783       S_GCC_Ext     'Access,
2784       S_GCC_File    'Access,
2785       S_GCC_Force   'Access,
2786       S_GCC_Full    'Access,
2787       S_GCC_Help    'Access,
2788       S_GCC_Ident   'Access,
2789       S_GCC_IdentX  'Access,
2790       S_GCC_Immed   'Access,
2791       S_GCC_Inline  'Access,
2792       S_GCC_InlineX 'Access,
2793       S_GCC_Jumps   'Access,
2794       S_GCC_Length  'Access,
2795       S_GCC_List    'Access,
2796       S_GCC_Mapping 'Access,
2797       S_GCC_Mess    'Access,
2798       S_GCC_Noadc   'Access,
2799       S_GCC_Noload  'Access,
2800       S_GCC_Nostinc 'Access,
2801       S_GCC_Nostlib 'Access,
2802       S_GCC_Opt     'Access,
2803       S_GCC_OptX    'Access,
2804       S_GCC_Polling 'Access,
2805       S_GCC_Project 'Access,
2806       S_GCC_Psta    'Access,
2807       S_GCC_Report  'Access,
2808       S_GCC_ReportX 'Access,
2809       S_GCC_Repinfo 'Access,
2810       S_GCC_RepinfX 'Access,
2811       S_GCC_RTS     'Access,
2812       S_GCC_Search  'Access,
2813       S_GCC_Style   'Access,
2814       S_GCC_StyleX  'Access,
2815       S_GCC_Symbol  'Access,
2816       S_GCC_Syntax  'Access,
2817       S_GCC_Table   'Access,
2818       S_GCC_Trace   'Access,
2819       S_GCC_Tree    'Access,
2820       S_GCC_Trys    'Access,
2821       S_GCC_Units   'Access,
2822       S_GCC_Unique  'Access,
2823       S_GCC_Upcase  'Access,
2824       S_GCC_Valid   'Access,
2825       S_GCC_Verbose 'Access,
2826       S_GCC_Warn    'Access,
2827       S_GCC_WarnX   'Access,
2828       S_GCC_Wide    'Access,
2829       S_GCC_WideX   'Access,
2830       S_GCC_No_Back 'Access,
2831       S_GCC_Xdebug  'Access,
2832       S_GCC_Xref    'Access,
2833       S_GCC_Zero    'Access);
2834
2835    ----------------------------
2836    -- Switches for GNAT ELIM --
2837    ----------------------------
2838
2839    S_Elim_All    : aliased constant S := "/ALL "                           &
2840                                             "-a";
2841    --        /NOALL (D)
2842    --        /ALL
2843    --
2844    --   Also look for subprograms from the GNAT run time that can be
2845    --   eliminated. Note that when 'gnat.adc' is produced using this switch,
2846    --   the entire program must be recompiled with qualifier /ALL_FILES of
2847    --   GNAT MAKE.
2848
2849    S_Elim_Bind   : aliased constant S := "/BIND_FILE=<"                    &
2850                                             "-b>";
2851    --        /BIND_FILE=file_name
2852    --
2853    --   Specifies file_name as the bind file to process. If this qualifier is
2854    --   not used, the name of the bind file is computed from the full expanded
2855    --   Ada name of a main subprogram.
2856
2857    S_Elim_Comp   : aliased constant S := "/COMPILER=@"                     &
2858                                             "--GCC=@";
2859    --        /COMPILER=path_name
2860    --
2861    --   Instructs GNAT ELIM to use a specific gcc compiler instead of one
2862    --   available on the path.
2863
2864    S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<"        &
2865                                             "-C>";
2866    --        /CONFIGURATION_PRAGMAS=path_name
2867    --
2868    --   Specifies a file that contains configuration pragmas.
2869    --   The file must be specified with absolute path.
2870
2871    S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
2872                                            "!-I-";
2873    --        /CURRENT_DIRECTORY (D)
2874    --        /NOCURRENT_DIRECTORY
2875    --
2876    --        Look for source files in the default directory.
2877
2878    S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@"                   &
2879                                             "--GNATMAKE=@";
2880    --        /GNATMAKE=path_name
2881    --
2882    --   Instructs GNAT MAKE to use a specific gnatmake instead of one available
2883    --   on the path.
2884
2885    S_Elim_Quiet  : aliased constant S := "/QUIET "                         &
2886                                             "-q";
2887    --        /NOQUIET (D)
2888    --        /QUIET
2889    --
2890    --   Quiet mode: by default GNAT ELIM outputs to the standard error stream
2891    --   the number of program units left to be processed. This option turns
2892    --   this trace off.
2893
2894    S_Elim_Search : aliased constant S := "/SEARCH=*"                       &
2895                                             "-I*";
2896    --        /SEARCH=(directory, ...)
2897    --
2898    --   When looking for source files also look in the specified directories.
2899
2900    S_Elim_Verb   : aliased constant S := "/VERBOSE "                       &
2901                                             "-v";
2902    --        /NOVERBOSE (D)
2903    --        /VERBOSE
2904    --
2905    --   Verbose mode: GNAT ELIM version information is output as Ada comments
2906    --   to the standard output stream. Also, in addition to the number of
2907    --   program units left, GNAT ELIM will output the name of the current unit
2908    --   being processed.
2909
2910    Elim_Switches : aliased constant Switches :=
2911      (S_Elim_All     'Access,
2912       S_Elim_Bind    'Access,
2913       S_Elim_Comp    'Access,
2914       S_Elim_Config  'Access,
2915       S_Elim_Current 'Access,
2916       S_Elim_GNATMAKE'Access,
2917       S_Elim_Quiet   'Access,
2918       S_Elim_Search  'Access,
2919       S_Elim_Verb    'Access);
2920
2921    ----------------------------
2922    -- Switches for GNAT FIND --
2923    ----------------------------
2924
2925    S_Find_All     : aliased constant S := "/ALL_FILES "                    &
2926                                             "-a";
2927    --        /NOALL_FILES (D)
2928    --        /ALL_FILES
2929    --
2930    --   If this switch is present, FIND and XREF will parse the read-only
2931    --   files found in the library search path. Otherwise, these files will
2932    --   be ignored. This option can be used to protect Gnat sources or your
2933    --   own libraries from being parsed, thus making FIND and XREF much
2934    --   faster, and their output much smaller.
2935
2936    S_Find_Deriv   : aliased constant S := "/DERIVED_TYPE_INFORMATION "     &
2937                                             "-d";
2938    --        /NODERIVED_TYPE_INFORMATION (D)
2939    --        /DERIVED_TYPE_INFORMATION
2940    --
2941    --   Output the parent type reference for each matching derived types.
2942
2943    S_Find_Expr    : aliased constant S := "/EXPRESSIONS "                  &
2944                                             "-e";
2945    --        /NOEXPRESSIONS (D)
2946    --        /EXPRESSIONS
2947    --
2948    --   By default, FIND accepts the simple regular expression set for pattern.
2949    --   If this switch is set, then the pattern will be considered as a full
2950    --   Unix-style regular expression.
2951
2952    S_Find_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
2953                                             "-X" & '"';
2954    --        /EXTERNAL_REFERENCE="name=val"
2955    --
2956    --   Specifies an external reference to the project manager. Useful only if
2957    --   /PROJECT_FILE is used.
2958    --
2959    --   Example:
2960    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
2961
2962    S_Find_Full    : aliased constant S := "/FULL_PATHNAME "                &
2963                                             "-f";
2964    --        /NOFULL_PATHNAME (D)
2965    --        /FULL_PATHNAME
2966    --
2967    --   If this switch is set, the output file names will be preceded by their
2968    --   directory (if the file was found in the search path). If this switch
2969    --   is not set, the directory will not be printed.
2970
2971    S_Find_Ignore  : aliased constant S := "/IGNORE_LOCALS "                &
2972                                             "-g";
2973    --        /NOIGNORE_LOCALS (D)
2974    --        /IGNORE_LOCALS
2975    --
2976    --   If this switch is set, information is output only for library-level
2977    --   entities, ignoring local entities. The use of this switch may
2978    --   accelerate FIND and XREF.
2979
2980    S_Find_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
2981                                             "DEFAULT "                     &
2982                                                "-vP0 "                     &
2983                                             "MEDIUM "                      &
2984                                                "-vP1 "                     &
2985                                             "HIGH "                        &
2986                                                "-vP2";
2987    --        /MESSAGES_PROJECT_FILE[=messages-option]
2988    --
2989    --   Specifies the "verbosity" of the parsing of project files.
2990    --   messages-option may be one of the following:
2991    --
2992    --      DEFAULT (D)  No messages are output if there is no error or warning.
2993    --
2994    --      MEDIUM       A small number of messages are output.
2995    --
2996    --      HIGH         A great number of messages are output, most of them not
2997    --                   being useful for the user.
2998
2999    S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
3000                                             "-nostdinc";
3001    --        /NOSTD_INCLUDES
3002    --
3003    --   Do not look for sources in the system default directory.
3004
3005    S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
3006                                             "-nostdlib";
3007    --        /NOSTD_LIBRARIES
3008    --
3009    --   Do not look for library files in the system default directory.
3010
3011    S_Find_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
3012                                             "-aO*";
3013    --        /OBJECT_SEARCH=(directory,...)
3014    --
3015    --   When searching for library and object files, look in the specified
3016    --   directories. The order in which library files are searched is the same
3017    --   as for MAKE.
3018
3019    S_Find_Print   : aliased constant S := "/PRINT_LINES "                  &
3020                                             "-s";
3021    --        /NOPRINT_LINES (D)
3022    --        /PRINT_LINES
3023    --
3024    --   Output the content of the Ada source file lines were the entity was
3025    --   found.
3026
3027    S_Find_Project : aliased constant S := "/PROJECT=@"                     &
3028                                             "-p@";
3029    --        /PROJECT=file
3030    --
3031    --   Specify a project file to use. By default, FIND and XREF will try to
3032    --   locate a project file in the current directory.
3033    --
3034    --   If a project file is either specified or found by the tools, then the
3035    --   content of the source directory and object directory lines are added
3036    --   as if they had been specified respectively by /SOURCE_SEARCH and
3037    --   /OBJECT_SEARCH.
3038    --
3039    --   This qualifier is not compatible with /PROJECT_FILE
3040
3041    S_Find_Prj     : aliased constant S := "/PROJECT_FILE=<"               &
3042                                             "-P>";
3043    --        /PROJECT_FILE=filename
3044    --
3045    --   Specifies the main project file to be used. The project files rooted
3046    --   at the main project file will be parsed before looking for sources.
3047    --   The source and object directories to be searched will be communicated
3048    --   to gnatfind  through logical names ADA_PRJ_INCLUDE_FILE and
3049    --   ADA_PRJ_OBJECTS_FILE.
3050
3051    S_Find_Ref     : aliased constant S := "/REFERENCES "                   &
3052                                             "-r";
3053    --        /NOREFERENCES (D)
3054    --        /REFERENCES
3055    --
3056    --   By default, FIND will output only the information about the
3057    --   declaration, body or type completion of the entities. If this switch
3058    --   is set, the FIND will locate every reference to the entities in the
3059    --   files specified on the command line (or in every file in the search
3060    --   path if no file is given on the command line).
3061
3062    S_Find_Search  : aliased constant S := "/SEARCH=*"                      &
3063                                             "-I*";
3064    --        /SEARCH=(directory,...)
3065    --
3066    --   Equivalent to:
3067    --   /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3068
3069    S_Find_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
3070                                             "-aI*";
3071    --        /SOURCE_SEARCH=(directory,...)
3072    --
3073    --   When looking for source files also look in the specified directories.
3074    --   The order in which source file search is undertaken is the same as for
3075    --   MAKE.
3076
3077    S_Find_Types   : aliased constant S := "/TYPE_HIERARCHY "               &
3078                                             "-t";
3079    --        /NOTYPE_HIERARCHY (D)
3080    --        /TYPE_HIERARCHY
3081    --
3082    --   Output the type hierarchy for the specified type. It acts like the
3083    --   /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3084    --   to parent type. When this qualifier is specified it is not possible to
3085    --   specify more than one file.
3086
3087    Find_Switches : aliased constant Switches :=
3088      (S_Find_All     'Access,
3089       S_Find_Deriv   'Access,
3090       S_Find_Expr    'Access,
3091       S_Find_Ext     'Access,
3092       S_Find_Full    'Access,
3093       S_Find_Ignore  'Access,
3094       S_Find_Mess    'Access,
3095       S_Find_Nostinc 'Access,
3096       S_Find_Nostlib 'Access,
3097       S_Find_Object  'Access,
3098       S_Find_Print   'Access,
3099       S_Find_Project 'Access,
3100       S_Find_Prj     'Access,
3101       S_Find_Ref     'Access,
3102       S_Find_Search  'Access,
3103       S_Find_Source  'Access,
3104       S_Find_Types   'Access);
3105
3106    ------------------------------
3107    -- Switches for GNAT KRUNCH --
3108    ------------------------------
3109
3110    S_Krunch_Count  : aliased constant S := "/COUNT=#"                      &
3111                                             "`#";
3112    --        /COUNT=39 (D)
3113    --        /COUNT=nnn
3114    --
3115    --   Limit file names to nnn characters (where nnn is a decimal
3116    --   integer). The maximum file name length is 39, but if you want to
3117    --   generate a set of files that would be usable if ported to a system
3118    --   with some different maximum file length, then a different value can
3119    --   be specified.
3120
3121    Krunch_Switches : aliased constant Switches  :=
3122      (1 .. 1 => S_Krunch_Count  'Access);
3123
3124    -------------------------------
3125    -- Switches for GNAT LIBRARY --
3126    -------------------------------
3127
3128    S_Lbr_Config    : aliased constant S := "/CONFIG=@"                     &
3129                                             "--config=@";
3130    --        /CONFIG=file
3131    --
3132    --   File containing configuration pragmas.
3133
3134    S_Lbr_Create    : aliased constant S := "/CREATE=%"                     &
3135                                             "--create=%";
3136    --        /CREATE=directory
3137    --
3138    --   Directory to create and build alternate library in.
3139
3140    S_Lbr_Delete    : aliased constant S := "/DELETE=%"                     &
3141                                             "--delete=%";
3142    --        /DELETE=directory
3143    --
3144    --   Directory containing alternate library to be deleted.
3145
3146    S_Lbr_Set       : aliased constant S := "/SET=%"                        &
3147                                             "--set=%";
3148    --        /SET=directory
3149    --
3150    --   Directory containing alternate library to be made the current library.
3151
3152    Lbr_Switches : aliased constant Switches  :=
3153      (S_Lbr_Config 'Access,
3154       S_Lbr_Create 'Access,
3155       S_Lbr_Delete 'Access,
3156       S_Lbr_Set    'Access);
3157
3158    ----------------------------
3159    -- Switches for GNAT LINK --
3160    ----------------------------
3161
3162    S_Link_Bind    : aliased constant S := "/BIND_FILE="                    &
3163                                             "ADA "                         &
3164                                                "-A "                       &
3165                                             "C "                           &
3166                                                "-C";
3167    --        /BIND_FILE=[bind-file-option]
3168    --
3169    --   Specifies the language of the binder generated file.
3170    --
3171    --        ADA (D)         Binder file is Ada.
3172    --
3173    --        C               Binder file is 'C'.
3174
3175    S_Link_Debug   : aliased constant S := "/DEBUG="                        &
3176                                             "ALL "                         &
3177                                                "-g3 "                      &
3178                                             "NONE "                        &
3179                                                "-g0 "                      &
3180                                             "TRACEBACK "                   &
3181                                                "-g1 "                      &
3182                                             "NOTRACEBACK "                 &
3183                                                "-g0";
3184    --        /NODEBUG (D)
3185    --        /DEBUG[=debug-option]
3186    --
3187    --   Specifies the amount of debugging information included. 'debug-option'
3188    --   is one of the following:
3189    --
3190    --        ALL (D)      Include full debugging information.
3191    --
3192    --        NONE         Provide no debugging information.  Same as /NODEBUG.
3193    --
3194    --        TRACEBACK    Provide sufficient debug information for a traceback.
3195    --
3196    --        NOTRACEBACK  Same as NONE.
3197
3198    S_Link_Nodebug : aliased constant S := "/NODEBUG "                      &
3199                                             "-g0";
3200    --  NODOC (see /DEBUG)
3201
3202    S_Link_Execut  : aliased constant S := "/EXECUTABLE=@"                  &
3203                                             "-o@";
3204    --        /EXECUTABLE=exec-name
3205    --
3206    --   'exec-name' specifies an alternative name for the generated executable
3207    --   program. If this qualifier switch is omitted, the executable is called
3208    --   the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3209    --   executable called TRY.EXE.
3210
3211    S_Link_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3212                                             "-X" & '"';
3213    --        /EXTERNAL_REFERENCE="name=val"
3214    --
3215    --   Specifies an external reference to the project manager. Useful only if
3216    --   /PROJECT_FILE is used.
3217    --
3218    --   Example:
3219    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3220
3221    S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"'             &
3222                                             "--for-linker=" & '"';
3223    --        /FOR_LINKER=<string>
3224    --
3225    --   Transmit the option <string> to the underlying linker.
3226
3227    S_Link_Force   : aliased constant S := "/FORCE_OBJECT_FILE_LIST "       &
3228                                             "-f";
3229    --        /NOFORCE_OBJECT_FILE_LIST (D)
3230    --        /FORCE_OBJECT_FILE_LIST
3231    --
3232    --   Forces the generation of a file that contains commands for the linker.
3233    --   This is useful in some cases to deal with special situations where the
3234    --   command line length is exceeded.
3235
3236    S_Link_Ident   : aliased constant S := "/IDENTIFICATION=" & '"'         &
3237                                             "--for-linker=IDENT="          &
3238                                             '"';
3239    --        /IDENTIFICATION="<string>"
3240    --
3241    --   "<string>" specifies the string to be stored in the image file ident-
3242    --   ification field in the image header. It overrides any pragma Ident
3243    --   specified string.
3244
3245    S_Link_Libdir  : aliased constant S := "/LIBDIR=*"                      &
3246                                             "-L*";
3247    --        /LIBDIR=(directory, ...)
3248    --
3249    --   Look for libraries in the specified directories.
3250
3251    S_Link_Library : aliased constant S := "/LIBRARY=|"                     &
3252                                             "-l|";
3253    --        /LYBRARY=xyz
3254    --
3255    --   Link with library named "xyz".
3256
3257    S_Link_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3258                                             "DEFAULT "                     &
3259                                                "-vP0 "                     &
3260                                             "MEDIUM "                      &
3261                                                "-vP1 "                     &
3262                                             "HIGH "                        &
3263                                                "-vP2";
3264    --        /MESSAGES_PROJECT_FILE[=messages-option]
3265    --
3266    --   Specifies the "verbosity" of the parsing of project files.
3267    --   messages-option may be one of the following:
3268    --
3269    --      DEFAULT (D)  No messages are output if there is no error or warning.
3270    --
3271    --      MEDIUM       A small number of messages are output.
3272    --
3273    --      HIGH         A great number of messages are output, most of them not
3274    --                   being useful for the user.
3275
3276    S_Link_Nocomp  : aliased constant S := "/NOCOMPILE "                    &
3277                                             "-n";
3278    --        /NOCOMPILE
3279    --
3280    --   Do not compile the file generated by the binder.
3281    --   This may be used when a link is rerun with different options,
3282    --   but there is no need to recompile the binder generated file.
3283
3284    S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC "               &
3285                                             "--for-linker=--noinhibit-exec";
3286    --        /NOINHIBIT-EXEC
3287    --
3288    --   Delete executable if there are errors or warnings.
3289
3290    S_Link_Nofiles : aliased constant S := "/NOSTART_FILES "                &
3291                                             "-nostartfiles";
3292    --        /NOSTART_FILES
3293    --
3294    --   Link in default image initialization and startup functions.
3295
3296    S_Link_Project : aliased constant S := "/PROJECT_FILE=<"                &
3297                                             "-P>";
3298    --        /PROJECT_FILE=filename
3299    --
3300    --   Specifies the main project file to be used. The project files rooted
3301    --   at the main project file will be parsed before the invocation of the
3302    --   linker.
3303    --   The source and object directories to be searched will be communicated
3304    --   to the linker through logical names ADA_PRJ_INCLUDE_FILE and
3305    --   ADA_PRJ_OBJECTS_FILE.
3306
3307    S_Link_Return  : aliased constant S := "/RETURN_CODES="                 &
3308                                             "POSIX "                       &
3309                                                "!-mvms-return-codes "      &
3310                                             "VMS "                         &
3311                                                "-mvms-return-codes";
3312    --        /RETURN_CODES=POSIX (D)
3313    --        /RETURN_CODES=VMS
3314    --
3315    --   Specifies the style of codes returned by
3316    --   Ada.Command_Line.Set_Exit_Status.
3317    --
3318    --        POSIX (D)   Return Posix compatible exit codes.
3319    --
3320    --        VMS         Return VMS compatible exit codes. The value returned
3321    --                    is identically equal to the Set_Exit_Status parameter.
3322
3323    S_Link_Static  : aliased constant S := "/STATIC "                       &
3324                                             "--for-linker=-static";
3325    --        /NOSTATIC (D)
3326    --        /STATIC
3327    --
3328    --   Indicate to the linker that the link is static.
3329
3330    S_Link_Verb    : aliased constant S := "/VERBOSE "                      &
3331                                             "-v";
3332    --        /NOVERBOSE (D)
3333    --        /VERBOSE
3334    --
3335    --   Causes additional information to be output, including a full list of
3336    --   the included object files. This switch option is most useful when you
3337    --   want to see what set of object files are being used in the link step.
3338
3339    S_Link_ZZZZZ   : aliased constant S := "/<other> "                      &
3340                                             "--for-linker=";
3341    --        /<other>
3342    --
3343    --   Any other switch that will be transmited to the underlying linker.
3344
3345    Link_Switches : aliased constant Switches :=
3346      (S_Link_Bind    'Access,
3347       S_Link_Debug   'Access,
3348       S_Link_Nodebug 'Access,
3349       S_Link_Execut  'Access,
3350       S_Link_Ext     'Access,
3351       S_Link_Forlink 'Access,
3352       S_Link_Force   'Access,
3353       S_Link_Ident   'Access,
3354       S_Link_Libdir  'Access,
3355       S_Link_Library 'Access,
3356       S_Link_Mess    'Access,
3357       S_Link_Nocomp  'Access,
3358       S_Link_Nofiles 'Access,
3359       S_Link_Noinhib 'Access,
3360       S_Link_Project 'Access,
3361       S_Link_Return  'Access,
3362       S_Link_Static  'Access,
3363       S_Link_Verb    'Access,
3364       S_Link_ZZZZZ   'Access);
3365
3366    ----------------------------
3367    -- Switches for GNAT LIST --
3368    ----------------------------
3369
3370    S_List_All     : aliased constant S := "/ALL_UNITS "                    &
3371                                             "-a";
3372    --        /NOALL_UNITS (D)
3373    --        /ALL_UNITS
3374    --
3375    --   Consider all units, including those of the predefined Ada library.
3376    --   Especially useful with /DEPENDENCIES.
3377
3378    S_List_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
3379                                             "!-I-";
3380    --        /CURRENT_DIRECTORY (D)
3381    --        /NOCURRENT_DIRECTORY
3382    --
3383    --   Look for source, library or object files in the default directory.
3384
3385    S_List_Depend  : aliased constant S := "/DEPENDENCIES "                 &
3386                                             "-d";
3387    --        /NODEPENDENCIES (D)
3388    --        /DEPENDENCIES
3389
3390    S_List_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3391                                             "-X" & '"';
3392    --        /EXTERNAL_REFERENCE="name=val"
3393    --
3394    --   Specifies an external reference to the project manager. Useful only if
3395    --   /PROJECT_FILE is used.
3396    --
3397    --   Example:
3398    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3399
3400    S_List_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3401                                             "DEFAULT "                     &
3402                                                "-vP0 "                     &
3403                                             "MEDIUM "                      &
3404                                                "-vP1 "                     &
3405                                             "HIGH "                        &
3406                                                "-vP2";
3407    --        /MESSAGES_PROJECT_FILE[=messages-option]
3408    --
3409    --   Specifies the "verbosity" of the parsing of project files.
3410    --   messages-option may be one of the following:
3411    --
3412    --      DEFAULT (D)  No messages are output if there is no error or warning.
3413    --
3414    --      MEDIUM       A small number of messages are output.
3415    --
3416    --      HIGH         A great number of messages are output, most of them not
3417    --                   being useful for the user.
3418
3419    S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
3420                                             "-nostdinc";
3421    --        /NOSTD_INCLUDES
3422    --
3423    --   Do not look for sources of the run time in the standard directory.
3424
3425    S_List_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
3426                                             "-aO*";
3427    --        /OBJECT_SEARCH=(directory,...)
3428    --
3429    --   When looking for library and object files look also in the specified
3430    --   directories.
3431
3432    S_List_Output  : aliased constant S := "/OUTPUT="                       &
3433                                             "SOURCES "                     &
3434                                                "-s "                       &
3435                                             "DEPEND "                      &
3436                                                "-d "                       &
3437                                             "OBJECTS "                     &
3438                                                "-o "                       &
3439                                             "UNITS "                       &
3440                                                "-u "                       &
3441                                             "OPTIONS "                     &
3442                                                "-h "                       &
3443                                             "VERBOSE "                     &
3444                                                "-v ";
3445    --        /OUTPUT=(option,option,...)
3446    --
3447    --        SOURCES (D)     Only output information about source files.
3448    --
3449    --        DEPEND          List sources from which specified units depend on.
3450    --
3451    --        OBJECTS         Only output information about object files.
3452    --
3453    --        UNITS           Only output information about compilation units.
3454    --
3455    --        OPTIONS         Output the list of options.
3456    --
3457    --        VERBOSE         Output the complete source and object paths.
3458    --                        Do not use the default column layout but instead
3459    --                        use long format giving as much as information
3460    --                        possible on each requested units, including
3461    --                        special characteristics.
3462
3463    S_List_Project : aliased constant S := "/PROJECT_FILE=<"                &
3464                                             "-P>";
3465    --        /PROJECT_FILE=filename
3466    --
3467    --   Specifies the main project file to be used. The project files rooted
3468    --   at the main project file will be parsed before doing any listing.
3469    --   The source and object directories to be searched will be communicated
3470    --   to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
3471    --   ADA_PRJ_OBJECTS_FILE.
3472
3473    S_List_Search  : aliased constant S := "/SEARCH=*"                      &
3474                                             "-I*";
3475    --        /SEARCH=(directory,...)
3476    --
3477    --   Search the specified directories for both source and object files.
3478
3479    S_List_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
3480                                             "-aI*";
3481    --        /SOURCE_SEARCH=(directory,...)
3482    --
3483    --   When looking for source files also look in the specified directories.
3484
3485    List_Switches : aliased constant Switches :=
3486      (S_List_All     'Access,
3487       S_List_Current 'Access,
3488       S_List_Depend  'Access,
3489       S_List_Ext     'Access,
3490       S_List_Mess    'Access,
3491       S_List_Nostinc 'Access,
3492       S_List_Object  'Access,
3493       S_List_Output  'Access,
3494       S_List_Project 'Access,
3495       S_List_Search  'Access,
3496       S_List_Source  'Access);
3497
3498    ----------------------------
3499    -- Switches for GNAT MAKE --
3500    ----------------------------
3501
3502    S_Make_Actions : aliased constant S := "/ACTIONS="                      &
3503                                             "COMPILE "                     &
3504                                                "-c "                       &
3505                                             "BIND "                        &
3506                                                "-b "                       &
3507                                             "LINK "                        &
3508                                                "-l ";
3509    --        /ACTIONS=(keyword[,...])
3510    --
3511    --  GNAT MAKE default behavior is to check if the sources are up to date,
3512    --  compile those sources that are not up to date, bind the main source,
3513    --  then link the executable.
3514    --
3515    --  With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
3516    --  two of these three steps:
3517    --
3518    --  o Compile
3519    --  o Bind
3520    --  o Link
3521    --
3522    --
3523    --   You may specify one or more of the following keywords to the /ACTIONS
3524    --   qualifier:
3525    --
3526    --   BIND            Bind only. Can be combined with /ACTIONS=COMPILE
3527    --                   to do compilation and binding, but no linking.
3528    --                   Can be combined with /ACTIONS=LINK to do binding and
3529    --                   linking. When not combined with /ACTIONS=COMPILE,
3530    --                   all the units in the closure of the main program must
3531    --                   have been previously compiled and must be up to date.
3532    --
3533    --   COMPILE         Compile only. Do not perform binding, except when
3534    --                   /ACTIONS=BIND is also specified. Do not perform
3535    --                   linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
3536    --                   are also specified.
3537    --
3538    --   LINK            Link only. Can be combined with /ACTIONS=BIND to do
3539    --                   binding and linking. Linking will not be performed
3540    --                   if combined with /ACTIONS=COMPILE but not with
3541    --                   /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
3542    --                   all the units in the closure of the main program must
3543    --                   have been previously compiled and must be up to date,
3544    --                   and the main program need to have been bound.
3545
3546    S_Make_All     : aliased constant S := "/ALL_FILES "                    &
3547                                             "-a";
3548    --        /NOALL_FILES (D)
3549    --        /ALL_FILES
3550    --
3551    --   Consider all files in the make process, even the GNAT internal system
3552    --   files (for example, the predefined Ada library files). By default,
3553    --   GNAT MAKE does not check these files (however, if there is an
3554    --   installation problem, it will be caught when GNAT MAKE binds your
3555    --   program). You may have to specify this qualifier if you are working on
3556    --   GNAT itself.  The vast majority of GNAT MAKE users never need to
3557    --   specify this switch.  All GNAT internal files with will be compiled
3558    --   with /STYLE_CHECK=GNAT.
3559
3560    S_Make_Allproj : aliased constant S := "/ALL_PROJECTS "                 &
3561                                             "-U";
3562    --        /NOALL_PROJECTS (D)
3563    --        /ALL_PROJECTS
3564    --
3565    --   Implies /Unique.
3566    --   When used without project files, it is equivalent to /UNIQUE.
3567    --   When used with a project file wit no main (neither on the command
3568    --   line nor in the attribute Main) check every source of every project,
3569    --   recompile all sources that are not up to date and rebuild libraries
3570    --   if necessary.
3571
3572    S_Make_Bind    : aliased constant S := "/BINDER_QUALIFIERS=?"           &
3573                                             "-bargs BIND";
3574    --        /BINDER_QUALIFIERS
3575    --
3576    --   Any qualifiers specified after this qualifier other than
3577    --   /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3578    --   passed to any GNAT BIND commands generated by GNAT MAKE.
3579
3580    S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT "         &
3581                                             "-B";
3582    --        /BND_LNK_FULL_PROJECT
3583    --
3584    --   Bind and link all sources of a project, without any consideration
3585    --   to attribute Main, if there is one. This qualifier need to be
3586    --   used in conjunction with the /PROJECT_FILE= qualifier and cannot
3587    --   be used with a main subprogram on the command line or for
3588    --   a library project file. As the binder is invoked with the option
3589    --   meaning "No Ada main subprogram", the user must ensure that the
3590    --   proper options are specified to the linker. This qualifier is
3591    --   normally used when the main subprogram is in a foreign language
3592    --   such as C.
3593
3594    S_Make_Comp    : aliased constant S := "/COMPILER_QUALIFIERS=?"         &
3595                                             "-cargs COMPILE";
3596    --        /COMPILER_QUALIFIERS
3597    --
3598    --   Any qualifiers specified after this qualifier other than
3599    --   /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3600    --   passed to any GNAT COMPILE commands generated by GNAT MAKE.
3601
3602    S_Make_Cond    : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*"   &
3603                                             "-A*";
3604    --        /CONDITIONAL_SOURCE_SEARCH=dir
3605    --
3606    --   Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
3607
3608    S_Make_Cont    : aliased constant S := "/CONTINUE_ON_ERROR "            &
3609                                             "-k";
3610    --        /NOCONTINUE_ON_ERROR (D)
3611    --        /CONTINUE_ON_ERROR
3612    --
3613    --   Keep going. Continue as much as possible after a compilation error.
3614    --   To ease the programmer's task in case of compilation errors, the list
3615    --   of sources for which the compile fails is given when GNAT MAKE
3616    --   terminates.
3617
3618    S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
3619                                             "!-I-";
3620    --        /CURRENT_DIRECTORY (D)
3621    --        /NOCURRENT_DIRECTORY
3622    --
3623    --   Look for source, library or object files in the default directory.
3624
3625    S_Make_Dep     : aliased constant S := "/DEPENDENCIES_LIST "            &
3626                                             "-M";
3627    --        /NODEPENDENCIES_LIST (D)
3628    --        /DEPENDENCIES_LIST
3629    --
3630    --   Check if all objects are up to date. If they are, output the object
3631    --   dependences to SYS$OUTPUT in a form that can be directly exploited in
3632    --   a Unix-style Makefile. By default, each source file is prefixed with
3633    --   its (relative or absolute) directory name. This name is whatever you
3634    --   specified in the various /SOURCE_SEARCH and /SEARCH qualifiers.  If
3635    --   you also speficy the /QUIET qualifier, only the source file names,
3636    --   without relative paths, are output. If you just specify the
3637    --   /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
3638    --   files are omitted.  This is typically what you want. If you also
3639    --   specify the /ALL_FILES qualifier, dependencies of the GNAT internal
3640    --   files are also listed. Note that dependencies of the objects in
3641    --   external Ada libraries (see the /SKIP_MISSING qualifier) are never
3642    --   reported.
3643
3644    S_Make_Dirobj  : aliased constant S := "/DIRECTORY_OBJECTS=@"           &
3645                                             "-D@";
3646    --        /DIRECTORY_OBJECTS=<file>
3647    --
3648    --   Put all object files and .ALI files in <file>.
3649    --   This qualifier is not compatible with /PROJECT_FILE.
3650
3651    S_Make_Doobj   : aliased constant S := "/DO_OBJECT_CHECK "              &
3652                                             "-n";
3653    --        /NODO_OBJECT_CHECK (D)
3654    --        /DO_OBJECT_CHECK
3655    --
3656    --   Don't compile, bind, or link. Output a single command that will
3657    --   recompile an out of date unit, if any. Repeated use of this option,
3658    --   followed by carrying out the indicated compilation, will eventually
3659    --   result in recompiling all required units.
3660    --
3661    --   If any ALI is missing during the process, GNAT MAKE halts and
3662    --   displays an error message.
3663
3664    S_Make_Execut  : aliased constant S := "/EXECUTABLE=@"                  &
3665                                             "-o@";
3666    --        /EXECUTABLE=exec-name
3667    --
3668    --   The name of the final executable program will be 'exec_name'. If this
3669    --   qualifier is omitted the default name for the executable will be the
3670    --   name of the input file with an EXE filetype.  You may prefix
3671    --   'exec_name' with a relative or absolute directory path.
3672
3673    S_Make_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
3674                                             "-X" & '"';
3675    --        /EXTERNAL_REFERENCE="name=val"
3676    --
3677    --   Specifies an external reference to the project manager. Useful only if
3678    --   /PROJECT_FILE is used.
3679    --
3680    --   Example:
3681    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
3682
3683    S_Make_Force   : aliased constant S := "/FORCE_COMPILE "                &
3684                                             "-f";
3685    --        /NOFORCE_COMPILE (D)
3686    --        /FORCE_COMPILE
3687    --
3688    --   Force recompilations. Recompile all sources, even though some object
3689    --   files may be up to date, but don't recompile predefined or GNAT
3690    --   internal files unless the /ALL_FILES qualfier is also specified.
3691
3692    S_Make_Full    : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES "  &
3693                                             "-F";
3694    --        /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
3695    --        /FULL_PATH_IN_BRIEF_MESSAGES
3696    --
3697    --   When using project files, if some errors or warnings are detected
3698    --   during parsing and verbose mode is not in effect (no use of qualifier
3699    --   /VERBOSE), then error lines start with the full path name of the
3700    --   project file, rather than its simple file name.
3701
3702    S_Make_Inplace : aliased constant S := "/IN_PLACE "                     &
3703                                             "-i";
3704    --        /NOIN_PLACE (D)
3705    --        /IN_PLACE
3706    --
3707    --   In normal mode, GNAT MAKE compiles all object files and ALI files
3708    --   into the current directory. If the /IN_PLACE switch is used,
3709    --   then instead object files and ALI files that already exist are over-
3710    --   written in place. This means that once a large project is organized
3711    --   into separate directories in the desired manner, then GNAT MAKE will
3712    --   automatically maintain and update this organization. If no ALI files
3713    --   are found on the Ada object path, the new object and ALI files are
3714    --   created in the directory containing the source being compiled.
3715
3716    S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*"              &
3717                                             "-L*";
3718    --        /LIBRARY_SEARCH=(directory[,...])
3719    --
3720    --   Add the specified directories to the list of directories in which the
3721    --   linker will search for libraries.
3722
3723    S_Make_Link    : aliased constant S := "/LINKER_QUALIFIERS=?"           &
3724                                             "-largs LINK";
3725    --        /LINKER_QUALIFIERS
3726    --
3727    --   Any qualifiers specified after this qualifier other than
3728    --   /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
3729    --   passed to any GNAT LINK commands generated by GNAT LINK.
3730
3731    S_Make_Make    : aliased constant S := "/MAKE_QUALIFIERS=?"             &
3732                                             "-margs MAKE";
3733    --        /MAKE_QUALIFIERS
3734    --
3735    --   Any qualifiers specified after this qualifier other than
3736    --   /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
3737    --   are for the benefit of GNAT MAKE itself.
3738
3739    S_Make_Mapping : aliased constant S := "/MAPPING "                      &
3740                                             "-C";
3741    --        /NOMAPPING (D)
3742    --        /MAPPING
3743    --
3744    --   Use a mapping file.  A mapping file is a way to communicate to the
3745    --   compiler two mappings: from unit names to file names (without any
3746    --   directory information) and from file names to path names (with full
3747    --   directory information). These mappings are used by the compiler to
3748    --   short-circuit the path search. When GNAT MAKE is invoked with this
3749    --   qualifier, it will create a mapping file, initially populated by the
3750    --   project manager, if /PROJECT_File= is used, otherwise initially empty.
3751    --   Each invocation of the compiler will add the newly accessed sources to
3752    --   the mapping file. This will improve the source search during the next
3753    --   invocations of the compiler
3754
3755    S_Make_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
3756                                             "DEFAULT "                     &
3757                                                "-vP0 "                     &
3758                                             "MEDIUM "                      &
3759                                                "-vP1 "                     &
3760                                             "HIGH "                        &
3761                                                "-vP2";
3762    --        /MESSAGES_PROJECT_FILE[=messages-option]
3763    --
3764    --   Specifies the "verbosity" of the parsing of project files.
3765    --   messages-option may be one of the following:
3766    --
3767    --      DEFAULT (D)  No messages are output if there is no error or warning.
3768    --
3769    --      MEDIUM       A small number of messages are output.
3770    --
3771    --      HIGH         A great number of messages are output, most of them not
3772    --                   being useful for the user.
3773
3774    S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION "        &
3775                                             "-m";
3776    --        /NOMINIMAL_RECOMPILATION (D)
3777    --        /MINIMAL_RECOMPILATION
3778    --
3779    --   Specifies that the minimum necessary amount of recompilation
3780    --   be performed. In this mode GNAT MAKE ignores time stamp differences
3781    --   when the only modifications to a source file consist in
3782    --   adding/removing comments, empty lines, spaces or tabs.
3783
3784    S_Make_Nolink  : aliased constant S := "/NOLINK "                       &
3785                                             "-c";
3786    --        /NOLINK
3787    --
3788    --   Compile only. Do not perform binding and linking. If the root unit is
3789    --   not a main unit, this is the default.  Otherwise GNAT MAKE will
3790    --   attempt binding and linking unless all objects are up to date and the
3791    --   executable is more recent than the objects.
3792    --   This is equivalent to /ACTIONS=COMPILE
3793
3794    S_Make_Nomain  : aliased constant S := "/NOMAIN "                       &
3795                                             "-z";
3796    --        /NOMAIN
3797    --
3798    --   No main subprogram. Bind and link the program even if the unit name
3799    --   given on the command line is a package name. The resulting executable
3800    --   will execute the elaboration routines of the package and its closure,
3801    --   then the finalization routines.
3802
3803    S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
3804                                             "-nostdinc";
3805    --        /NOSTD_INCLUDES
3806    --
3807    --    Do not look for sources the in the system default directory.
3808
3809    S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
3810                                             "-nostdlib";
3811    --        /NOSTD_LIBRARIES
3812    --
3813    --    Do not look for library files in the system default directory.
3814
3815    S_Make_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
3816                                             "-aO*";
3817    --        /OBJECT_SEARCH=(directory[,...])
3818    --
3819    --   When looking for library and object files look also in the specified
3820    --   directories.
3821
3822    S_Make_Proc    : aliased constant S := "/PROCESSES=#"                   &
3823                                             "-j#";
3824    --        /NOPROCESSES (D)
3825    --        /PROCESSES=NNN
3826    --
3827    --   Use NNN processes to carry out the (re)complations. If you have a
3828    --   multiprocessor machine, compilations will occur in parallel.  In the
3829    --   event of compilation errors, messages from various compilations might
3830    --   get interspersed (but GNAT MAKE will give you the full ordered list of
3831    --   failing compiles at the end). This can at times be annoying.  To get a
3832    --   clean list of error messages don't use this qualifier.
3833
3834    S_Make_Nojobs  : aliased constant S := "/NOPROCESSES "                  &
3835                                             "-j1";
3836    --  NODOC (see /PROCESS)
3837
3838    S_Make_Project : aliased constant S := "/PROJECT_FILE=<"                &
3839                                             "-P>";
3840    --        /PROJECT_FILE=filename
3841    --
3842    --   Specifies the main project file to be used. The project files rooted
3843    --   at the main project file will be parsed before any other processing to
3844    --   set the building environment.
3845
3846    S_Make_Quiet   : aliased constant S := "/QUIET "                        &
3847                                             "-q";
3848    --        /NOQUIET (D)
3849    --        /QUIET
3850    --
3851    --   When this qualifiers is specified, the commands carried out by GNAT
3852    --   MAKE are not displayed.
3853
3854    S_Make_Reason  : aliased constant S := "/REASONS "                      &
3855                                             "-v";
3856    --        /NOREASONS (D)
3857    --        /REASONS
3858    --
3859    --   Displays the reason for all recompilations GNAT MAKE decides are
3860    --   necessary.
3861
3862    S_Make_RTS     : aliased constant S := "/RUNTIME_SYSTEM=|"              &
3863                                             "--RTS=|";
3864    --        /RUNTIME_SYSTEM=xxx
3865    --
3866    --    Build against an alternate runtime system named xxx or RTS-xxx.
3867
3868    S_Make_Search  : aliased constant S := "/SEARCH=*"                      &
3869                                             "-I*";
3870    --        /SEARCH=(directory[,...])
3871    --
3872    --   Search the specified directories for both source and object files.
3873
3874    S_Make_Skip    : aliased constant S := "/SKIP_MISSING=*"                &
3875                                             "-aL*";
3876    --        /SKIP_MISSING=(directory[,...])
3877    --
3878    --   Skip missing library sources if ALI in 'directory'.
3879
3880    S_Make_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
3881                                             "-aI*";
3882    --        /SOURCE_SEARCH=(directory[,...])
3883    --
3884    --   When looking for source files also look in the specified directories.
3885
3886    S_Make_Switch  : aliased constant S := "/SWITCH_CHECK "                 &
3887                                             "-s";
3888    --        /NOSWITCH_CHECK (D)
3889    --        /SWITCH_CHECK
3890    --
3891    --   Recompile if compiler switches have changed since last compilation.
3892    --   All compiler switches but -I and -o are taken into account in the
3893    --   following way: orders between different "first letter" switches are
3894    --   ignored, but orders between same switches are taken into account.
3895    --   For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
3896    --   to -O -g.
3897
3898    S_Make_Unique  : aliased constant S := "/UNIQUE "                       &
3899                                             "-u";
3900    --        /NOUNIQUE (D)
3901    --        /UNIQUE
3902    --
3903    --  Recompile at most the main file. It implies /ACTIONS=COMPILE.
3904    --  Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
3905    --  directly.
3906
3907    S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@"            &
3908                                             "-C=@";
3909    --        /USE_MAPPING_FILE=file_name
3910    --
3911    --   Use a specific mapping file. The file 'file_name', specified as a path
3912    --   name (absolute or relative) by this qualifier, should already exist,
3913    --   otherwise the qualifier is ineffective. The specified mapping file
3914    --   will be communicated to the compiler. This switch is not compatible
3915    --   with a project file (/PROJECT_FILE=) or with multiple compiling
3916    --   processes (/PROCESSES=nnn, when nnn is greater than 1).
3917
3918    S_Make_Verbose : aliased constant S := "/VERBOSE "                      &
3919                                             "-v";
3920    --        /NOVERBOSE (D)
3921    --        /VERBOSE
3922    --
3923    --   Displays the reason for all recompilations GNAT MAKE decides are
3924    --   necessary.
3925
3926    Make_Switches : aliased constant Switches :=
3927      (S_Make_Actions 'Access,
3928       S_Make_All     'Access,
3929       S_Make_Allproj 'Access,
3930       S_Make_Bind    'Access,
3931       S_Make_Comp    'Access,
3932       S_Make_Cond    'Access,
3933       S_Make_Cont    'Access,
3934       S_Make_Current 'Access,
3935       S_Make_Dep     'Access,
3936       S_Make_Dirobj  'Access,
3937       S_Make_Doobj   'Access,
3938       S_Make_Execut  'Access,
3939       S_Make_Ext     'Access,
3940       S_Make_Force   'Access,
3941       S_Make_Full    'Access,
3942       S_Make_Inplace 'Access,
3943       S_Make_Library 'Access,
3944       S_Make_Link    'Access,
3945       S_Make_Make    'Access,
3946       S_Make_Mapping 'Access,
3947       S_Make_Mess    'Access,
3948       S_Make_Minimal 'Access,
3949       S_Make_Nolink  'Access,
3950       S_Make_Nomain  'Access,
3951       S_Make_Nostinc 'Access,
3952       S_Make_Nostlib 'Access,
3953       S_Make_Object  'Access,
3954       S_Make_Proc    'Access,
3955       S_Make_Nojobs  'Access,
3956       S_Make_Project 'Access,
3957       S_Make_Quiet   'Access,
3958       S_Make_Reason  'Access,
3959       S_Make_RTS     'Access,
3960       S_Make_Search  'Access,
3961       S_Make_Skip    'Access,
3962       S_Make_Source  'Access,
3963       S_Make_Switch  'Access,
3964       S_Make_Unique  'Access,
3965       S_Make_Use_Map 'Access,
3966       S_Make_Verbose 'Access);
3967
3968    ----------------------------
3969    -- Switches for GNAT NAME --
3970    ----------------------------
3971
3972    S_Name_Conf    : aliased constant S := "/CONFIG_FILE=<"                 &
3973                                             "-c>";
3974    --        /CONFIG_FILE=path_name
3975    --
3976    --   Create a configuration pragmas file 'path_name' (instead of the default
3977    --   'gnat.adc'). 'path_name' may include directory information. 'path_name'
3978    --   must be writable. There may be only one qualifier /CONFIG_FILE.
3979    --   This qualifier is not compatible with qualifier /PROJECT_FILE.
3980
3981    S_Name_Dirs    : aliased constant S := "/SOURCE_DIRS=*"                 &
3982                                             "-d*";
3983    --        /SOURCE_DIRS=(directory, ...)
3984    --
3985    --   Look for source files in the specified directories. When this qualifier
3986    --   is specified, the current working directory will not be searched for
3987    --   source files, unless it is explicitly specified with a qualifier
3988    --   /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
3989    --   specified. If a directory is specified as a relative path, it is
3990    --   relative to the directory of the configuration pragmas file specified
3991    --   with qualifier /CONFIG_FILE, or to the directory of the project file
3992    --   specified with qualifier /PROJECT_FILE or, if neither qualifier
3993    --   /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
3994    --   to the current working directory. The directories specified with
3995    --   qualifiers /SOURCE_DIRS must exist and be readable.
3996
3997    S_Name_Dfile   : aliased constant S := "/DIRS_FILE=<"                   &
3998                                             "-D>";
3999    --        /DIRS_FILE=file_name
4000    --
4001    --   Look for source files in all directories listed in text file
4002    --   'file_name'. 'file_name' must be an existing, readable text file.
4003    --   Each non empty line in the specified file must be a directory.
4004    --   Specifying qualifier /DIRS_FILE is equivalent to specifying as many
4005    --   qualifiers /SOURCE_DIRS as there are non empty lines in the specified
4006    --   text file.
4007
4008    S_Name_Frng    : aliased constant S := "/FOREIGN_PATTERN=" & '"'        &
4009                                             "-f" & '"';
4010    --        /FOREIGN_PATTERN=<string>
4011    --
4012    --   Specify a foreign pattern.
4013    --   Using this qualifier, it is possible to add sources of languages other
4014    --   than Ada to the list of sources of a project file. It is only useful
4015    --   if a qualifier /PROJECT_FILE is used. For example,
4016    --
4017    --   GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
4018    --
4019    --   will look for Ada units in all files with the '.ADA' extension, and
4020    --   will add to the list of file for project PRJ.GPR the C files with
4021    --   extension ".C".
4022
4023    S_Name_Help    : aliased constant S := "/HELP "                         &
4024                                             "-h";
4025    --        /NOHELP (D)
4026    --        /HELP
4027    --
4028    --   Output usage information to the standard output stream.
4029
4030    S_Name_Proj    : aliased constant S := "/PROJECT_FILE=<"                &
4031                                             "-P>";
4032    --        /PROJECT_FILE=file_name
4033    --
4034    --   Create or update a project file. 'file_name' may include directory
4035    --   information. The specified file must be writable. There may be only
4036    --   one qualifier /PROJECT_FILE. When a qualifier /PROJECT_DILE is
4037    --   specified, no qualifier /CONFIG_FILE may be specified.
4038
4039    S_Name_Verbose : aliased constant S := "/VERBOSE "                      &
4040                                             "-v";
4041    --        /NOVERBOSE (D)
4042    --        /VERBOSE
4043    --
4044    --   Verbose mode. Output detailed explanation of behavior to the standard
4045    --   output stream. This includes name of the file written, the name of the
4046    --   directories to search and, for each file in those directories whose
4047    --   name matches at least one of the Naming Patterns, an indication of
4048    --   whether the file contains a unit, and if so the name of the unit.
4049
4050    S_Name_Excl    : aliased constant S := "/EXCLUDED_PATTERN=" & '"'       &
4051                                             "-x" & '"';
4052    --      /EXCLUDED_PATTERN=<string>
4053    --
4054    --   Specify an excluded pattern.
4055    --   Using this qualifier, it is possible to exclude some files that would
4056    --   match the Naming patterns. For example,
4057    --
4058    --   GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
4059    --
4060    --   will look for Ada units in all files with the '.ADA' extension, except
4061    --   those whose names end with '_NT.ADA'.
4062
4063    Name_Switches : aliased constant Switches :=
4064      (S_Name_Conf         'Access,
4065       S_Name_Dirs         'Access,
4066       S_Name_Dfile        'Access,
4067       S_Name_Frng         'Access,
4068       S_Name_Help         'Access,
4069       S_Name_Proj         'Access,
4070       S_Name_Verbose      'Access,
4071       S_Name_Excl         'Access);
4072
4073    ----------------------------------
4074    -- Switches for GNAT PREPROCESS --
4075    ----------------------------------
4076
4077    S_Prep_Assoc   : aliased constant S := "/ASSOCIATE=" & '"'              &
4078                                             "-D" & '"';
4079    --        /ASSOCIATE="name=val"
4080    --
4081    --   Defines a new symbol, associated with value. If no value is given
4082    --   on the command line, then symbol is considered to be True.
4083    --   This qualifier can be used in place of a definition file.
4084
4085    S_Prep_Blank   : aliased constant S := "/BLANK_LINES "                  &
4086                                             "-b";
4087    --        /NOBLANK_LINES (D)
4088    --        /BLANK_LINES
4089    --
4090    --   Causes both preprocessor lines and the lines deleted by preprocessing
4091    --   to be replaced by blank lines in the output source file, thus
4092    --   preserving line numbers in the output file.
4093
4094    S_Prep_Com     : aliased constant S := "/COMMENTS "                     &
4095                                             "-c";
4096    --        /NOCOMMENTS (D)
4097    --        /COMMENTS
4098    --
4099    --   /COMMENTS causes both preprocessor lines and the lines deleted
4100    --   by preprocessing to be retained in the output source as comments marked
4101    --   with the special string "--! ". This option will result in line numbers
4102    --   being preserved in the output file.
4103    --
4104    --   /NOCOMMENTS causes both preprocessor lines and the lines deleted by
4105    --   preprocessing to be replaced by blank lines in the output source file,
4106    --   thus preserving line numbers in the output file.
4107
4108    S_Prep_Ref     : aliased constant S := "/REFERENCE "                    &
4109                                             "-r";
4110    --        /NOREFERENCE (D)
4111    --        /REFERENCE
4112    --
4113    --   Causes a "Source_Reference" pragma to be generated that references the
4114    --   original input file, so that error messages will use the file name of
4115    --   this original file.  Also implies /BLANK_LINES if /COMMENTS is not
4116    --   specified.
4117
4118    S_Prep_Remove  : aliased constant S := "/REMOVE "                       &
4119                                             "!-b,!-c";
4120    --        /REMOVE (D)
4121    --        /NOREMOVE
4122    --
4123    --   Preprocessor lines and deleted lines are completely removed from the
4124    --   output.
4125
4126    S_Prep_Symbols : aliased constant S := "/SYMBOLS "                      &
4127                                             "-s";
4128    --        /NOSYMBOLS (D)
4129    --        /SYMBOLS
4130    --
4131    --   Causes a sorted list of symbol names and values to be listed on
4132    --   SYS$OUTPUT.
4133
4134    S_Prep_Undef   : aliased constant S := "/UNDEFINED "                    &
4135                                             "-u";
4136    --        /NOUNDEFINED (D)
4137    --        /UNDEFINED
4138
4139    Prep_Switches : aliased constant Switches :=
4140      (S_Prep_Assoc   'Access,
4141       S_Prep_Blank   'Access,
4142       S_Prep_Com     'Access,
4143       S_Prep_Ref     'Access,
4144       S_Prep_Remove  'Access,
4145       S_Prep_Symbols 'Access,
4146       S_Prep_Undef   'Access);
4147
4148    ------------------------------
4149    -- Switches for GNAT PRETTY --
4150    ------------------------------
4151
4152    S_Pretty_Align  : aliased constant S := "/ALIGN="                       &
4153                                            "DEFAULT "                      &
4154                                                "-A1234 "                   &
4155                                            "OFF "                          &
4156                                                "-A0 "                      &
4157                                            "COLONS "                       &
4158                                                "-A1 "                      &
4159                                            "DECLARATIONS "                 &
4160                                                "-A2 "                      &
4161                                            "STATEMENTS "                   &
4162                                                "-A3 "                      &
4163                                            "ARROWS "                       &
4164                                               "-A4";
4165    --        /ALIGN[=align-option, align-option, ...]
4166    --
4167    --   Set alignments. By default, all alignments (colons in declarations,
4168    --   initialisations in declarations, assignments and arrow delimiters) are
4169    --   ON.
4170    --
4171    --   align-option may be one of the following:
4172    --
4173    --      OFF (D)      Set all alignments to OFF
4174    --      COLONS       Set alignments of colons in declarations to ON
4175    --      DECLARATIONS Set alignments of initialisations in declarations to ON
4176    --      STATEMENTS   Set alignments of assignments statements to ON
4177    --      ARROWS       Set alignments of arrow delimiters to ON.
4178    --
4179    --   Specifying one of the ON options without first specifying the OFF
4180    --   option has no effect, because by default all alignments are set to ON.
4181
4182    S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING="            &
4183                                            "MIXED_CASE "                   &
4184                                                "-aM "                      &
4185                                            "LOWER_CASE "                   &
4186                                                "-aL "                      &
4187                                            "UPPER_CASE "                   &
4188                                                "-aU";
4189    --        /ATTRIBUTE_CASING[=casing-option]
4190    --
4191    --   Set the case of the attributes. By default the attributes are in mixed
4192    --   case.
4193    --   casing-option may be one of the following:
4194    --
4195    --      MIXED_CASE (D)
4196    --      LOWER_CASE
4197    --      UPPER_CASE
4198
4199    S_Pretty_Comments  : aliased constant S := "/COMMENTS_LAYOUT="          &
4200                                               "DEFAULT "                   &
4201                                                  "-c1 "                    &
4202                                               "STANDARD_INDENT "           &
4203                                                  "-c2 "                    &
4204                                               "GNAT_BEGINNING "            &
4205                                                  "-c3 "                    &
4206                                               "REFORMAT "                  &
4207                                                  "-c4";
4208    --        /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
4209    --
4210    --   Set the comment layout. By default, comments use the GNAT style comment
4211    --   line indentation.
4212    --   layout-option may be one of the following:
4213    --
4214    --     DEFAULT (D)         GNAT style comment line indentation
4215    --     STANDARD_INDENT     Standard comment line indentation
4216    --     GNAT_BEGINNING      GNAT style comment beginning
4217    --     REFORMAT            Reformat comment blocks
4218    --
4219    --     All combinations of layout options are allowed, except for DEFAULT
4220    --     and STANDARD_INDENT which are mutually exclusive.
4221    --
4222    --     The difference between "GNAT style comment line indentation" and
4223    --     "standard comment line indentation" is the following: for standard
4224    --     comment indentation, any comment line is indented as if it were
4225    --     a declaration or statement at the same place.
4226    --     For GNAT style comment indentation, comment lines which are
4227    --     immediately followed by if or case statement alternative, record
4228    --     variant or 'begin' keyword are indented as the keyword that follows
4229    --     them.:
4230    --
4231    --     Standard indentation:
4232    --
4233    --        if A then
4234    --           null;
4235    --           -- some comment
4236    --        else
4237    --           null;
4238    --        end if;
4239    --
4240    --     GNAT style indentation:
4241    --
4242    --        if A then
4243    --           null;
4244    --        -- some comment
4245    --        else
4246    --           null;
4247    --        end if;
4248    --
4249    --     Option "GNAT style comment beginning" means that for each comment
4250    --     which is not considered as non-formattable separator (that is, the
4251    --     comment line contains only dashes, or a comment line ends with two
4252    --     dashes), there will be at least two spaces between starting "--" and
4253    --     the first non-blank character of the comment.
4254
4255    S_Pretty_Config    : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
4256                                               "-gnatec>";
4257    --        /CONFIGURATION_PRAGMAS_FILE=file
4258    --
4259    --   Specify a configuration pragmas file that need to be passed to the
4260    --   compiler.
4261
4262    S_Pretty_Constr    : aliased constant S := "/CONSTRUCT_LAYOUT="         &
4263                                                "GNAT "                     &
4264                                                   "-l1 "                   &
4265                                                "COMPACT "                  &
4266                                                   "-l2 "                   &
4267                                                "UNCOMPACT "                &
4268                                                    "-l3";
4269    --        /CONSTRUCT_LAYOUT[=construct-option]
4270    --
4271    --   Set construct layout. Default is GNAT style layout.
4272    --   construct-option may be one of the following:
4273    --
4274    --      GNAT (D)
4275    --      COMPACT
4276    --      UNCOMPACT
4277    --
4278    --   The difference between GNAT style and Compact layout on one hand
4279    --   and Uncompact layout on the other hand can be illustrated by the
4280    --   following examples:
4281    --
4282    --       GNAT style and                          Uncompact layout
4283    --       Compact layout
4284    --
4285    --       type q is record                        type q is
4286    --          a : integer;                            record
4287    --          b : integer;                               a : integer;
4288    --       end record;                                   b : integer;
4289    --                                                  end record;
4290    --
4291    --
4292    --       Block : declare                         Block :
4293    --          A : Integer := 3;                       declare
4294    --       begin                                         A : Integer := 3;
4295    --          Proc (A, A);                            begin
4296    --       end Block;                                    Proc (A, A);
4297    --                                                  end Block;
4298    --
4299    --       Clear : for J in 1 .. 10 loop           Clear :
4300    --          A (J) := 0;                             for J in 1 .. 10 loop
4301    --       end loop Clear;                               A (J) := 0;
4302    --                                                  end loop Clear;
4303    --
4304    --
4305    --   A further difference between GNAT style layout and compact layout is
4306    --   that in GNAT style layout compound statements, return statements and
4307    --   bodies are always separated by empty lines.
4308
4309    S_Pretty_Comind    : aliased constant S := "/CONTINUATION_INDENT=#"     &
4310                                                  "-cl#";
4311    --        /CONTINUATION_INDENT=nnn
4312    --
4313    --   Indentation level for continuation lines, nnn from 1 .. 9.
4314    --   The default value is one less then the (normal) indentation level,
4315    --   unless the indentation is set to 1: in that case the default value for
4316    --   continuation line indentation is also 1.
4317
4318    S_Pretty_Ext       : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4319                                             "-X" & '"';
4320    --        /EXTERNAL_REFERENCE="name=val"
4321    --
4322    --   Specifies an external reference to the project manager. Useful only if
4323    --   /PROJECT_FILE is used.
4324    --
4325    --   Example:
4326    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
4327
4328    S_Pretty_Current   : aliased constant S := "/CURRENT_DIRECTORY "        &
4329                                               "!-I-";
4330    --        /CURRENT_DIRECTORY (D)
4331    --
4332    --   Look for source files in the current working directory.
4333    --
4334    --        /NOCURRENT_DIRECTORY
4335    --   Do not look for source files in the current working directory.
4336
4337    S_Pretty_Dico      : aliased constant S := "/DICTIONARY=*"              &
4338                                               "-D*";
4339    --        /DICTIONARY=(file_name, ...)
4340    --
4341    --   Use each specified file as a dictionary file that defines the casing
4342    --   for a set of specified names, thereby overriding the effect on these
4343    --   names by any explicit or implicit /NAME_CASING qualifier.
4344    --
4345    --   GNAT PRETTY implicitly uses a default dictionary file to define the
4346    --   casing for the Ada predefined names and the names declared in the GNAT
4347    --   libraries.
4348    --
4349    --   The structure of a dictionary file, and details on the conventions
4350    --   used in the default dictionary file, are defined in the GNAT User's
4351    --   Guide.
4352
4353    S_Pretty_Forced    : aliased constant S := "/FORCED_OUTPUT=@"           &
4354                                                  "-of@";
4355    --        /FORCED_OUTPUT=file
4356    --
4357    --   Write the output into the specified file, overriding any possibly
4358    --   existing file.
4359
4360    S_Pretty_Formfeed  : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
4361                                               "-ff";
4362    --        /FORM_FEED_AFTER_PRAGMA_PAGE
4363    --
4364    --   When there is a pragma Page in the source, insert a Form Feed
4365    --   character immediately after the semicolon that follows the pragma
4366    --   Page.
4367
4368    S_Pretty_Indent    : aliased constant S := "/INDENTATION_LEVEL=#"       &
4369                                                 "-i#";
4370    --        /INDENTATION_LEVEL=nnn
4371    --
4372    --   Specify the number of spaces to add for each indentation level.
4373    --   nnn must be between 1 and 9. The default is 3.
4374
4375    S_Pretty_Keyword   : aliased constant S := "/KEYWORD_CASING="           &
4376                                               "LOWER_CASE "                &
4377                                                  "-kL "                    &
4378                                               "UPPER_CASE "                &
4379                                                  "-kU";
4380    --        /KEYWORD_CASING[=keyword-option]
4381    --
4382    --   Specify the case of Ada keywords. The default is keywords in lower
4383    --   case.
4384    --   keyword-option may be one of the following:
4385    --
4386    --      LOWER_CASE (D)
4387    --      UPPER_CASE
4388
4389    S_Pretty_Maxlen    : aliased constant S := "/LINE_LENGTH_MAX=#"         &
4390                                                  "-M#";
4391    --        /LINE_LENGTH_MAX=nnn
4392    --
4393    --   Set the maximum line length, nnn from 32 ..256. The default is 79.
4394
4395    S_Pretty_Maxind    : aliased constant S := "/MAX_INDENT=#"              &
4396                                                  "-T#";
4397    --        /MAX_INDENT=nnn
4398    --
4399    --   Do not use an additional indentation level for case alternatives
4400    --   and variants if their number is nnn or more. The default is  10.
4401    --   If nnn is zero, an additional indentation level is  used for any number
4402    --   of case alternatives and variants.
4403
4404    S_Pretty_Mess      : aliased constant S := "/MESSAGES_PROJECT_FILE="    &
4405                                             "DEFAULT "                     &
4406                                                "-vP0 "                     &
4407                                             "MEDIUM "                      &
4408                                                "-vP1 "                     &
4409                                             "HIGH "                        &
4410                                                "-vP2";
4411    --        /MESSAGES_PROJECT_FILE[=messages-option]
4412    --
4413    --   Specifies the "verbosity" of the parsing of project files.
4414    --   messages-option may be one of the following:
4415    --
4416    --      DEFAULT (D)  No messages are output if there is no error or warning.
4417    --
4418    --      MEDIUM       A small number of messages are output.
4419    --
4420    --      HIGH         A great number of messages are output, most of them not
4421    --                   being useful for the user.
4422
4423    S_Pretty_Names     : aliased constant S := "/NAME_CASING="              &
4424                                               "AS_DECLARED "               &
4425                                                  "-nD "                    &
4426                                               "LOWER_CASE "                &
4427                                                  "-nL "                    &
4428                                               "UPPER_CASE "                &
4429                                                  "-nU "                    &
4430                                               "MIXED_CASE "                &
4431                                                  "-nM";
4432    --        /NAME_CASING[=name-option]
4433    --
4434    --   Specify the casing of names.
4435    --   'name-option' may be one of:
4436    --
4437    --      AS_DECLARED (D)   Name casing for defining occurrences are as they
4438    --                        appear in the source file.
4439    --
4440    --      LOWER_CASE        Names are in lower case.
4441    --
4442    --      UPPER_CASE        Names are in upper case.
4443    --
4444    --      MIXED_CASE        Names are in mixed case.
4445
4446    S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS "         &
4447                                                  "-e";
4448    --        /NO_MISSED_LABELS
4449    --
4450    --   Do not insert missing end/exit labels. The end label is the name of
4451    --   a construct that may optionally appear at the end of the construct.
4452    --   This includes the names of packages and subprograms.
4453    --   Similarly, the exit label is the name of a loop that may appear as the
4454    --   argument of an exit statement within the loop. By default, GNAT PRETTY
4455    --   inserts these end/exit labels when they are absent in the original
4456    --   source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
4457    --   so that the formatted source reflects the original.
4458
4459    S_Pretty_Output    : aliased constant S := "/OUTPUT=@"                  &
4460                                               "-o@";
4461    --        /OUTPUT=file
4462    --
4463    --   Write the output to the specified file. If the file already exists,
4464    --   an error is reported.
4465
4466    S_Pretty_Override  : aliased constant S := "/OVERRIDING_REPLACE "       &
4467                                                  "-rf";
4468    --        /NOOVERRIDING_REPLACE (D)
4469    --        /OVERRIDING_REPLACE
4470    --
4471    --   Replace the argument source with the pretty-printed source and copy the
4472    --   argument source into filename.NPP, overriding any existing file if
4473    --   needed.
4474
4475    S_Pretty_Pragma    : aliased constant S := "/PRAGMA_CASING="            &
4476                                               "MIXED_CASE "                &
4477                                                  "-pM "                    &
4478                                               "LOWER_CASE "                &
4479                                                  "-pL "                    &
4480                                               "UPPER_CASE "                &
4481       --        /PRAGMA_CASING[=pragma-option]
4482    --
4483    --   Set the case of pragma identifiers. The default is Mixed case.
4484    --   pragma-option may be one of the following:
4485    --
4486    --      MIXED_CASE (D)
4487    --      LOWER_CASE
4488    --      UPPER_CASE
4489                                               "-pU";
4490    S_Pretty_Project   : aliased constant S := "/PROJECT_FILE=<"               &
4491                                             "-P>";
4492    --        /PROJECT_FILE=filename
4493    --
4494    --   Specifies the main project file to be used. The project files rooted
4495    --   at the main project file will be parsed before any other processing to
4496    --   set the building environment.
4497
4498    S_Pretty_Replace   : aliased constant S := "/REPLACE "                  &
4499                                                  "-r";
4500    --        /NOREPLACE (D)
4501    --        /REPLACE
4502    --
4503    --   Replace the argument source with the pretty-printed source and copy the
4504    --   argument source into filename.NPP. If filename.NPP already exists,
4505    --   report an error and exit.
4506
4507    S_Pretty_Search    : aliased constant S := "/SEARCH=*"                  &
4508                                               "-I*";
4509    --        /SEARCH=(directory[,...])
4510    --
4511    --    When looking for source files also look in directories specified.
4512
4513    S_Pretty_Specific  : aliased constant S := "/SPECIFIC_CASING "          &
4514                                               "-D-";
4515    --        /SPECIFIC_CASING
4516    --
4517    --   Do not use the default dictionary file; instead, use the casing
4518    --   defined by a qualifier /NAME_CASING and/or any explicit dictionary
4519    --   file specified by a qualifier /DICTIONARY.
4520
4521    S_Pretty_Standard  : aliased constant S := "/STANDARD_OUTPUT "          &
4522                                               "-pipe";
4523    --        /NOSTANDARD_OUTPUT (D)
4524    --        /STANDARD_OUTPUT
4525    --
4526    --   Redirect the output to the standard output.
4527
4528    S_Pretty_Verbose   : aliased constant S := "/VERBOSE "                  &
4529                                               "-v";
4530    --        /NOVERBOSE (D)
4531    --        /VERBOSE
4532    --
4533    --   Verbose mode; GNAT PRETTY generates version information and then a
4534    --   trace of the actions it takes to produce or obtain the ASIS tree.
4535
4536    S_Pretty_Warnings  : aliased constant S := "/WARNINGS "                 &
4537                                               "-w";
4538    --        /NOWARNINGS (D)
4539    --        /WARNINGS
4540    --
4541    --   Issue a warning to the standard error stream if it is not possible
4542    --   to provide the required layout in the result source.
4543    --   By default such warnings are not activated.
4544
4545    Pretty_Switches : aliased constant Switches :=
4546      (S_Pretty_Align     'Access,
4547       S_Pretty_Attrib    'Access,
4548       S_Pretty_Comments  'Access,
4549       S_Pretty_Config    'Access,
4550       S_Pretty_Constr    'Access,
4551       S_Pretty_Comind    'Access,
4552       S_Pretty_Ext       'Access,
4553       S_Pretty_Current   'Access,
4554       S_Pretty_Dico      'Access,
4555       S_Pretty_Forced    'Access,
4556       S_Pretty_Formfeed  'Access,
4557       S_Pretty_Indent    'Access,
4558       S_Pretty_Keyword   'Access,
4559       S_Pretty_Maxlen    'Access,
4560       S_Pretty_Maxind    'Access,
4561       S_Pretty_Mess      'Access,
4562       S_Pretty_Names     'Access,
4563       S_Pretty_No_Labels 'Access,
4564       S_Pretty_Output    'Access,
4565       S_Pretty_Override  'Access,
4566       S_Pretty_Pragma    'Access,
4567       S_Pretty_Replace   'Access,
4568       S_Pretty_Project   'Access,
4569       S_Pretty_Search    'Access,
4570       S_Pretty_Specific  'Access,
4571       S_Pretty_Standard  'Access,
4572       S_Pretty_Verbose   'Access,
4573       S_Pretty_Warnings  'Access);
4574
4575    ------------------------------
4576    -- Switches for GNAT SHARED --
4577    ------------------------------
4578
4579    S_Shared_Debug   : aliased constant S := "/DEBUG="                      &
4580                                             "ALL "                         &
4581                                                "-g3 "                      &
4582                                             "NONE "                        &
4583                                                "-g0 "                      &
4584                                             "TRACEBACK "                   &
4585                                                "-g1 "                      &
4586                                             "NOTRACEBACK "                 &
4587                                                "-g0";
4588    --        /DEBUG[=debug-option]
4589    --        /NODEBUG
4590    --
4591    --   Specifies the amount of debugging information included. 'debug-option'
4592    --   is one of the following:
4593    --
4594    --        ALL (D)      Include full debugging information.
4595    --
4596    --        NONE         Provide no debugging information. Same as /NODEBUG.
4597    --
4598    --        TRACEBACK    Provide sufficient debug information for a traceback.
4599    --
4600    --        NOTRACEBACK  Same as NONE.
4601
4602    S_Shared_Image  : aliased constant S := "/IMAGE=@"                      &
4603                                             "-o@";
4604    --        /IMAGE=image-name
4605    --
4606    --   'image-name' specifies the name for the generated shared library.
4607
4608    S_Shared_Ident   : aliased constant S := "/IDENTIFICATION=" & '"'       &
4609                                             "--for-linker=IDENT="          &
4610                                             '"';
4611    --        /IDENTIFICATION="<string>"
4612    --
4613    --   "<string>" specifies the string to be stored in the image file ident-
4614    --   ification field in the image header. It overrides any pragma Ident
4615    --   specified string.
4616
4617    S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES "              &
4618                                             "-nostartfiles";
4619    --        /NOSTART_FILES
4620    --
4621    --   Link in default image initialization and startup functions.
4622
4623    S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE "            &
4624                                             "--for-linker=--noinhibit-exec";
4625    --        /NOINHIBIT-IMAGE
4626    --
4627    --   Delete image if there are errors or warnings.
4628
4629    S_Shared_Verb    : aliased constant S := "/VERBOSE "                    &
4630                                             "-v";
4631    --        /NOVERBOSE (D)
4632    --        /VERBOSE
4633    --
4634    --   Causes additional information to be output, including a full list of
4635    --   the included object files. This switch option is most useful when you
4636    --   want to see what set of object files are being used in the link step.
4637
4638    S_Shared_ZZZZZ   : aliased constant S := "/<other> "                    &
4639                                             "--for-linker=";
4640    --        /<other>
4641    --
4642    --   Any other switch transmitted to the underlying linker.
4643
4644    Shared_Switches : aliased constant Switches :=
4645      (S_Shared_Debug   'Access,
4646       S_Shared_Image   'Access,
4647       S_Shared_Ident   'Access,
4648       S_Shared_Nofiles 'Access,
4649       S_Shared_Noinhib 'Access,
4650       S_Shared_Verb    'Access,
4651       S_Shared_ZZZZZ   'Access);
4652
4653    ----------------------------
4654    -- Switches for GNAT STUB --
4655    ----------------------------
4656
4657    S_Stub_Config  : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<"  &
4658                                             "-gnatec>";
4659    --        /CONFIGURATION_PRAGMAS_FILE=filespec
4660    --
4661    --   Specifies a configuration pragmas file that must be taken into account
4662    --   when compiling.
4663
4664    S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY "            &
4665                                             "!-I-";
4666    --        /CURRENT_DIRECTORY (D)
4667    --        /NOCURRENT_DIRECTORY
4668    --
4669    --   Look for source, library or object files in the default directory.
4670
4671    S_Stub_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
4672                                             "-X" & '"';
4673    --        /EXTERNAL_REFERENCE="name=val"
4674    --
4675    --   Specifies an external reference to the project manager. Useful only if
4676    --   /PROJECT_FILE is used.
4677    --
4678    --   Example:
4679    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
4680
4681    S_Stub_Full    : aliased constant S := "/FULL "                         &
4682                                             "-f";
4683    --        /NOFULL (D)
4684    --        /FULL
4685    --
4686    --   If the destination directory already contains a file with the name of
4687    --   the body file for the argument file spec, replace it with the generated
4688    --   body stub. If /FULL is not used and there is already a body file, this
4689    --   existing body file is not replaced.
4690
4691    S_Stub_Header  : aliased constant S := "/HEADER="                       &
4692                                             "GENERAL "                     &
4693                                                "-hg "                      &
4694                                             "SPEC "                        &
4695                                                "-hs";
4696    --        /HEADER[=header-option]
4697    --
4698    --   Specifies the form of the comment header above the generated body stub.
4699    --   If no /HEADER qualifier is specified, there is no comment header.
4700    --   header-option is one of the following:
4701    --
4702    --
4703    --      GENERAL (D)  Put a sample comment header into the body stub.
4704    --
4705    --      SPEC         Put the comment header (i.e., all the comments
4706    --                   preceding the compilation unit) from the source of the
4707    --                   library unit declaration into the body stub.
4708
4709    S_Stub_Indent  : aliased constant S := "/INDENTATION=#"                 &
4710                                             "-i#";
4711    --        /INDENTATION=nnn
4712    --
4713    --   (nnn is a non-negative integer). Set the indentation level in the
4714    --   generated body stub to nnn. nnn=0 means "no indentation".
4715    --   Default insdentation is 3.
4716
4717    S_Stub_Keep    : aliased constant S := "/KEEP "                         &
4718                                             "-k";
4719    --        /NOKEEP (D)
4720    --        /KEEP
4721    --
4722    --   Do not delete the tree file (i.e., the snapshot of the compiler
4723    --   internal structures used by gnatstub) after creating the body stub.
4724
4725    S_Stub_Length  : aliased constant S := "/LINE_LENGTH=#"                 &
4726                                             "-l#";
4727    --        /LINE_LENGTH=nnn
4728    --
4729    --   (n is a non-negative integer). Set the maximum line length in the body
4730    --   stub to nnn. Default is 78.
4731
4732    S_Stub_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
4733                                             "DEFAULT "                     &
4734                                                "-vP0 "                     &
4735                                             "MEDIUM "                      &
4736                                                "-vP1 "                     &
4737                                             "HIGH "                        &
4738                                                "-vP2";
4739    --        /MESSAGES_PROJECT_FILE[=messages-option]
4740    --
4741    --   Specifies the "verbosity" of the parsing of project files.
4742    --   messages-option may be one of the following:
4743    --
4744    --      DEFAULT (D)  No messages are output if there is no error or warning.
4745    --
4746    --      MEDIUM       A small number of messages are output.
4747    --
4748    --      HIGH         A great number of messages are output, most of them not
4749    --                   being useful for the user.
4750
4751    S_Stub_Output  : aliased constant S := "/OUTPUT=@"                      &
4752                                             "-o@";
4753    --        /OUTPUT=filespec
4754    --
4755    --   Body file name. This should be set if the argument file name does not
4756    --   follow the GNAT file naming conventions. If this switch is omitted,
4757    --   the default name for the body will be obtained from the argument file
4758    --   name according to the GNAT file naming conventions.
4759
4760    S_Stub_Project : aliased constant S := "/PROJECT_FILE=<"                &
4761                                             "-P>";
4762    --        /PROJECT_FILE=filename
4763    --
4764    --   Specifies the main project file to be used. The project files rooted
4765    --   at the main project file will be parsed before any other processing.
4766    --   The source and object directories to be searched will be communicated
4767    --   to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
4768    --   ADA_PRJ_OBJECTS_FILE.
4769
4770    S_Stub_Quiet   : aliased constant S := "/QUIET "                        &
4771                                             "-q";
4772    --        /NOQUIET (D)
4773    --        /QUIET
4774    --
4775    --   Quiet mode: do not generate a confirmation when a body is successfully
4776    --   created, and do not generate a message when a body is not required for
4777    --   an argument unit.
4778
4779    S_Stub_Search  : aliased constant S := "/SEARCH=*"                      &
4780                                             "-I*";
4781    --        /SEARCH=(directory[,...])
4782    --
4783    --    When looking for source files also look in directories specified.
4784
4785    S_Stub_Tree    : aliased constant S := "/TREE_FILE="                    &
4786                                             "OVERWRITE "                   &
4787                                                "-t "                       &
4788                                             "SAVE "                        &
4789                                                "-k "                       &
4790                                             "REUSE "                       &
4791                                                "-r";
4792    --        /TREE_FILE[=treefile-option]
4793    --
4794    --   Specify what to do with the tree file.
4795    --   treefile-option is one of the following:
4796    --
4797    --      OVERWRITE (D)  Overwrite the existing tree file. If the current
4798    --                     directory already contains the file which, according
4799    --                     to the GNAT file naming rules should be considered
4800    --                     as a tree file for the argument source file,
4801    --                     gnatstub will refuse to create the tree file needed
4802    --                     to create a sample body unless this option is chosen.
4803    --
4804    --      SAVE           Do not remove the tree file (i.e., the snapshot
4805    --                     of the compiler internal structures used by gnatstub)
4806    --                     after creating the body stub.
4807    --
4808    --      REUSE          Reuse the tree file (if it exists) instead of
4809    --                     creating it.
4810    --                     Instead of creating the tree file for the library
4811    --                     unit declaration, gnatstub tries to find it in the
4812    --                     current directory and use it for creating a body.
4813    --                     If the tree file is not found, no body is created.
4814    --                     This option also implies `SAVE', whether or not the
4815    --                     latter is set explicitly.
4816
4817    S_Stub_Verbose : aliased constant S := "/VERBOSE "                      &
4818                                             "-v";
4819    --        /NOVERBOSE (D)
4820    --        /VERBOSE
4821    --
4822    --   Verbose mode: generate version information.
4823
4824    Stub_Switches : aliased constant Switches :=
4825      (S_Stub_Config  'Access,
4826       S_Stub_Current 'Access,
4827       S_Stub_Ext     'Access,
4828       S_Stub_Full    'Access,
4829       S_Stub_Header  'Access,
4830       S_Stub_Indent  'Access,
4831       S_Stub_Keep    'Access,
4832       S_Stub_Length  'Access,
4833       S_Stub_Mess    'Access,
4834       S_Stub_Output  'Access,
4835       S_Stub_Project 'Access,
4836       S_Stub_Quiet   'Access,
4837       S_Stub_Search  'Access,
4838       S_Stub_Tree    'Access,
4839       S_Stub_Verbose 'Access);
4840
4841    ----------------------------
4842    -- Switches for GNAT XREF --
4843    ----------------------------
4844
4845    S_Xref_All     : aliased constant S := "/ALL_FILES "                    &
4846                                             "-a";
4847    --        /NOALL_FILES (D)
4848    --        /ALL_FILES
4849    --
4850    --   If this switch is present, FIND and XREF will parse the read-only
4851    --   files found in the library search path. Otherwise, these files will
4852    --   be ignored. This option can be used to protect Gnat sources or your
4853    --   own libraries from being parsed, thus making FIND and XREF much
4854    --   faster, and their output much smaller.
4855
4856    S_Xref_Deriv   : aliased constant S := "/DERIVED_TYPES "                &
4857                                             "-d";
4858    --        /NODERIVED_TYPES (D)
4859    --        /DERIVED_TYPES
4860    --
4861    --   Output the parent type reference for each matching derived types.
4862
4863    S_Xref_Ext     : aliased constant S := "/EXTERNAL_REFERENCE=" & '"'     &
4864                                             "-X" & '"';
4865    --        /EXTERNAL_REFERENCE="name=val"
4866    --
4867    --   Specifies an external reference to the project manager. Useful only if
4868    --   /PROJECT_FILE is used.
4869    --
4870    --   Example:
4871    --      /EXTERNAL_REFERENCE="DEBUG=TRUE"
4872
4873    S_Xref_Full    : aliased constant S := "/FULL_PATHNAME "                &
4874                                             "-f";
4875    --        /NOFULL_PATHNAME (D)
4876    --        /FULL_PATHNAME
4877    --
4878    --   If this switch is set, the output file names will be preceded by their
4879    --   directory (if the file was found in the search path). If this switch
4880    --   is not set, the directory will not be printed.
4881
4882    S_Xref_Global  : aliased constant S := "/IGNORE_LOCALS "                &
4883                                             "-g";
4884    --        /NOIGNORE_LOCALS (D)
4885    --        /IGNORE_LOCALS
4886    --
4887    --   If this switch is set, information is output only for library-level
4888    --   entities, ignoring local entities. The use of this switch may
4889    --   accelerate FIND and XREF.
4890
4891    S_Xref_Mess    : aliased constant S := "/MESSAGES_PROJECT_FILE="        &
4892                                             "DEFAULT "                     &
4893                                                "-vP0 "                     &
4894                                             "MEDIUM "                      &
4895                                                "-vP1 "                     &
4896                                             "HIGH "                        &
4897                                                "-vP2";
4898    --        /MESSAGES_PROJECT_FILE[=messages-option]
4899    --
4900    --   Specifies the "verbosity" of the parsing of project files.
4901    --   messages-option may be one of the following:
4902    --
4903    --      DEFAULT (D)  No messages are output if there is no error or warning.
4904    --
4905    --      MEDIUM       A small number of messages are output.
4906    --
4907    --      HIGH         A great number of messages are output, most of them not
4908    --                   being useful for the user.
4909
4910    S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES "               &
4911                                             "-nostdinc";
4912    --        /NOSTD_INCLUDES
4913    --
4914    --   Do not look for sources in the system default directory.
4915
4916    S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES "              &
4917                                             "-nostdlib";
4918    --        /NOSTD_LIBRARIES
4919    --
4920    --   Do not look for library files in the system default directory.
4921
4922    S_Xref_Object  : aliased constant S := "/OBJECT_SEARCH=*"               &
4923                                             "-aO*";
4924    --        /OBJECT_SEARCH=(directory,...)
4925    --
4926    --   When searching for library and object files, look in the specified
4927    --   directories. The order in which library files are searched is the same
4928    --   as for MAKE.
4929
4930    S_Xref_Project : aliased constant S := "/PROJECT=@"                     &
4931                                             "-p@";
4932    --        /PROJECT=file
4933    --
4934    --   Specify a project file to use. By default, FIND and XREF will try to
4935    --   locate a project file in the current directory.
4936    --
4937    --   If a project file is either specified or found by the tools, then the
4938    --   content of the source directory and object directory lines are added
4939    --   as if they had been specified respectively by /SOURCE_SEARCH and
4940    --   /OBJECT_SEARCH.
4941
4942    S_Xref_Prj     : aliased constant S := "/PROJECT_FILE=<"                &
4943                                             "-P>";
4944    --        /PROJECT_FILE=filename
4945    --
4946    --   Specifies the main project file to be used. The project files rooted
4947    --   at the main project file will be parsed before doing any processing.
4948    --   The source and object directories to be searched will be communicated
4949    --   to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
4950    --   ADA_PRJ_OBJECTS_FILE.
4951
4952    S_Xref_Search  : aliased constant S := "/SEARCH=*"                      &
4953                                             "-I*";
4954    --        /SEARCH=(directory,...)
4955    --
4956    --   Equivalent to:
4957    --           /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
4958
4959    S_Xref_Source  : aliased constant S := "/SOURCE_SEARCH=*"               &
4960                                             "-aI*";
4961    --        /SOURCE_SEARCH=(directory,...)
4962    --
4963    --   When looking for source files also look in the specified directories.
4964    --   The order in which source file search is undertaken is the same as for
4965    --   MAKE.
4966
4967    S_Xref_Output  : aliased constant S := "/UNUSED "                       &
4968                                             "-u";
4969    --        /SOURCE_SEARCH=(directory,...)
4970    --
4971    --   When looking for source files also look in the specified directories.
4972    --   The order in which source file search is undertaken is the same as for
4973    --   MAKE.
4974
4975    S_Xref_Tags    : aliased constant S := "/TAGS "                         &
4976                                             "-v";
4977    --        /NOTAGS (D)
4978    --        /TAGS
4979    --
4980    --   Print a 'tags' file for vi.
4981
4982    Xref_Switches : aliased constant Switches :=
4983      (S_Xref_All     'Access,
4984       S_Xref_Deriv   'Access,
4985       S_Xref_Ext     'Access,
4986       S_Xref_Full    'Access,
4987       S_Xref_Global  'Access,
4988       S_Xref_Mess    'Access,
4989       S_Xref_Nostinc 'Access,
4990       S_Xref_Nostlib 'Access,
4991       S_Xref_Object  'Access,
4992       S_Xref_Project 'Access,
4993       S_Xref_Prj     'Access,
4994       S_Xref_Search  'Access,
4995       S_Xref_Source  'Access,
4996       S_Xref_Output  'Access,
4997       S_Xref_Tags    'Access);
4998
4999 end VMS_Data;