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