Merge from trunk:
[official-gcc.git] / main / gcc / ada / vms_data.ads
blobd8118ba34af6bd097a9b6693a35851efd3604706
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-2014, 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_Template : aliased constant S := "/TEMPLATE=@" &
886 "--write-rules=@";
887 -- /TEMPLATE=filename
889 -- Generate the rule template into the specified file.
891 S_Check_Verb : aliased constant S := "/VERBOSE " &
892 "-v";
893 -- /NOVERBOSE (D)
894 -- /VERBOSE
896 -- The version number and copyright notice are output, as well as exact
897 -- copies of the gnat1 commands spawned to obtain the chop control
898 -- information.
900 S_Check_Out : aliased constant S := "/OUTPUT=@" &
901 "-o@";
902 -- /OUTPUT=filename
904 -- Specify the name of the output file.
906 Check_Switches : aliased constant Switches :=
907 (S_Check_Add 'Access,
908 S_Check_All 'Access,
909 S_Diagnosis 'Access,
910 S_Check_Ext 'Access,
911 S_Check_Files 'Access,
912 S_Check_Follow 'Access,
913 S_Check_Help 'Access,
914 S_Check_Locs 'Access,
915 S_Check_Mess 'Access,
916 S_Check_Project 'Access,
917 S_Check_Quiet 'Access,
918 S_Check_Time 'Access,
919 S_Check_Log 'Access,
920 S_Check_Short 'Access,
921 S_Check_Include 'Access,
922 S_Check_Subdirs 'Access,
923 S_Check_Template'Access,
924 S_Check_Verb 'Access,
925 S_Check_Out 'Access);
927 ----------------------------
928 -- Switches for GNAT CHOP --
929 ----------------------------
931 S_Chop_Comp : aliased constant S := "/COMPILATION " &
932 "-c";
933 -- /NOCOMPILATION (D)
934 -- /COMPILATION
936 -- Compilation mode, handle configuration pragmas strictly according to
937 -- RM rules.
939 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
940 "-k#";
941 -- /FILE_NAME_MAX_LENGTH[=nnn]
943 -- Limit generated file names to NNN (default of 8) characters. This is
944 -- useful if the resulting set of files is required to be interoperable
945 -- with systems like MS-DOS which limit the length of file names.
947 S_Chop_Help : aliased constant S := "/HELP " &
948 "-h";
949 -- /NOHELP (D)
950 -- /HELP
952 -- Print usage information.
954 S_Chop_Over : aliased constant S := "/OVERWRITE " &
955 "-w";
956 -- /NOOVERWRITE (D)
957 -- /OVERWRITE
959 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
960 -- fatal error situation if there is already a file with the same name as
961 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
962 -- this check, and any such existing files will be silently overwritten.
964 S_Chop_Pres : aliased constant S := "/PRESERVE " &
965 "-p";
966 -- /NOPRESERVE (D)
967 -- /PRESERVE
969 -- Causes the file modification time stamp of the input file to be
970 -- preserved and used for the time stamp of the output file(s). This may
971 -- be useful for preserving coherency of time stamps in an environment
972 -- where gnatchop is used as part of a standard build process.
974 S_Chop_Quiet : aliased constant S := "/QUIET " &
975 "-q";
976 -- /NOQUIET (D)
977 -- /QUIET
979 -- Work quietly, only output warnings and errors.
981 S_Chop_Ref : aliased constant S := "/REFERENCE " &
982 "-r";
983 -- /NOREFERENCE (D)
984 -- /REFERENCE
986 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
987 -- files are regarded as temporary and development is to be done in terms
988 -- of the original unchopped file. The /REFERENCE qualifier causes
989 -- "Source_Reference" pragmas to be inserted into each of the generated
990 -- files to refers back to the original file name and line number. The
991 -- result is that all error messages refer back to the original unchopped
992 -- file.
994 -- In addition, the debugging information placed into the object file
995 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
996 -- also refers back to this original file so that tools like profilers
997 -- and debuggers will give information in terms of the original unchopped
998 -- file.
1000 S_Chop_Verb : aliased constant S := "/VERBOSE " &
1001 "-v";
1002 -- /NOVERBOSE (D)
1003 -- /VERBOSE
1005 -- The version number and copyright notice are output, as well as exact
1006 -- copies of the gnat1 commands spawned to obtain the chop control
1007 -- information.
1009 Chop_Switches : aliased constant Switches :=
1010 (S_Chop_Comp 'Access,
1011 S_Chop_File 'Access,
1012 S_Chop_Help 'Access,
1013 S_Chop_Over 'Access,
1014 S_Chop_Pres 'Access,
1015 S_Chop_Quiet 'Access,
1016 S_Chop_Ref 'Access,
1017 S_Chop_Verb 'Access);
1019 -----------------------------
1020 -- Switches for GNAT CLEAN --
1021 -----------------------------
1023 S_Clean_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1024 "-aP*";
1025 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1027 -- Add directories to the project search path.
1029 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
1030 "-c";
1031 -- /NOCOMPILER_FILES_ONLY (D)
1032 -- /COMPILER_FILES_ONLY
1034 -- Only attempt to delete the files produced by the compiler, not those
1035 -- produced by the binder or the linker. The files that are not to be
1036 -- deleted are library files, interface copy files, binder generated files
1037 -- and executable files.
1039 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1040 "!-I-";
1041 -- /CURRENT_DIRECTORY (D)
1043 -- Look for ALI or object files in the directory where GNAT CLEAN was
1044 -- invoked.
1046 -- /NOCURRENT_DIRECTORY
1048 -- Do not look for ALI or object files in the directory where GNAT CLEAN
1049 -- was invoked.
1051 S_Clean_Delete : aliased constant S := "/DELETE " &
1052 "!-n";
1053 -- /DELETE (D)
1055 -- Delete the files that are not read-only.
1057 -- /NODELETE
1059 -- Informative-only mode. Do not delete any files. Output the list of the
1060 -- files that would have been deleted if this switch was not specified.
1062 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
1063 "-D@";
1064 -- /DIRECTORY_OBJECTS=<file>
1066 -- Find the object files and .ALI files in <file>.
1067 -- This qualifier is not compatible with /PROJECT_FILE.
1069 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1070 "-X" & '"';
1071 -- /EXTERNAL_REFERENCE="name=val"
1073 -- Specifies an external reference to the project manager. Useful only if
1074 -- /PROJECT_FILE is used.
1076 -- Example:
1077 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1079 S_Clean_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1080 "-eL";
1081 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1082 -- /FOLLOW_LINKS_FOR_FILES
1084 -- Follow links when parsing project files
1086 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1087 "-F";
1088 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1089 -- /FULL_PATH_IN_BRIEF_MESSAGES
1091 -- When using project files, if some errors or warnings are detected
1092 -- during parsing and verbose mode is not in effect (no use of qualifier
1093 -- /VERBOSE), then error lines start with the full path name of the
1094 -- project file, rather than its simple file name.
1096 S_Clean_Help : aliased constant S := "/HELP " &
1097 "-h";
1098 -- /NOHELP (D)
1099 -- /HELP
1101 -- Output a message explaining the usage of gnatclean.
1103 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
1104 "-i#";
1105 -- /SOURCE_INDEX=nnn
1107 -- Specifies the index of the units in the source file
1108 -- By default, source files are mono-unit and there is no index
1110 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1111 "DEFAULT " &
1112 "-vP0 " &
1113 "MEDIUM " &
1114 "-vP1 " &
1115 "HIGH " &
1116 "-vP2";
1117 -- /MESSAGES_PROJECT_FILE[=messages-option]
1119 -- Specifies the "verbosity" of the parsing of project files.
1120 -- messages-option may be one of the following:
1122 -- DEFAULT (D) No messages are output if there is no error or warning.
1124 -- MEDIUM A small number of messages are output.
1126 -- HIGH A great number of messages are output, most of them not
1127 -- being useful for the user.
1129 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
1130 "-aO*";
1131 -- /OBJECT_SEARCH=(directory,...)
1133 -- When searching for library and object files, look in the specified
1134 -- directories. The order in which library files are searched is the same
1135 -- as for MAKE.
1137 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1138 "-P>";
1139 -- /PROJECT_FILE=filename
1141 -- Specifies the main project file to be used. The project files rooted
1142 -- at the main project file will be parsed before the invocation of the
1143 -- compiler. The source and object directories to be searched will be
1144 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1145 -- and ADA_PRJ_OBJECTS_FILE.
1147 S_Clean_Quiet : aliased constant S := "/QUIET " &
1148 "-q";
1149 -- /NOQUIET (D)
1150 -- /QUIET
1152 -- Quiet output. If there are no error, do not output anything, except in
1153 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1154 -- (qualifier /NODELETE).
1156 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1157 "-r";
1158 -- /NORECURSIVE (D)
1159 -- /RECURSIVE
1161 -- When a project file is specified (using switch -P), clean all imported
1162 -- and extended project files, recursively. If this qualifier is not
1163 -- specified, only the files related to the main project file are to be
1164 -- deleted. This qualifier has no effect if no project file is specified.
1166 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1167 "-I*";
1168 -- /SEARCH=(directory,...)
1170 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1172 S_Clean_Subdirs : aliased constant S := "/SUBDIRS=<" &
1173 "--subdirs=>";
1174 -- /SUBDIRS=dir
1176 -- The actual directories (object, exec, library, ...) are subdirectories
1177 -- of the directory specified in the project file. If the subdirectory
1178 -- does not exist, it is created automatically.
1180 S_Clean_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
1181 "--unchecked-shared-lib-imports";
1182 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
1183 -- /UNCHECKED_SHARED_LIB_IMPORTS
1185 -- Allow shared library projects to import static library projects
1187 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1188 "-v";
1189 -- /NOVERBOSE (D)
1190 -- /VERBOSE
1192 -- Verbose mode.
1194 Clean_Switches : aliased constant Switches :=
1195 (S_Clean_Add 'Access,
1196 S_Clean_Compil 'Access,
1197 S_Clean_Current'Access,
1198 S_Clean_Delete 'Access,
1199 S_Clean_Dirobj 'Access,
1200 S_Clean_Ext 'Access,
1201 S_Clean_Follow 'Access,
1202 S_Clean_Full 'Access,
1203 S_Clean_Help 'Access,
1204 S_Clean_Index 'Access,
1205 S_Clean_Mess 'Access,
1206 S_Clean_Object 'Access,
1207 S_Clean_Project'Access,
1208 S_Clean_Quiet 'Access,
1209 S_Clean_Recurs 'Access,
1210 S_Clean_Search 'Access,
1211 S_Clean_Subdirs'Access,
1212 S_Clean_Verbose'Access,
1213 S_Clean_USL 'Access);
1215 -------------------------------
1216 -- Switches for GNAT COMPILE --
1217 -------------------------------
1219 S_GCC_Ada_83 : aliased constant S := "/83 " &
1220 "-gnat83";
1221 -- /NO83 (D)
1222 -- /83
1224 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1225 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1226 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1227 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1228 -- a perfect job; for example, some subtle tests of pathological cases,
1229 -- such as are found in ACVC tests that have been removed from the ACVC
1230 -- suite for Ada 95, may not compile correctly. However for practical
1231 -- purposes, using this qualifier should ensure that programs that
1232 -- compile correctly under the /83 qualifier can be ported reasonably
1233 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1235 -- With few exceptions (most notably the need to use "<>" on
1236 -- unconstrained generic formal parameters), it is not necessary to use
1237 -- this qualifier switch when compiling Ada 83 programs, because, with
1238 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1239 -- 83. This means that a correct Ada 83 program is usually also a correct
1240 -- Ada 95 program.
1242 S_GCC_Ada_95 : aliased constant S := "/95 " &
1243 "-gnat95";
1244 -- /95 (D)
1246 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1247 -- This is the normal default for GNAT Pro.
1249 S_GCC_Ada_05 : aliased constant S := "/05 " &
1250 "-gnat05";
1251 -- /05 (D)
1253 -- Allows GNAT to recognize the full range of Ada 2005 constructs.
1255 S_GCC_Ada_2005 : aliased constant S := "/2005 " &
1256 "-gnat2005";
1257 -- /05 (D)
1259 -- Allows GNAT to recognize the full range of Ada 2005 constructs.
1260 -- Equivalent to /05 (/2005 is the preferred usage).
1262 S_GCC_Ada_12 : aliased constant S := "/12 " &
1263 "-gnat12";
1264 -- /05 (D)
1266 -- Allows GNAT to recognize all implemented proposed Ada 2012
1267 -- extensions. See features file for list of implemented features.
1269 S_GCC_Ada_2012 : aliased constant S := "/2012 " &
1270 "-gnat2012";
1271 -- /05 (D)
1273 -- Allows GNAT to recognize all implemented proposed Ada 2012
1274 -- extensions. See features file for list of implemented features.
1275 -- Equivalent to /12 (/2012 is the preferred usage).
1277 S_GCC_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1278 "-aP*";
1279 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1281 -- Add directories to the project search path.
1283 S_GCC_AlCheck : aliased constant S := "/ALIASING_CHECK " &
1284 "-gnateA";
1285 -- /NOALIASING_CHECK (D)
1286 -- /ALIASING_CHECK
1288 -- Check that there are no aliased parameters in subprogram calls.
1290 S_GCC_Asm : aliased constant S := "/ASM " &
1291 "-S,!-c";
1292 -- /NOASM (D)
1293 -- /ASM
1295 -- Use to cause the assembler source file to be generated, using S as the
1296 -- filetype, instead of the object file. This may be useful if you need
1297 -- to examine the generated assembly code.
1299 S_GCC_AValid : aliased constant S := "/ASSUME_VALID " &
1300 "-gnatB";
1301 -- /NO_ASSUME_VALID (D)
1302 -- /ASSUME_VALID
1304 -- Use to tell the compiler to assume that all objects have valid values
1305 -- except those occurring as prefixes to 'Valid attributes. In the default
1306 -- mode, the compiler assumes that values may be invalid unless it can
1307 -- be sure that they are valid, and code is generated to allow for this
1308 -- possibility. The use of /ASSUME_VALID will improve the code.
1310 S_GCC_CategW : aliased constant S := "/CATEGORIZATION_WARNINGS " &
1311 "-gnateP";
1312 -- /NO_CATEGORIZATION_WARNINGS (D)
1313 -- /CATEGORIZATION_WARNINGS
1315 -- Use to tell the compiler to disable categorization dependency errors.
1316 -- Ada requires that units that WITH one another have compatible
1317 -- categories, for example a Pure unit cannot WITH a Preelaborate unit.
1318 -- If this switch is used, these errors become warnings (which can be
1319 -- ignored, or suppressed in the usual manner). This can be useful in
1320 -- some specialized circumstances such as the temporary use of special
1321 -- test software.
1323 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1324 "FULL " &
1325 "-gnato,!-gnatE,!-gnatp " &
1326 "OVERFLOW " &
1327 "-gnato " &
1328 "ELABORATION " &
1329 "-gnatE " &
1330 "ASSERTIONS " &
1331 "-gnata " &
1332 "DEFAULT " &
1333 "!-gnato,!-gnatp " &
1334 "STACK " &
1335 "-fstack-check " &
1336 "SUPPRESS_ALL " &
1337 "-gnatp " &
1338 "UNSUPPRESS_ALL " &
1339 "-gnat-p";
1340 -- /NOCHECKS
1341 -- /CHECKS[=(keyword[,...])]
1343 -- If you compile with the default options, GNAT will insert many runtime
1344 -- checks into the compiled code, including code that performs range
1345 -- checking against constraints, but not arithmetic overflow checking for
1346 -- integer operations (including division by zero) or checks for access
1347 -- before elaboration on subprogram calls. All other runtime checks, as
1348 -- required by the Ada 95 Reference Manual, are generated by default.
1350 -- You may specify one or more of the following keywords to the /CHECKS
1351 -- qualifier to modify this behavior:
1353 -- DEFAULT The behavior described above. This is the default
1354 -- if the /CHECKS qualifier is not present on the
1355 -- command line. Same as /NOCHECKS.
1357 -- OVERFLOW Enables overflow checking in CHECKED mode for integer
1358 -- operations and checks for access before elaboration
1359 -- on subprogram calls. This causes GNAT to generate
1360 -- slower and larger executable programs by adding code
1361 -- to check for both overflow and division by zero
1362 -- (resulting in raising "Constraint_Error" as required
1363 -- by Ada semantics).
1364 -- Similarly, GNAT does not generate elaboration check
1365 -- by default, and you must specify this keyword to
1366 -- enable them.
1368 -- Note that this keyword does not affect the code
1369 -- generated for any floating-point operations; it
1370 -- applies only to integer operations. For the case of
1371 -- floating-point, GNAT has the "Machine_Overflows"
1372 -- attribute set to "False" and the normal mode of
1373 -- operation is to generate IEEE NaN and infinite values
1374 -- on overflow or invalid operations (such as dividing
1375 -- 0.0 by 0.0).
1377 -- ELABORATION Enables dynamic checks for access-before-elaboration
1378 -- on subprogram calls and generic instantiations.
1380 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1381 -- effect and are ignored. This keyword causes "Assert"
1382 -- and "Debug" pragmas to be activated, as well as
1383 -- "Check", "Precondition" and "Postcondition" pragmas.
1385 -- SUPPRESS_ALL Suppress all runtime checks as though you have
1386 -- "pragma Suppress (all_checks)" in your source. Use
1387 -- this switch to improve the performance of the code at
1388 -- the expense of safety in the presence of invalid data
1389 -- or program bugs.
1391 -- UNSUPPRESS_ALL Cancels effect of previous SUPPRESS_ALL.
1393 -- DEFAULT Suppress the effect of any option OVERFLOW or
1394 -- ASSERTIONS.
1396 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1397 -- option ELABORATION or SUPPRESS_ALL.
1399 -- These keywords only control the default setting of the checks. You
1400 -- may modify them using either "Suppress" (to remove checks) or
1401 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1402 -- source.
1404 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1405 "-gnatp,!-gnato,!-gnatE";
1406 -- NODOC (see /CHECKS)
1408 S_GCC_Chflov : aliased constant S := "/FLOAT_OVERFLOW_CHECK " &
1409 "-gnateF";
1410 -- /NOFLOAT_OVERFLOW_CHECK (D)
1411 -- /FLOAT_OVERFLOW_CHECK
1413 -- Set mode to check overflow for all floating-point operations including
1414 -- those using an unconstrained predefined type (i.e. no infinities).
1416 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1417 "-gnatC";
1418 -- /NOCOMPRESS_NAMES (D)
1419 -- /COMPRESS_NAMES
1421 -- Compress debug information and external symbol name table entries.
1422 -- In the generated debugging information, and also in the case of long
1423 -- external names, the compiler uses a compression mechanism if the name
1424 -- is very long. This compression method uses a checksum, and avoids
1425 -- trouble on some operating systems which have difficulty with very long
1426 -- names.
1428 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1429 "-gnatec>";
1430 -- /CONFIGURATION_PRAGMAS_FILE=file
1432 -- Specify a configuration pragmas file that needs to be taken into
1433 -- account.
1435 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1436 "!-I-";
1437 -- /CURRENT_DIRECTORY (D)
1438 -- /NOCURRENT_DIRECTORY
1440 -- Look for source files in the default directory.
1442 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1443 "-gnatep>";
1444 -- /DATA_PREPROCESSING=file_name
1446 -- This qualifier indicates to the compiler the file name (without
1447 -- directory information) of the preprocessor data file to use.
1448 -- The preprocessor data file should be found in the source directories.
1450 -- A preprocessing data file is a text file with significant lines
1451 -- indicating how should be preprocessed either a specific source or all
1452 -- sources not mentioned in other lines. A significant line is a non
1453 -- empty, non comment line. Comments are similar to Ada comments.
1455 -- Each significant line starts with either a literal string or the
1456 -- character '*'. A literal string is the file name (without directory
1457 -- information) of the source to preprocess. A character '*' indicates the
1458 -- preprocessing for all the sources that are not specified explicitly on
1459 -- other lines. It is an error to have two lines with the same file name
1460 -- or two lines starting with the character '*'.
1462 -- After the file name or the character '*', another optional literal
1463 -- string indicating the file name of the definition file to be used for
1464 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1465 -- are found by the compiler in one of the source directories. In some
1466 -- cases, when compiling a source in a directory other than the current
1467 -- directory, if the definition file is in the current directory, it may
1468 -- be necessary to add the current directory as a source directory through
1469 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1470 -- definition file.
1472 -- Then, optionally, switches similar to those of gnatprep may be found.
1473 -- Those switches are:
1475 -- -b Causes both preprocessor lines and the lines deleted by
1476 -- preprocessing to be replaced by blank lines, preserving
1477 -- the line number. This switch is always implied;
1478 -- however, if specified after `-c' it cancels the effect
1479 -- of `-c'.
1481 -- -c Causes both preprocessor lines and the lines deleted by
1482 -- preprocessing to be retained as comments marked with
1483 -- the special string "--! ".
1485 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1486 -- A symbol is an Ada identifier, or an Ada reserved word,
1487 -- with the exception of "if", "else", "elsif", "end",
1488 -- "and", "or" and "then". value is either a literal
1489 -- string, an Ada identifier or any Ada reserved word.
1490 -- A symbol declared with this switch replaces a symbol
1491 -- with the same name defined in a definition file.
1493 -- -s Causes a sorted list of symbol names and values to be
1494 -- listed on the standard output file.
1496 -- -u Causes undefined symbols to be treated as having the
1497 -- value FALSE in the context of a preprocessor test.
1498 -- In the absence of this option, an undefined symbol
1499 -- in a #if or #elsif test will be treated as an error.
1501 -- Examples of valid lines in a preprocessor data file:
1503 -- "toto.adb" "prep.def" -u
1504 -- -- preprocess "toto.adb", using definition file "prep.def",
1505 -- -- undefined symbol are False.
1507 -- * -c -DVERSION=V101
1508 -- -- preprocess all other sources without a definition file;
1509 -- -- suppressed lined are commented; symbol VERSION has the value
1510 -- -- V101.
1512 -- "titi.adb" "prep2.def" -s
1513 -- -- preprocess "titi.adb", using definition file "prep2.def";
1514 -- -- list all symbols with their values.
1516 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1517 "SYMBOLS " &
1518 "-g2 " &
1519 "NOSYMBOLS " &
1520 "!-g2 " &
1521 "TRACEBACK " &
1522 "-g1 " &
1523 "ALL " &
1524 "-g3 " &
1525 "NONE " &
1526 "-g0 " &
1527 "NOTRACEBACK " &
1528 "-g0";
1529 -- /DEBUG[=debug-level]
1530 -- /NODEBUG
1532 -- Specifies how much debugging information is to be included in
1533 -- the resulting object fie.
1535 -- 'debug-level' is one of the following:
1537 -- SYMBOLS (D) Include both debugger symbol records and traceback
1538 -- in the object file.
1540 -- ALL Include debugger symbol records, traceback plus
1541 -- extra debug information in the object file.
1543 -- NONE Excludes both debugger symbol records and traceback
1544 -- from the object file. Same as /NODEBUG.
1546 -- TRACEBACK Includes only traceback records in the object
1547 -- file. This is the default when /DEBUG is not used.
1549 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1550 "!-g";
1551 -- NODOC (see /Debug)
1553 S_GCC_DisAtom : aliased constant S := "/DISABLE_ATOMIC_SYNCHRONIZATION " &
1554 "-gnated";
1555 -- /NODISABLE_ATOMIC_SYNCHRONIZATION (D)
1556 -- /DISABLE_ATOMIC_SYNCHRONIZATION
1557 -- Disable synchronization of atomic variables.
1559 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1560 "RECEIVER " &
1561 "-gnatzr " &
1562 "CALLER " &
1563 "-gnatzc";
1564 -- /NODISTRIBUTION_STUBS (D)
1565 -- /DISTRIBUTION_STUBS[=dist-opt]
1567 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1568 -- that stubs for use in distributed programs (see the Distributed
1569 -- Systems Annex of the Ada RM) should be generated.
1571 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1572 "!-gnatzr,!-gnatzc";
1573 -- NODISTRIBUTION_STUBS (see /DISTRIBUTION_STUBS)
1575 S_GCC_ElabI : aliased constant S := "/ELABORATION_INFO_MESSAGES " &
1576 "-gnatel";
1577 -- ELABORATION_INFO_MESSAGES
1579 -- Causes the compiler to output INFO messages that show where implicit
1580 -- Elaborate and Elaborate_All pragmas are added when using the static
1581 -- elaboration model. Used to diagnose binder circularities when this
1582 -- elaboration model is used.
1584 S_GCC_NoElabI : aliased constant S := "/NOELABORATION_INFO_MESSAGES " &
1585 "-gnateL";
1586 -- Turns off elaboration info messages (see ELABORATION_INFO_MESSAGES)
1588 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1589 "-gnatm#";
1590 -- /NOERROR_LIMIT (D)
1591 -- /ERROR_LIMIT=nnn
1593 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1594 -- number of error messages to be generated to that number. Once that
1595 -- number has been reached, the compilation is abandoned.
1596 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1598 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1599 "-gnatm999999";
1600 -- NODOC (see /ERROR_LIMIT)
1602 S_GCC_Except : aliased constant S := "/EXTRA_EXCEPTION_INFORMATION " &
1603 "-gnateE";
1604 -- /EXTRA_EXCEPTION_INFORMATION
1606 -- Generate extra information in exception messages, in particular
1607 -- display extra column information and the value and range associated
1608 -- with index and range check failures, and extra column information for
1609 -- access checks.
1611 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1612 "-gnatG";
1613 -- /NOEXPAND_SOURCE (D)
1614 -- /EXPAND_SOURCE
1616 -- Produces a listing of the expanded code in Ada source form. For
1617 -- example, all tasking constructs are reduced to appropriate run-time
1618 -- library calls. The maximum line length for the listing 72.
1620 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1621 "-gnatG#";
1622 -- /LEXPAND_SOURCE=nnn
1624 -- Produces a listing of the expanded code in Ada source form. For
1625 -- example, all tasking constructs are reduced to appropriate run-time
1626 -- library calls. The parameter is the maximum line length for the
1627 -- listing.
1629 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1630 "-gnatX";
1631 -- /NOEXTENSIONS_ALLOWED (D)
1632 -- /EXTENSIONS_ALLOWED
1634 -- GNAT specific language extensions allowed.
1636 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1637 "-X" & '"';
1638 -- /EXTERNAL_REFERENCE="name=val"
1640 -- Specifies an external reference to the project manager. Useful only if
1641 -- /PROJECT_FILE is used.
1643 -- Example:
1644 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1646 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1647 "-gnatk#";
1648 -- /FILE_NAME_MAX_LENGTH=nnn
1650 -- Activates file name "krunching". NNN, a decimal integer in the range
1651 -- 1-999, indicates the maximum allowable length of a file name (not
1652 -- including the ADS or ADB filetype. The default is not to enable file
1653 -- name krunching.
1655 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1656 "-eL";
1657 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1658 -- /FOLLOW_LINKS_FOR_FILES
1660 -- Follow links when parsing project files
1662 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1663 "-gnatQ";
1664 -- /NOFORCE_ALI (D)
1665 -- /FORCE_ALI
1667 -- In normal operation mode, the .ALI file is not generated if any
1668 -- illegalities are detected in the program. The use of this qualifier
1669 -- forces generation of the .ALI file. This file is marked as being
1670 -- in error, so it cannot be used for binding purposes, but it does
1671 -- contain reasonably complete cross-reference information, and thus may
1672 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1673 -- development environments) that are driven from the .ALI file.
1675 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1676 "-gnatef";
1677 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1678 -- /FULL_PATH_IN_BRIEF_MESSAGES
1680 -- When using project files, if some errors or warnings are detected
1681 -- during parsing and verbose mode is not in effect (no use of qualifier
1682 -- /VERBOSE), then error lines start with the full path name of the
1683 -- project file, rather than its simple file name.
1685 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1686 "-gnateG";
1687 -- /NOGENERATE_PROCESSED_SOURCE (D)
1688 -- /GENERATE_PROCESSED_SOURCE
1690 -- Generate a file <source>_prep if the integrated preprocessing
1691 -- is modifying the source text.
1693 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1694 "-gnatg";
1695 -- /NOGNAT_INTERNAL (D)
1696 -- /GNAT_INTERNAL
1698 -- Internal GNAT implementation mode. This should not be used for
1699 -- applications programs, it is intended only for use by the compiler
1700 -- and its run-time library. For documentation, see the GNAT sources.
1701 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1702 -- so that all standard warnings and all standard style options are
1703 -- turned on. All warnings and style error messages are treated as
1704 -- errors.
1706 S_GCC_Help : aliased constant S := "/HELP " &
1707 "-gnath";
1708 -- /NOHELP (D)
1709 -- /HELP
1711 -- Output usage information.
1713 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1714 "DEFAULT " &
1715 "-gnati1 " &
1716 "1 " &
1717 "-gnati1 " &
1718 "2 " &
1719 "-gnati2 " &
1720 "3 " &
1721 "-gnati3 " &
1722 "4 " &
1723 "-gnati4 " &
1724 "5 " &
1725 "-gnati5 " &
1726 "PC " &
1727 "-gnatip " &
1728 "PC850 " &
1729 "-gnati8 " &
1730 "FULL_UPPER " &
1731 "-gnatif " &
1732 "NO_UPPER " &
1733 "-gnatin " &
1734 "WIDE " &
1735 "-gnatiw";
1736 -- /NOIDENTIFIER_CHARACTER_SET (D)
1737 -- /IDENTIFIER_CHARACTER_SET=char-set
1739 -- Normally GNAT recognizes the Latin-1 character set in source program
1740 -- identifiers, as described in the reference manual. This qualifier
1741 -- causes GNAT to recognize alternate character sets in identifiers.
1742 -- 'char-set' is one of the following strings indicating the character
1743 -- set:
1745 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1746 -- /NOIDENTIFIER_CHARACTER_SET.
1748 -- 1 The basic character set is Latin-1. This character
1749 -- set is defined by ISO standard 8859, part 1. The lower
1750 -- half (character codes 16#00# ... 16#7F#) is identical
1751 -- to standard ASCII coding, but the upper half is used
1752 -- to represent additional characters. This includes
1753 -- extended letters used by European languages, such as
1754 -- the umlaut used in German.
1756 -- You may use any of these extended characters freely
1757 -- in character or string literals. In addition, the
1758 -- extended characters that represent letters can be
1759 -- used in identifiers.
1761 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1762 -- and lowercase equivalence.
1764 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1765 -- and lower case equivalence.
1767 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1768 -- and lower case equivalence.
1770 -- PC IBM PC code page 437. This code page is the normal
1771 -- default for PCs in the U.S. It corresponds to the
1772 -- original IBM PC character set. This set has some, but
1773 -- not all, of the extended Latin-1 letters, but these
1774 -- letters do not have the same encoding as Latin-1. In
1775 -- this mode, these letters are allowed in identifiers
1776 -- with uppercase and lowercase equivalence.
1778 -- PC850 This code page (850) is a modification of 437 extended
1779 -- to include all the Latin-1 letters, but still not with
1780 -- the usual Latin-1 encoding. In this mode, all these
1781 -- letters are allowed in identifiers with uppercase and
1782 -- lower case equivalence.
1784 -- FULL_UPPER Any character in the range 80-FF allowed in
1785 -- identifiers, and all are considered distinct. In
1786 -- other words, there are no uppercase and lower case
1787 -- equivalences in this range.
1789 -- NO_UPPER No upper-half characters in the range 80-FF are
1790 -- allowed in identifiers. This gives Ada 95
1791 -- compatibility for identifier names.
1793 -- WIDE GNAT allows wide character codes to appear in
1794 -- character and string literals, and also optionally
1795 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1796 -- qualifier for information on encoding formats.
1798 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1799 "-gnati1";
1800 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1802 S_GCC_IgnoreR : aliased constant S := "/IGNORE_REP_CLAUSES " &
1803 "-gnatI";
1804 -- /IGNORE_REP_CLAUSES
1806 -- Causes all representation clauses to be ignored and treated as
1807 -- comments. Useful when compiling foreign code (for example when ASIS
1808 -- is used to analyze such code).
1810 S_GCC_IgnoreS : aliased constant S := "/IGNORE_STYLE_CHECKS_PRAGMAS " &
1811 "-gnateY";
1812 -- /IGNORE_STYLE_CHECKS_PRAGMAS
1814 -- Causes all Style_Checks pragmas to be checked for legality, but
1815 -- otherwise ignored. Allows style checks to be fully controlled by
1816 -- command line qualifiers.
1818 S_GCC_IgnoreU : aliased constant S := "/IGNORE_UNRECOGNIZED " &
1819 "-gnateu";
1820 -- /IGNORE_UNRECOGNIZED
1822 -- Causes unrecognized style switches, validity switches, and warning
1823 -- switches to be ignored rather than generating an error message.
1825 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1826 "-gnatdO";
1827 -- /NOIMMEDIATE_ERRORS (D)
1828 -- /IMMEDIATE_ERRORS
1830 -- Causes errors to be displayed as soon as they are encountered, rather
1831 -- than after compilation is terminated. If GNAT terminates prematurely
1832 -- or goes into an infinite loop, the last error message displayed may
1833 -- help to pinpoint the culprit.
1835 -- Note that this qualifier is intended only for helping to diagnose
1836 -- illegal programs when the compiler fails. It disconnects many of the
1837 -- normal handling procedures for error messages, and may for example
1838 -- cause malfunction of pragma Warnings.
1840 S_GCC_Inline : aliased constant S := "/INLINE=" &
1841 "PRAGMA " &
1842 "-gnatn " &
1843 "PRAGMA_LEVEL_1 " &
1844 "-gnatn1 " &
1845 "PRAGMA_LEVEL_2 " &
1846 "-gnatn2 " &
1847 "FULL " &
1848 "-gnatN " &
1849 "SUPPRESS " &
1850 "-fno-inline";
1851 -- /NOINLINE (D)
1852 -- /INLINE[=keyword]
1854 -- Selects the level of inlining for your program. In the absence of this
1855 -- qualifier, GNAT does not attempt inlining across units and does not
1856 -- need to access the bodies of subprograms for which "pragma Inline" is
1857 -- specified if they are not in the current unit.
1859 -- The supported keywords are as follows:
1861 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1862 -- for the inlining to actually occur, optimization
1863 -- must be enabled. This enables inlining across unit
1864 -- boundaries, that is, inlining a call in one unit of
1865 -- a subprogram declared in a with'ed unit. The compiler
1866 -- will access these bodies, creating an extra source
1867 -- dependency for the resulting object file, and where
1868 -- possible, the call will be inlined.
1870 -- This qualifier also turns on full optimization and
1871 -- requests GNAT to try to attempt automatic inlining
1872 -- of small subprograms within a unit.
1874 -- Specifying /OPTIMIZE=NONE will disable the main effect
1875 -- of this qualifier, but you may specify other
1876 -- optimization options, to get either lower
1877 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1878 -- levels of optimization.
1880 -- PRAGMA_LEVEL_1
1881 -- Direct control of the level of "Inline" pragmas
1882 -- optimization with moderate inlining across modules.
1884 -- PRAGMA_LEVEL_2
1885 -- Direct control of the level of "Inline" pragmas
1886 -- optimization with full inlining across modules.
1888 -- FULL Front end inlining. The front end inlining activated
1889 -- by this switch is generally more extensive, and quite
1890 -- often more effective than the standard PRAGMA inlining
1891 -- mode. It will also generate additional dependencies.
1893 -- SUPPRESS Suppresses all inlining, even if other optimization
1894 -- or inlining switches are set.
1896 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1897 "!-gnatn,!-gnatN";
1898 -- NODOC (see /INLINE)
1900 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1901 "-gnatL";
1903 -- /NO_INTERSPERSE_SOURCE (D)
1904 -- /INTERSPERSE_SOURCE
1906 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1907 -- lines from the original source file, output as comment lines with the
1908 -- associated line number.
1910 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1911 "-gnatj#";
1913 -- /NO_JUSTIFY_MESSAGES (D)
1914 -- /JUSTIFY_MESSAGES=nnn
1916 -- Causes error messages to be reformatted so that a message and all its
1917 -- continuation lines count as one warning or error in the statistics on
1918 -- total errors, and the message is broken down into lines (justified) so
1919 -- that no line is longer than nnn characters. The default message
1920 -- behavior (each message counted separately and not reformatted to fit
1921 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1923 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1924 "-gnatj0";
1926 -- NODOC (see /JUSTIFY_MESSAGES)
1928 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1929 "-gnatyM#";
1930 -- /MAX_LINE_LENGTH=nnn
1932 -- Set maximum line length.
1933 -- The length of lines must not exceed the given value nnn.
1935 S_GCC_List : aliased constant S := "/LIST " &
1936 "-gnatl";
1937 -- /NOLIST (D)
1938 -- /LIST
1940 -- Cause a full listing of the file to be generated. In the case where
1941 -- a body is compiled, the corresponding spec is also listed, along
1942 -- with any subunits.
1944 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1945 "-source-listing";
1946 -- /NOMACHINE_CODE_LISTING (D)
1947 -- /MACHINE_CODE_LISTING
1949 -- Cause a full machine code listing of the file to be generated to
1950 -- <filename>.lis. Interspersed source is included if the /DEBUG
1951 -- qualifier is also present.
1953 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1954 "-gnatem>";
1955 -- /MAPPING_FILE=file_name
1957 -- Use mapping file file_name
1959 -- A mapping file is a way to communicate to the compiler two mappings:
1960 -- from unit names to file names (without any directory information) and
1961 -- from file names to path names (with full directory information).
1962 -- These mappings are used by the compiler to short-circuit the path
1963 -- search.
1965 -- The use of mapping files is not required for correct operation of the
1966 -- compiler, but mapping files can improve efficiency, particularly when
1967 -- sources are read over a slow network connection. In normal operation,
1968 -- you need not be concerned with the format or use of mapping files,
1969 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1970 -- It is intended only for use by automatic tools such as GNAT MAKE
1971 -- running under the project file facility. The description here of the
1972 -- format of mapping files is provided for completeness and for possible
1973 -- use by other tools.
1975 -- A mapping file is a sequence of sets of three lines. In each set, the
1976 -- first line is the unit name, in lower case, with "%s" appended for
1977 -- specifications and "%b" appended for bodies; the second line is the
1978 -- file name; and the third line is the path name.
1980 -- Example:
1982 -- main%b
1983 -- main.2_ada
1984 -- /gnat/project1/sources/main.2_ada
1986 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1987 -- memory the two mappings from the specified file. If there is any
1988 -- problem (non existent file, truncated file or duplicate entries),
1989 -- no mapping will be created.
1991 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1992 -- last one on the command line will be taken into account.
1994 -- When using a project file, GNAT MAKE creates a temporary mapping file
1995 -- and communicates it to the compiler using this switch.
1997 S_GCC_MaxI : aliased constant S := "/MAX_INSTANTIATIONS=#" &
1998 "-gnatei#";
2000 -- /MAX_INSTANTIATIONS=nnn
2002 -- Specify the maximum number of instantiations permitted. The default
2003 -- value is 8000, which is probably enough for all programs except those
2004 -- containing some kind of runaway unintended instantiation loop.
2006 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
2007 "DEFAULT " &
2008 "-vP0 " &
2009 "MEDIUM " &
2010 "-vP1 " &
2011 "HIGH " &
2012 "-vP2";
2013 -- /MESSAGES_PROJECT_FILE[=messages-option]
2015 -- Specifies the "verbosity" of the parsing of project files.
2016 -- messages-option may be one of the following:
2018 -- DEFAULT (D) No messages are output if there is no error or warning.
2020 -- MEDIUM A small number of messages are output.
2022 -- HIGH A great number of messages are output, most of them not
2023 -- being useful for the user.
2025 S_GCC_Multi : aliased constant S := "/MULTI_UNIT_INDEX=#" &
2026 "-gnateI#";
2027 -- /MULTI_UNIT_INDEX=nnn
2029 -- Specify the index of the unit to compile in a multi-unit source file.
2031 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
2032 "-gnatyL#";
2033 -- /MAX_NESTING=nnn
2035 -- Set maximum level of nesting of constructs (including subprograms,
2036 -- loops, blocks, packages, and conditionals).
2037 -- The level of nesting must not exceed the given value nnn.
2038 -- A value of zero disable this style check (not enabled by default).
2040 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
2041 "-gnatA";
2042 -- /NO_GNAT_ADC
2044 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
2045 -- in the default directory. Implied by qualifier /PROJECT_FILE.
2046 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
2048 S_GCC_Noload : aliased constant S := "/NOLOAD " &
2049 "-gnatc";
2050 -- /NOLOAD
2052 -- Cause the compiler to operate in semantic check mode with full
2053 -- checking for all illegalities specified in the reference manual, but
2054 -- without generation of any source code (no object or ALI file
2055 -- generated).
2057 -- Since dependent files must be accessed, you must follow the GNAT
2058 -- semantic restrictions on file structuring to operate in this mode:
2060 -- o The needed source files must be accessible.
2061 -- o Each file must contain only one compilation unit.
2062 -- o The file name and unit name must match.
2064 -- The output consists of error messages as appropriate. No object file
2065 -- or ALI file is generated. The checking corresponds exactly to the
2066 -- notion of legality in the Ada reference manual.
2068 -- Any unit can be compiled in semantics-checking-only mode, including
2069 -- units that would not normally be compiled (generic library units,
2070 -- subunits, and specifications where a separate body is present).
2072 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
2073 "-nostdinc";
2074 -- /NOSTD_INCLUDES
2076 -- Do not look in the default directory for source files of the runtime.
2078 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
2079 "-nostdlib";
2080 -- /NOSTD_LIBRARIES
2082 -- Do not look for library files in the system default directory.
2084 S_GCC_NoWarnP : aliased constant S := "/NOWARNING_PRAGMAS " &
2085 "-gnatd.i";
2086 -- /NOWARNING_PRAGMAS
2088 -- Causes all Warnings pragmas to be ignored. Useful to check if the
2089 -- program has obsolete warnings pragmas that are hiding problems.
2091 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
2092 "ALL " &
2093 "-O2,!-O0,!-O1,!-O3 " &
2094 "NONE " &
2095 "-O0,!-O1,!-O2,!-O3 " &
2096 "SOME " &
2097 "-O1,!-O0,!-O2,!-O3 " &
2098 "SPACE " &
2099 "-Os,!-O0,!-O1,!-O2,!-O3 " &
2100 "DEVELOPMENT " &
2101 "-O1,!-O0,!-O2,!-O3 " &
2102 "UNROLL_LOOPS " &
2103 "-funroll-loops " &
2104 "NO_STRICT_ALIASING " &
2105 "-fno-strict-aliasing " &
2106 "INLINING " &
2107 "-O3,!-O0,!-O1,!-O2";
2108 -- /NOOPTIMIZE (D)
2109 -- /OPTIMIZE[=(keyword[,...])]
2111 -- Selects the level of optimization for your program. The supported
2112 -- keywords are as follows:
2114 -- ALL (D) Perform most optimizations, including those that
2115 -- may be expensive.
2117 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
2119 -- SOME Perform some optimizations, but omit ones that
2120 -- are costly in compilation time.
2122 -- SPACE Optimize space usage
2124 -- DEVELOPMENT Same as SOME.
2126 -- INLINING Full optimization, and also attempt automatic inlining
2127 -- of small subprograms within a unit
2129 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
2130 -- with any keyword above other than NONE. Loop
2131 -- unrolling usually, but not always, improves the
2132 -- performance of programs.
2134 -- NO_STRICT_ALIASING
2135 -- Suppress aliasing analysis. When optimization is
2136 -- enabled (ALL or SOME above), the compiler assumes
2137 -- that pointers do in fact point to legitimate values
2138 -- of the pointer type (allocated from the proper pool).
2139 -- If this assumption is violated, e.g. by the use of
2140 -- unchecked conversion, then it may be necessary to
2141 -- suppress this assumption using this keyword (which
2142 -- may be specified only in conjunction with any
2143 -- keyword above, other than NONE).
2145 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
2146 "-O0,!-O1,!-O2,!-O3";
2147 -- NODOC (see /OPTIMIZE)
2149 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
2150 "-gnatl=>";
2151 -- /OUTPUT_FILE=fname
2153 -- This has the same effect as /LIST except that the output is written
2154 -- to a file instead of to standard output. If the given fname
2155 -- does not start with a period, then it is the full name of the file
2156 -- to be written. If fname starts with a period, the name of the file
2157 -- is the concatenation of to the name of the file being compiled with
2158 -- fname where the period is replace by an underline. For example, if
2159 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
2160 -- to file xyz.adb_lst.
2162 S_GCC_Overflo : aliased constant S := "/OVERFLOW_CHECKS=#" &
2163 "-gnato#";
2164 -- /OVERFLOW_CHECKS=nn
2166 -- Set default overflow cheecking mode. If nn is a single digit, in the
2167 -- range 0-3, it sets the overflow checking mode for all expressions,
2168 -- including those outside and within assertions. The meaning of nnn is:
2170 -- 1 all intermediate computations done using base type (STRICT)
2171 -- 2 minimize intermediate overflows (MINIMIZED)
2172 -- 3 eliminate intermediate overflows (ELIMINATED)
2174 -- Otherwise nn can be two digits, both 1-3, and in this case the first
2175 -- digit sets the mode (using the above code) for expressions outside an
2176 -- assertion, and the second digit sets the mode for expressions within
2177 -- an assertion.
2179 S_GCC_PValid : aliased constant S := "/PARAMETER_VALIDITY_CHECK " &
2180 "-gnateV";
2181 -- /NOPARAMETER_VALIDITY_CHECK (D)
2182 -- /PARAMETER_VALIDITY_CHECK
2184 -- Check validity of subprogram parameters.
2186 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2187 "64 " &
2188 "-mmalloc64 " &
2189 "LONG " &
2190 "-mmalloc64 " &
2191 "32 " &
2192 "-mno-malloc64 " &
2193 "SHORT " &
2194 "-mno-malloc64";
2195 -- /POINTER_SIZE=64 (D)
2196 -- /POINTER_SIZE[=(keyword[,...])]
2198 -- Change how pointers and descriptors are allocated. The following
2199 -- keywords are supported:
2201 -- 64 (D) Allocate heap pointers in 64bit space except as
2202 -- constrained by a 32bit size clause or by
2203 -- Convention_C and generate 64bit descriptors for
2204 -- Descriptor mechanisms for calling imported
2205 -- subprograms and accept both 64bit and 32bit
2206 -- descriptors for calls to exported subprograms.
2208 -- LONG Equivalent to option 64.
2210 -- 32 Allocate all heap pointers in 32bit space and
2211 -- generate 32bit descriptors for Descriptor
2212 -- mechanisms for calling imported subprograms.
2214 -- SHORT Equivalent to option 32.
2216 S_GCC_Polling : aliased constant S := "/POLLING " &
2217 "-gnatP";
2218 -- /NOPOLLING (D)
2219 -- /POLLING
2221 -- Enable polling. See the description of pragma Polling in the GNAT
2222 -- Reference Manual for full details.
2224 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2225 "-P>";
2226 -- /PROJECT_FILE=filename
2228 -- Specifies the main project file to be used. The project files rooted
2229 -- at the main project file will be parsed before the invocation of the
2230 -- compiler. The source and object directories to be searched will be
2231 -- communicated to the compiler through logical names
2232 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2234 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2235 "-gnatS";
2236 -- /PRINT_STANDARD
2238 -- cause the compiler to output a representation of package Standard
2239 -- in a form very close to standard Ada. It is not quite possible to
2240 -- do this and remain entirely Standard (since new numeric base types
2241 -- cannot be created in standard Ada), but the output is easily
2242 -- readable to any Ada programmer, and is useful to determine the
2243 -- characteristics of target dependent types in package Standard.
2245 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2246 "-gnatr";
2248 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2249 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2251 -- Causes all restrictions to be treated as warnings (pragma Restriction
2252 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2253 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2255 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2256 "VERBOSE " &
2257 "-gnatv " &
2258 "BRIEF " &
2259 "-gnatb " &
2260 "FULL " &
2261 "-gnatf " &
2262 "IMMEDIATE " &
2263 "-gnatdO " &
2264 "DEFAULT " &
2265 "!-gnatb,!-gnatv";
2266 -- /NOREPORT_ERRORS (D)
2267 -- /REPORT_ERRORS[=(keyword[,...])]
2269 -- Change the way errors are reported. The following keywords are
2270 -- supported:
2272 -- VERBOSE (D) Verbose mode. Full error output with source lines
2273 -- to SYS$OUTPUT.
2275 -- BRIEF Generate the brief format error messages to
2276 -- SYS$OUTPUT as well as the verbose format message or
2277 -- full listing.
2279 -- FULL Normally, the compiler suppresses error messages that
2280 -- are likely to be redundant. This keyword causes all
2281 -- error messages to be generated. One particular effect
2282 -- is for the case of references to undefined variables.
2283 -- If a given variable is referenced several times, the
2284 -- normal format of messages produces one error. With
2285 -- FULL, each undefined reference produces a separate
2286 -- error message.
2288 -- IMMEDIATE Normally, the compiler saves up error messages and
2289 -- generates them at the end of compilation in proper
2290 -- sequence. This keyword causes error messages to be
2291 -- generated as soon as they are detected. The use of
2292 -- IMMEDIATE usually causes error messages to be
2293 -- generated out of sequence. Use it when the compiler
2294 -- blows up due to an internal error. In this case, the
2295 -- error messages may be lost. Sometimes blowups are
2296 -- the result of mishandled error messages, so you may
2297 -- want to run with this keyword to determine whether
2298 -- any error messages were generated.
2300 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2302 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2303 "!-gnatb,!-gnatv";
2304 -- NODOC (see /REPORT_ERRORS)
2306 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2307 "DEFAULT " &
2308 "-gnatR " &
2309 "NONE " &
2310 "-gnatR0 " &
2311 "ARRAYS " &
2312 "-gnatR1 " &
2313 "ARRAYS_FILE " &
2314 "-gnatR1s " &
2315 "OBJECTS " &
2316 "-gnatR2 " &
2317 "OBJECTS_FILE " &
2318 "-gnatR2s " &
2319 "SYMBOLIC " &
2320 "-gnatR3 " &
2321 "SYMBOLIC_FILE " &
2322 "-gnatR3s " &
2323 "MECHANISMS " &
2324 "-gnatRm " &
2325 "MECHANISMS_FILE " &
2326 "-gnatRms";
2327 -- /NOREPRESENTATION_INFO (D)
2328 -- /REPRESENTATION_INFO[=(keyword[,...])]
2330 -- This qualifier controls output from the compiler of a listing showing
2331 -- representation information for declared types and objects.
2333 -- ARRAYS (D) Size and alignment information is listed for
2334 -- declared array and record types.
2336 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2337 -- with the name 'file_rep' where 'file' is the name
2338 -- of the corresponding source file.
2340 -- NONE no information is output (equivalent to omitting
2341 -- the /REPRESENTATION_INFO qualifiers).
2343 -- OBJECTS Size and alignment information is listed for all
2344 -- declared types and objects.
2346 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2347 -- with the name 'file_rep' where 'file' is the name
2348 -- of the corresponding source file.
2350 -- SYMBOLIC Symbolic expression information for values that
2351 -- are computed at run time for variant records.
2353 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2354 -- with the name 'file_rep' where 'file' is the name
2355 -- of the corresponding source file.
2357 -- MECHANISMS List convention and argument passing mechanisms
2358 -- for all subprograms
2360 -- MECHANISMS_FILE Similar to MECHANISMS, but the output is to a file
2361 -- with the name 'file_rep' where file is the name
2362 -- of the corresponding source file.
2364 -- DEFAULT Equivalent to ARRAYS.
2366 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2367 "!-gnatR";
2368 -- NODOC (see /REPRESENTATION_INFO)
2370 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2371 "--RTS=|";
2372 -- /RUNTIME_SYSTEM=xxx
2374 -- Build against an alternate runtime system named xxx or RTS-xxx.
2376 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2377 "-gnateS";
2378 -- /NOSCO_OUTPUT (D)
2379 -- /SCO_OUTPUT
2381 -- Controls the output of SCO (Source Coverage Obligation) information
2382 -- in the generated ALI file. This information is used by advanced source
2383 -- coverage tools. For a full description of the SCO format, see unit
2384 -- SCOs in the compiler sources (sco.ads/sco.adb).
2386 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2387 "-I*";
2388 -- /SEARCH=(directory[,...])
2390 -- When looking for source files also look in directories specified.
2392 S_GCC_Src_Info : aliased constant S := "/SRC_INFO=<" &
2393 "--source-info=>";
2394 -- /SRC_INFO=source-info-file
2396 -- Specify a source info file to be read or written by the Project
2397 -- Manager when project files are used.
2399 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2400 "ALL_BUILTIN " &
2401 "-gnatyy " &
2402 "0 " &
2403 "-gnaty0 " &
2404 "1 " &
2405 "-gnaty1 " &
2406 "2 " &
2407 "-gnaty2 " &
2408 "3 " &
2409 "-gnaty3 " &
2410 "4 " &
2411 "-gnaty4 " &
2412 "5 " &
2413 "-gnaty5 " &
2414 "6 " &
2415 "-gnaty6 " &
2416 "7 " &
2417 "-gnaty7 " &
2418 "8 " &
2419 "-gnaty8 " &
2420 "9 " &
2421 "-gnaty9 " &
2422 "ATTRIBUTE " &
2423 "-gnatya " &
2424 "NOATTRIBUTE " &
2425 "-gnaty-a " &
2426 "ARRAY_INDEXES " &
2427 "-gnatyA " &
2428 "NOARRAY_INDEXES " &
2429 "-gnaty-A " &
2430 "BLANKS " &
2431 "-gnatyb " &
2432 "NOBLANKS " &
2433 "-gnaty-b " &
2434 "BOOLEAN_OPERATORS " &
2435 "-gnatyB " &
2436 "NOBOOLEAN_OPERATORS " &
2437 "-gnaty-B " &
2438 "COMMENTS " &
2439 "-gnatyc " &
2440 "COMMENTS1 " &
2441 "-gnatyC " &
2442 "COMMENTS2 " &
2443 "-gnatyc " &
2444 "NOCOMMENTS " &
2445 "-gnaty-c " &
2446 "DOS_LINE_ENDINGS " &
2447 "-gnatyd " &
2448 "NODOS_LINE_ENDINGS " &
2449 "-gnaty-d " &
2450 "END " &
2451 "-gnatye " &
2452 "NOEND " &
2453 "-gnaty-e " &
2454 "VTABS " &
2455 "-gnatyf " &
2456 "NOVTABS " &
2457 "-gnaty-f " &
2458 "GNAT " &
2459 "-gnatyg " &
2460 "HTABS " &
2461 "-gnatyh " &
2462 "NOHTABS " &
2463 "-gnaty-h " &
2464 "IF_THEN " &
2465 "-gnatyi " &
2466 "NOIF_THEN " &
2467 "-gnaty-i " &
2468 "KEYWORD " &
2469 "-gnatyk " &
2470 "NOKEYWORD " &
2471 "-gnaty-k " &
2472 "LAYOUT " &
2473 "-gnatyl " &
2474 "NOLAYOUT " &
2475 "-gnaty-l " &
2476 "LINE_LENGTH " &
2477 "-gnatym " &
2478 "NOLINE_LENGTH " &
2479 "-gnaty-m " &
2480 "MODE_IN " &
2481 "-gnatyI " &
2482 "NOMODE_IN " &
2483 "-gnaty-I " &
2484 "NONE " &
2485 "-gnatyN " &
2486 "STANDARD_CASING " &
2487 "-gnatyn " &
2488 "NOSTANDARD_CASING " &
2489 "-gnaty-n " &
2490 "ORDERED_SUBPROGRAMS " &
2491 "-gnatyo " &
2492 "NOORDERED_SUBPROGRAMS " &
2493 "-gnaty-o " &
2494 "OVERRIDING_INDICATORS " &
2495 "-gnatyO " &
2496 "NOOVERRIDING_INDICATORS " &
2497 "-gnaty-O " &
2498 "PRAGMA " &
2499 "-gnatyp " &
2500 "NOPRAGMA " &
2501 "-gnaty-p " &
2502 "REFERENCES " &
2503 "-gnatyr " &
2504 "NOREFERENCES " &
2505 "-gnaty-r " &
2506 "SPECS " &
2507 "-gnatys " &
2508 "NOSPECS " &
2509 "-gnaty-s " &
2510 "STATEMENTS_AFTER_THEN_ELSE " &
2511 "-gnatyS " &
2512 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2513 "-gnaty-S " &
2514 "TOKEN " &
2515 "-gnatyt " &
2516 "NOTOKEN " &
2517 "-gnaty-t " &
2518 "UNNECESSARY_BLANK_LINES " &
2519 "-gnatyu " &
2520 "NOUNNECESSARY_BLANK_LINES " &
2521 "-gnaty-u " &
2522 "XTRA_PARENS " &
2523 "-gnaty-x " &
2524 "NOXTRA_PARENS " &
2525 "-gnaty-x";
2526 -- /NOSTYLE_CHECKS (D)
2527 -- /STYLE_CHECKS[=(keyword,[...])]
2529 -- Normally, GNAT permits any code layout consistent with the reference
2530 -- manual requirements. This qualifier imposes style checking on the
2531 -- input source code. The following keywords are supported:
2533 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2534 -- 3, ATTRIBUTE, BLANKS, COMMENTS2, END, VTABS,
2535 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2536 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2538 -- 1 .. 9 Specify indentation level from 1 to 9.
2539 -- The general style of required indentation is as
2540 -- specified by the examples in the Ada Reference
2541 -- Manual. Full line comments must be aligned with
2542 -- the -- starting on a column that is a multiple
2543 -- of the alignment level.
2545 -- ATTRIBUTE Check attribute casing.
2546 -- Attribute names, including the case of keywords
2547 -- such as digits used as attributes names,
2548 -- must be written in mixed case, that is,
2549 -- the initial letter and any letter following an
2550 -- underscore must be uppercase.
2551 -- All other letters must be lowercase.
2553 -- ARRAY_INDEXES Check indexes of array attributes.
2554 -- For array attributes First, Last, Range,
2555 -- or Length, the index number must be omitted
2556 -- for one-dimensional arrays and is required
2557 -- for multi-dimensional arrays.
2559 -- BLANKS Blanks not allowed at statement end.
2560 -- Trailing blanks are not allowed at the end of
2561 -- statements. The purpose of this rule, together
2562 -- with option HTABS (no horizontal tabs), is to
2563 -- enforce a canonical format for the use of
2564 -- blanks to separate source tokens.
2566 -- COMMENTS2 Check comments.
2567 -- COMMENTS Comments must meet the following set of rules:
2569 -- * The "--" that starts the column must either
2570 -- start in column one, or else at least one
2571 -- blank must precede this sequence.
2573 -- * Comments that follow other tokens on a line
2574 -- must have at least one blank following the
2575 -- "--" at the start of the comment.
2577 -- * Full line comments must have two blanks
2578 -- following the "--" that starts the comment,
2579 -- with the following exceptions.
2581 -- * A line consisting only of the "--"
2582 -- characters, possibly preceded by blanks is
2583 -- permitted.
2585 -- * A comment starting with "--x" where x is
2586 -- a special character is permitted. This
2587 -- allows proper processing of the output
2588 -- generated by specialized tools including
2589 -- gnatprep (where --! is used) and the SPARK
2590 -- annotation language (where --# is used).
2591 -- For the purposes of this rule, a special
2592 -- character is defined as being in one of the
2593 -- ASCII ranges 16#21#..16#2F# or
2594 -- 16#3A#..16#3F#.
2596 -- * A line consisting entirely of minus signs,
2597 -- possibly preceded by blanks, is permitted.
2598 -- This allows the construction of box
2599 -- comments where lines of minus signs are
2600 -- used to form the top and bottom of the box.
2602 -- * If a comment starts and ends with "--" is
2603 -- permitted as long as at least one blank
2604 -- follows the initial "--". Together with
2605 -- the preceding rule, this allows the
2606 -- construction of box comments, as shown in
2607 -- the following example:
2609 -- ---------------------------
2610 -- -- This is a box comment --
2611 -- ---------------------------
2613 -- COMMENTS1 Check comments (single space).
2614 -- Like COMMENTS2, but the -- of a comment only
2615 -- requires one or more spaces following, instead
2616 -- of two or more spaces.
2618 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2619 -- All lines must be terminated by a single
2620 -- ASCII.LF character. In particular the DOS line
2621 -- terminator sequence CR / LF is not allowed).
2623 -- END Check end/exit labels.
2624 -- Optional labels on end statements ending
2625 -- subprograms and on exit statements exiting
2626 -- named loops, are required to be present.
2628 -- GNAT Enforces a set of style conventions that
2629 -- match the style used in the GNAT source code.
2630 -- This maybe useful when developing code that
2631 -- is eventually intended to be incorporated into
2632 -- GNAT. For further details, see GNAT sources.
2634 -- HTABS No horizontal tabs.
2635 -- Horizontal tab characters are not permitted in
2636 -- the source text. Together with the BLANKS
2637 -- (no blanks at end of line) option, this
2638 -- enforces a canonical form for the use of blanks
2639 -- to separate source tokens.
2641 -- IF_THEN Check if-then layout.
2642 -- The keyword then must appear either on the
2643 -- same line as the corresponding if, or on a line
2644 -- on its own, lined up under the if with at least
2645 -- one non-blank line in between containing all or
2646 -- part of the condition to be tested.
2648 -- KEYWORD Check keyword casing.
2649 -- All keywords must be in lower case (with the
2650 -- exception of keywords such as digits used as
2651 -- attribute names to which this check does not
2652 -- apply).
2654 -- LAYOUT Check layout.
2655 -- Layout of statement and declaration constructs
2656 -- must follow the recommendations in the Ada
2657 -- Reference Manual, as indicated by the form of
2658 -- the syntax rules. For example an else keyword
2659 -- must be lined up with the corresponding if
2660 -- keyword.
2662 -- There are two respects in which the style rule
2663 -- enforced by this check option are more liberal
2664 -- than those in the Ada Reference Manual.
2665 -- First in the case of record declarations,
2666 -- it is permissible to put the record keyword on
2667 -- the same line as the type keyword, and then
2668 -- the end in end record must line up under type.
2669 -- For example, either of the following two
2670 -- layouts is acceptable:
2672 -- type q is record
2673 -- a : integer;
2674 -- b : integer;
2675 -- end record;
2677 -- type q is
2678 -- record
2679 -- a : integer;
2680 -- b : integer;
2681 -- end record;
2683 -- Second, in the case of a block statement,
2684 -- a permitted alternative is to put the block
2685 -- label on the same line as the declare or begin
2686 -- keyword, and then line the end keyword up under
2687 -- the block label. For example both the following
2688 -- are permitted:
2692 -- Block : declare
2693 -- A : Integer := 3;
2694 -- begin
2695 -- Proc (A, A);
2696 -- end Block;
2698 -- Block :
2699 -- declare
2700 -- A : Integer := 3;
2701 -- begin
2702 -- Proc (A, A);
2703 -- end Block;
2705 -- The same alternative format is allowed for
2706 -- loops. For example, both of the following are
2707 -- permitted:
2711 -- Clear : while J < 10 loop
2712 -- A (J) := 0;
2713 -- end loop Clear;
2715 -- Clear :
2716 -- while J < 10 loop
2717 -- A (J) := 0;
2718 -- end loop Clear;
2722 -- LINE_LENGTH Check maximum line length.
2723 -- The length of source lines must not exceed 79
2724 -- characters, including any trailing blanks
2725 -- The value of 79 allows convenient display on
2726 -- an 80 character wide device or window, allowing
2727 -- for possible special treatment of 80 character
2728 -- lines.
2730 -- NONE Clear any previously set style checks.
2732 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2733 -- All subprogram bodies in a given scope (e.g.
2734 -- a package body) must be in alphabetical order.
2735 -- The ordering rule uses normal Ada rules for
2736 -- comparing strings, ignoring casing of letters,
2737 -- except that if there is a trailing numeric
2738 -- suffix, then the value of this suffix is used
2739 -- in the ordering (e.g. Junk2 comes before
2740 -- Junk10).
2742 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2743 -- explicitly marked as such. The declaration of
2744 -- a primitive operation of a type extension that
2745 -- overrides an inherited operation must carry
2746 -- an overriding indicator.
2748 -- PRAGMA Check pragma casing.
2749 -- Pragma names must be written in mixed case,
2750 -- that is, the initial letter and any letter
2751 -- following an underscore must be uppercase.
2752 -- All other letters must be lowercase.
2754 -- REFERENCES Check references.
2755 -- All identifier references must be cased in the
2756 -- same way as the corresponding declaration.
2757 -- No specific casing style is imposed on
2758 -- identifiers. The only requirement is for
2759 -- consistency of references with declarations.
2761 -- SPECS Check separate specs.
2762 -- Separate declarations ("specs") are required
2763 -- for subprograms (a body is not allowed to serve
2764 -- as its own declaration). The only exception is
2765 -- that parameterless library level procedures are
2766 -- not required to have a separate declaration.
2767 -- This exception covers the most frequent form of
2768 -- main program procedures.
2770 -- STANDARD_CASING Check casing of entities in Standard.
2771 -- Any identifier from Standard must be cased to
2772 -- match the presentation in the Ada Reference
2773 -- Manual (for example, Integer and ASCII.NUL).
2775 -- TOKEN Check token spacing.
2776 -- The following token spacing rules are enforced:
2778 -- * The keywords abs and not must be followed
2779 -- by a space.
2781 -- * The token => must be surrounded by spaces.
2783 -- * The token <> must be preceded by a space or
2784 -- a left parenthesis.
2786 -- * Binary operators other than ** must be
2787 -- surrounded by spaces. There is no
2788 -- restriction on the layout of the ** binary
2789 -- operator.
2791 -- * Colon must be surrounded by spaces.
2793 -- * Colon-equal (assignment) must be surrounded
2794 -- by spaces.
2796 -- * Comma must be the first non-blank character
2797 -- on the line, or be immediately preceded by
2798 -- a non-blank character, and must be followed
2799 -- by a space.
2801 -- * If the token preceding a left paren ends
2802 -- with a letter or digit, then a space must
2803 -- separate the two tokens.
2805 -- * A right parenthesis must either be the
2806 -- first non-blank character on a line, or it
2807 -- must be preceded by a non-blank character.
2809 -- * A semicolon must not be preceded by
2810 -- a space, and must not be followed by
2811 -- a non-blank character.
2813 -- * A unary plus or minus may not be followed
2814 -- by a space.
2816 -- * A vertical bar must be surrounded by
2817 -- spaces.
2819 -- In the above rules, appearing in column one is
2820 -- always permitted, that is, counts as meeting
2821 -- either a requirement for a required preceding
2822 -- space, or as meeting a requirement for no
2823 -- preceding space.
2825 -- Appearing at the end of a line is also always
2826 -- permitted, that is, counts as meeting either
2827 -- a requirement for a following space,
2828 -- or as meeting a requirement for no following
2829 -- space.
2831 -- UNNECESSARY_BLANK_LINES
2832 -- Check for unnecessary blank lines.
2833 -- A blank line is considered unnecessary if it
2834 -- appears at the end of the file, or if more
2835 -- than one blank line occurs in sequence.
2837 -- VTABS No form feeds or vertical tabs.
2838 -- Form feeds or vertical tab characters are not
2839 -- permitted in the source text.
2841 -- XTRA_PARENS Check for the use of an unnecessary extra
2842 -- level of parentheses (C - style) around
2843 -- conditions in if statements, while statements
2844 -- and exit statements.
2846 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2847 "!-gnatg,!-gnaty*";
2848 -- NODOC (see /STYLE_CHECKS)
2850 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2851 "--subdirs=>";
2852 -- /SUBDIRS=dir
2854 -- The actual directories (object, exec, library, ...) are subdirectories
2855 -- of the directory specified in the project file. If the subdirectory
2856 -- does not exist, it is created automatically.
2858 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2859 "-gnateD" & '"';
2860 -- /SYMBOL_PREPROCESSING="symbol=value"
2862 -- Define or redefine a preprocessing symbol, associated with value.
2863 -- If "=value" is not specified, then the value of the symbol is True.
2864 -- A symbol is an identifier, following normal Ada (case-insensitive)
2865 -- rules for its syntax, and value is any sequence (including an empty
2866 -- sequence) of characters from the set (letters, digits, period,
2867 -- underline). Ada reserved words may be used as symbols, with the
2868 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2870 -- A symbol declared with this qualifier on the command line replaces
2871 -- a symbol with the same name either in a definition file or specified
2872 -- with a switch -D in the preprocessor data file.
2874 -- This qualifier is similar to qualifier /ASSOCIATE of
2875 -- GNAT PREPROCESSING.
2877 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2878 "-gnats";
2879 -- /NOSYNTAX_ONLY (D)
2880 -- /SYNTAX_ONLY
2882 -- Run GNAT in syntax checking only mode. You can check a series of
2883 -- files in a single command, and can use wild cards to specify such a
2884 -- group of files.
2886 -- You may use other qualifiers in conjunction with this qualifier. In
2887 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2888 -- format of any generated error messages.
2890 -- The output is simply the error messages, if any. No object file or ALI
2891 -- file is generated by a syntax-only compilation. Also, no units other
2892 -- than the one specified are accessed. For example, if a unit "X" with's
2893 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2894 -- access the source file containing unit "Y".
2896 -- Normally, GNAT allows only a single unit in a source file. However,
2897 -- this restriction does not apply in syntax-check-only mode, and it is
2898 -- possible to check a file containing multiple compilation units
2899 -- concatenated together. This is primarily used by the GNAT CHOP
2900 -- command.
2902 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2903 "-gnatT#";
2904 -- /TABLE_MULTIPLIER=nnn
2906 -- All compiler tables start at nnn times usual starting size.
2908 S_GCC_Target_W : aliased constant S := "/WRITE_TARGET_DEPENDENT_INFO=<" &
2909 "-gnatet=>";
2910 -- /WRITE_TARGET_DEPENDENT_INFO=file
2912 -- Generate target dependent information to file.
2914 S_GCC_Target_R : aliased constant S := "/READ_TARGET_DEPENDENT_INFO=<" &
2915 "-gnateT=>";
2916 -- /READ_TARGET_DEPENDENT_INFO=file
2918 -- Read target dependent information from file.
2920 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2921 "-gnatdc";
2922 -- /TRACE_UNITS
2923 -- /NOTRACE_UNITS
2925 -- This switch that does for the frontend what /VERBOSE does for the
2926 -- backend. The system prints the name of each unit, either a compilation
2927 -- unit or nested unit, as it is being analyzed.
2929 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2930 "-gnatt";
2931 -- /TREE_OUTPUT
2932 -- /NOTREE_OUTPUT
2934 -- Cause GNAT to write the internal tree for a unit to a file (with the
2935 -- filetype ATB for a body or ATS for a spec). This is not normally
2936 -- required, but is used by separate analysis tools. Typically these
2937 -- tools do the necessary compilations automatically, so you should never
2938 -- have to specify this switch in normal operation.
2940 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2941 "-gnatq";
2942 -- /TRY_SEMANTICS
2943 -- /NOTRY_SEMANTICS
2945 -- In normal operation mode the compiler first parses the program and
2946 -- determines if there are any syntax errors. If there are, appropriate
2947 -- error messages are generated and compilation is immediately
2948 -- terminated. This qualifier tells GNAT to continue with semantic
2949 -- analysis even if syntax errors have been found. This may enable the
2950 -- detection of more errors in a single run. On the other hand, the
2951 -- semantic analyzer is more likely to encounter some internal fatal
2952 -- error when given a syntactically invalid tree.
2954 S_GCC_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
2955 "--unchecked-shared-lib-imports";
2956 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
2957 -- /UNCHECKED_SHARED_LIB_IMPORTS
2959 -- Allow shared library projects to import static library projects
2961 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2962 "-gnatu";
2963 -- /NOUNITS_LIST (D)
2964 -- /UNITS_LIST
2966 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2967 -- listing includes all units on which the unit being compiled depends
2968 -- either directly or indirectly.
2970 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2971 "-gnatU";
2972 -- /NOUNIQUE_ERROR_TAG (D)
2973 -- /UNIQUE_ERROR_TAG
2975 -- Tag compiler error messages with the string "error: ".
2977 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2978 "-gnatF";
2979 -- /NOUPPERCASE_EXTERNALS (D)
2980 -- /UPPERCASE_EXTERNALS
2982 -- Fold default and explicit external names in pragmas Import and Export
2983 -- to uppercase for compatibility with the default behavior of DEC C.
2985 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2986 "DEFAULT " &
2987 "-gnatVd " &
2988 "NODEFAULT " &
2989 "-gnatVD " &
2990 "COPIES " &
2991 "-gnatVc " &
2992 "NOCOPIES " &
2993 "-gnatVC " &
2994 "COMPONENTS " &
2995 "-gnatVe " &
2996 "NOCOMPONENTS " &
2997 "-gnatVE " &
2998 "FLOATS " &
2999 "-gnatVf " &
3000 "NOFLOATS " &
3001 "-gnatVF " &
3002 "IN_PARAMS " &
3003 "-gnatVi " &
3004 "NOIN_PARAMS " &
3005 "-gnatVI " &
3006 "MOD_PARAMS " &
3007 "-gnatVm " &
3008 "NOMOD_PARAMS " &
3009 "-gnatVM " &
3010 "OPERANDS " &
3011 "-gnatVo " &
3012 "NOOPERANDS " &
3013 "-gnatVO " &
3014 "PARAMETERS " &
3015 "-gnatVp " &
3016 "NOPARAMETERS " &
3017 "-gnatVP " &
3018 "RETURNS " &
3019 "-gnatVr " &
3020 "NORETURNS " &
3021 "-gnatVR " &
3022 "SUBSCRIPTS " &
3023 "-gnatVs " &
3024 "NOSUBSCRIPTS " &
3025 "-gnatVS " &
3026 "TESTS " &
3027 "-gnatVt " &
3028 "NOTESTS " &
3029 "-gnatVT " &
3030 "ALL " &
3031 "-gnatVa " &
3032 "NONE " &
3033 "-gnatVn";
3034 -- /VALIDITY_CHECKING[=(keyword,[...])]
3036 -- Control level of validity checking.
3038 -- DEFAULT (D) In this mode checks are made to prevent
3039 -- erroneous behavior in accordance with the RM.
3040 -- Notably extra checks may be needed for case
3041 -- statements and subscripted array assignments.
3043 -- NONE No special checks for invalid values are
3044 -- performed. This means that references to
3045 -- uninitialized variables can cause erroneous
3046 -- behavior from constructs like case statements
3047 -- and subscripted array assignments. In this
3048 -- mode, invalid values can lead to erroneous
3049 -- behavior.
3051 -- FULL Every assignment is checked for validity, so
3052 -- that it is impossible to assign invalid values.
3053 -- The RM specifically allows such assignments,
3054 -- but in this mode, invalid values can never be
3055 -- assigned, and an attempt to perform such an
3056 -- assignment immediately raises Constraint_Error.
3057 -- This behavior is allowed (but not required) by
3058 -- the RM. This mode is intended as a debugging aid,
3059 -- and may be useful in helping to track down
3060 -- uninitialized variables. It may be useful to
3061 -- use this in conjunction with the Normalize_Scalars
3062 -- pragma which attempts to initialize with invalid
3063 -- values where possible.
3065 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
3066 "-v";
3067 -- /VERBOSE
3068 -- /NOVERBOSE
3070 -- Show commands generated by the GCC driver. Normally used only for
3071 -- debugging purposes or if you need to be sure what version of the
3072 -- compiler you are executing.
3074 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
3075 "-S,-verbose_asm,!-c";
3076 -- /NOASM (D)
3077 -- /ASM
3079 -- Use to cause the assembler source file to be generated, using S as the
3080 -- filetype, instead of the object file. This may be useful if you need
3081 -- to examine the generated assembly code.
3083 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
3084 "DEFAULT " &
3085 "!-gnatws,!-gnatwe " &
3086 "ALL " &
3087 "-gnatwa " &
3088 "EVERY " &
3089 "-gnatw.e " &
3090 "OPTIONAL " &
3091 "-gnatwa " &
3092 "NOOPTIONAL " &
3093 "-gnatwA " &
3094 "NOALL " &
3095 "-gnatwA " &
3096 "ALL_GCC " &
3097 "-Wall " &
3098 "FAILING_ASSERTIONS " &
3099 "-gnatw.a " &
3100 "NO_FAILING_ASSERTIONS " &
3101 "-gnatw.A " &
3102 "BAD_FIXED_VALUES " &
3103 "-gnatwb " &
3104 "NO_BAD_FIXED_VALUES " &
3105 "-gnatwB " &
3106 "BIASED_REPRESENTATION " &
3107 "-gnatw.b " &
3108 "NO_BIASED_REPRESENTATION " &
3109 "-gnatw.B " &
3110 "CONDITIONALS " &
3111 "-gnatwc " &
3112 "NOCONDITIONALS " &
3113 "-gnatwC " &
3114 "MISSING_COMPONENT_CLAUSES " &
3115 "-gnatw.c " &
3116 "NOMISSING_COMPONENT_CLAUSES " &
3117 "-gnatw.C " &
3118 "IMPLICIT_DEREFERENCE " &
3119 "-gnatwd " &
3120 "NO_IMPLICIT_DEREFERENCE " &
3121 "-gnatwD " &
3122 "TAG_WARNINGS " &
3123 "-gnatw.d " &
3124 "NOTAG_WARNINGS " &
3125 "-gnatw.D " &
3126 "ERRORS " &
3127 "-gnatwe " &
3128 "UNREFERENCED_FORMALS " &
3129 "-gnatwf " &
3130 "NOUNREFERENCED_FORMALS " &
3131 "-gnatwF " &
3132 "UNRECOGNIZED_PRAGMAS " &
3133 "-gnatwg " &
3134 "NOUNRECOGNIZED_PRAGMAS " &
3135 "-gnatwG " &
3136 "HIDING " &
3137 "-gnatwh " &
3138 "NOHIDING " &
3139 "-gnatwH " &
3140 "AVOIDGAPS " &
3141 "-gnatw.h " &
3142 "NOAVOIDGAPS " &
3143 "-gnatw.H " &
3144 "IMPLEMENTATION " &
3145 "-gnatwi " &
3146 "NOIMPLEMENTATION " &
3147 "-gnatwI " &
3148 "OVERLAPPING_ACTUALS " &
3149 "-gnatw.i " &
3150 "NOOVERLAPPING_ACTUALS " &
3151 "-gnatw.I " &
3152 "OBSOLESCENT " &
3153 "-gnatwj " &
3154 "NOOBSOLESCENT " &
3155 "-gnatwJ " &
3156 "CONSTANT_VARIABLES " &
3157 "-gnatwk " &
3158 "NOCONSTANT_VARIABLES " &
3159 "-gnatwK " &
3160 "STANDARD_REDEFINITION " &
3161 "-gnatw.k " &
3162 "NOSTANDARD_REDEFINITION " &
3163 "-gnatw.K " &
3164 "ELABORATION " &
3165 "-gnatwl " &
3166 "NOELABORATION " &
3167 "-gnatwL " &
3168 "INHERITED_ASPECTS " &
3169 "-gnatw.l " &
3170 "NOINHERITED_ASPECTS " &
3171 "-gnatw.L " &
3172 "MODIFIED_UNREF " &
3173 "-gnatwm " &
3174 "NOMODIFIED_UNREF " &
3175 "-gnatwM " &
3176 "SUSPICIOUS_MODULUS " &
3177 "-gnatw.m " &
3178 "NOSUSPICIOUS_MODULUS " &
3179 "-gnatw.M " &
3180 "NORMAL " &
3181 "-gnatwn " &
3182 "ATOMIC_SYNCHRONIZATION " &
3183 "-gnatw.n " &
3184 "NOATOMIC_SYNCHRONIZATION " &
3185 "-gnatw.N " &
3186 "OVERLAYS " &
3187 "-gnatwo " &
3188 "NOOVERLAYS " &
3189 "-gnatwO " &
3190 "OUT_PARAM_UNREF " &
3191 "-gnatw.o " &
3192 "NOOUT_PARAM_UNREF " &
3193 "-gnatw.O " &
3194 "INEFFECTIVE_INLINE " &
3195 "-gnatwp " &
3196 "NOINEFFECTIVE_INLINE " &
3197 "-gnatwP " &
3198 "PARAMETER_ORDER " &
3199 "-gnatw.p " &
3200 "NOPARAMETER_ORDER " &
3201 "-gnatw.P " &
3202 "MISSING_PARENS " &
3203 "-gnatwq " &
3204 "NOMISSING_PARENS " &
3205 "-gnatwQ " &
3206 "REDUNDANT " &
3207 "-gnatwr " &
3208 "NOREDUNDANT " &
3209 "-gnatwR " &
3210 "OBJECT_RENAMES " &
3211 "-gnatw.r " &
3212 "NOOBJECT_RENAMES " &
3213 "-gnatw.R " &
3214 "SUPPRESS " &
3215 "-gnatws " &
3216 "OVERRIDING_SIZE " &
3217 "-gnatw.s " &
3218 "NOOVERRIDING_SIZE " &
3219 "-gnatw.S " &
3220 "DELETED_CODE " &
3221 "-gnatwt " &
3222 "NODELETED_CODE " &
3223 "-gnatwT " &
3224 "SUSPICIOUS_CONTRACT " &
3225 "-gnatw.t " &
3226 "NOSUSPICIOUS_CONTRACT " &
3227 "-gnatw.T " &
3228 "UNINITIALIZED " &
3229 "-Wuninitialized " &
3230 "UNUSED " &
3231 "-gnatwu " &
3232 "NOUNUSED " &
3233 "-gnatwU " &
3234 "UNORDERED_ENUMERATIONS " &
3235 "-gnatw.u " &
3236 "NOUNORDERED_ENUMERATIONS " &
3237 "-gnatw.U " &
3238 "VARIABLES_UNINITIALIZED " &
3239 "-gnatwv " &
3240 "NOVARIABLES_UNINITIALIZED " &
3241 "-gnatwV " &
3242 "REVERSE_BIT_ORDER " &
3243 "-gnatw.v " &
3244 "NOREVERSE_BIT_ORDER " &
3245 "-gnatw.V " &
3246 "LOWBOUND_ASSUMED " &
3247 "-gnatww " &
3248 "NOLOWBOUND_ASSUMED " &
3249 "-gnatwW " &
3250 "WARNINGS_OFF_PRAGMAS " &
3251 "-gnatw.w " &
3252 "NO_WARNINGS_OFF_PRAGMAS " &
3253 "-gnatw.W " &
3254 "IMPORT_EXPORT_PRAGMAS " &
3255 "-gnatwx " &
3256 "NOIMPORT_EXPORT_PRAGMAS " &
3257 "-gnatwX " &
3258 "LOCAL_RAISE_HANDLING " &
3259 "-gnatw.x " &
3260 "NOLOCAL_RAISE_HANDLING " &
3261 "-gnatw.X " &
3262 "ADA_COMPATIBILITY " &
3263 "-gnatwy " &
3264 "NOADA_COMPATIBILITY " &
3265 "-gnatwY " &
3266 "WHY_SPEC_NEEDS_BODY " &
3267 "-gnatw.y " &
3268 "NO_WHY_SPEC_NEEDS_BODY " &
3269 "-gnatw.Y " &
3270 "UNCHECKED_CONVERSIONS " &
3271 "-gnatwz " &
3272 "NOUNCHECKED_CONVERSIONS " &
3273 "-gnatwZ " &
3274 "SIZE_ALIGNMENT " &
3275 "-gnatw.z " &
3276 "NOSIZE_ALIGNMENT " &
3277 "-gnatw.Z";
3279 -- /NOWARNINGS
3281 -- Suppress the output of all warning messages from the GNAT front end.
3282 -- Note that it does not suppress warnings from the gcc back end.
3284 -- /WARNINGS[=(keyword[,...])]
3286 -- In addition to error messages, corresponding to illegalities as
3287 -- defined in the reference manual, the compiler detects two kinds of
3288 -- warning situations. First, the compiler considers some constructs
3289 -- suspicious and generates a warning message to alert you to a possible
3290 -- error. Second, if the compiler detects a situation that is sure to
3291 -- raise an exception at runtime, it generates a warning message.
3293 -- You may specify the following keywords to change this behavior.
3295 -- DEFAULT (D) The default behavior. This includes the
3296 -- following categories of warnings:
3298 -- ADA_COMPATIBILITY
3299 -- ADDRESS_CLAUSE_OVERLAY
3300 -- BIASED_REPRESENTATION
3301 -- IMPORT_EXPORT_PRAGMAS
3302 -- FAILING_ASSERTIONS
3303 -- IMPLEMENTATION
3304 -- LOWBOUND_ASSUMED
3305 -- MISSING_PARENS
3306 -- OVERLAPPING_ACTUALS
3307 -- REVERSE_BIT_ORDER
3308 -- SIZE_ALIGNMENT
3309 -- SUSPICIOUS_CONTRACT
3310 -- SUSPICIOUS_MODULUS
3311 -- UNCHECKED_CONVERSIONS
3312 -- UNRECOGNIZED_PRAGMA
3313 -- VARIABLES_UNINITIALIZED
3315 -- as well as all warnings that cannot be
3316 -- individually suppressed.
3318 -- ALL Activate all optional warnings.
3319 -- Activates the most commong used optional
3320 -- warning messages. The warnings that are not
3321 -- turned on by this are:
3323 -- ADDRESS_CLAUSE_OVERLAY
3324 -- ATOMIC_SYNCHRONIZATION
3325 -- AVOID_GAPS
3326 -- BAD_FIXED_VALUE
3327 -- BIASED_ROUNDING
3328 -- DELETED_CODE
3329 -- ELABORATION
3330 -- HIDING
3331 -- IMPLICIT_DEREFERENCE
3332 -- INHERITED_ASPECTS
3333 -- OUT_PARAM_UNREF
3334 -- OVERLAPPING_ACTUALS
3335 -- OVERRIDING_SIZE
3336 -- STANDARD_REDEFINITION
3337 -- SUSPICIOUS_MODULUS
3338 -- UNORDERED_ENUMERATION
3339 -- WARNINGS_OFF_PRAGMAS
3340 -- WHY_BODY_NEEDED
3342 -- All other optional warnings are turned on.
3344 -- OPTIONAL Turn on standard optional warnings.
3345 -- This has the same effect as ALL.
3347 -- NOALL Suppress all optional errors.
3348 -- Suppresses all optional warning messages
3349 -- including those not activated by ALL.
3351 -- NOOPTIONAL Turn off standard optional warnings.
3352 -- This has the same effect as NOALL
3354 -- EVERY Activate every optional warning.
3355 -- Activates all optional warnings, including
3356 -- those listed above as exceptions for ALL.
3358 -- ALL_GCC Request additional messages from the GCC
3359 -- backend. Most of these are not Ada-relevant.
3361 -- UNINITIALIZED Activate warnings for uninitialized
3362 -- variables. This is a GCC option, not an Ada
3363 -- option. You must also specify the /OPTIMIZE
3364 -- qualifier with a value other than NONE (in
3365 -- other words, this option is effective only
3366 -- if optimization is turned on).
3368 -- ERRORS Warning messages are to be treated as errors.
3369 -- The warning string still appears, but the
3370 -- warning messages are counted as errors, and
3371 -- prevent the generation of an object file.
3373 -- SUPPRESS Completely suppress the output of all warning
3374 -- messages. Same as /NOWARNINGS.
3376 -- NORMAL Sets normal warning mode, in which enabled
3377 -- warnings are issued and treated as warnings
3378 -- rather than errors. This is the default mode.
3379 -- It can be used to cancel the effect of an
3380 -- explicit /WARNINGS=SUPPRESS or
3381 -- /WARNINGS=ERRORS. It also cancels the effect
3382 -- of the implicit /WARNINGS=ERRORS that is
3383 -- activated by the use of /STYLE=GNAT.
3385 -- TAG_WARNINGS Causes the string [xxx] to be added to
3386 -- warnings that are controlled by the warning
3387 -- switch -gnat??. See below for list of these
3388 -- equivalent switch names.
3390 -- NOTAG_WARNINGS Turns off warning tag output (default
3391 -- setting).
3393 -- The remaining entries control individual warning categories. If one
3394 -- of these options is preceded by NO (e.g. NOAVOID_GAPS), then the
3395 -- corresponding class of warnings is suppressed. The -gnatwxx tag
3396 -- below the name indicates the non-VMS warning switch option. This is
3397 -- used in the warning tags generated by TAG_WARNINGS (above)
3399 -- ADA_COMPATIBILITY Activate warnings for Ada compatibility issues.
3400 -- (-gnatwy) This generates warnings for usages which are
3401 -- legal, but may cause difficulties with later
3402 -- Ada versions (e.g. the use of INTERFACE as an
3403 -- identifier, which is legal in Ada 85, but in
3404 -- Ada 2005, this is a reserved word).
3406 -- ATOMIC_SYNCHRONIZATION Activate info msgs for atomic synchronization.
3407 -- (-gnatw.n) This generates information messages when an
3408 -- access to an atomic variable requires the
3409 -- generation of atomic synchronization code.
3411 -- AVOIDGAPS Activate warnings for gaps in records.
3412 -- (-gnatw.h) This outputs a warning if a representation
3413 -- clause for a record leaves unallocated bits.
3415 -- BAD_FIXED_VALUES Activate warnings on bad fixed values.
3416 -- (-gnatwb) When this is enabled, a fixed-type literal
3417 -- will generate a warning if its value does not
3418 -- correspond to an exact value of the type and
3419 -- is thus subject to rounding.
3421 -- BIASED_REPRESENTATION Activate warnings for biased representations.
3422 -- (-gnatw.b) A warning will be generated if a size clause
3423 -- or a component clause forces use of a biased
3424 -- representation (e.g. range 1..5 with size 2).
3426 -- CONDITIONALS Activate warnings for conditional expressions
3427 -- (-gnatwc) in tests where the expression is known to
3428 -- be True or False at compile time.
3430 -- CONSTANT_VARIABLES Activate warnings on constant variables.
3431 -- (-gnatwk) A warning is output for a variable which could
3432 -- have been declared as a constant.
3434 -- DELETED_CODE Activate warning for conditional deleted code.
3435 -- (-gnatwt) This option generates warnings for tracking of
3436 -- code in conditionals (IF and CASE statements)
3437 -- that is detected to be dead code which cannot
3438 -- be executed, and which is removed by the
3439 -- front end. This may be useful for detecting
3440 -- deactivated code in certified applications.
3442 -- ELABORATION Activate warnings on missing pragma Elaborate
3443 -- (-gnatwl) and Elaborate_All statements.
3445 -- FAILING_ASSERTIONS Activate warnings on failing assertions.
3446 -- (-gnatw.a) Generates a warning for assertions that are
3447 -- sure to fail.
3449 -- HIDING Activate warnings on hiding declarations.
3450 -- (-gnatwh) A declaration is considered hiding if it is
3451 -- for a non-overloadable entity, and declares
3452 -- an entity with the same name as some other
3453 -- entity that is directly or use-visible.
3455 -- IMPLEMENTATION Activate warnings for a with of an internal
3456 -- (-gnatwi) GNAT implementation unit, defined as any unit
3457 -- from the Ada, Interfaces, GNAT, DEC or System
3458 -- hierarchies that is not documented in the
3459 -- Ada Reference Manual or the GNAT Programmer's
3460 -- Reference Manual. Such units are intended only
3461 -- for internal implementation purposes and may
3462 -- change from version to veresion, and should
3463 -- not be with'ed by user programs.
3465 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3466 -- (-gnatwd) The use of a prefix of an access type in an
3467 -- indexed component, slice, or selected component
3468 -- without an explicit .all will generate a
3469 -- warning. When this warning is enabled, and no
3470 -- warnings of this type are generated, access
3471 -- checks occur only at points where the source
3472 -- program contains an explicit use of .all.
3474 -- IMPORT_EXPORT_PRAGMAS Activate warnings on import-export pragmas.
3475 -- (-gnatwx) This generates a warning on an Export or Import
3476 -- pragma when the compiler detects a possible
3477 -- conflict between the Ada and foreign language
3478 -- calling sequences. For example, the use of
3479 -- default parameters in a convention C procedure
3480 -- is dubious because the C compiler cannot supply
3481 -- the proper default, so a warning is issued.
3483 -- INEFFECTIVE_INLINE Activate warnings on ineffective Inlines.
3484 -- (-gnatwp) Activates warnings for failure of front end
3485 -- inlining (activated by /INLINE=FULL) to
3486 -- inline a particular call when a pragma Inline
3487 -- applies. There are many reasons for not
3488 -- being able to inline a call, including most
3489 -- commonly that the call is too complex to
3490 -- inline. This warning can also be turned on
3491 -- using /INLINE=FULL.
3493 -- INHERITED_ASPECTS Activate info messages for inherited aspects.
3494 -- (-gantw.l) Outputs information messages for tagged types
3495 -- that inherit aspects from a parent.
3497 -- LOCAL_RAISE_HANDLING Activate warnings for No_Exception_Propagation.
3498 -- (-gnatw.x) This generates warnings for exception usage
3499 -- when the No_Exception_Propagation restriction
3500 -- is in effect. Warnings are given for implicit
3501 -- or explicit exception raises which are not
3502 -- covered by a local handler, and for exception
3503 -- handlers which do not cover a local raise.
3505 -- LOWBOUND_ASSUMED Activate warnings for low bound assumptions.
3506 -- (-gnatww) Outputs warnings if code appears to depend on
3507 -- an assumption about the lower bound of one of
3508 -- the subprogram parameters (for example using
3509 -- S(1 .. 5) instead of S(S'First .. S'First + 4).
3511 -- MISSING_COMPONENT_CLAUSES
3512 -- (-gnatw.c) Activate warnings for unrepped component.
3513 -- Generates a warning for a record component
3514 -- which does not have a component clause if
3515 -- at least one component claused is present
3516 -- for some other component of the record.
3518 -- MISSING_PARENS Activate warnings for missing parentheses.
3519 -- (-gnatwq) Outputs a warning for cases where parentheses
3520 -- are not used and the result is potential
3521 -- ambiguity from a reader's point of view.
3522 -- For example (not a > b) when a and b are
3523 -- modular means (not (a) > b) and very likely
3524 -- the programmer intended (not (a > b)).
3526 -- MODIFIED_UNREF Activate warning for assigned but not read.
3527 -- (-gnatwm) Outputs a warning for variables that are
3528 -- assigned (using an initialization value or an
3529 -- assignment statements) but whose value is
3530 -- never read. The warning is suppressed for
3531 -- volatile variables and also for variables
3532 -- that are renamings of other variables or for
3533 -- which an address clause is given.
3535 -- OBJECT_RENAME Activate warnings for non limited objects
3536 -- (-gnatw.r) renaming parameterless functions.
3538 -- OBSOLESCENT Activates warnings for calls to subprograms
3539 -- (-gnatwj) marked with pragma Obsolescent and for use of
3540 -- features in Annex J of the Ada Reference
3541 -- Manual. In the case of Annex J, not all
3542 -- features are flagged. In particular use of
3543 -- the renamed packages (like Text_IO), use of
3544 -- package ASCII, and use of the attribute
3545 -- 'Constrained are not flagged, since these are
3546 -- common and would generate many annoying
3547 -- false-positive warnings.
3549 -- OUT_PARAM_UNREF Activate warnings on unreferenced OUT params.
3550 -- (-gantw.o) This switch activates warnings for variables
3551 -- that are modified by using them as actuals for
3552 -- a call to a procedure with an out mode formal,
3553 -- where the resulting assigned value is never
3554 -- read. It is applicable in the case where there
3555 -- is more than one out mode formal. If there is
3556 -- only one out mode formal, the warning is issued
3557 -- by default (controlled by UNUSED). The warning
3558 -- is suppressed for volatile variables and also
3559 -- for variables that are renamings of other
3560 -- variables or for which an address clause
3561 -- is given.
3563 -- OVERLAPPING_ACTUALS Activate warnings on overlapping actuals.
3564 -- (-gnatw.i) Enables a warning on statically detectable
3565 -- overlapping actuals in a subprogram call,
3566 -- when one of the actuals is an in-out
3567 -- parameter, and the types of the actuals
3568 -- are not by-copy types.
3570 -- OVERLAYS Activate warnings for possibly unintended
3571 -- (-gnatwo) initialization effects of defining address
3572 -- clauses that cause one variable to overlap
3573 -- another.
3575 -- OVERRIDING_SIZE Activate warning on overridden size clause.
3576 -- (-gnatw.s) Generates a warning if an explicit size clause
3577 -- is overridden by a component clause in a record
3578 -- or a component size in an array.
3580 -- PARAMETER_ORDER Activate warnings for suspicious parameter
3581 -- (-gnatw.p) ordering. A warning is generated if positional
3582 -- ordering is used and the actuals match the
3583 -- formal names, but are in the wrong order (e.g.
3584 -- GEN (B, A), when the formals of GEN are A, B.)
3585 -- No warning is generated for named parameters,
3586 -- so GEN (A => B, B => A) would be allowed.
3588 -- REDUNDANT Activate warnings for redundant constructs.
3589 -- (-gnatwr) In particular assignments of a variable to
3590 -- itself, and a type conversion that converts
3591 -- an object to its own type.
3593 -- REVERSE_BIT_ORDER Activates info messages for reverse bit order.
3594 -- (-gnatw.v) Generates information messages that show the
3595 -- effect of specifying reverse bit order for
3596 -- a record on individual components.
3598 -- SIZE_ALIGNMENT Activates warnings for record types for which
3599 -- (-gnatw.z) explicit size and alignment values are given,
3600 -- where the size value is not a multiple of the
3601 -- alignment value, resulting in an object size
3602 -- larger than the specified size.
3604 -- STANDARD_REDEFINITION Activate warnings on standard redefinition.
3605 -- (-gnatw.k) Generates a warning message if a declaration
3606 -- declares an identifier that matches one that
3607 -- is declared in package Standard (e.g. Float).
3609 -- SUSPICIOUS_CONTRACT Activate warnings on suspicious postconditions.
3610 -- (-gnatw.t) This generates warnings if a postcondition for
3611 -- a function does not mention the result, or if
3612 -- a postcondition for a procedure depends only on
3613 -- the entry values of the parameters.
3615 -- SUSPICIOUS_MODULUS Warn on suspicious modulus values, for
3616 -- (-gnatw.m) example "mod 7" is suspicious for a size with
3617 -- 7 bits, since it was likely intended to be
3618 -- "mod 2**7". Similarly "mod 32" is considered
3619 -- suspicious, since it was likely intended to
3620 -- be "mod 2**32".
3622 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3623 -- (-gnatwz) Causes warnings to be generated for unchecked
3624 -- conversions between types that are known at
3625 -- compile time to have different sizes.
3627 -- UNORDERED_ENUMERATION Activate warnings for unordered enumeration.
3628 -- (-gnatw.u) Causes warnings to be generated if for an
3629 -- enumeration type that does not have a pragma
3630 -- Ordered that applies, if a subtype with a
3631 -- range is used, or a comparison other than
3632 -- [in]equality appears for values of the type.
3634 -- UNRECOGNIZED_PRAGMAS Activate warnings for unrecognized pragmas.
3635 -- (-gnatwg) Such pragmas are ignored other than generating
3636 -- these warnings.
3638 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3639 -- (-gnatwf) Causes a warning to be generated if a formal
3640 -- parameter is not referenced in the body of
3641 -- the subprogram. Note that the combination
3642 -- UNUSED followed by NOUNREFERENCED_FORMALS
3643 -- has the effect of warning on unreferenced
3644 -- entities other than subprogram formals.
3646 -- UNUSED Activates warnings to be generated for entities
3647 -- (-gantwu) that are defined but not referenced, and for
3648 -- units that are with'ed and not referenced. In
3649 -- the case of packages, a warning is also
3650 -- generated if no entities in the package are
3651 -- referenced. This means that if the package
3652 -- is referenced but the only references are in
3653 -- in use clauses or renames declarations, a
3654 -- warning is still generated. A warning is also
3655 -- generated for a generic package that is
3656 -- with'ed but never instantiated. In the case
3657 -- where a package or subprogram body is
3658 -- compiled, and there is a with on the
3659 -- corresponding spec that is only referenced
3660 -- in the body, a warning is also generated,
3661 -- noting the with can be moved to the body.
3663 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3664 -- (-gnatwv) Causes warnings to be generated when a
3665 -- variable is accessed which may not be
3666 -- properly initialized.
3668 -- WARNINGS_OFF_PRAGMAS Activates warnings for pragma Warnings (Off).
3669 -- (-gnatw.w) This generates a warning if the specific string
3670 -- version the pragma is used as a local pragma
3671 -- (i.e. not a configuration pragma) and no
3672 -- warning is suppressed as a result.
3674 -- WHY_SPEC_NEEDS_BODY Generates information messages showing why a
3675 -- (-gnatw.y) package specification requires a body.
3677 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3678 "-gnatws";
3679 -- NODOC (see /WARNINGS)
3681 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3682 "-w";
3683 -- /NO_BACK_END_WARNINGS
3685 -- Inhibit all warning messages of the GCC back-end.
3687 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3688 "BRACKETS " &
3689 "-gnatWb " &
3690 "HEX " &
3691 "-gnatWh " &
3692 "UPPER " &
3693 "-gnatWu " &
3694 "SHIFT_JIS " &
3695 "-gnatWs " &
3696 "UTF8 " &
3697 "-gnatW8 " &
3698 "EUC " &
3699 "-gnatWe";
3700 -- /NOWIDE_CHARACTER_ENCODING (D)
3701 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3703 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3704 -- is one of the following:
3706 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3707 -- are four hexadecimal digits representing the coding
3708 -- ('Pos value) of the character in type
3709 -- Wide_Character. The hexadecimal digits may use upper
3710 -- or lower case letters.
3712 -- This notation can also be used for upper half
3713 -- Character values using the format ["xx"] where XX is
3714 -- two hexadecimal digits representing the coding ('Pos
3715 -- value) of the character in type Character (or
3716 -- Wide_Character). The hexadecimal digits may use upper
3717 -- of lower case.
3719 -- NONE No wide characters are allowed. Same
3720 -- as /NOWIDE_CHARACTER_ENCODING.
3722 -- HEX In this encoding, a wide character is represented by
3723 -- the following five character sequence: ESC a b c d
3724 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3725 -- characters (using uppercase letters) of the wide
3726 -- character code. For example, ESC A345 is used to
3727 -- represent the wide character with code 16#A345#. This
3728 -- scheme is compatible with use of the full
3729 -- Wide_Character set.
3731 -- UPPER The wide character with encoding 16#abcd# where the
3732 -- upper bit is on (in other words, "a" is in the range
3733 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3734 -- The second byte may never be a format control
3735 -- character, but is not required to be in the upper
3736 -- half. This method can be also used for shift-JIS or
3737 -- EUC, where the internal coding matches the external
3738 -- coding.
3740 -- SHIFT_JIS A wide character is represented by a two-character
3741 -- sequence, 16#ab# and 16#cd#, with the restrictions
3742 -- described for upper-half encoding as described above.
3743 -- The internal character code is the corresponding JIS
3744 -- character according to the standard algorithm for
3745 -- Shift-JIS conversion. Only characters defined in the
3746 -- JIS code set table can be used with this encoding
3747 -- method.
3749 -- UTF8 A wide character is represented using
3750 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3751 -- R of ISO 10646-1/Am.2. Depending on the character
3752 -- value, the representation is a one, two, or three byte
3753 -- sequence:
3755 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3756 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3757 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3759 -- where the xxx bits correspond to the left-padded bits
3760 -- of the 16-bit character value. Note that all lower
3761 -- half ASCII characters are represented as ASCII bytes
3762 -- and all upper half characters and other wide characters
3763 -- are represented as sequences of upper-half (The full
3764 -- UTF-8 scheme allows for encoding 31-bit characters as
3765 -- 6-byte sequences, but in this implementation, all UTF-8
3766 -- sequences of four or more bytes length will be treated
3767 -- as illegal).
3769 -- EUC A wide character is represented by a two-character
3770 -- sequence 16#ab# and 16#cd#, with both characters being
3771 -- in the upper half. The internal character code is the
3772 -- corresponding JIS character according to the EUC
3773 -- encoding algorithm. Only characters defined in the JIS
3774 -- code set table can be used with this encoding method.
3776 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3777 "-gnatWn";
3778 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3780 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3781 "-gnatD";
3782 -- /NOXDEBUG (D)
3783 -- /XDEBUG
3785 -- Output expanded source files for source level debugging.
3786 -- The expanded source (see /EXPAND_SOURCE) is written to files
3787 -- with names formed by appending "_DG" to the input file name,
3788 -- The debugging information generated by the /DEBUG qualifier will then
3789 -- refer to the generated file. This allows source level debugging using
3790 -- the generated code which is sometimes useful for complex code, for
3791 -- example to find out exactly which part of a complex construction
3792 -- raised an exception. The maximum line length for the output is 72.
3794 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3795 "-gnatD=#";
3796 -- /LXDEBUG=nnn
3798 -- Output expanded source files for source level debugging.
3799 -- The expanded source (see /EXPAND_SOURCE) is written to files
3800 -- with names formed by appending "_DG" to the input file name,
3801 -- The debugging information generated by the /DEBUG qualifier will then
3802 -- refer to the generated file. This allows source level debugging using
3803 -- the generated code which is sometimes useful for complex code, for
3804 -- example to find out exactly which part of a complex construction
3805 -- raised an exception. The parameter is the maximum line length for
3806 -- the output.
3808 S_GCC_Xref : aliased constant S := "/XREF=" &
3809 "GENERATE " &
3810 "!-gnatx " &
3811 "SUPPRESS " &
3812 "-gnatx";
3813 -- /XREF[=keyword]
3815 -- Normally the compiler generates full cross-referencing information in
3816 -- the .ALI file. This information is used by a number of tools,
3817 -- including GNAT FIND and GNAT XREF.
3819 -- GENERATE (D) Generate cross-referencing information.
3821 -- SUPPRESS Suppress cross-referencing information.
3822 -- This saves some space and may slightly
3823 -- speed up compilation, but means that some
3824 -- tools cannot be used.
3826 GCC_Switches : aliased constant Switches :=
3827 (S_GCC_Ada_83 'Access,
3828 S_GCC_Ada_95 'Access,
3829 S_GCC_Ada_05 'Access,
3830 S_GCC_Ada_2005'Access,
3831 S_GCC_Ada_12 'Access,
3832 S_GCC_Ada_2012'Access,
3833 S_GCC_Add 'Access,
3834 S_GCC_AlCheck 'Access,
3835 S_GCC_Asm 'Access,
3836 S_GCC_AValid 'Access,
3837 S_GCC_CategW 'Access,
3838 S_GCC_Checks 'Access,
3839 S_GCC_Chflov 'Access,
3840 S_GCC_ChecksX 'Access,
3841 S_GCC_Compres 'Access,
3842 S_GCC_Config 'Access,
3843 S_GCC_Current 'Access,
3844 S_GCC_Debug 'Access,
3845 S_GCC_DebugX 'Access,
3846 S_GCC_Data 'Access,
3847 S_GCC_DisAtom 'Access,
3848 S_GCC_Dist 'Access,
3849 S_GCC_DistX 'Access,
3850 S_GCC_ElabI 'Access,
3851 S_GCC_Error 'Access,
3852 S_GCC_ErrorX 'Access,
3853 S_GCC_Expand 'Access,
3854 S_GCC_Lexpand 'Access,
3855 S_GCC_Except 'Access,
3856 S_GCC_Extend 'Access,
3857 S_GCC_Ext 'Access,
3858 S_GCC_File 'Access,
3859 S_GCC_Follow 'Access,
3860 S_GCC_Force 'Access,
3861 S_GCC_Full 'Access,
3862 S_GCC_Generate'Access,
3863 S_GCC_GNAT 'Access,
3864 S_GCC_Help 'Access,
3865 S_GCC_Ident 'Access,
3866 S_GCC_IdentX 'Access,
3867 S_GCC_IgnoreR 'Access,
3868 S_GCC_IgnoreS 'Access,
3869 S_GCC_IgnoreU 'Access,
3870 S_GCC_Immed 'Access,
3871 S_GCC_Inline 'Access,
3872 S_GCC_InlineX 'Access,
3873 S_GCC_Intsrc 'Access,
3874 S_GCC_Just 'Access,
3875 S_GCC_JustX 'Access,
3876 S_GCC_Length 'Access,
3877 S_GCC_List 'Access,
3878 S_GCC_Output 'Access,
3879 S_GCC_Machine 'Access,
3880 S_GCC_Mapping 'Access,
3881 S_GCC_MaxI 'Access,
3882 S_GCC_Multi 'Access,
3883 S_GCC_Mess 'Access,
3884 S_GCC_Nesting 'Access,
3885 S_GCC_Noadc 'Access,
3886 S_GCC_NoElabI 'Access,
3887 S_GCC_Noload 'Access,
3888 S_GCC_Nostinc 'Access,
3889 S_GCC_Nostlib 'Access,
3890 S_GCC_NoWarnP 'Access,
3891 S_GCC_Opt 'Access,
3892 S_GCC_OptX 'Access,
3893 S_GCC_Overflo 'Access,
3894 S_GCC_PValid 'Access,
3895 S_GCC_Pointer 'Access,
3896 S_GCC_Polling 'Access,
3897 S_GCC_Project 'Access,
3898 S_GCC_Psta 'Access,
3899 S_GCC_Report 'Access,
3900 S_GCC_ReportX 'Access,
3901 S_GCC_Repinfo 'Access,
3902 S_GCC_RepinfX 'Access,
3903 S_GCC_RTS 'Access,
3904 S_GCC_SCO 'Access,
3905 S_GCC_Search 'Access,
3906 S_GCC_Src_Info'Access,
3907 S_GCC_Style 'Access,
3908 S_GCC_StyleX 'Access,
3909 S_GCC_Subdirs 'Access,
3910 S_GCC_Symbol 'Access,
3911 S_GCC_Syntax 'Access,
3912 S_GCC_Table 'Access,
3913 S_GCC_Target_W'Access,
3914 S_GCC_Target_R'Access,
3915 S_GCC_Trace 'Access,
3916 S_GCC_Tree 'Access,
3917 S_GCC_Trys 'Access,
3918 S_GCC_USL 'Access,
3919 S_GCC_Units 'Access,
3920 S_GCC_Unique 'Access,
3921 S_GCC_Upcase 'Access,
3922 S_GCC_Valid 'Access,
3923 S_GCC_Verbose 'Access,
3924 S_GCC_Verb_Asm'Access,
3925 S_GCC_Warn 'Access,
3926 S_GCC_WarnX 'Access,
3927 S_GCC_Wide 'Access,
3928 S_GCC_WideX 'Access,
3929 S_GCC_No_Back 'Access,
3930 S_GCC_Xdebug 'Access,
3931 S_GCC_Lxdebug 'Access,
3932 S_GCC_Xref 'Access);
3934 ----------------------------
3935 -- Switches for GNAT ELIM --
3936 ----------------------------
3938 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3939 "-aP*";
3940 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3942 -- Add directories to the project search path.
3944 S_Elim_All : aliased constant S := "/ALL " &
3945 "-a";
3946 -- /NOALL (D)
3947 -- /ALL
3949 -- Also look for subprograms from the GNAT run time that can be
3950 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3951 -- the entire program must be recompiled with qualifier /ALL_FILES of
3952 -- GNAT MAKE.
3954 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3955 "-b>";
3956 -- /BIND_FILE=file_name
3958 -- Specifies file_name as the bind file to process. If this qualifier is
3959 -- not used, the name of the bind file is computed from the full expanded
3960 -- Ada name of a main subprogram.
3962 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3963 "--GCC=@";
3964 -- /COMPILER=path_name
3966 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3967 -- available on the path.
3969 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3970 "-C>";
3971 -- /CONFIGURATION_PRAGMAS=path_name
3973 -- Specifies a file that contains configuration pragmas.
3974 -- The file must be specified with absolute path.
3976 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3977 "!-I-";
3978 -- /CURRENT_DIRECTORY (D)
3979 -- /NOCURRENT_DIRECTORY
3981 -- Look for source files in the default directory.
3983 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3984 "-X" & '"';
3985 -- /EXTERNAL_REFERENCE="name=val"
3987 -- Specifies an external reference to the project manager. Useful only if
3988 -- /PROJECT_FILE is used.
3990 -- Example:
3991 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3993 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3994 "-eL";
3995 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3996 -- /FOLLOW_LINKS_FOR_FILES
3998 -- Follow links when parsing project files
4000 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
4001 "--GNATMAKE=@";
4002 -- /GNATMAKE=path_name
4004 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
4005 -- on the path.
4007 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4008 "DEFAULT " &
4009 "-vP0 " &
4010 "MEDIUM " &
4011 "-vP1 " &
4012 "HIGH " &
4013 "-vP2";
4014 -- /MESSAGES_PROJECT_FILE[=messages-option]
4016 -- Specifies the "verbosity" of the parsing of project files.
4017 -- messages-option may be one of the following:
4019 -- DEFAULT (D) No messages are output if there is no error or warning.
4021 -- MEDIUM A small number of messages are output.
4023 -- HIGH A great number of messages are output, most of them not
4024 -- being useful for the user.
4026 S_Elim_Nodisp : aliased constant S := "/NO_DISPATCH " &
4027 "--no-elim-dispatch";
4028 -- /NONO_DISPATCH (D)
4029 -- /NO_DISPATCH
4031 -- Do not generate pragmas for dispatching operations.
4033 S_Elim_Ignore : aliased constant S := "/IGNORE=@" &
4034 "--ignore=@";
4035 -- /IGNORE=filename
4037 -- Do not generate pragmas for subprograms declared in the sources
4038 -- listed in a specified file
4040 S_Elim_Processes : aliased constant S := "/PROCESSES=#" &
4041 "-j#";
4043 -- /NOPROCESSES (D)
4044 -- /PROCESSES=NNN
4046 -- Use NNN processes to carry out the tree creations (internal
4047 -- representations of the argument sources). On a multiprocessor machine
4048 -- this speeds up processing of big sets of argument sources. If NNN is 0,
4049 -- then the maximum number of parallel tree creations is the number of
4050 -- core processors on the platform.
4052 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
4053 "-P>";
4054 -- /PROJECT_FILE=filename
4056 -- Specifies the main project file to be used. The project files rooted
4057 -- at the main project file will be parsed before the invocation of the
4058 -- gnatelim. The source directories to be searched will be communicated
4059 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
4061 S_Elim_Quiet : aliased constant S := "/QUIET " &
4062 "-q";
4063 -- /NOQUIET (D)
4064 -- /QUIET
4066 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
4067 -- the number of program units left to be processed. This option turns
4068 -- this trace off.
4070 S_Elim_Files : aliased constant S := "/FILES=@" &
4071 "-files=@";
4073 -- /FILES=filename
4075 -- Take as arguments the files that are listed in the specified
4076 -- text file.
4078 S_Elim_Log : aliased constant S := "/LOG " &
4079 "-log";
4080 -- /NOLOG (D)
4081 -- /LOG
4083 -- Duplicate all the output sent to Stderr into a default log file.
4085 S_Elim_Logfile : aliased constant S := "/LOGFILE=@" &
4086 "-log@";
4088 -- /LOGFILE=logfilename
4090 -- Duplicate all the output sent to Stderr into a specified log file.
4092 S_Elim_Main : aliased constant S := "/MAIN=@" &
4093 "-main=@";
4095 -- /MAIN=filename
4097 -- Specify the main subprogram of the partition to analyse.
4099 S_Elim_Out : aliased constant S := "/OUTPUT=@" &
4100 "-o@";
4101 -- /OUTPUT=filename
4103 -- Specify the name of the output file.
4105 S_Elim_Time : aliased constant S := "/TIME " &
4106 "-t";
4107 -- /NOTIME (D)
4108 -- /TIME
4110 -- Print out execution time
4112 S_Elim_Search : aliased constant S := "/SEARCH=*" &
4113 "-I*";
4114 -- /SEARCH=(directory, ...)
4116 -- When looking for source files also look in the specified directories.
4118 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
4119 "--subdirs=>";
4120 -- /SUBDIRS=dir
4122 -- The actual directories (object, exec, library, ...) are subdirectories
4123 -- of the directory specified in the project file. If the subdirectory
4124 -- does not exist, it is created automatically.
4126 S_Elim_Verb : aliased constant S := "/VERBOSE " &
4127 "-v";
4128 -- /NOVERBOSE (D)
4129 -- /VERBOSE
4131 -- Verbose mode: GNAT ELIM version information is output as Ada comments
4132 -- to the standard output stream. Also, in addition to the number of
4133 -- program units left, GNAT ELIM will output the name of the current unit
4134 -- being processed.
4136 S_Elim_Warn : aliased constant S := "/WARNINGS=" &
4137 "NORMAL " &
4138 "-wn " &
4139 "QUIET " &
4140 "-ws";
4142 -- /WARNINGS[=(keyword[,...])]
4144 -- The following keywords are supported:
4146 -- NORMAL (D) Print warning all the messages.
4147 -- QUIET Some warning messages are suppressed
4149 Elim_Switches : aliased constant Switches :=
4150 (S_Elim_Add 'Access,
4151 S_Elim_All 'Access,
4152 S_Elim_Bind 'Access,
4153 S_Elim_Comp 'Access,
4154 S_Elim_Config 'Access,
4155 S_Elim_Current 'Access,
4156 S_Elim_Ext 'Access,
4157 S_Elim_Files 'Access,
4158 S_Elim_Follow 'Access,
4159 S_Elim_GNATMAKE 'Access,
4160 S_Elim_Log 'Access,
4161 S_Elim_Logfile 'Access,
4162 S_Elim_Main 'Access,
4163 S_Elim_Mess 'Access,
4164 S_Elim_Nodisp 'Access,
4165 S_Elim_Out 'Access,
4166 S_Elim_Processes'Access,
4167 S_Elim_Project 'Access,
4168 S_Elim_Quiet 'Access,
4169 S_Elim_Search 'Access,
4170 S_Elim_Subdirs 'Access,
4171 S_Elim_Time 'Access,
4172 S_Elim_Verb 'Access,
4173 S_Elim_Warn 'Access);
4175 ----------------------------
4176 -- Switches for GNAT FIND --
4177 ----------------------------
4179 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4180 "-aP*";
4181 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4183 -- Add directories to the project search path.
4185 S_Find_All : aliased constant S := "/ALL_FILES " &
4186 "-a";
4187 -- /NOALL_FILES (D)
4188 -- /ALL_FILES
4190 -- If this switch is present, FIND and XREF will parse the read-only
4191 -- files found in the library search path. Otherwise, these files will
4192 -- be ignored. This option can be used to protect Gnat sources or your
4193 -- own libraries from being parsed, thus making FIND and XREF much
4194 -- faster, and their output much smaller.
4196 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
4197 "-d";
4198 -- /NODERIVED_TYPE_INFORMATION (D)
4199 -- /DERIVED_TYPE_INFORMATION
4201 -- Output the parent type reference for each matching derived types.
4203 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
4204 "-e";
4205 -- /NOEXPRESSIONS (D)
4206 -- /EXPRESSIONS
4208 -- By default, FIND accepts the simple regular expression set for pattern.
4209 -- If this switch is set, then the pattern will be considered as a full
4210 -- Unix-style regular expression.
4212 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4213 "-X" & '"';
4214 -- /EXTERNAL_REFERENCE="name=val"
4216 -- Specifies an external reference to the project manager. Useful only if
4217 -- /PROJECT_FILE is used.
4219 -- Example:
4220 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4222 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4223 "-eL";
4224 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4225 -- /FOLLOW_LINKS_FOR_FILES
4227 -- Follow links when parsing project files
4229 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
4230 "-f";
4231 -- /NOFULL_PATHNAME (D)
4232 -- /FULL_PATHNAME
4234 -- If this switch is set, the output file names will be preceded by their
4235 -- directory (if the file was found in the search path). If this switch
4236 -- is not set, the directory will not be printed.
4238 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
4239 "-g";
4240 -- /NOIGNORE_LOCALS (D)
4241 -- /IGNORE_LOCALS
4243 -- If this switch is set, information is output only for library-level
4244 -- entities, ignoring local entities. The use of this switch may
4245 -- accelerate FIND and XREF.
4247 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4248 "DEFAULT " &
4249 "-vP0 " &
4250 "MEDIUM " &
4251 "-vP1 " &
4252 "HIGH " &
4253 "-vP2";
4254 -- /MESSAGES_PROJECT_FILE[=messages-option]
4256 -- Specifies the "verbosity" of the parsing of project files.
4257 -- messages-option may be one of the following:
4259 -- DEFAULT (D) No messages are output if there is no error or warning.
4261 -- MEDIUM A small number of messages are output.
4263 -- HIGH A great number of messages are output, most of them not
4264 -- being useful for the user.
4266 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4267 "-nostdinc";
4268 -- /NOSTD_INCLUDES
4270 -- Do not look for sources in the system default directory.
4272 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4273 "-nostdlib";
4274 -- /NOSTD_LIBRARIES
4276 -- Do not look for library files in the system default directory.
4278 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4279 "-aO*";
4280 -- /OBJECT_SEARCH=(directory,...)
4282 -- When searching for library and object files, look in the specified
4283 -- directories. The order in which library files are searched is the same
4284 -- as for MAKE.
4286 S_Find_Print : aliased constant S := "/PRINT_LINES " &
4287 "-s";
4288 -- /NOPRINT_LINES (D)
4289 -- /PRINT_LINES
4291 -- Output the content of the Ada source file lines were the entity was
4292 -- found.
4294 S_Find_Project : aliased constant S := "/PROJECT=@" &
4295 "-p@";
4296 -- /PROJECT=file
4298 -- Specify a project file to use. By default, FIND and XREF will try to
4299 -- locate a project file in the current directory.
4301 -- If a project file is either specified or found by the tools, then the
4302 -- content of the source directory and object directory lines are added
4303 -- as if they had been specified respectively by /SOURCE_SEARCH and
4304 -- /OBJECT_SEARCH.
4306 -- This qualifier is not compatible with /PROJECT_FILE
4308 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
4309 "-P>";
4310 -- /PROJECT_FILE=filename
4312 -- Specifies the main project file to be used. The project files rooted
4313 -- at the main project file will be parsed before looking for sources.
4314 -- The source and object directories to be searched will be communicated
4315 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
4316 -- ADA_PRJ_OBJECTS_FILE.
4318 S_Find_Ref : aliased constant S := "/REFERENCES " &
4319 "-r";
4320 -- /NOREFERENCES (D)
4321 -- /REFERENCES
4323 -- By default, FIND will output only the information about the
4324 -- declaration, body or type completion of the entities. If this switch
4325 -- is set, the FIND will locate every reference to the entities in the
4326 -- files specified on the command line (or in every file in the search
4327 -- path if no file is given on the command line).
4329 S_Find_Search : aliased constant S := "/SEARCH=*" &
4330 "-I*";
4331 -- /SEARCH=(directory,...)
4333 -- Equivalent to:
4334 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
4336 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4337 "-aI*";
4338 -- /SOURCE_SEARCH=(directory,...)
4340 -- When looking for source files also look in the specified directories.
4341 -- The order in which source file search is undertaken is the same as for
4342 -- MAKE.
4344 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
4345 "--subdirs=>";
4346 -- /SUBDIRS=dir
4348 -- The actual directories (object, exec, library, ...) are subdirectories
4349 -- of the directory specified in the project file. If the subdirectory
4350 -- does not exist, it is created automatically.
4352 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
4353 "-t";
4354 -- /NOTYPE_HIERARCHY (D)
4355 -- /TYPE_HIERARCHY
4357 -- Output the type hierarchy for the specified type. It acts like the
4358 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
4359 -- to parent type. When this qualifier is specified it is not possible to
4360 -- specify more than one file.
4362 Find_Switches : aliased constant Switches :=
4363 (S_Find_Add 'Access,
4364 S_Find_All 'Access,
4365 S_Find_Deriv 'Access,
4366 S_Find_Expr 'Access,
4367 S_Find_Ext 'Access,
4368 S_Find_Follow 'Access,
4369 S_Find_Full 'Access,
4370 S_Find_Ignore 'Access,
4371 S_Find_Mess 'Access,
4372 S_Find_Nostinc 'Access,
4373 S_Find_Nostlib 'Access,
4374 S_Find_Object 'Access,
4375 S_Find_Print 'Access,
4376 S_Find_Project 'Access,
4377 S_Find_Prj 'Access,
4378 S_Find_Ref 'Access,
4379 S_Find_Search 'Access,
4380 S_Find_Source 'Access,
4381 S_Find_Subdirs 'Access,
4382 S_Find_Types 'Access);
4384 ------------------------------
4385 -- Switches for GNAT KRUNCH --
4386 ------------------------------
4388 S_Krunch_Count : aliased constant S := "/COUNT=#" &
4389 "`#";
4390 -- /COUNT=39 (D)
4391 -- /COUNT=nnn
4393 -- Limit file names to nnn characters (where nnn is a decimal
4394 -- integer). The maximum file name length is 39, but if you want to
4395 -- generate a set of files that would be usable if ported to a system
4396 -- with some different maximum file length, then a different value can
4397 -- be specified.
4399 Krunch_Switches : aliased constant Switches :=
4400 (1 .. 1 => S_Krunch_Count 'Access);
4402 ----------------------------
4403 -- Switches for GNAT LINK --
4404 ----------------------------
4406 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4407 "-aP*";
4408 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4410 -- Add directories to the project search path.
4412 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
4413 "ADA " &
4414 "-A " &
4415 "C " &
4416 "-C";
4417 -- /BIND_FILE=[bind-file-option]
4419 -- Specifies the language of the binder generated file.
4421 -- ADA (D) Binder file is Ada.
4423 -- C Binder file is 'C'.
4425 S_Link_Debug : aliased constant S := "/DEBUG=" &
4426 "ALL " &
4427 "-g3 " &
4428 "NONE " &
4429 "-g0 " &
4430 "TRACEBACK " &
4431 "-g1 " &
4432 "NOTRACEBACK " &
4433 "-g0";
4434 -- /NODEBUG (D)
4435 -- /DEBUG[=debug-option]
4437 -- Specifies the amount of debugging information included. 'debug-option'
4438 -- is one of the following:
4440 -- ALL (D) Include full debugging information.
4442 -- NONE Provide no debugging information. Same as /NODEBUG.
4444 -- TRACEBACK Provide sufficient debug information for a traceback.
4446 -- NOTRACEBACK Same as NONE.
4448 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
4449 "-g0";
4450 -- NODOC (see /DEBUG)
4452 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
4453 "-o@";
4454 -- /EXECUTABLE=exec-name
4456 -- 'exec-name' specifies an alternative name for the generated executable
4457 -- program. If this qualifier switch is omitted, the executable is called
4458 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
4459 -- executable called TRY.EXE.
4461 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4462 "-X" & '"';
4463 -- /EXTERNAL_REFERENCE="name=val"
4465 -- Specifies an external reference to the project manager. Useful only if
4466 -- /PROJECT_FILE is used.
4468 -- Example:
4469 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4471 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4472 "-eL";
4473 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4474 -- /FOLLOW_LINKS_FOR_FILES
4476 -- Follow links when parsing project files
4478 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
4479 "--for-linker=" & '"';
4480 -- /FOR_LINKER=<string>
4482 -- Transmit the option <string> to the underlying linker.
4484 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
4485 "-f";
4486 -- /NOFORCE_OBJECT_FILE_LIST (D)
4487 -- /FORCE_OBJECT_FILE_LIST
4489 -- Forces the generation of a file that contains commands for the linker.
4490 -- This is useful in some cases to deal with special situations where the
4491 -- command line length is exceeded.
4493 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
4494 "--for-linker=IDENT=" &
4495 '"';
4496 -- /IDENTIFICATION="<string>"
4498 -- "<string>" specifies the string to be stored in the image file ident-
4499 -- ification field in the image header. It overrides any pragma Ident
4500 -- specified string.
4502 S_Link_NoInhib : aliased constant S := "/NOINHIBIT-EXEC " &
4503 "--for-linker=--noinhibit-exec";
4504 -- /NOINHIBIT-EXEC (D)
4506 -- Preserve executable if there are warnings. This is the default.
4508 S_Link_Inhib : aliased constant S := "/INHIBIT-EXEC " &
4509 "--for-linker=--inhibit-exec";
4510 -- /INHIBIT-EXEC
4512 -- Remove executable if there are warnings.
4514 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
4515 "-L*";
4516 -- /LIBDIR=(directory, ...)
4518 -- Look for libraries in the specified directories.
4520 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4521 "-l|";
4522 -- /LIBRARY=xyz
4524 -- Link with library named "xyz".
4526 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4527 "DEFAULT " &
4528 "-vP0 " &
4529 "MEDIUM " &
4530 "-vP1 " &
4531 "HIGH " &
4532 "-vP2";
4533 -- /MESSAGES_PROJECT_FILE[=messages-option]
4535 -- Specifies the "verbosity" of the parsing of project files.
4536 -- messages-option may be one of the following:
4538 -- DEFAULT (D) No messages are output if there is no error or warning.
4540 -- MEDIUM A small number of messages are output.
4542 -- HIGH A great number of messages are output, most of them not
4543 -- being useful for the user.
4545 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4546 "-n";
4547 -- /NOCOMPILE
4549 -- Do not compile the file generated by the binder.
4550 -- This may be used when a link is rerun with different options,
4551 -- but there is no need to recompile the binder generated file.
4553 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4554 "-nostartfiles";
4555 -- /NOSTART_FILES
4557 -- Link in default image initialization and startup functions.
4559 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4560 "-P>";
4561 -- /PROJECT_FILE=filename
4563 -- Specifies the main project file to be used. The project files rooted
4564 -- at the main project file will be parsed before the invocation of the
4565 -- linker.
4566 -- The source and object directories to be searched will be communicated
4567 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4568 -- ADA_PRJ_OBJECTS_FILE.
4570 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4571 "POSIX " &
4572 "!-mvms-return-codes " &
4573 "VMS " &
4574 "-mvms-return-codes";
4575 -- /RETURN_CODES=POSIX (D)
4576 -- /RETURN_CODES=VMS
4578 -- Specifies the style of codes returned by
4579 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4580 -- and match the Bind qualifier with the same name.
4582 -- POSIX (D) Return Posix compatible exit codes.
4584 -- VMS Return VMS compatible exit codes. The value returned
4585 -- is identically equal to the Set_Exit_Status parameter.
4587 S_Link_Static : aliased constant S := "/STATIC " &
4588 "--for-linker=-static";
4589 -- /NOSTATIC (D)
4590 -- /STATIC
4592 -- Indicate to the linker that the link is static.
4594 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4595 "--subdirs=>";
4596 -- /SUBDIRS=dir
4598 -- The actual directories (object, exec, library, ...) are subdirectories
4599 -- of the directory specified in the project file. If the subdirectory
4600 -- does not exist, it is created automatically.
4602 S_Link_Verb : aliased constant S := "/VERBOSE " &
4603 "-v";
4604 -- /NOVERBOSE (D)
4605 -- /VERBOSE
4607 -- Causes additional information to be output, including a full list of
4608 -- the included object files. This switch option is most useful when you
4609 -- want to see what set of object files are being used in the link step.
4611 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4612 "--for-linker=";
4613 -- /<other>
4615 -- Any other switch that will be transmitted to the underlying linker.
4617 Link_Switches : aliased constant Switches :=
4618 (S_Link_Add 'Access,
4619 S_Link_Bind 'Access,
4620 S_Link_Debug 'Access,
4621 S_Link_Nodebug 'Access,
4622 S_Link_Execut 'Access,
4623 S_Link_Ext 'Access,
4624 S_Link_Follow 'Access,
4625 S_Link_Forlink 'Access,
4626 S_Link_Force 'Access,
4627 S_Link_Ident 'Access,
4628 S_Link_NoInhib 'Access,
4629 S_Link_Inhib 'Access,
4630 S_Link_Libdir 'Access,
4631 S_Link_Library 'Access,
4632 S_Link_Mess 'Access,
4633 S_Link_Nocomp 'Access,
4634 S_Link_Nofiles 'Access,
4635 S_Link_Project 'Access,
4636 S_Link_Return 'Access,
4637 S_Link_Static 'Access,
4638 S_Link_Subdirs 'Access,
4639 S_Link_Verb 'Access,
4640 S_Link_ZZZZZ 'Access);
4642 ----------------------------
4643 -- Switches for GNAT LIST --
4644 ----------------------------
4646 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4647 "-aP*";
4648 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4650 -- Add directories to the project search path.
4652 S_List_All : aliased constant S := "/ALL_UNITS " &
4653 "-a";
4654 -- /NOALL_UNITS (D)
4655 -- /ALL_UNITS
4657 -- Consider all units, including those of the predefined Ada library.
4658 -- Especially useful with /DEPENDENCIES.
4660 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4661 "-U";
4662 -- /NOALL_PROJECTS (D)
4663 -- /ALL_PROJECTS
4665 -- When used with a project file and no file specified, indicate
4666 -- that gnatls should be called for all sources of all projects in
4667 -- the project tree.
4669 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4670 "!-I-";
4671 -- /CURRENT_DIRECTORY (D)
4672 -- /NOCURRENT_DIRECTORY
4674 -- Look for source, library or object files in the default directory.
4676 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4677 "-d";
4678 -- /NODEPENDENCIES (D)
4679 -- /DEPENDENCIES
4681 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4682 "-X" & '"';
4683 -- /EXTERNAL_REFERENCE="name=val"
4685 -- Specifies an external reference to the project manager. Useful only if
4686 -- /PROJECT_FILE is used.
4688 -- Example:
4689 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4691 S_List_Files : aliased constant S := "/FILES=@" &
4692 "-files=@";
4693 -- /FILES=filename
4695 -- Take as arguments the files that are listed in the specified
4696 -- text file.
4698 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4699 "-eL";
4700 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4701 -- /FOLLOW_LINKS_FOR_FILES
4703 -- Follow links when parsing project files
4705 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4706 "DEFAULT " &
4707 "-vP0 " &
4708 "MEDIUM " &
4709 "-vP1 " &
4710 "HIGH " &
4711 "-vP2";
4712 -- /MESSAGES_PROJECT_FILE[=messages-option]
4714 -- Specifies the "verbosity" of the parsing of project files.
4715 -- messages-option may be one of the following:
4717 -- DEFAULT (D) No messages are output if there is no error or warning.
4719 -- MEDIUM A small number of messages are output.
4721 -- HIGH A great number of messages are output, most of them not
4722 -- being useful for the user.
4724 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4725 "-nostdinc";
4726 -- /NOSTD_INCLUDES
4728 -- Do not look for sources of the run time in the standard directory.
4730 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4731 "-aO*";
4732 -- /OBJECT_SEARCH=(directory,...)
4734 -- When looking for library and object files look also in the specified
4735 -- directories.
4737 S_List_Output : aliased constant S := "/OUTPUT=" &
4738 "SOURCES " &
4739 "-s " &
4740 "DEPEND " &
4741 "-d " &
4742 "OBJECTS " &
4743 "-o " &
4744 "UNITS " &
4745 "-u " &
4746 "OPTIONS " &
4747 "-h " &
4748 "VERBOSE " &
4749 "-v ";
4750 -- /OUTPUT=(option,option,...)
4752 -- SOURCES (D) Only output information about source files.
4754 -- DEPEND List sources from which specified units depend on.
4756 -- OBJECTS Only output information about object files.
4758 -- UNITS Only output information about compilation units.
4760 -- OPTIONS Output the list of options.
4762 -- VERBOSE Output the complete source and object paths.
4763 -- Do not use the default column layout but instead
4764 -- use long format giving as much as information
4765 -- possible on each requested units, including
4766 -- special characteristics.
4768 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4769 "-P>";
4770 -- /PROJECT_FILE=filename
4772 -- Specifies the main project file to be used. The project files rooted
4773 -- at the main project file will be parsed before doing any listing.
4774 -- The source and object directories to be searched will be communicated
4775 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4776 -- ADA_PRJ_OBJECTS_FILE.
4778 S_List_Search : aliased constant S := "/SEARCH=*" &
4779 "-I*";
4780 -- /SEARCH=(directory,...)
4782 -- Search the specified directories for both source and object files.
4784 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4785 "-aI*";
4786 -- /SOURCE_SEARCH=(directory,...)
4788 -- When looking for source files also look in the specified directories.
4790 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4791 "--subdirs=>";
4792 -- /SUBDIRS=dir
4794 -- The actual directories (object, exec, library, ...) are subdirectories
4795 -- of the directory specified in the project file. If the subdirectory
4796 -- does not exist, it is created automatically.
4798 List_Switches : aliased constant Switches :=
4799 (S_List_Add 'Access,
4800 S_List_All 'Access,
4801 S_List_Allproj 'Access,
4802 S_List_Current 'Access,
4803 S_List_Depend 'Access,
4804 S_List_Ext 'Access,
4805 S_List_Files 'Access,
4806 S_List_Follow 'Access,
4807 S_List_Mess 'Access,
4808 S_List_Nostinc 'Access,
4809 S_List_Object 'Access,
4810 S_List_Output 'Access,
4811 S_List_Project 'Access,
4812 S_List_Search 'Access,
4813 S_List_Source 'Access,
4814 S_List_Subdirs 'Access);
4816 ----------------------------
4817 -- Switches for GNAT MAKE --
4818 ----------------------------
4820 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4821 "COMPILE " &
4822 "-c " &
4823 "BIND " &
4824 "-b " &
4825 "LINK " &
4826 "-l ";
4827 -- /ACTIONS=(keyword[,...])
4829 -- GNAT MAKE default behavior is to check if the sources are up to date,
4830 -- compile those sources that are not up to date, bind the main source,
4831 -- then link the executable.
4833 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4834 -- two of these three steps:
4836 -- o Compile
4837 -- o Bind
4838 -- o Link
4841 -- You may specify one or more of the following keywords to the /ACTIONS
4842 -- qualifier:
4844 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4845 -- to do compilation and binding, but no linking.
4846 -- Can be combined with /ACTIONS=LINK to do binding and
4847 -- linking. When not combined with /ACTIONS=COMPILE,
4848 -- all the units in the closure of the main program must
4849 -- have been previously compiled and must be up to date.
4851 -- COMPILE Compile only. Do not perform binding, except when
4852 -- /ACTIONS=BIND is also specified. Do not perform
4853 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4854 -- are also specified.
4856 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4857 -- binding and linking. Linking will not be performed
4858 -- if combined with /ACTIONS=COMPILE but not with
4859 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4860 -- all the units in the closure of the main program must
4861 -- have been previously compiled and must be up to date,
4862 -- and the main program need to have been bound.
4864 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4865 "-aP*";
4866 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4868 -- Add directories to the project search path.
4870 S_Make_All : aliased constant S := "/ALL_FILES " &
4871 "-a";
4872 -- /NOALL_FILES (D)
4873 -- /ALL_FILES
4875 -- Consider all files in the make process, even the GNAT internal system
4876 -- files (for example, the predefined Ada library files). By default,
4877 -- GNAT MAKE does not check these files (however, if there is an
4878 -- installation problem, it will be caught when GNAT MAKE binds your
4879 -- program). You may have to specify this qualifier if you are working on
4880 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4881 -- specify this switch. All GNAT internal files with will be compiled
4882 -- with /STYLE_CHECK=GNAT.
4884 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4885 "-U";
4886 -- /NOALL_PROJECTS (D)
4887 -- /ALL_PROJECTS
4889 -- Implies /Unique.
4890 -- When used without project files, it is equivalent to /UNIQUE.
4891 -- When used with a project file with no main (neither on the command
4892 -- line nor in the attribute Main) check every source of every project,
4893 -- recompile all sources that are not up to date and rebuild libraries
4894 -- if necessary.
4896 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4897 "-bargs BIND";
4898 -- /BINDER_QUALIFIERS
4900 -- Any qualifiers specified after this qualifier other than
4901 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4902 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4904 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4905 "-B";
4906 -- /BND_LNK_FULL_PROJECT
4908 -- Bind and link all sources of a project, without any consideration
4909 -- to attribute Main, if there is one. This qualifier need to be
4910 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4911 -- be used with a main subprogram on the command line or for
4912 -- a library project file. As the binder is invoked with the option
4913 -- meaning "No Ada main subprogram", the user must ensure that the
4914 -- proper options are specified to the linker. This qualifier is
4915 -- normally used when the main subprogram is in a foreign language
4916 -- such as C.
4918 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4919 "-cargs COMPILE";
4920 -- /COMPILER_QUALIFIERS
4922 -- Any qualifiers specified after this qualifier other than
4923 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4924 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4926 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4927 "-A*";
4928 -- /CONDITIONAL_SOURCE_SEARCH=dir
4930 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4932 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4933 "-k";
4934 -- /NOCONTINUE_ON_ERROR (D)
4935 -- /CONTINUE_ON_ERROR
4937 -- Keep going. Continue as much as possible after a compilation error.
4938 -- To ease the programmer's task in case of compilation errors, the list
4939 -- of sources for which the compile fails is given when GNAT MAKE
4940 -- terminates.
4942 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4943 "!-I-";
4944 -- /CURRENT_DIRECTORY (D)
4945 -- /NOCURRENT_DIRECTORY
4947 -- Look for source, library or object files in the default directory.
4949 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4950 "-M";
4951 -- /NODEPENDENCIES_LIST (D)
4952 -- /DEPENDENCIES_LIST
4954 -- Check if all objects are up to date. If they are, output the object
4955 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4956 -- a Unix-style Makefile. By default, each source file is prefixed with
4957 -- its (relative or absolute) directory name. This name is whatever you
4958 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4959 -- you also specify the /QUIET qualifier, only the source file names,
4960 -- without relative paths, are output. If you just specify the
4961 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4962 -- files are omitted. This is typically what you want. If you also
4963 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4964 -- files are also listed. Note that dependencies of the objects in
4965 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4966 -- reported.
4968 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4969 "-D@";
4970 -- /DIRECTORY_OBJECTS=<file>
4972 -- Put all object files and .ALI files in <file>.
4973 -- This qualifier is not compatible with /PROJECT_FILE.
4975 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4976 "-d";
4977 -- /NOPLAY_PROGRESS (D)
4978 -- /DISPLAY_PROGRESS
4980 -- Display progress for each source, up to date or not, as a single line
4981 -- completed x out of y (zz%)
4982 -- If the file needs to be compiled this is displayed after the
4983 -- invocation of the compiler. These lines are displayed even in quiet
4984 -- output mode (/QUIET).
4986 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4987 "-n";
4988 -- /NODO_OBJECT_CHECK (D)
4989 -- /DO_OBJECT_CHECK
4991 -- Don't compile, bind, or link. Output a single command that will
4992 -- recompile an out of date unit, if any. Repeated use of this option,
4993 -- followed by carrying out the indicated compilation, will eventually
4994 -- result in recompiling all required units.
4996 -- If any ALI is missing during the process, GNAT MAKE halts and
4997 -- displays an error message.
4999 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
5000 "-o@";
5001 -- /EXECUTABLE=exec-name
5003 -- The name of the final executable program will be 'exec_name'. If this
5004 -- qualifier is omitted the default name for the executable will be the
5005 -- name of the input file with an EXE filetype. You may prefix
5006 -- 'exec_name' with a relative or absolute directory path.
5008 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5009 "-X" & '"';
5010 -- /EXTERNAL_REFERENCE="name=val"
5012 -- Specifies an external reference to the project manager. Useful only if
5013 -- /PROJECT_FILE is used.
5015 -- Example:
5016 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5018 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5019 "-eL";
5020 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5021 -- /FOLLOW_LINKS_FOR_FILES
5023 -- Follow links when parsing project files
5025 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
5026 "-f";
5027 -- /NOFORCE_COMPILE (D)
5028 -- /FORCE_COMPILE
5030 -- Force recompilations. Recompile all sources, even though some object
5031 -- files may be up to date, but don't recompile predefined or GNAT
5032 -- internal files unless the /ALL_FILES qualifier is also specified.
5034 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
5035 "-F";
5036 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
5037 -- /FULL_PATH_IN_BRIEF_MESSAGES
5039 -- When using project files, if some errors or warnings are detected
5040 -- during parsing and verbose mode is not in effect (no use of qualifier
5041 -- /VERBOSE), then error lines start with the full path name of the
5042 -- project file, rather than its simple file name.
5044 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
5045 "-vh";
5046 -- /NOHIGH_VERBOSITY (D)
5047 -- /HIGH_VERBOSITY
5049 -- Displays the reason for all recompilations GNAT MAKE decides are
5050 -- necessary, in high verbosity. Equivalent to /VERBOSE.
5052 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
5053 "-i";
5054 -- /NOIN_PLACE (D)
5055 -- /IN_PLACE
5057 -- In normal mode, GNAT MAKE compiles all object files and ALI files
5058 -- into the current directory. If the /IN_PLACE switch is used,
5059 -- then instead object files and ALI files that already exist are over-
5060 -- written in place. This means that once a large project is organized
5061 -- into separate directories in the desired manner, then GNAT MAKE will
5062 -- automatically maintain and update this organization. If no ALI files
5063 -- are found on the Ada object path, the new object and ALI files are
5064 -- created in the directory containing the source being compiled.
5066 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
5067 "-eI#";
5068 -- /SOURCE_INDEX=nnn
5070 -- Specifies the index of the units in the source file
5071 -- By default, source files are mono-unit and there is no index
5072 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
5073 -- on the command line.
5075 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
5076 "-L*";
5077 -- /LIBRARY_SEARCH=(directory[,...])
5079 -- Add the specified directories to the list of directories in which the
5080 -- linker will search for libraries.
5082 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
5083 "-largs LINK";
5084 -- /LINKER_QUALIFIERS
5086 -- Any qualifiers specified after this qualifier other than
5087 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
5088 -- passed to any GNAT LINK commands generated by GNAT LINK.
5090 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
5091 "-vl";
5092 -- /NOLOW_VERBOSITY (D)
5093 -- /LOW_VERBOSITY
5095 -- Displays the reason for all recompilations GNAT MAKE decides are
5096 -- necessary, in low verbosity, that is with less output than
5097 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
5099 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
5100 "-margs MAKE";
5101 -- /MAKE_QUALIFIERS
5103 -- Any qualifiers specified after this qualifier other than
5104 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
5105 -- are for the benefit of GNAT MAKE itself.
5107 S_Make_Mapping : aliased constant S := "/MAPPING " &
5108 "-C";
5109 -- /NOMAPPING (D)
5110 -- /MAPPING
5112 -- Use a mapping file. A mapping file is a way to communicate to the
5113 -- compiler two mappings: from unit names to file names (without any
5114 -- directory information) and from file names to path names (with full
5115 -- directory information). These mappings are used by the compiler to
5116 -- short-circuit the path search. When GNAT MAKE is invoked with this
5117 -- qualifier, it will create a mapping file, initially populated by the
5118 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
5119 -- Each invocation of the compiler will add the newly accessed sources to
5120 -- the mapping file. This will improve the source search during the next
5121 -- invocations of the compiler
5123 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
5124 "-vm";
5125 -- /NOMEDIUM_VERBOSITY (D)
5126 -- /MEDIUM_VERBOSITY
5128 -- Displays the reason for all recompilations GNAT MAKE decides are
5129 -- necessary, in medium verbosity, that is with potentially less output
5130 -- than /HIGH_VERBOSITY or /VERBOSE.
5132 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5133 "DEFAULT " &
5134 "-vP0 " &
5135 "MEDIUM " &
5136 "-vP1 " &
5137 "HIGH " &
5138 "-vP2";
5139 -- /MESSAGES_PROJECT_FILE[=messages-option]
5141 -- Specifies the "verbosity" of the parsing of project files.
5142 -- messages-option may be one of the following:
5144 -- DEFAULT (D) No messages are output if there is no error or warning.
5146 -- MEDIUM A small number of messages are output.
5148 -- HIGH A great number of messages are output, most of them not
5149 -- being useful for the user.
5151 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
5152 "-m";
5153 -- /NOMINIMAL_RECOMPILATION (D)
5154 -- /MINIMAL_RECOMPILATION
5156 -- Specifies that the minimum necessary amount of recompilation
5157 -- be performed. In this mode GNAT MAKE ignores time stamp differences
5158 -- when the only modifications to a source file consist in
5159 -- adding/removing comments, empty lines, spaces or tabs.
5161 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
5162 "-p";
5163 -- /NOCREATE_MISSING_DIRS (D)
5164 -- /CREATE_MISSING_DIRS
5166 -- When an object directory, a library directory or an exec directory
5167 -- in missing, attempt to create the directory.
5169 S_Make_Nolink : aliased constant S := "/NOLINK " &
5170 "-c";
5171 -- /NOLINK
5173 -- Compile only. Do not perform binding and linking. If the root unit is
5174 -- not a main unit, this is the default. Otherwise GNAT MAKE will
5175 -- attempt binding and linking unless all objects are up to date and the
5176 -- executable is more recent than the objects.
5177 -- This is equivalent to /ACTIONS=COMPILE
5179 S_Make_Nomain : aliased constant S := "/NOMAIN " &
5180 "-z";
5181 -- /NOMAIN
5183 -- No main subprogram. Bind and link the program even if the unit name
5184 -- given on the command line is a package name. The resulting executable
5185 -- will execute the elaboration routines of the package and its closure,
5186 -- then the finalization routines.
5188 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
5189 "-x";
5190 -- /NON_PROJECT_UNIT_COMPILATION
5192 -- Normally, when using project files, a unit that is not part of any
5193 -- project file, cannot be compile. These units may be compile, when
5194 -- needed, if this qualifier is specified.
5196 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
5197 "-nostdinc";
5198 -- /NOSTD_INCLUDES
5200 -- Do not look for sources the in the system default directory.
5202 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
5203 "-nostdlib";
5204 -- /NOSTD_LIBRARIES
5206 -- Do not look for library files in the system default directory.
5208 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
5209 "-aO*";
5210 -- /OBJECT_SEARCH=(directory[,...])
5212 -- When looking for library and object files look also in the specified
5213 -- directories.
5215 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
5216 "-j#";
5217 -- /NOPROCESSES (D)
5218 -- /PROCESSES=NNN
5220 -- Use NNN processes to carry out the (re)compilations. If you have a
5221 -- multiprocessor machine, compilations will occur in parallel. In the
5222 -- event of compilation errors, messages from various compilations might
5223 -- get interspersed (but GNAT MAKE will give you the full ordered list of
5224 -- failing compiles at the end). This can at times be annoying. To get a
5225 -- clean list of error messages don't use this qualifier.
5227 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
5228 "-j1";
5229 -- NODOC (see /PROCESS)
5231 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
5232 "-P>";
5233 -- /PROJECT_FILE=filename
5235 -- Specifies the main project file to be used. The project files rooted
5236 -- at the main project file will be parsed before any other processing to
5237 -- set the building environment.
5239 S_Make_Quiet : aliased constant S := "/QUIET " &
5240 "-q";
5241 -- /NOQUIET (D)
5242 -- /QUIET
5244 -- When this qualifiers is specified, the commands carried out by GNAT
5245 -- MAKE are not displayed.
5247 S_Make_Reason : aliased constant S := "/REASONS " &
5248 "-v";
5249 -- /NOREASONS (D)
5250 -- /REASONS
5252 -- Displays the reason for all recompilations GNAT MAKE decides are
5253 -- necessary.
5255 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
5256 "--RTS=|";
5257 -- /RUNTIME_SYSTEM=xxx
5259 -- Build against an alternate runtime system named xxx or RTS-xxx.
5261 S_Make_Search : aliased constant S := "/SEARCH=*" &
5262 "-I*";
5263 -- /SEARCH=(directory[,...])
5265 -- Search the specified directories for both source and object files.
5267 S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " &
5268 "--single-compile-per-obj-dir";
5269 -- /NOSINGLE_COMPILE_PER_OBJ_DIR (D)
5270 -- /SINGLE_COMPILE_PER_OBJ_DIR
5272 -- When project files are used, do not allow simultaneous compilations
5273 -- for the same object directory.
5275 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
5276 "-aL*";
5277 -- /SKIP_MISSING=(directory[,...])
5279 -- Skip missing library sources if ALI in 'directory'.
5281 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
5282 "-aI*";
5283 -- /SOURCE_SEARCH=(directory[,...])
5285 -- When looking for source files also look in the specified directories.
5287 S_Make_Src_Info : aliased constant S := "/SRC_INFO=<" &
5288 "--source-info=>";
5289 -- /SRC_INFO=source-info-file
5291 -- Specify a source info file to be read or written by the Project
5292 -- Manager when project files are used.
5294 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
5295 "-eS";
5296 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
5297 -- /STANDARD_OUTPUT_FOR_COMMANDS
5299 -- Output the commands for the compiler, the binder and the linker
5300 -- on SYS$OUTPUT, instead of SYS$ERROR.
5302 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
5303 "--subdirs=>";
5304 -- /SUBDIRS=dir
5306 -- The actual directories (object, exec, library, ...) are subdirectories
5307 -- of the directory specified in the project file. If the subdirectory
5308 -- does not exist, it is created automatically.
5310 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
5311 "-s";
5312 -- /NOSWITCH_CHECK (D)
5313 -- /SWITCH_CHECK
5315 -- Recompile if compiler switches have changed since last compilation.
5316 -- All compiler switches but -I and -o are taken into account in the
5317 -- following way: orders between different "first letter" switches are
5318 -- ignored, but orders between same switches are taken into account.
5319 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
5320 -- to -O -g.
5322 S_Make_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
5323 "--unchecked-shared-lib-imports";
5324 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
5325 -- /UNCHECKED_SHARED_LIB_IMPORTS
5327 -- Allow shared library projects to import static library projects
5329 S_Make_Unique : aliased constant S := "/UNIQUE " &
5330 "-u";
5331 -- /NOUNIQUE (D)
5332 -- /UNIQUE
5334 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
5335 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
5336 -- directly.
5338 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
5339 "-C=@";
5340 -- /USE_MAPPING_FILE=file_name
5342 -- Use a specific mapping file. The file 'file_name', specified as a path
5343 -- name (absolute or relative) by this qualifier, should already exist,
5344 -- otherwise the qualifier is ineffective. The specified mapping file
5345 -- will be communicated to the compiler. This switch is not compatible
5346 -- with a project file (/PROJECT_FILE=) or with multiple compiling
5347 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
5349 S_Make_Verbose : aliased constant S := "/VERBOSE " &
5350 "-v";
5351 -- /NOVERBOSE (D)
5352 -- /VERBOSE
5354 -- Displays the reason for all recompilations GNAT MAKE decides are
5355 -- necessary.
5357 Make_Switches : aliased constant Switches :=
5358 (S_Make_Add 'Access,
5359 S_Make_Actions 'Access,
5360 S_Make_All 'Access,
5361 S_Make_Allproj 'Access,
5362 S_Make_Bind 'Access,
5363 S_Make_Comp 'Access,
5364 S_Make_Cond 'Access,
5365 S_Make_Cont 'Access,
5366 S_Make_Current 'Access,
5367 S_Make_Dep 'Access,
5368 S_Make_Dirobj 'Access,
5369 S_Make_Disprog 'Access,
5370 S_Make_Doobj 'Access,
5371 S_Make_Execut 'Access,
5372 S_Make_Ext 'Access,
5373 S_Make_Follow 'Access,
5374 S_Make_Force 'Access,
5375 S_Make_Full 'Access,
5376 S_Make_Hi_Verb 'Access,
5377 S_Make_Inplace 'Access,
5378 S_Make_Index 'Access,
5379 S_Make_Library 'Access,
5380 S_Make_Link 'Access,
5381 S_Make_Low_Verb'Access,
5382 S_Make_Make 'Access,
5383 S_Make_Mapping 'Access,
5384 S_Make_Med_Verb'Access,
5385 S_Make_Mess 'Access,
5386 S_Make_Minimal 'Access,
5387 S_Make_Missing 'Access,
5388 S_Make_Nolink 'Access,
5389 S_Make_Nomain 'Access,
5390 S_Make_Nonpro 'Access,
5391 S_Make_Nostinc 'Access,
5392 S_Make_Nostlib 'Access,
5393 S_Make_Object 'Access,
5394 S_Make_Proc 'Access,
5395 S_Make_Nojobs 'Access,
5396 S_Make_Project 'Access,
5397 S_Make_Quiet 'Access,
5398 S_Make_Reason 'Access,
5399 S_Make_RTS 'Access,
5400 S_Make_Search 'Access,
5401 S_Make_Single 'Access,
5402 S_Make_Skip 'Access,
5403 S_Make_Source 'Access,
5404 S_Make_Src_Info'Access,
5405 S_Make_Stand 'Access,
5406 S_Make_Subdirs 'Access,
5407 S_Make_Switch 'Access,
5408 S_Make_USL 'Access,
5409 S_Make_Unique 'Access,
5410 S_Make_Use_Map 'Access,
5411 S_Make_Verbose 'Access);
5413 ------------------------------
5414 -- Switches for GNAT METRIC --
5415 ------------------------------
5417 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5418 "-aP*";
5419 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5421 -- Add directories to the project search path.
5423 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5424 "-U";
5425 -- /NOALL_PROJECTS (D)
5426 -- /ALL_PROJECTS
5427 -- When GNAT METRIC is used with a Project File and no source is
5428 -- specified, the underlying tool gnatmetric is called for all the
5429 -- sources of all the Project Files in the project tree.
5431 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
5432 "-dv";
5433 -- /DEBUG_OUTPUT
5435 -- Generate the debug information
5437 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
5438 "-d=@";
5439 -- /DIRECTORY=pathname
5441 -- Put the files with detailed metric information into the specified
5442 -- directory
5444 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
5445 "ALL " &
5446 "!-ed,!-es,!-enl,!-eps," &
5447 "!-eas,!-ept,!-eat,!-enu," &
5448 "!-ec " &
5449 "DECLARATION_TOTAL " &
5450 "-ed " &
5451 "STATEMENT_TOTAL " &
5452 "-es " &
5453 "LOOP_NESTING_MAX " &
5454 "-enl " &
5455 "INT_SUBPROGRAMS " &
5456 "-eps " &
5457 "SUBPROGRAMS_ALL " &
5458 "-eas " &
5459 "INT_TYPES " &
5460 "-ept " &
5461 "TYPES_ALL " &
5462 "-eat " &
5463 "PROGRAM_NESTING_MAX " &
5464 "-enu " &
5465 "CONSTRUCT_NESTING_MAX " &
5466 "-ec";
5467 -- NODOC (see /SYNTAX_METRICS)
5469 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
5470 "ALL " &
5471 "--syntax-all " &
5472 "NONE " &
5473 "--no-syntax-all " &
5474 "DECLARATIONS " &
5475 "--declarations " &
5476 "NODECLARATIONS " &
5477 "--no-declarations " &
5478 "STATEMENTS " &
5479 "--statements " &
5480 "NOSTATEMENTS " &
5481 "--no-statements " &
5482 "PUBLIC_SUBPROGRAMS " &
5483 "--public-subprograms " &
5484 "NOPUBLIC_SUBPROGRAMS " &
5485 "--no-public-subprograms " &
5486 "ALL_SUBPROGRAMS " &
5487 "--all-subprograms " &
5488 "NOALL_SUBPROGRAMS " &
5489 "--no-all-subprograms " &
5490 "PUBLIC_TYPES " &
5491 "--public-types " &
5492 "NOPUBLIC_TYPES " &
5493 "--no-public-types " &
5494 "ALL_TYPES " &
5495 "--all-types " &
5496 "NOALL_TYPES " &
5497 "--no-all-types " &
5498 "UNIT_NESTING " &
5499 "--unit-nesting " &
5500 "NOUNIT_NESTING " &
5501 "--no-unit-nesting " &
5502 "CONSTRUCT_NESTING " &
5503 "--construct-nesting " &
5504 "NOCONSTRUCT_NESTING " &
5505 "--no-construct-nesting";
5506 -- /SYNTAX_METRICS(option, option ...)
5508 -- Specifies the syntax element metrics to be computed (if at least one
5509 -- positive syntax element metric, line metric, complexity or coupling
5510 -- metric is specified then only explicitly specified syntax element
5511 -- metrics are computed and reported)
5513 -- option may be one of the following:
5515 -- ALL (D) All the syntax element metrics are computed
5516 -- NONE None of syntax element metrics is computed
5517 -- DECLARATIONS Compute the total number of declarations
5518 -- NODECLARATIONS Do not compute the total number of declarations
5519 -- STATEMENTS Compute the total number of statements
5520 -- NOSTATEMENTS Do not compute the total number of statements
5521 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
5522 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
5523 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
5524 -- NOALL_SUBPROGRAMS Do not compute the number of all the
5525 -- subprograms
5526 -- PUBLIC_TYPES Compute the number of public types
5527 -- NOPUBLIC_TYPES Do not compute the number of public types
5528 -- ALL_TYPES Compute the number of all the types
5529 -- NOALL_TYPES Do not compute the number of all the types
5530 -- UNIT_NESTING Compute the maximal program unit nesting
5531 -- level
5532 -- NOUNIT_NESTING Do not compute the maximal program unit
5533 -- nesting level
5534 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
5535 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
5536 -- level
5538 -- All combinations of syntax element metrics options are allowed.
5540 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5541 "-X" & '"';
5542 -- /EXTERNAL_REFERENCE="name=val"
5544 -- Specifies an external reference to the project manager. Useful only if
5545 -- /PROJECT_FILE is used.
5547 -- Example:
5548 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5550 S_Metric_Files : aliased constant S := "/FILES=@" &
5551 "-files=@";
5552 -- /FILES=filename
5554 -- Take as arguments the files that are listed in the specified
5555 -- text file.
5557 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5558 "DEFAULT " &
5559 "!-x,!-nt,!-sfn " &
5560 "XML " &
5561 "-x " &
5562 "XSD " &
5563 "-xs " &
5564 "NO_TEXT " &
5565 "-nt " &
5566 "SHORT_SOURCE_FILE_NAME " &
5567 "-sfn";
5568 -- /FORMAT_OUTPUT=(option, option ...)
5570 -- Specifies the details of the tool output
5572 -- option may be one of the following:
5574 -- DEFAULT (D) Generate the text output only, use full
5575 -- argument source names in global information
5576 -- XML Generate the output in XML format
5577 -- XSD Generate the output in XML format, and
5578 -- generate an XML schema file that describes
5579 -- the structure of XML metrics report
5580 -- NO_TEXT Do not generate the text output (implies XML)
5581 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5583 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5584 "-og@";
5585 -- /GLOBAL_OUTPUT=filename
5587 -- Put the textual global metric information into the specified file
5589 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5590 "ALL " &
5591 "!-la,!-lcode,!-lcomm," &
5592 "!-leol,!-lb " &
5593 "LINES_ALL " &
5594 "-la " &
5595 "CODE_LINES " &
5596 "-lcode " &
5597 "COMENT_LINES " &
5598 "-lcomm " &
5599 "MIXED_CODE_COMMENTS " &
5600 "-leol " &
5601 "COMMENT_PERCENTAGE " &
5602 "-lratio " &
5603 "BLANK_LINES " &
5604 "-lb " &
5605 "AVERAGE_LINES_IN_BODIES " &
5606 "-lav ";
5607 -- NODOC (see /LINE_COUNT_METRICS)
5609 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5610 "ALL " &
5611 "--lines-all " &
5612 "NONE " &
5613 "--no-lines-all " &
5614 "ALL_LINES " &
5615 "--lines " &
5616 "NOALL_LINES " &
5617 "--no-lines " &
5618 "CODE_LINES " &
5619 "--lines-code " &
5620 "NOCODE_LINES " &
5621 "--no-lines-code " &
5622 "COMMENT_LINES " &
5623 "--lines-comment " &
5624 "NOCOMMENT_LINES " &
5625 "--no-lines-comment " &
5626 "CODE_COMMENT_LINES " &
5627 "--lines-eol-comment " &
5628 "NOCODE_COMMENT_LINES " &
5629 "--no-lines-eol-comment " &
5630 "COMMENT_PERCENTAGE " &
5631 "--lines-ratio " &
5632 "NOCOMMENT_PERCENTAGE " &
5633 "--no-lines-ratio " &
5634 "BLANK_LINES " &
5635 "--lines-blank " &
5636 "NOBLANK_LINES " &
5637 "--no-lines-blank " &
5638 "AVERAGE_BODY_LINES " &
5639 "--lines-average " &
5640 "NOAVERAGE_BODY_LINES " &
5641 "--no-lines-average";
5642 -- /LINE_COUNT_METRICS=(option, option ...)
5644 -- Specifies the line metrics to be computed (if at least one positive
5645 -- syntax element metric, line metric, complexity or coupling metric is
5646 -- specified then only explicitly specified line metrics are computed
5647 -- and reported)
5649 -- option may be one of the following:
5651 -- ALL (D) All the line metrics are computed
5652 -- NONE None of line metrics is computed
5653 -- ALL_LINES All lines are computed
5654 -- NOALL_LINES All lines are not computed
5655 -- CODE_LINES Lines with Ada code are computed
5656 -- NOCODE_LINES Lines with Ada code are not computed
5657 -- COMMENT_LINES Comment lines are computed
5658 -- NOCOMMENT_LINES Comment lines are not computed
5659 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5660 -- are computed
5661 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5662 -- are not computed
5663 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5664 -- containing comments and program code is
5665 -- computed
5666 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5667 -- containing comments and program code is not
5668 -- computed
5669 -- BLANK_LINES Blank lines are computed
5670 -- NOBLANK_LINES Blank lines are not computed
5671 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5672 -- task and entry bodies and statement sequences
5673 -- of package bodies is computed
5674 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5675 -- task and entry bodies and statement sequences
5676 -- of package bodies is not computed
5678 -- All combinations of line metrics options are allowed.
5680 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5681 "ALL " &
5682 "--complexity-all " &
5683 "NONE " &
5684 "--no-complexity-all " &
5685 "CYCLOMATIC " &
5686 "--complexity-cyclomatic " &
5687 "NOCYCLOMATIC " &
5688 "--no-complexity-cyclomatic " &
5689 "ESSENTIAL " &
5690 "--complexity-essential " &
5691 "NOESSENTIAL " &
5692 "--no-complexity-essential " &
5693 "LOOP_NESTING " &
5694 "--loop-nesting " &
5695 "NOLOOP_NESTING " &
5696 "--no-loop-nesting " &
5697 "AVERAGE_COMPLEXITY " &
5698 "--complexity-average " &
5699 "NOAVERAGE_COMPLEXITY " &
5700 "--no-complexity-average " &
5701 "EXTRA_EXIT_POINTS " &
5702 "--extra-exit-points " &
5703 "NOEXTRA_EXIT_POINTS " &
5704 "--no-extra-exit-points";
5705 -- /COMPLEXITY_METRICS=(option, option ...)
5707 -- Specifies the complexity metrics to be computed (if at least one
5708 -- positive syntax element metric, line metric, complexity or coupling
5709 -- metric is specified then only explicitly specified complexity metrics
5710 -- are computed and reported)
5712 -- option may be one of the following:
5714 -- ALL (D) All the complexity metrics are computed
5715 -- NONE None of complexity metrics is computed
5716 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5717 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5718 -- ESSENTIAL Compute the Essential Complexity
5719 -- NOESSENTIAL Do not compute the Essential Complexity
5720 -- LOOP_NESTING Compute the maximal loop nesting
5721 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5722 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5723 -- bodies
5724 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5725 -- executable bodies
5726 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5727 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5729 -- All combinations of line metrics options are allowed.
5731 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5732 "ALL " &
5733 "--coupling-all " &
5734 "TAGGED_OUT " &
5735 "--tagged-coupling-out " &
5736 "TAGGED_IN " &
5737 "--tagged-coupling-in " &
5738 "HIERARCHY_OUT " &
5739 "--hierarchy-coupling-out " &
5740 "HIERARCHY_IN " &
5741 "--hierarchy-coupling-in " &
5742 "UNIT_OUT " &
5743 "--unit-coupling-out " &
5744 "UNIT_IN " &
5745 "--unit-coupling-in " &
5746 "CONTROL_OUT " &
5747 "--control-coupling-out " &
5748 "CONTROL_IN " &
5749 "--control-coupling-in";
5751 -- /COUPLING_METRICS=(option, option ...)
5753 -- Specifies the coupling metrics to be computed.
5755 -- option may be one of the following:
5757 -- ALL All the coupling metrics are computed
5758 -- NOALL (D) None of coupling metrics is computed
5759 -- TAGGED_OUT Compute tagged (class) far-out coupling
5760 -- TAGGED_IN Compute tagged (class) far-in coupling
5761 -- HIERARCHY_OUT Compute hieraqrchy (category) far-out coupling
5762 -- HIERARCHY_IN Compute hieraqrchy (category) far-in coupling
5763 -- UNIT_OUT Compute unit far-out coupling
5764 -- UNIT_IN Compute unit far-in coupling
5765 -- CONTROL_OUT Compute control far-out coupling
5766 -- CONTROL_IN Compute control far-in coupling
5769 -- All combinations of coupling metrics options are allowed.
5771 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5772 "-eL";
5773 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5774 -- /FOLLOW_LINKS_FOR_FILES
5776 -- Follow links when parsing project files
5778 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5779 "-nolocal";
5780 -- /LOCAL_DETAILS (D)
5781 -- /NO_LOCAL_DETAILS
5783 -- Do not compute the detailed metrics for local program units.
5785 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5786 "-ne";
5787 -- /EXITS_AS_GOTOS (D)
5788 -- /NO_EXITS_AS_GOTOS
5790 -- Do not count EXIT statements as GOTOs when computing the Essential
5791 -- Complexity.
5793 S_Metric_No_Static_Loop : aliased constant S := "/NO_STATIC_LOOP " &
5794 "--no-static-loop";
5795 -- /STATIC_LOOP (D)
5796 -- /NO_STATIC_LOOP
5798 -- Do not count static FOR loop statements when computing the Cyclomatic
5799 -- Complexity.
5801 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5802 "DEFAULT " &
5803 "-vP0 " &
5804 "MEDIUM " &
5805 "-vP1 " &
5806 "HIGH " &
5807 "-vP2";
5808 -- /MESSAGES_PROJECT_FILE[=messages-option]
5810 -- Specifies the "verbosity" of the parsing of project files.
5811 -- messages-option may be one of the following:
5813 -- DEFAULT (D) No messages are output if there is no error or warning.
5815 -- MEDIUM A small number of messages are output.
5817 -- HIGH A great number of messages are output, most of them not
5818 -- being useful for the user.
5820 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5821 "-P>";
5822 -- /PROJECT_FILE=filename
5824 -- Specifies the main project file to be used. The project files rooted
5825 -- at the main project file will be parsed before the invocation of the
5826 -- binder.
5828 S_Metric_Processes : aliased constant S := "/PROCESSES=#" &
5829 "-j#";
5831 -- /NOPROCESSES (D)
5832 -- /PROCESSES=NNN
5834 -- Use NNN processes to carry out the tree creations (internal
5835 -- representations of the argument sources). On a multiprocessor machine
5836 -- this speeds up processing of big sets of argument sources. If NNN is 0,
5837 -- then the maximum number of parallel tree creations is the number of
5838 -- core processors on the platform.
5840 S_Metric_Quiet : aliased constant S := "/QUIET " &
5841 "-q";
5842 -- /NOQUIET (D)
5843 -- /QUIET
5845 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5846 -- the number of program units left to be processed. This option turns
5847 -- this trace off.
5849 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5850 "--subdirs=>";
5851 -- /SUBDIRS=dir
5853 -- The actual directories (object, exec, library, ...) are subdirectories
5854 -- of the directory specified in the project file. If the subdirectory
5855 -- does not exist, it is created automatically.
5857 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5858 "-o" & '"';
5859 -- /SUFFIX_DETAILS=suffix
5861 -- Use the given suffix as the suffix for the name of the file to place
5862 -- the detailed metrics into.
5864 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5865 "NOTHING " &
5866 "!-nocc,!-noec,!-nonl," &
5867 "!-ne,!-nolocal " &
5868 "CYCLOMATIC_COMPLEXITY " &
5869 "-nocc " &
5870 "ESSENTIAL_COMPLEXITY " &
5871 "-noec " &
5872 "MAXIMAL_LOOP_NESTING " &
5873 "-nonl " &
5874 "EXITS_AS_GOTOS " &
5875 "-ne " &
5876 "LOCAL_DETAILS " &
5877 "-nolocal ";
5878 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5880 S_Metric_Time : aliased constant S := "/TIME " &
5881 "-t";
5882 -- /NOTIME (D)
5883 -- /TIME
5885 -- Print out execution time
5887 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5888 "-v";
5889 -- /NOVERBOSE (D)
5890 -- /VERBOSE
5892 -- Verbose mode.
5894 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5895 "-ox@";
5896 -- /XML_OUTPUT=filename
5898 -- Place the XML output into the specified file
5900 Metric_Switches : aliased constant Switches :=
5901 (S_Metric_Add 'Access,
5902 S_Metric_All_Prjs 'Access,
5903 S_Metric_Complexity 'Access,
5904 S_Metric_Coupling 'Access,
5905 S_Metric_Debug 'Access,
5906 S_Metric_Direct 'Access,
5907 S_Metric_Element 'Access,
5908 S_Metric_Ext 'Access,
5909 S_Metric_Files 'Access,
5910 S_Metric_Follow 'Access,
5911 S_Metric_Format 'Access,
5912 S_Metric_Globout 'Access,
5913 S_Metric_Line 'Access,
5914 S_Metric_Lines 'Access,
5915 S_Metric_Mess 'Access,
5916 S_Metric_No_Exits_As_Gotos'Access,
5917 S_Metric_No_Local 'Access,
5918 S_Metric_No_Static_Loop 'Access,
5919 S_Metric_Project 'Access,
5920 S_Metric_Processes 'Access,
5921 S_Metric_Quiet 'Access,
5922 S_Metric_Suffix 'Access,
5923 S_Metric_Subdirs 'Access,
5924 S_Metric_Syntax 'Access,
5925 S_Metric_Suppress 'Access,
5926 S_Metric_Time 'Access,
5927 S_Metric_Verbose 'Access,
5928 S_Metric_XMLout 'Access);
5930 ----------------------------
5931 -- Switches for GNAT NAME --
5932 ----------------------------
5934 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5935 "-c>";
5936 -- /CONFIG_FILE=path_name
5938 -- Create a configuration pragmas file 'path_name' (instead of the default
5939 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5940 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5941 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5943 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5944 "-d*";
5945 -- /SOURCE_DIRS=(directory, ...)
5947 -- Look for source files in the specified directories. When this qualifier
5948 -- is specified, the current working directory will not be searched for
5949 -- source files, unless it is explicitly specified with a qualifier
5950 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5951 -- specified. If a directory is specified as a relative path, it is
5952 -- relative to the directory of the configuration pragmas file specified
5953 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5954 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5955 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5956 -- to the current working directory. The directories specified with
5957 -- qualifiers /SOURCE_DIRS must exist and be readable.
5959 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5960 "-D>";
5961 -- /DIRS_FILE=file_name
5963 -- Look for source files in all directories listed in text file
5964 -- 'file_name'. 'file_name' must be an existing, readable text file.
5965 -- Each non empty line in the specified file must be a directory.
5966 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5967 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5968 -- text file.
5970 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5971 "-eL";
5972 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5973 -- /FOLLOW_LINKS_FOR_FILES
5975 -- Follow links when parsing project files
5977 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5978 "-f" & '"';
5979 -- /FOREIGN_PATTERN=<string>
5981 -- Specify a foreign pattern.
5982 -- Using this qualifier, it is possible to add sources of languages other
5983 -- than Ada to the list of sources of a project file. It is only useful
5984 -- if a qualifier /PROJECT_FILE is used. For example,
5986 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5988 -- will look for Ada units in all files with the '.ADA' extension, and
5989 -- will add to the list of file for project PRJ.GPR the C files with
5990 -- extension ".C".
5992 S_Name_Help : aliased constant S := "/HELP " &
5993 "-h";
5994 -- /NOHELP (D)
5995 -- /HELP
5997 -- Output usage information to the standard output stream.
5999 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
6000 "-P>";
6001 -- /PROJECT_FILE=file_name
6003 -- Create or update a project file. 'file_name' may include directory
6004 -- information. The specified file must be writable. There may be only
6005 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
6006 -- specified, no qualifier /CONFIG_FILE may be specified.
6008 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
6009 "--subdirs=>";
6010 -- /SUBDIRS=dir
6012 -- The actual directories (object, exec, library, ...) are subdirectories
6013 -- of the directory specified in the project file. If the subdirectory
6014 -- does not exist, it is created automatically.
6016 S_Name_Verbose : aliased constant S := "/VERBOSE " &
6017 "-v";
6018 -- /NOVERBOSE (D)
6019 -- /VERBOSE
6021 -- Verbose mode. Output detailed explanation of behavior to the standard
6022 -- output stream. This includes name of the file written, the name of the
6023 -- directories to search and, for each file in those directories whose
6024 -- name matches at least one of the Naming Patterns, an indication of
6025 -- whether the file contains a unit, and if so the name of the unit.
6027 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
6028 "-x" & '"';
6029 -- /EXCLUDED_PATTERN=<string>
6031 -- Specify an excluded pattern.
6032 -- Using this qualifier, it is possible to exclude some files that would
6033 -- match the Naming patterns. For example,
6035 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
6037 -- will look for Ada units in all files with the '.ADA' extension, except
6038 -- those whose names end with '_NT.ADA'.
6040 Name_Switches : aliased constant Switches :=
6041 (S_Name_Conf 'Access,
6042 S_Name_Dirs 'Access,
6043 S_Name_Dfile 'Access,
6044 S_Name_Follow 'Access,
6045 S_Name_Frng 'Access,
6046 S_Name_Help 'Access,
6047 S_Name_Proj 'Access,
6048 S_Name_Subdirs 'Access,
6049 S_Name_Verbose 'Access,
6050 S_Name_Excl 'Access);
6052 ----------------------------------
6053 -- Switches for GNAT PREPROCESS --
6054 ----------------------------------
6056 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
6057 "-D" & '"';
6058 -- /ASSOCIATE="name=val"
6060 -- Defines a new symbol, associated with value. If no value is given
6061 -- on the command line, then symbol is considered to be True.
6062 -- This qualifier can be used in place of a definition file.
6064 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
6065 "-b";
6066 -- /NOBLANK_LINES (D)
6067 -- /BLANK_LINES
6069 -- Causes both preprocessor lines and the lines deleted by preprocessing
6070 -- to be replaced by blank lines in the output source file, thus
6071 -- preserving line numbers in the output file.
6073 S_Prep_Com : aliased constant S := "/COMMENTS " &
6074 "-c";
6075 -- /NOCOMMENTS (D)
6076 -- /COMMENTS
6078 -- /COMMENTS causes both preprocessor lines and the lines deleted
6079 -- by preprocessing to be retained in the output source as comments marked
6080 -- with the special string "--! ". This option will result in line numbers
6081 -- being preserved in the output file.
6083 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
6084 -- preprocessing to be replaced by blank lines in the output source file,
6085 -- thus preserving line numbers in the output file.
6087 S_Prep_Ref : aliased constant S := "/REFERENCE " &
6088 "-r";
6089 -- /NOREFERENCE (D)
6090 -- /REFERENCE
6092 -- Causes a "Source_Reference" pragma to be generated that references the
6093 -- original input file, so that error messages will use the file name of
6094 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
6095 -- specified.
6097 S_Prep_Remove : aliased constant S := "/REMOVE " &
6098 "!-b,!-c";
6099 -- /REMOVE (D)
6100 -- /NOREMOVE
6102 -- Preprocessor lines and deleted lines are completely removed from the
6103 -- output.
6105 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
6106 "-C";
6107 -- /NOREPLACE_IN_COMMENTS (D)
6108 -- /REPLACE_IN_COMMENTS
6110 -- Causes preprocessor to scan comments and perform replacements on
6111 -- any $symbol occurrences within the comment text.
6113 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
6114 "-s";
6115 -- /NOSYMBOLS (D)
6116 -- /SYMBOLS
6118 -- Causes a sorted list of symbol names and values to be listed on
6119 -- SYS$OUTPUT.
6121 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
6122 "-u";
6123 -- /NOUNDEFINED (D)
6124 -- /UNDEFINED
6126 Prep_Switches : aliased constant Switches :=
6127 (S_Prep_Assoc 'Access,
6128 S_Prep_Blank 'Access,
6129 S_Prep_Com 'Access,
6130 S_Prep_Ref 'Access,
6131 S_Prep_Remove 'Access,
6132 S_Prep_Replace 'Access,
6133 S_Prep_Symbols 'Access,
6134 S_Prep_Undef 'Access);
6136 ------------------------------
6137 -- Switches for GNAT PRETTY --
6138 ------------------------------
6140 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6141 "-aP*";
6142 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6144 -- Add directories to the project search path.
6146 S_Pretty_Align : aliased constant S := "/ALIGN=" &
6147 "DEFAULT " &
6148 "-A12345 " &
6149 "OFF " &
6150 "-A0 " &
6151 "COLONS " &
6152 "-A1 " &
6153 "DECLARATIONS " &
6154 "-A2 " &
6155 "STATEMENTS " &
6156 "-A3 " &
6157 "ARROWS " &
6158 "-A4 " &
6159 "COMPONENT_CLAUSES " &
6160 "-A5";
6161 -- /ALIGN[=align-option, align-option, ...]
6163 -- Set alignments. By default, all alignments (colons in declarations,
6164 -- initialisations in declarations, assignments and arrow delimiters) are
6165 -- ON.
6167 -- align-option may be one of the following:
6169 -- OFF (D) Set all alignments to OFF
6170 -- COLONS Set alignments of colons in declarations to ON
6171 -- DECLARATIONS Set alignments of initialisations in declarations
6172 -- to ON
6173 -- STATEMENTS Set alignments of assignments statements to ON
6174 -- ARROWS Set alignments of arrow delimiters to ON.
6175 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
6176 -- clauses ON
6178 -- Specifying one of the ON options without first specifying the OFF
6179 -- option has no effect, because by default all alignments are set to ON.
6181 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6182 "-U";
6183 -- /NOALL_PROJECTS (D)
6184 -- /ALL_PROJECTS
6185 -- When GNAT PRETTY is used with a Project File and no source is
6186 -- specified, the underlying tool gnatpp is called for all the
6187 -- sources of all the Project Files in the project tree.
6189 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
6190 "MIXED_CASE " &
6191 "-aM " &
6192 "LOWER_CASE " &
6193 "-aL " &
6194 "UPPER_CASE " &
6195 "-aU";
6196 -- /ATTRIBUTE_CASING[=casing-option]
6198 -- Set the case of the attributes. By default the attributes are in mixed
6199 -- case.
6200 -- casing-option may be one of the following:
6202 -- MIXED_CASE (D)
6203 -- LOWER_CASE
6204 -- UPPER_CASE
6206 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
6207 "UNTOUCHED " &
6208 "-c0 " &
6209 "DEFAULT " &
6210 "-c1 " &
6211 "STANDARD_INDENT " &
6212 "-c2 " &
6213 "GNAT_BEGINNING " &
6214 "-c3 " &
6215 "REFORMAT " &
6216 "-c4 " &
6217 "KEEP_SPECIAL " &
6218 "-c5";
6219 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
6221 -- Set the comment layout. By default, comments use the GNAT style
6222 -- comment line indentation.
6224 -- layout-option may be one of the following:
6226 -- UNTOUCHED All the comments remain unchanged
6227 -- DEFAULT (D) GNAT style comment line indentation
6228 -- STANDARD_INDENT Standard comment line indentation
6229 -- GNAT_BEGINNING GNAT style comment beginning
6230 -- REFORMAT Reformat comment blocks
6231 -- KEEP_SPECIAL Keep unchanged special form comments
6233 -- All combinations of layout options are allowed, except for DEFAULT
6234 -- and STANDARD_INDENT which are mutually exclusive, and also if
6235 -- UNTOUCHED is specified, this must be the only option.
6237 -- The difference between "GNAT style comment line indentation" and
6238 -- "standard comment line indentation" is the following: for standard
6239 -- comment indentation, any comment line is indented as if it were
6240 -- a declaration or statement at the same place.
6241 -- For GNAT style comment indentation, comment lines which are
6242 -- immediately followed by if or case statement alternative, record
6243 -- variant or 'begin' keyword are indented as the keyword that follows
6244 -- them.:
6246 -- Standard indentation:
6248 -- if A then
6249 -- null;
6250 -- -- some comment
6251 -- else
6252 -- null;
6253 -- end if;
6255 -- GNAT style indentation:
6257 -- if A then
6258 -- null;
6259 -- -- some comment
6260 -- else
6261 -- null;
6262 -- end if;
6264 -- Option "GNAT style comment beginning" means that for each comment
6265 -- which is not considered as non-formattable separator (that is, the
6266 -- comment line contains only dashes, or a comment line ends with two
6267 -- dashes), there will be at least two spaces between starting "--" and
6268 -- the first non-blank character of the comment.
6270 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6271 "-gnatec>";
6272 -- /CONFIGURATION_PRAGMAS_FILE=file
6274 -- Specify a configuration pragmas file that need to be passed to the
6275 -- compiler.
6277 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
6278 "GNAT " &
6279 "-l1 " &
6280 "COMPACT " &
6281 "-l2 " &
6282 "UNCOMPACT " &
6283 "-l3";
6284 -- /CONSTRUCT_LAYOUT[=construct-option]
6286 -- Set construct layout. Default is GNAT style layout.
6287 -- construct-option may be one of the following:
6289 -- GNAT (D)
6290 -- COMPACT
6291 -- UNCOMPACT
6293 -- The difference between GNAT style and Compact layout on one hand
6294 -- and Uncompact layout on the other hand can be illustrated by the
6295 -- following examples:
6297 -- GNAT style and Uncompact layout
6298 -- Compact layout
6300 -- type q is record type q is
6301 -- a : integer; record
6302 -- b : integer; a : integer;
6303 -- end record; b : integer;
6304 -- end record;
6307 -- Block : declare Block :
6308 -- A : Integer := 3; declare
6309 -- begin A : Integer := 3;
6310 -- Proc (A, A); begin
6311 -- end Block; Proc (A, A);
6312 -- end Block;
6314 -- Clear : for J in 1 .. 10 loop Clear :
6315 -- A (J) := 0; for J in 1 .. 10 loop
6316 -- end loop Clear; A (J) := 0;
6317 -- end loop Clear;
6320 -- A further difference between GNAT style layout and compact layout is
6321 -- that in GNAT style layout compound statements, return statements and
6322 -- bodies are always separated by empty lines.
6324 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
6325 "-cl#";
6326 -- /CONTINUATION_INDENT=nnn
6328 -- Indentation level for continuation lines, nnn from 1 .. 9.
6329 -- The default value is one less than the (normal) indentation level,
6330 -- unless the indentation is set to 1: in that case the default value for
6331 -- continuation line indentation is also 1.
6333 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
6334 "--no-separate-is";
6335 -- /NO_SEPARATE_IS
6337 -- Do not place the IS keyword on a separate line in a subprogram body in
6338 -- case if the specification occupies more than one line.
6340 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
6341 "--separate-label";
6342 -- /SEPARATE_LABEL
6344 -- Place statement label(s) and the statement itself on separate lines.
6346 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
6347 "--separate-loop-then";
6348 -- /SEPARATE_LOOP_THEN
6350 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
6351 -- and while-loops on a separate line.
6353 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
6354 "--no-separate-loop-then";
6355 -- /NO_SEPARATE_LOOP_THEN
6357 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
6358 -- for- and while-loops on a separate line.
6360 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
6361 "--use-on-new-line";
6362 -- /USE_ON_NEW_LINE
6364 -- Start any USE clause that is a part of a context clause from a
6365 -- separate line.
6367 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
6368 "--separate-stmt-name";
6369 -- /STMT_NAME_ON_NEW_LINE
6371 -- For named block and loop statements use a separate line for the
6372 -- statement name, but do not use an extra indentation level for the
6373 -- statement itself.
6375 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
6376 "DOS " &
6377 "--eol=dos " &
6378 "UNIX " &
6379 "--eol=unix " &
6380 "CRLF " &
6381 "--eol=crlf " &
6382 "LF " &
6383 "--eol=lf";
6384 -- /END_OF_LINE=[option]
6386 -- Specifies the form of the line terminators in the produced source.
6387 -- By default, the form of the line terminator depends on the platforms.
6388 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
6389 -- It is a Carriage Return (CR) followed by a Line Feed.
6391 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
6392 -- also equivalent.
6394 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6395 "-X" & '"';
6396 -- /EXTERNAL_REFERENCE="name=val"
6398 -- Specifies an external reference to the project manager. Useful only if
6399 -- /PROJECT_FILE is used.
6401 -- Example:
6402 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6404 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6405 "!-I-";
6406 -- /CURRENT_DIRECTORY (D)
6408 -- Look for source files in the current working directory.
6410 -- /NOCURRENT_DIRECTORY
6411 -- Do not look for source files in the current working directory.
6413 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
6414 "-D*";
6415 -- /DICTIONARY=(file_name, ...)
6417 -- Use each specified file as a dictionary file that defines the casing
6418 -- for a set of specified names, thereby overriding the effect on these
6419 -- names by any explicit or implicit /NAME_CASING qualifier.
6421 -- GNAT PRETTY implicitly uses a default dictionary file to define the
6422 -- casing for the Ada predefined names and the names declared in the GNAT
6423 -- libraries.
6425 -- The structure of a dictionary file, and details on the conventions
6426 -- used in the default dictionary file, are defined in the GNAT User's
6427 -- Guide.
6429 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
6430 "BRACKETS " &
6431 "-Wb " &
6432 "HEX " &
6433 "-Wh " &
6434 "UPPER " &
6435 "-Wu " &
6436 "SHIFT_JIS " &
6437 "-Ws " &
6438 "EUC " &
6439 "-We " &
6440 "UTF8 " &
6441 "-W8";
6442 -- /RESULT_ENCODING[=encoding-type]
6444 -- Specify the wide character encoding method used when writing the
6445 -- reformatted code in the result file. 'encoding-type' is one of the
6446 -- following:
6448 -- BRACKETS (D) Brackets encoding.
6450 -- HEX Hex ESC encoding.
6452 -- UPPER Upper half encoding.
6454 -- SHIFT_JIS Shift-JIS encoding.
6456 -- EUC EUC Encoding.
6458 -- UTF8 UTF-8 encoding.
6460 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
6461 -- about the different character encoding methods.
6463 S_Pretty_Enums : aliased constant S := "/ENUM_CASING=" &
6464 "AS_DECLARED " &
6465 "-neD " &
6466 "LOWER_CASE " &
6467 "-neL " &
6468 "UPPER_CASE " &
6469 "-neU " &
6470 "MIXED_CASE " &
6471 "-neM";
6472 -- /ENUM_CASING=name-option
6474 -- Specify the casing of enumeration literals. If not specified, the
6475 -- casing of enumeration literals is defined by the NAME_CASING option.
6476 -- 'name-option' may be one of:
6478 -- AS_DECLARED Literals casing for defining occurrences are
6479 -- as they appear in the source file.
6481 -- LOWER_CASE Literals are in lower case.
6483 -- UPPER_CASE Literals are in upper case.
6485 -- MIXED_CASE Literals are in mixed case.
6487 S_Pretty_Files : aliased constant S := "/FILES=@" &
6488 "-files=@";
6489 -- /FILES=filename
6491 -- Take as arguments the files that are listed in the specified
6492 -- text file.
6494 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6495 "-eL";
6496 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6497 -- /FOLLOW_LINKS_FOR_FILES
6499 -- Follow links when parsing project files
6501 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
6502 "-of@";
6503 -- /FORCED_OUTPUT=file
6505 -- Write the output into the specified file, overriding any possibly
6506 -- existing file.
6508 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
6509 "-ff";
6510 -- /FORM_FEED_AFTER_PRAGMA_PAGE
6512 -- When there is a pragma Page in the source, insert a Form Feed
6513 -- character immediately after the semicolon that follows the pragma
6514 -- Page.
6516 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
6517 "-i#";
6518 -- /INDENTATION_LEVEL=nnn
6520 -- Specify the number of spaces to add for each indentation level.
6521 -- nnn must be between 1 and 9. The default is 3.
6523 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
6524 "LOWER_CASE " &
6525 "-kL " &
6526 "UPPER_CASE " &
6527 "-kU";
6528 -- /KEYWORD_CASING[=keyword-option]
6530 -- Specify the case of Ada keywords. The default is keywords in lower
6531 -- case.
6533 -- keyword-option may be one of the following:
6535 -- LOWER_CASE (D)
6536 -- UPPER_CASE
6538 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
6539 "-M#";
6540 -- /LINE_LENGTH_MAX=nnn
6542 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
6544 S_Pretty_Maxact : aliased constant S := "/MAX_ACT=#" &
6545 "--call_threshold=#";
6546 -- /MAX_ACT=nnn
6548 -- If the number of parameter associations is greater than nnn and if at
6549 -- least one association uses named notation, start each association from
6550 -- a new line
6552 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
6553 "-T#";
6554 -- /MAX_INDENT=nnn
6556 -- Do not use an additional indentation level for case alternatives
6557 -- and variants if their number is nnn or more. The default is 10.
6558 -- If nnn is zero, an additional indentation level is used for any
6559 -- number of case alternatives and variants.
6561 S_Pretty_Maxpar : aliased constant S := "/MAX_PAR=#" &
6562 "--par_threshold=#";
6563 -- /MAX_PAR=nnn
6565 -- If the number of parameter specifications is greater than nnn (or equal
6566 -- to nnn in case of a function), start each specification from a new line.
6567 -- The default value is 3.
6569 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6570 "DEFAULT " &
6571 "-vP0 " &
6572 "MEDIUM " &
6573 "-vP1 " &
6574 "HIGH " &
6575 "-vP2";
6576 -- /MESSAGES_PROJECT_FILE[=messages-option]
6578 -- Specifies the "verbosity" of the parsing of project files.
6579 -- messages-option may be one of the following:
6581 -- DEFAULT (D) No messages are output if there is no error or warning.
6583 -- MEDIUM A small number of messages are output.
6585 -- HIGH A great number of messages are output, most of them not
6586 -- being useful for the user.
6588 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
6589 "AS_DECLARED " &
6590 "-nD " &
6591 "LOWER_CASE " &
6592 "-nL " &
6593 "UPPER_CASE " &
6594 "-nU " &
6595 "MIXED_CASE " &
6596 "-nM";
6597 -- /NAME_CASING[=name-option]
6599 -- Specify the casing of names.
6600 -- 'name-option' may be one of:
6602 -- AS_DECLARED (D) Name casing for defining occurrences are as they
6603 -- appear in the source file.
6605 -- LOWER_CASE Names are in lower case.
6607 -- UPPER_CASE Names are in upper case.
6609 -- MIXED_CASE Names are in mixed case.
6611 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6612 "-rnb";
6613 -- /REPLACE_NO_BACKUP
6615 -- Replace the argument source with the pretty-printed source without
6616 -- creating any backup copy of the argument source.
6618 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6619 "-e";
6620 -- /NO_MISSED_LABELS
6622 -- Do not insert missing end/exit labels. The end label is the name of
6623 -- a construct that may optionally appear at the end of the construct.
6624 -- This includes the names of packages and subprograms.
6625 -- Similarly, the exit label is the name of a loop that may appear as the
6626 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6627 -- inserts these end/exit labels when they are absent in the original
6628 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6629 -- so that the formatted source reflects the original.
6631 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6632 "-notabs";
6633 -- /NOTABS
6635 -- Replace all tabulations in comments with spaces.
6637 S_Pretty_Numbers : aliased constant S := "/NUMBER_CASING=" &
6638 "AS_DECLARED " &
6639 "-ntD " &
6640 "LOWER_CASE " &
6641 "-ntL " &
6642 "UPPER_CASE " &
6643 "-ntU " &
6644 "MIXED_CASE " &
6645 "-ntM";
6646 -- /NUMBER_CASING=name-option
6648 -- Specify the casing of named number names. If not specified, the casing
6649 -- of these names is defined by the NAME_CASING option. 'name-option'
6650 -- is one of:
6652 -- AS_DECLARED Names are cased as they appear in the declaration
6653 -- in the source file.
6655 -- LOWER_CASE Names are in lower case.
6657 -- UPPER_CASE Names are in upper case.
6659 -- MIXED_CASE Names are in mixed case.
6661 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6662 "-o@";
6663 -- /OUTPUT=file
6665 -- Write the output to the specified file. If the file already exists,
6666 -- an error is reported.
6668 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6669 "-rf";
6670 -- /NOOVERRIDING_REPLACE (D)
6671 -- /OVERRIDING_REPLACE
6673 -- Replace the argument source with the pretty-printed source and copy the
6674 -- argument source into filename.NPP, overriding any existing file if
6675 -- needed.
6677 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6678 "MIXED_CASE " &
6679 "-pM " &
6680 "LOWER_CASE " &
6681 "-pL " &
6682 "UPPER_CASE " &
6683 "-pU";
6684 -- /PRAGMA_CASING[=pragma-option]
6686 -- Set the case of pragma identifiers. The default is Mixed case.
6687 -- pragma-option may be one of the following:
6689 -- MIXED_CASE (D)
6690 -- LOWER_CASE
6691 -- UPPER_CASE
6693 S_Pretty_Processes : aliased constant S := "/PROCESSES=#" &
6694 "-j#";
6696 -- /NOPROCESSES (D)
6697 -- /PROCESSES=NNN
6699 -- Use NNN processes to carry out the tree creations (internal
6700 -- representations of the argument sources). On a multiprocessor machine
6701 -- this speeds up processing of big sets of argument sources. If NNN is 0,
6702 -- then the maximum number of parallel tree creations is the number of
6703 -- core processors on the platform.
6705 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6706 "-P>";
6707 -- /PROJECT_FILE=filename
6709 -- Specifies the main project file to be used. The project files rooted
6710 -- at the main project file will be parsed before any other processing to
6711 -- set the building environment.
6713 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6714 "-r";
6715 -- /NOREPLACE (D)
6716 -- /REPLACE
6718 -- Replace the argument source with the pretty-printed source and copy the
6719 -- argument source into filename.NPP. If filename.NPP already exists,
6720 -- report an error and exit.
6722 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6723 "--RTS=|";
6724 -- /RUNTIME_SYSTEM=xxx
6726 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6728 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6729 "-I*";
6730 -- /SEARCH=(directory[,...])
6732 -- When looking for source files also look in directories specified.
6734 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6735 "-D-";
6736 -- /SPECIFIC_CASING
6738 -- Do not use the default dictionary file; instead, use the casing
6739 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6740 -- file specified by a qualifier /DICTIONARY.
6742 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6743 "-pipe";
6744 -- /NOSTANDARD_OUTPUT (D)
6745 -- /STANDARD_OUTPUT
6747 -- Redirect the output to the standard output.
6749 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6750 "--subdirs=>";
6751 -- /SUBDIRS=dir
6753 -- The actual directories (object, exec, library, ...) are subdirectories
6754 -- of the directory specified in the project file. If the subdirectory
6755 -- does not exist, it is created automatically.
6757 S_Pretty_Time : aliased constant S := "/TIME " &
6758 "-t";
6759 -- /NOTIME (D)
6760 -- /TIME
6762 -- Print out execution time
6764 S_Pretty_Types : aliased constant S := "/TYPE_CASING=" &
6765 "AS_DECLARED " &
6766 "-ntD " &
6767 "LOWER_CASE " &
6768 "-ntL " &
6769 "UPPER_CASE " &
6770 "-ntU " &
6771 "MIXED_CASE " &
6772 "-ntM";
6773 -- /TYPE_CASING=name-option
6775 -- Specify the casing of subtype names (including first subtypes from
6776 -- type declarations). If not specified, the casing of these names is
6777 -- defined by the NAME_CASING option. 'name-option' is one of:
6779 -- AS_DECLARED Names are cased as they appear in the declaration
6780 -- in the source file.
6782 -- LOWER_CASE Names are in lower case.
6784 -- UPPER_CASE Names are in upper case.
6786 -- MIXED_CASE Names are in mixed case.
6788 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6789 "-v";
6790 -- /NOVERBOSE (D)
6791 -- /VERBOSE
6793 -- Verbose mode; GNAT PRETTY generates version information and then a
6794 -- trace of the actions it takes to produce or obtain the ASIS tree.
6796 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6797 "-w";
6798 -- /NOWARNINGS (D)
6799 -- /WARNINGS
6801 -- Issue a warning to the standard error stream if it is not possible
6802 -- to provide the required layout in the result source.
6803 -- By default such warnings are not activated.
6805 Pretty_Switches : aliased constant Switches :=
6806 (S_Pretty_Add 'Access,
6807 S_Pretty_Align 'Access,
6808 S_Pretty_All_Prjs 'Access,
6809 S_Pretty_Attrib 'Access,
6810 S_Pretty_Comments 'Access,
6811 S_Pretty_Compact_Is 'Access,
6812 S_Pretty_Config 'Access,
6813 S_Pretty_Constr 'Access,
6814 S_Pretty_Comind 'Access,
6815 S_Pretty_Current 'Access,
6816 S_Pretty_Dico 'Access,
6817 S_Pretty_Eol 'Access,
6818 S_Pretty_Ext 'Access,
6819 S_Pretty_Encoding 'Access,
6820 S_Pretty_Enums 'Access,
6821 S_Pretty_Files 'Access,
6822 S_Pretty_Follow 'Access,
6823 S_Pretty_Forced 'Access,
6824 S_Pretty_Formfeed 'Access,
6825 S_Pretty_Indent 'Access,
6826 S_Pretty_Keyword 'Access,
6827 S_Pretty_Maxlen 'Access,
6828 S_Pretty_Maxact 'Access,
6829 S_Pretty_Maxind 'Access,
6830 S_Pretty_Maxpar 'Access,
6831 S_Pretty_Mess 'Access,
6832 S_Pretty_Names 'Access,
6833 S_Pretty_No_Labels 'Access,
6834 S_Pretty_Notabs 'Access,
6835 S_Pretty_Numbers 'Access,
6836 S_Pretty_Output 'Access,
6837 S_Pretty_Override 'Access,
6838 S_Pretty_Pragma 'Access,
6839 S_Pretty_Replace 'Access,
6840 S_Pretty_Replace_No_Backup'Access,
6841 S_Pretty_Processes 'Access,
6842 S_Pretty_Project 'Access,
6843 S_Pretty_RTS 'Access,
6844 S_Pretty_Search 'Access,
6845 S_Pretty_Sep_Label 'Access,
6846 S_Pretty_Sep_Loop_Then 'Access,
6847 S_Pretty_N_Sep_Loop_Then 'Access,
6848 S_Pretty_Subdirs 'Access,
6849 S_Pretty_Use_On_New_Line 'Access,
6850 S_Pretty_Stnm_On_Nw_Line 'Access,
6851 S_Pretty_Specific 'Access,
6852 S_Pretty_Standard 'Access,
6853 S_Pretty_Time 'Access,
6854 S_Pretty_Types 'Access,
6855 S_Pretty_Verbose 'Access,
6856 S_Pretty_Warnings 'Access);
6858 ------------------------------
6859 -- Switches for GNAT SHARED --
6860 ------------------------------
6862 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6863 "ALL " &
6864 "-g3 " &
6865 "NONE " &
6866 "-g0 " &
6867 "TRACEBACK " &
6868 "-g1 " &
6869 "NOTRACEBACK " &
6870 "-g0";
6871 -- /DEBUG[=debug-option]
6872 -- /NODEBUG
6874 -- Specifies the amount of debugging information included. 'debug-option'
6875 -- is one of the following:
6877 -- ALL (D) Include full debugging information.
6879 -- NONE Provide no debugging information. Same as /NODEBUG.
6881 -- TRACEBACK Provide sufficient debug information for a traceback.
6883 -- NOTRACEBACK Same as NONE.
6885 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6886 "-o@";
6887 -- /IMAGE=image-name
6889 -- 'image-name' specifies the name for the generated shared library.
6891 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6892 "--for-linker=IDENT=" &
6893 '"';
6894 -- /IDENTIFICATION="<string>"
6896 -- "<string>" specifies the string to be stored in the image file ident-
6897 -- ification field in the image header. It overrides any pragma Ident
6898 -- specified string.
6900 S_Shared_NoInhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6901 "--for-linker=--noinhibit-exec";
6902 -- /NOINHIBIT-EXEC (D)
6904 -- Preserve image if there are warnings. This is the default.
6906 S_Shared_Inhib : aliased constant S := "/INHIBIT-IMAGE " &
6907 "--for-linker=--inhibit-exec";
6908 -- /INHIBIT-EXEC
6910 -- Remove image if there are warnings.
6912 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6913 "-nostartfiles";
6914 -- /NOSTART_FILES
6916 -- Link in default image initialization and startup functions.
6918 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6919 "-v";
6920 -- /NOVERBOSE (D)
6921 -- /VERBOSE
6923 -- Causes additional information to be output, including a full list of
6924 -- the included object files. This switch option is most useful when you
6925 -- want to see what set of object files are being used in the link step.
6927 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6928 "--for-linker=";
6929 -- /<other>
6931 -- Any other switch transmitted to the underlying linker.
6933 Shared_Switches : aliased constant Switches :=
6934 (S_Shared_Debug 'Access,
6935 S_Shared_Image 'Access,
6936 S_Shared_Ident 'Access,
6937 S_Shared_NoInhib 'Access,
6938 S_Shared_Inhib 'Access,
6939 S_Shared_Nofiles 'Access,
6940 S_Shared_Verb 'Access,
6941 S_Shared_ZZZZZ 'Access);
6943 -----------------------------
6944 -- Switches for GNAT STACK --
6945 -----------------------------
6947 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6948 "-aP*";
6949 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6951 -- Add directories to the project search path.
6953 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6954 "-a";
6955 -- /NOALL_SUBPROGRAMS (D)
6956 -- /ALL_SUBPROGRAMS
6958 -- Consider all subprograms as entry points.
6960 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6961 "-ca";
6962 -- /NOALL_CYCLES (D)
6963 -- /ALL_CYCLES
6965 -- Extract all possible cycles in the call graph.
6967 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6968 "-U";
6969 -- /NOALL_PROJECTS (D)
6970 -- /ALL_PROJECTS
6972 -- When GNAT STACK is used with a Project File and no source is
6973 -- specified, the underlying tool gnatstack is called for all the
6974 -- units of all the Project Files in the project tree.
6976 S_Stack_Debug : aliased constant S := "/DEBUG " &
6977 "-g";
6978 -- /NODEBUG (D)
6979 -- /DEBUG
6981 -- Generate internal debug information.
6983 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6984 "-aO*";
6985 -- /DIRECTORY=(direc[,...])
6987 -- When looking for .ci files look also in directories specified.
6989 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6990 "-e*";
6992 -- /ENTRY=(entry_point[,...])
6994 -- Name of symbol to be used as entry point for the analysis.
6996 S_Stack_Files : aliased constant S := "/FILES=@" &
6997 "-files=@";
6998 -- /FILES=filename
7000 -- Take as arguments the files that are listed in the specified
7001 -- text file.
7003 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7004 "-eL";
7005 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7006 -- /FOLLOW_LINKS_FOR_FILES
7008 -- Follow links when parsing project files
7010 S_Stack_Help : aliased constant S := "/HELP " &
7011 "-h";
7012 -- /NOHELP (D)
7013 -- /HELP
7015 -- Output a message explaining the usage of gnatstack.
7017 S_Stack_List : aliased constant S := "/LIST=#" &
7018 "-l#";
7019 -- /LIST=nnn
7021 -- Print the nnn subprograms requiring the biggest local stack usage. By
7022 -- default none will be displayed.
7024 S_Stack_Order : aliased constant S := "/ORDER=" &
7025 "STACK " &
7026 "-os " &
7027 "ALPHABETICAL " &
7028 "-oa";
7029 -- /ORDER[=order-option]
7031 -- Specifies the order for displaying the different call graphs.
7032 -- order-option may be one of the following:
7034 -- STACK (D) Select stack usage order
7036 -- ALPHABETICAL Select alphabetical order
7038 S_Stack_Path : aliased constant S := "/PATH " &
7039 "-p";
7040 -- /NOPATH (D)
7041 -- /PATH
7043 -- Print all the subprograms that make up the worst-case path for every
7044 -- entry point.
7046 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
7047 "-P>";
7048 -- /PROJECT_FILE=filename
7050 -- Specifies the main project file to be used. The project files rooted
7051 -- at the main project file will be parsed before the invocation of
7052 -- gnatstack.
7054 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
7055 "-f@";
7056 -- /OUTPUT=filename
7058 -- Name of the file containing the generated graph (VCG format).
7060 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
7061 "-r|";
7063 -- /EXPRESSION=regular-expression
7065 -- Any symbol matching the regular expression will be considered as a
7066 -- potential entry point for the analysis.
7068 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
7069 "--subdirs=>";
7070 -- /SUBDIRS=dir
7072 -- The actual directories (object, exec, library, ...) are subdirectories
7073 -- of the directory specified in the project file. If the subdirectory
7074 -- does not exist, it is created automatically.
7076 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
7077 "-d#";
7078 -- /UNBOUNDED=nnn
7080 -- Default stack size to be used for unbounded (dynamic) frames.
7082 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
7083 "-u#";
7084 -- /UNKNOWN=nnn
7086 -- Default stack size to be used for unknown (external) calls.
7088 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
7089 "-v";
7090 -- /NOVERBOSE (D)
7091 -- /VERBOSE
7093 -- Specifies the amount of information to be displayed about the
7094 -- different subprograms. In verbose mode the full location of the
7095 -- subprogram will be part of the output, as well as detailed information
7096 -- about inaccurate data.
7098 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
7099 "ALL " &
7100 "-Wa " &
7101 "CYCLES " &
7102 "-Wc " &
7103 "UNBOUNDED " &
7104 "-Wu " &
7105 "EXTERNAL " &
7106 "-We " &
7107 "INDIRECT " &
7108 "-Wi";
7109 -- /WARNINGS[=(keyword[,...])]
7111 -- The following keywords are supported:
7113 -- ALL Turn on all optional warnings
7115 -- CYCLES Turn on warnings for cycles
7117 -- UNBOUNDED Turn on warnings for unbounded frames
7119 -- EXTERNAL Turn on warnings for external calls
7121 -- INDIRECT Turn on warnings for indirect calls
7123 Stack_Switches : aliased constant Switches :=
7124 (S_Stack_Add 'Access,
7125 S_Stack_All 'Access,
7126 S_Stack_All_Cycles 'Access,
7127 S_Stack_All_Prjs 'Access,
7128 S_Stack_Debug 'Access,
7129 S_Stack_Directory 'Access,
7130 S_Stack_Entries 'Access,
7131 S_Stack_Files 'Access,
7132 S_Stack_Follow 'Access,
7133 S_Stack_Help 'Access,
7134 S_Stack_List 'Access,
7135 S_Stack_Order 'Access,
7136 S_Stack_Path 'Access,
7137 S_Stack_Project 'Access,
7138 S_Stack_Output 'Access,
7139 S_Stack_Regexp 'Access,
7140 S_Stack_Subdirs 'Access,
7141 S_Stack_Unbounded 'Access,
7142 S_Stack_Unknown 'Access,
7143 S_Stack_Verbose 'Access,
7144 S_Stack_Warnings 'Access);
7146 ----------------------------
7147 -- Switches for GNAT STUB --
7148 ----------------------------
7150 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7151 "-aP*";
7152 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7154 -- Add directories to the project search path.
7156 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
7157 "-gnatec>";
7158 -- /CONFIGURATION_PRAGMAS_FILE=filespec
7160 -- Specifies a configuration pragmas file that must be taken into account
7161 -- when compiling.
7163 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
7164 "!-I-";
7165 -- /CURRENT_DIRECTORY (D)
7166 -- /NOCURRENT_DIRECTORY
7168 -- Look for source, library or object files in the default directory.
7170 S_Stub_Encoding : aliased constant S := "/RESULT_ENCODING=" &
7171 "BRACKETS " &
7172 "-Wb " &
7173 "HEX " &
7174 "-Wh " &
7175 "UPPER " &
7176 "-Wu " &
7177 "SHIFT_JIS " &
7178 "-Ws " &
7179 "EUC " &
7180 "-We " &
7181 "UTF8 " &
7182 "-W8";
7183 -- /RESULT_ENCODING[=encoding-type]
7185 -- Specify the wide character encoding method used when writing the
7186 -- generated body in the result file. 'encoding-type' is one of the
7187 -- following:
7189 -- BRACKETS (D) Brackets encoding.
7191 -- HEX Hex ESC encoding.
7193 -- UPPER Upper half encoding.
7195 -- SHIFT_JIS Shift-JIS encoding.
7197 -- EUC EUC Encoding.
7199 -- UTF8 UTF-8 encoding.
7201 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
7202 -- about the different character encoding methods.
7204 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7205 "-X" & '"';
7206 -- /EXTERNAL_REFERENCE="name=val"
7208 -- Specifies an external reference to the project manager. Useful only if
7209 -- /PROJECT_FILE is used.
7211 -- Example:
7212 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7214 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7215 "-eL";
7216 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7217 -- /FOLLOW_LINKS_FOR_FILES
7219 -- Follow links when parsing project files
7221 S_Stub_Full : aliased constant S := "/FULL " &
7222 "-f";
7223 -- /NOFULL (D)
7224 -- /FULL
7226 -- If the destination directory already contains a file with the name of
7227 -- the body file for the argument file spec, replace it with the generated
7228 -- body stub. If /FULL is not used and there is already a body file, this
7229 -- existing body file is not replaced.
7231 S_Stub_Header : aliased constant S := "/HEADER=" &
7232 "GENERAL " &
7233 "-hg " &
7234 "SPEC " &
7235 "-hs";
7236 -- /HEADER[=header-option]
7238 -- Specifies the form of the comment header above the generated body stub.
7239 -- If no /HEADER qualifier is specified, there is no comment header.
7240 -- header-option is one of the following:
7243 -- GENERAL (D) Put a sample comment header into the body stub.
7245 -- SPEC Put the comment header (i.e., all the comments
7246 -- preceding the compilation unit) from the source of the
7247 -- library unit declaration into the body stub.
7249 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
7250 "--header-file=>";
7252 -- /FROM_HEADER_FILE==filename
7254 -- Use the content of the file as the comment header for a generated body
7255 -- stub.
7257 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
7258 "-i#";
7259 -- /INDENTATION=nnn
7261 -- (nnn is a non-negative integer). Set the indentation level in the
7262 -- generated body stub to nnn. nnn=0 means "no indentation".
7263 -- Default indentation is 3.
7265 S_Stub_Keep : aliased constant S := "/KEEP " &
7266 "-k";
7267 -- /NOKEEP (D)
7268 -- /KEEP
7270 -- Do not delete the tree file (i.e., the snapshot of the compiler
7271 -- internal structures used by gnatstub) after creating the body stub.
7273 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
7274 "-l#";
7275 -- /LINE_LENGTH=nnn
7277 -- (n is a non-negative integer). Set the maximum line length in the body
7278 -- stub to nnn. Default is 78.
7280 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7281 "DEFAULT " &
7282 "-vP0 " &
7283 "MEDIUM " &
7284 "-vP1 " &
7285 "HIGH " &
7286 "-vP2";
7287 -- /MESSAGES_PROJECT_FILE[=messages-option]
7289 -- Specifies the "verbosity" of the parsing of project files.
7290 -- messages-option may be one of the following:
7292 -- DEFAULT (D) No messages are output if there is no error or warning.
7294 -- MEDIUM A small number of messages are output.
7296 -- HIGH A great number of messages are output, most of them not
7297 -- being useful for the user.
7299 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
7300 "--no-exception";
7301 -- /NONO_EXCEPTION (D)
7302 -- /NO_EXCEPTION
7304 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
7306 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
7307 "--no-local-header";
7308 -- /NONO_LOCAL_HEADER (D)
7309 -- /NO_LOCAL_HEADER
7311 -- Do not put local comment header before body stub for local program unit.
7313 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
7314 "-o@";
7315 -- /OUTPUT=filespec
7317 -- Body file name. This should be set if the argument file name does not
7318 -- follow the GNAT file naming conventions. If this switch is omitted,
7319 -- the default name for the body will be obtained from the argument file
7320 -- name according to the GNAT file naming conventions.
7322 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
7323 "-P>";
7324 -- /PROJECT_FILE=filename
7326 -- Specifies the main project file to be used. The project files rooted
7327 -- at the main project file will be parsed before any other processing.
7328 -- The source and object directories to be searched will be communicated
7329 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
7330 -- ADA_PRJ_OBJECTS_FILE.
7332 S_Stub_Quiet : aliased constant S := "/QUIET " &
7333 "-q";
7334 -- /NOQUIET (D)
7335 -- /QUIET
7337 -- Quiet mode: do not generate a confirmation when a body is successfully
7338 -- created, and do not generate a message when a body is not required for
7339 -- an argument unit.
7341 S_Stub_Search : aliased constant S := "/SEARCH=*" &
7342 "-I*";
7343 -- /SEARCH=(directory[,...])
7345 -- When looking for source files also look in directories specified.
7347 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
7348 "--subdirs=>";
7349 -- /SUBDIRS=dir
7351 -- The actual directories (object, exec, library, ...) are subdirectories
7352 -- of the directory specified in the project file. If the subdirectory
7353 -- does not exist, it is created automatically.
7355 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
7356 "OVERWRITE " &
7357 "-t " &
7358 "SAVE " &
7359 "-k " &
7360 "REUSE " &
7361 "-r";
7362 -- /TREE_FILE[=treefile-option]
7364 -- Specify what to do with the tree file.
7365 -- treefile-option is one of the following:
7367 -- OVERWRITE (D) Overwrite the existing tree file. If the current
7368 -- directory already contains the file which, according
7369 -- to the GNAT file naming rules should be considered
7370 -- as a tree file for the argument source file, gnatstub
7371 -- will refuse to create the tree file needed to create
7372 -- a sample body unless this option is chosen.
7374 -- SAVE Do not remove the tree file (i.e., the snapshot
7375 -- of the compiler internal structures used by gnatstub)
7376 -- after creating the body stub.
7378 -- REUSE Reuse the tree file (if it exists) instead of
7379 -- creating it.
7380 -- Instead of creating the tree file for the library
7381 -- unit declaration, gnatstub tries to find it in the
7382 -- current directory and use it for creating a body.
7383 -- If the tree file is not found, no body is created.
7384 -- This option also implies `SAVE', whether or not the
7385 -- latter is set explicitly.
7387 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
7388 "-v";
7389 -- /NOVERBOSE (D)
7390 -- /VERBOSE
7392 -- Verbose mode: generate version information.
7394 Stub_Switches : aliased constant Switches :=
7395 (S_Stub_Add 'Access,
7396 S_Stub_Config 'Access,
7397 S_Stub_Current 'Access,
7398 S_Stub_Encoding 'Access,
7399 S_Stub_Ext 'Access,
7400 S_Stub_Follow 'Access,
7401 S_Stub_Full 'Access,
7402 S_Stub_Header 'Access,
7403 S_Stub_Header_File'Access,
7404 S_Stub_Indent 'Access,
7405 S_Stub_Keep 'Access,
7406 S_Stub_Length 'Access,
7407 S_Stub_Mess 'Access,
7408 S_Stub_Output 'Access,
7409 S_Stub_Project 'Access,
7410 S_Stub_No_Exc 'Access,
7411 S_Stub_No_Head 'Access,
7412 S_Stub_Quiet 'Access,
7413 S_Stub_Search 'Access,
7414 S_Stub_Subdirs 'Access,
7415 S_Stub_Tree 'Access,
7416 S_Stub_Verbose 'Access);
7418 ----------------------------
7419 -- Switches for GNAT SYNC --
7420 ----------------------------
7422 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7423 "-aP*";
7424 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7426 -- Add directories to the project search path.
7428 S_Sync_All : aliased constant S := "/ALL " &
7429 "-a";
7430 -- /NOALL (D)
7431 -- /ALL
7433 -- Also check the components of the GNAT run time and process the needed
7434 -- components of the GNAT RTL when building and analyzing the global
7435 -- structure for checking the global rules.
7437 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
7438 "-U";
7439 -- /NOALL_PROJECTS (D)
7440 -- /ALL_PROJECTS
7442 -- When GNAT SYNC is used with a Project File and no source is
7443 -- specified, the underlying tool gnatsync is called for all the
7444 -- sources of all the Project Files in the project tree.
7446 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7447 "-X" & '"';
7448 -- /EXTERNAL_REFERENCE="name=val"
7450 -- Specifies an external reference to the project manager. Useful only if
7451 -- /PROJECT_FILE is used.
7453 -- Example:
7454 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7456 S_Sync_Files : aliased constant S := "/FILES=@" &
7457 "-files=@";
7458 -- /FILES=filename
7460 -- Take as arguments the files that are listed in the specified
7461 -- text file.
7463 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7464 "-eL";
7465 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7466 -- /FOLLOW_LINKS_FOR_FILES
7468 -- Follow links when parsing project files
7470 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
7471 "-main=@";
7472 -- /MAIN_SUBPROGRAM=filename
7474 -- Specify the name of the file containing the main subprogram
7476 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7477 "DEFAULT " &
7478 "-vP0 " &
7479 "MEDIUM " &
7480 "-vP1 " &
7481 "HIGH " &
7482 "-vP2";
7483 -- /MESSAGES_PROJECT_FILE[=messages-option]
7485 -- Specifies the "verbosity" of the parsing of project files.
7486 -- messages-option may be one of the following:
7488 -- DEFAULT (D) No messages are output if there is no error or warning.
7490 -- MEDIUM A small number of messages are output.
7492 -- HIGH A great number of messages are output, most of them not
7493 -- being useful for the user.
7495 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
7496 "-P>";
7497 -- /PROJECT_FILE=filename
7499 -- Specifies the main project file to be used. The project files rooted
7500 -- at the main project file will be parsed before the invocation of the
7501 -- gnatcheck. The source directories to be searched will be communicated
7502 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
7504 S_Sync_Quiet : aliased constant S := "/QUIET " &
7505 "-q";
7506 -- /NOQUIET (D)
7507 -- /QUIET
7509 -- Work quietly, only output warnings and errors.
7511 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
7512 "--subdirs=>";
7513 -- /SUBDIRS=dir
7515 -- The actual directories (object, exec, library, ...) are subdirectories
7516 -- of the directory specified in the project file. If the subdirectory
7517 -- does not exist, it is created automatically.
7519 S_Sync_Verb : aliased constant S := "/VERBOSE " &
7520 "-v";
7521 -- /NOVERBOSE (D)
7522 -- /VERBOSE
7524 -- The version number and copyright notice are output, as well as exact
7525 -- copies of the gnat1 commands spawned to obtain the chop control
7526 -- information.
7528 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
7529 "-t";
7530 -- /NOEXECUTION_TIME (D)
7531 -- /EXECUTION_TIME
7533 -- Output the execution time
7535 S_Sync_Details : aliased constant S := "/DETAILS=" &
7536 "MEDIUM " &
7537 "-om " &
7538 "SHORT " &
7539 "-os " &
7540 "FULL " &
7541 "-of";
7542 -- /DETAILS[=options]
7544 -- Specifies the details of the output.
7545 -- Options may be one of the following:
7547 -- MEDIUM (D)
7548 -- SHORT
7549 -- FULL
7551 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
7552 "-wq";
7554 -- /WARNINGS_OFF
7556 -- Turn warnings off
7558 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
7559 "-out_file=>";
7561 -- /OUTPUT_FILE=filename
7563 -- Redirect output to a text file
7565 Sync_Switches : aliased constant Switches :=
7566 (S_Sync_Add 'Access,
7567 S_Sync_All 'Access,
7568 S_Sync_Allproj 'Access,
7569 S_Sync_Ext 'Access,
7570 S_Sync_Follow 'Access,
7571 S_Sync_Files 'Access,
7572 S_Sync_Main 'Access,
7573 S_Sync_Mess 'Access,
7574 S_Sync_Project 'Access,
7575 S_Sync_Quiet 'Access,
7576 S_Sync_Subdirs 'Access,
7577 S_Sync_Verb 'Access,
7578 S_Sync_Exec 'Access,
7579 S_Sync_Details 'Access,
7580 S_Sync_Warnoff 'Access,
7581 S_Sync_Output 'Access);
7583 ----------------------------
7584 -- Switches for GNAT TEST --
7585 ----------------------------
7587 Test_Switches : aliased constant Switches :=
7588 (1 .. 0 => null);
7590 ----------------------------
7591 -- Switches for GNAT XREF --
7592 ----------------------------
7594 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7595 "-aP*";
7596 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7598 -- Add directories to the project search path.
7600 S_Xref_All : aliased constant S := "/ALL_FILES " &
7601 "-a";
7602 -- /NOALL_FILES (D)
7603 -- /ALL_FILES
7605 -- If this switch is present, FIND and XREF will parse the read-only
7606 -- files found in the library search path. Otherwise, these files will
7607 -- be ignored. This option can be used to protect Gnat sources or your
7608 -- own libraries from being parsed, thus making FIND and XREF much
7609 -- faster, and their output much smaller.
7611 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
7612 "-d";
7613 -- /NODERIVED_TYPES (D)
7614 -- /DERIVED_TYPES
7616 -- Output the parent type reference for each matching derived types.
7618 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7619 "-X" & '"';
7620 -- /EXTERNAL_REFERENCE="name=val"
7622 -- Specifies an external reference to the project manager. Useful only if
7623 -- /PROJECT_FILE is used.
7625 -- Example:
7626 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7628 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7629 "-eL";
7630 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7631 -- /FOLLOW_LINKS_FOR_FILES
7633 -- Follow links when parsing project files
7635 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
7636 "-f";
7637 -- /NOFULL_PATHNAME (D)
7638 -- /FULL_PATHNAME
7640 -- If this switch is set, the output file names will be preceded by their
7641 -- directory (if the file was found in the search path). If this switch
7642 -- is not set, the directory will not be printed.
7644 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
7645 "-g";
7646 -- /NOIGNORE_LOCALS (D)
7647 -- /IGNORE_LOCALS
7649 -- If this switch is set, information is output only for library-level
7650 -- entities, ignoring local entities. The use of this switch may
7651 -- accelerate FIND and XREF.
7653 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7654 "DEFAULT " &
7655 "-vP0 " &
7656 "MEDIUM " &
7657 "-vP1 " &
7658 "HIGH " &
7659 "-vP2";
7660 -- /MESSAGES_PROJECT_FILE[=messages-option]
7662 -- Specifies the "verbosity" of the parsing of project files.
7663 -- messages-option may be one of the following:
7665 -- DEFAULT (D) No messages are output if there is no error or warning.
7667 -- MEDIUM A small number of messages are output.
7669 -- HIGH A great number of messages are output, most of them not
7670 -- being useful for the user.
7672 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
7673 "-nostdinc";
7674 -- /NOSTD_INCLUDES
7676 -- Do not look for sources in the system default directory.
7678 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
7679 "-nostdlib";
7680 -- /NOSTD_LIBRARIES
7682 -- Do not look for library files in the system default directory.
7684 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
7685 "-aO*";
7686 -- /OBJECT_SEARCH=(directory,...)
7688 -- When searching for library and object files, look in the specified
7689 -- directories. The order in which library files are searched is the same
7690 -- as for MAKE.
7692 S_Xref_Project : aliased constant S := "/PROJECT=@" &
7693 "-p@";
7694 -- /PROJECT=file
7696 -- Specify a project file to use. By default, FIND and XREF will try to
7697 -- locate a project file in the current directory.
7699 -- If a project file is either specified or found by the tools, then the
7700 -- content of the source directory and object directory lines are added
7701 -- as if they had been specified respectively by /SOURCE_SEARCH and
7702 -- /OBJECT_SEARCH.
7704 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
7705 "-P>";
7706 -- /PROJECT_FILE=filename
7708 -- Specifies the main project file to be used. The project files rooted
7709 -- at the main project file will be parsed before doing any processing.
7710 -- The source and object directories to be searched will be communicated
7711 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
7712 -- ADA_PRJ_OBJECTS_FILE.
7714 S_Xref_Search : aliased constant S := "/SEARCH=*" &
7715 "-I*";
7716 -- /SEARCH=(directory,...)
7718 -- Equivalent to:
7719 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
7721 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
7722 "-aI*";
7723 -- /SOURCE_SEARCH=(directory,...)
7725 -- When looking for source files also look in the specified directories.
7726 -- The order in which source file search is undertaken is the same as for
7727 -- MAKE.
7729 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
7730 "--subdirs=>";
7731 -- /SUBDIRS=dir
7733 -- The actual directories (object, exec, library, ...) are subdirectories
7734 -- of the directory specified in the project file. If the subdirectory
7735 -- does not exist, it is created automatically.
7737 S_Xref_Output : aliased constant S := "/UNUSED " &
7738 "-u";
7739 -- /SOURCE_SEARCH=(directory,...)
7741 -- When looking for source files also look in the specified directories.
7742 -- The order in which source file search is undertaken is the same as for
7743 -- MAKE.
7745 S_Xref_Tags : aliased constant S := "/TAGS " &
7746 "-v";
7747 -- /NOTAGS (D)
7748 -- /TAGS
7750 -- Print a 'tags' file for vi.
7752 Xref_Switches : aliased constant Switches :=
7753 (S_Xref_Add 'Access,
7754 S_Xref_All 'Access,
7755 S_Xref_Deriv 'Access,
7756 S_Xref_Ext 'Access,
7757 S_Xref_Follow 'Access,
7758 S_Xref_Full 'Access,
7759 S_Xref_Global 'Access,
7760 S_Xref_Mess 'Access,
7761 S_Xref_Nostinc 'Access,
7762 S_Xref_Nostlib 'Access,
7763 S_Xref_Object 'Access,
7764 S_Xref_Project 'Access,
7765 S_Xref_Prj 'Access,
7766 S_Xref_Search 'Access,
7767 S_Xref_Source 'Access,
7768 S_Xref_Subdirs 'Access,
7769 S_Xref_Output 'Access,
7770 S_Xref_Tags 'Access);
7772 end VMS_Data;