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