OSDN Git Service

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