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