PR target/58115
[official-gcc.git] / gcc / ada / vms_data.ads
blobaa22577efce1baa1d98308b76d71b42eb9e9d578
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-2013, 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 -- NODOC (see /DISTRIBUTION_STUBS)
1575 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1576 "-gnatm#";
1577 -- /NOERROR_LIMIT (D)
1578 -- /ERROR_LIMIT=nnn
1580 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1581 -- number of error messages to be generated to that number. Once that
1582 -- number has been reached, the compilation is abandoned.
1583 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1585 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1586 "-gnatm999999";
1587 -- NODOC (see /ERROR_LIMIT)
1589 S_GCC_Except : aliased constant S := "/EXTRA_EXCEPTION_INFORMATION " &
1590 "-gnateE";
1591 -- /EXTRA_EXCEPTION_INFORMATION
1593 -- Generate extra information in exception messages, in particular
1594 -- display extra column information and the value and range associated
1595 -- with index and range check failures, and extra column information for
1596 -- access checks.
1598 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1599 "-gnatG";
1600 -- /NOEXPAND_SOURCE (D)
1601 -- /EXPAND_SOURCE
1603 -- Produces a listing of the expanded code in Ada source form. For
1604 -- example, all tasking constructs are reduced to appropriate run-time
1605 -- library calls. The maximum line length for the listing 72.
1607 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1608 "-gnatG#";
1609 -- /LEXPAND_SOURCE=nnn
1611 -- Produces a listing of the expanded code in Ada source form. For
1612 -- example, all tasking constructs are reduced to appropriate run-time
1613 -- library calls. The parameter is the maximum line length for the
1614 -- listing.
1616 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1617 "-gnatX";
1618 -- /NOEXTENSIONS_ALLOWED (D)
1619 -- /EXTENSIONS_ALLOWED
1621 -- GNAT specific language extensions allowed.
1623 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1624 "-X" & '"';
1625 -- /EXTERNAL_REFERENCE="name=val"
1627 -- Specifies an external reference to the project manager. Useful only if
1628 -- /PROJECT_FILE is used.
1630 -- Example:
1631 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1633 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1634 "-gnatk#";
1635 -- /FILE_NAME_MAX_LENGTH=nnn
1637 -- Activates file name "krunching". NNN, a decimal integer in the range
1638 -- 1-999, indicates the maximum allowable length of a file name (not
1639 -- including the ADS or ADB filetype. The default is not to enable file
1640 -- name krunching.
1642 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1643 "-eL";
1644 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1645 -- /FOLLOW_LINKS_FOR_FILES
1647 -- Follow links when parsing project files
1649 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1650 "-gnatQ";
1651 -- /NOFORCE_ALI (D)
1652 -- /FORCE_ALI
1654 -- In normal operation mode, the .ALI file is not generated if any
1655 -- illegalities are detected in the program. The use of this qualifier
1656 -- forces generation of the .ALI file. This file is marked as being
1657 -- in error, so it cannot be used for binding purposes, but it does
1658 -- contain reasonably complete cross-reference information, and thus may
1659 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1660 -- development environments) that are driven from the .ALI file.
1662 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1663 "-gnatef";
1664 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1665 -- /FULL_PATH_IN_BRIEF_MESSAGES
1667 -- When using project files, if some errors or warnings are detected
1668 -- during parsing and verbose mode is not in effect (no use of qualifier
1669 -- /VERBOSE), then error lines start with the full path name of the
1670 -- project file, rather than its simple file name.
1672 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1673 "-gnateG";
1674 -- /NOGENERATE_PROCESSED_SOURCE (D)
1675 -- /GENERATE_PROCESSED_SOURCE
1677 -- Generate a file <source>_prep if the integrated preprocessing
1678 -- is modifying the source text.
1680 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1681 "-gnatg";
1682 -- /NOGNAT_INTERNAL (D)
1683 -- /GNAT_INTERNAL
1685 -- Internal GNAT implementation mode. This should not be used for
1686 -- applications programs, it is intended only for use by the compiler
1687 -- and its run-time library. For documentation, see the GNAT sources.
1688 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1689 -- so that all standard warnings and all standard style options are
1690 -- turned on. All warnings and style error messages are treated as
1691 -- errors.
1693 S_GCC_Help : aliased constant S := "/HELP " &
1694 "-gnath";
1695 -- /NOHELP (D)
1696 -- /HELP
1698 -- Output usage information.
1700 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1701 "DEFAULT " &
1702 "-gnati1 " &
1703 "1 " &
1704 "-gnati1 " &
1705 "2 " &
1706 "-gnati2 " &
1707 "3 " &
1708 "-gnati3 " &
1709 "4 " &
1710 "-gnati4 " &
1711 "5 " &
1712 "-gnati5 " &
1713 "PC " &
1714 "-gnatip " &
1715 "PC850 " &
1716 "-gnati8 " &
1717 "FULL_UPPER " &
1718 "-gnatif " &
1719 "NO_UPPER " &
1720 "-gnatin " &
1721 "WIDE " &
1722 "-gnatiw";
1723 -- /NOIDENTIFIER_CHARACTER_SET (D)
1724 -- /IDENTIFIER_CHARACTER_SET=char-set
1726 -- Normally GNAT recognizes the Latin-1 character set in source program
1727 -- identifiers, as described in the reference manual. This qualifier
1728 -- causes GNAT to recognize alternate character sets in identifiers.
1729 -- 'char-set' is one of the following strings indicating the character
1730 -- set:
1732 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1733 -- /NOIDENTIFIER_CHARACTER_SET.
1735 -- 1 The basic character set is Latin-1. This character
1736 -- set is defined by ISO standard 8859, part 1. The lower
1737 -- half (character codes 16#00# ... 16#7F#) is identical
1738 -- to standard ASCII coding, but the upper half is used
1739 -- to represent additional characters. This includes
1740 -- extended letters used by European languages, such as
1741 -- the umlaut used in German.
1743 -- You may use any of these extended characters freely
1744 -- in character or string literals. In addition, the
1745 -- extended characters that represent letters can be
1746 -- used in identifiers.
1748 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1749 -- and lowercase equivalence.
1751 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1752 -- and lower case equivalence.
1754 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1755 -- and lower case equivalence.
1757 -- PC IBM PC code page 437. This code page is the normal
1758 -- default for PCs in the U.S. It corresponds to the
1759 -- original IBM PC character set. This set has some, but
1760 -- not all, of the extended Latin-1 letters, but these
1761 -- letters do not have the same encoding as Latin-1. In
1762 -- this mode, these letters are allowed in identifiers
1763 -- with uppercase and lowercase equivalence.
1765 -- PC850 This code page (850) is a modification of 437 extended
1766 -- to include all the Latin-1 letters, but still not with
1767 -- the usual Latin-1 encoding. In this mode, all these
1768 -- letters are allowed in identifiers with uppercase and
1769 -- lower case equivalence.
1771 -- FULL_UPPER Any character in the range 80-FF allowed in
1772 -- identifiers, and all are considered distinct. In
1773 -- other words, there are no uppercase and lower case
1774 -- equivalences in this range.
1776 -- NO_UPPER No upper-half characters in the range 80-FF are
1777 -- allowed in identifiers. This gives Ada 95
1778 -- compatibility for identifier names.
1780 -- WIDE GNAT allows wide character codes to appear in
1781 -- character and string literals, and also optionally
1782 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1783 -- qualifier for information on encoding formats.
1785 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1786 "-gnati1";
1787 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1789 S_GCC_IgnoreR : aliased constant S := "/IGNORE_REP_CLAUSES " &
1790 "-gnatI";
1791 -- /IGNORE_REP_CLAUSES
1793 -- Causes all representation clauses to be ignored and treated as
1794 -- comments. Useful when compiling foreign code (for example when ASIS
1795 -- is used to analyze such code).
1797 S_GCC_IgnoreS : aliased constant S := "/IGNORE_STYLE_CHECKS_PRAGMAS " &
1798 "-gnateY";
1799 -- /IGNORE_STYLE_CHECKS_PRAGMAS
1801 -- Causes all Style_Checks pragmas to be checked for legality, but
1802 -- otherwise ignored. Allows style checks to be fully controlled by
1803 -- command line qualifiers.
1805 S_GCC_IgnoreU : aliased constant S := "/IGNORE_UNRECOGNIZED " &
1806 "-gnateu";
1807 -- /IGNORE_UNRECOGNIZED
1809 -- Causes unrecognized style switches, validity switches, and warning
1810 -- switches to be ignored rather than generating an error message.
1812 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1813 "-gnatdO";
1814 -- /NOIMMEDIATE_ERRORS (D)
1815 -- /IMMEDIATE_ERRORS
1817 -- Causes errors to be displayed as soon as they are encountered, rather
1818 -- than after compilation is terminated. If GNAT terminates prematurely
1819 -- or goes into an infinite loop, the last error message displayed may
1820 -- help to pinpoint the culprit.
1822 -- Note that this qualifier is intended only for helping to diagnose
1823 -- illegal programs when the compiler fails. It disconnects many of the
1824 -- normal handling procedures for error messages, and may for example
1825 -- cause malfunction of pragma Warnings.
1827 S_GCC_Inline : aliased constant S := "/INLINE=" &
1828 "PRAGMA " &
1829 "-gnatn " &
1830 "PRAGMA_LEVEL_1 " &
1831 "-gnatn1 " &
1832 "PRAGMA_LEVEL_2 " &
1833 "-gnatn2 " &
1834 "FULL " &
1835 "-gnatN " &
1836 "SUPPRESS " &
1837 "-fno-inline";
1838 -- /NOINLINE (D)
1839 -- /INLINE[=keyword]
1841 -- Selects the level of inlining for your program. In the absence of this
1842 -- qualifier, GNAT does not attempt inlining across units and does not
1843 -- need to access the bodies of subprograms for which "pragma Inline" is
1844 -- specified if they are not in the current unit.
1846 -- The supported keywords are as follows:
1848 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1849 -- for the inlining to actually occur, optimization
1850 -- must be enabled. This enables inlining across unit
1851 -- boundaries, that is, inlining a call in one unit of
1852 -- a subprogram declared in a with'ed unit. The compiler
1853 -- will access these bodies, creating an extra source
1854 -- dependency for the resulting object file, and where
1855 -- possible, the call will be inlined.
1857 -- This qualifier also turns on full optimization and
1858 -- requests GNAT to try to attempt automatic inlining
1859 -- of small subprograms within a unit.
1861 -- Specifying /OPTIMIZE=NONE will disable the main effect
1862 -- of this qualifier, but you may specify other
1863 -- optimization options, to get either lower
1864 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1865 -- levels of optimization.
1867 -- PRAGMA_LEVEL_1
1868 -- Direct control of the level of "Inline" pragmas
1869 -- optimization with moderate inlining across modules.
1871 -- PRAGMA_LEVEL_2
1872 -- Direct control of the level of "Inline" pragmas
1873 -- optimization with full inlining across modules.
1875 -- FULL Front end inlining. The front end inlining activated
1876 -- by this switch is generally more extensive, and quite
1877 -- often more effective than the standard PRAGMA inlining
1878 -- mode. It will also generate additional dependencies.
1880 -- SUPPRESS Suppresses all inlining, even if other optimization
1881 -- or inlining switches are set.
1883 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1884 "!-gnatn,!-gnatN";
1885 -- NODOC (see /INLINE)
1887 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1888 "-gnatL";
1890 -- /NO_INTERSPERSE_SOURCE (D)
1891 -- /INTERSPERSE_SOURCE
1893 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1894 -- lines from the original source file, output as comment lines with the
1895 -- associated line number.
1897 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1898 "-gnatj#";
1900 -- /NO_JUSTIFY_MESSAGES (D)
1901 -- /JUSTIFY_MESSAGES=nnn
1903 -- Causes error messages to be reformatted so that a message and all its
1904 -- continuation lines count as one warning or error in the statistics on
1905 -- total errors, and the message is broken down into lines (justified) so
1906 -- that no line is longer than nnn characters. The default message
1907 -- behavior (each message counted separately and not reformatted to fit
1908 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1910 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1911 "-gnatj0";
1913 -- NODOC (see /JUSTIFY_MESSAGES)
1915 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1916 "-gnatyM#";
1917 -- /MAX_LINE_LENGTH=nnn
1919 -- Set maximum line length.
1920 -- The length of lines must not exceed the given value nnn.
1922 S_GCC_List : aliased constant S := "/LIST " &
1923 "-gnatl";
1924 -- /NOLIST (D)
1925 -- /LIST
1927 -- Cause a full listing of the file to be generated. In the case where
1928 -- a body is compiled, the corresponding spec is also listed, along
1929 -- with any subunits.
1931 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1932 "-source-listing";
1933 -- /NOMACHINE_CODE_LISTING (D)
1934 -- /MACHINE_CODE_LISTING
1936 -- Cause a full machine code listing of the file to be generated to
1937 -- <filename>.lis. Interspersed source is included if the /DEBUG
1938 -- qualifier is also present.
1940 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1941 "-gnatem>";
1942 -- /MAPPING_FILE=file_name
1944 -- Use mapping file file_name
1946 -- A mapping file is a way to communicate to the compiler two mappings:
1947 -- from unit names to file names (without any directory information) and
1948 -- from file names to path names (with full directory information).
1949 -- These mappings are used by the compiler to short-circuit the path
1950 -- search.
1952 -- The use of mapping files is not required for correct operation of the
1953 -- compiler, but mapping files can improve efficiency, particularly when
1954 -- sources are read over a slow network connection. In normal operation,
1955 -- you need not be concerned with the format or use of mapping files,
1956 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1957 -- It is intended only for use by automatic tools such as GNAT MAKE
1958 -- running under the project file facility. The description here of the
1959 -- format of mapping files is provided for completeness and for possible
1960 -- use by other tools.
1962 -- A mapping file is a sequence of sets of three lines. In each set, the
1963 -- first line is the unit name, in lower case, with "%s" appended for
1964 -- specifications and "%b" appended for bodies; the second line is the
1965 -- file name; and the third line is the path name.
1967 -- Example:
1969 -- main%b
1970 -- main.2_ada
1971 -- /gnat/project1/sources/main.2_ada
1973 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1974 -- memory the two mappings from the specified file. If there is any
1975 -- problem (non existent file, truncated file or duplicate entries),
1976 -- no mapping will be created.
1978 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1979 -- last one on the command line will be taken into account.
1981 -- When using a project file, GNAT MAKE creates a temporary mapping file
1982 -- and communicates it to the compiler using this switch.
1984 S_GCC_MaxI : aliased constant S := "/MAX_INSTANTIATIONS=#" &
1985 "-gnatei#";
1987 -- /MAX_INSTANTIATIONS=nnn
1989 -- Specify the maximum number of instantiations permitted. The default
1990 -- value is 8000, which is probably enough for all programs except those
1991 -- containing some kind of runaway unintended instantiation loop.
1993 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1994 "DEFAULT " &
1995 "-vP0 " &
1996 "MEDIUM " &
1997 "-vP1 " &
1998 "HIGH " &
1999 "-vP2";
2000 -- /MESSAGES_PROJECT_FILE[=messages-option]
2002 -- Specifies the "verbosity" of the parsing of project files.
2003 -- messages-option may be one of the following:
2005 -- DEFAULT (D) No messages are output if there is no error or warning.
2007 -- MEDIUM A small number of messages are output.
2009 -- HIGH A great number of messages are output, most of them not
2010 -- being useful for the user.
2012 S_GCC_Multi : aliased constant S := "/MULTI_UNIT_INDEX=#" &
2013 "-gnateI#";
2014 -- /MULTI_UNIT_INDEX=nnn
2016 -- Specify the index of the unit to compile in a multi-unit source file.
2018 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
2019 "-gnatyL#";
2020 -- /MAX_NESTING=nnn
2022 -- Set maximum level of nesting of constructs (including subprograms,
2023 -- loops, blocks, packages, and conditionals).
2024 -- The level of nesting must not exceed the given value nnn.
2025 -- A value of zero disable this style check (not enabled by default).
2027 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
2028 "-gnatA";
2029 -- /NO_GNAT_ADC
2031 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
2032 -- in the default directory. Implied by qualifier /PROJECT_FILE.
2033 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
2035 S_GCC_Noload : aliased constant S := "/NOLOAD " &
2036 "-gnatc";
2037 -- /NOLOAD
2039 -- Cause the compiler to operate in semantic check mode with full
2040 -- checking for all illegalities specified in the reference manual, but
2041 -- without generation of any source code (no object or ALI file
2042 -- generated).
2044 -- Since dependent files must be accessed, you must follow the GNAT
2045 -- semantic restrictions on file structuring to operate in this mode:
2047 -- o The needed source files must be accessible.
2048 -- o Each file must contain only one compilation unit.
2049 -- o The file name and unit name must match.
2051 -- The output consists of error messages as appropriate. No object file
2052 -- or ALI file is generated. The checking corresponds exactly to the
2053 -- notion of legality in the Ada reference manual.
2055 -- Any unit can be compiled in semantics-checking-only mode, including
2056 -- units that would not normally be compiled (generic library units,
2057 -- subunits, and specifications where a separate body is present).
2059 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
2060 "-nostdinc";
2061 -- /NOSTD_INCLUDES
2063 -- Do not look in the default directory for source files of the runtime.
2065 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
2066 "-nostdlib";
2067 -- /NOSTD_LIBRARIES
2069 -- Do not look for library files in the system default directory.
2071 S_GCC_NoWarnP : aliased constant S := "/NOWARNING_PRAGMAS " &
2072 "-gnatd.i";
2073 -- /NOWARNING_PRAGMAS
2075 -- Causes all Warnings pragmas to be ignored. Useful to check if the
2076 -- program has obsolete warnings pragmas that are hiding problems.
2078 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
2079 "ALL " &
2080 "-O2,!-O0,!-O1,!-O3 " &
2081 "NONE " &
2082 "-O0,!-O1,!-O2,!-O3 " &
2083 "SOME " &
2084 "-O1,!-O0,!-O2,!-O3 " &
2085 "SPACE " &
2086 "-Os,!-O0,!-O1,!-O2,!-O3 " &
2087 "DEVELOPMENT " &
2088 "-O1,!-O0,!-O2,!-O3 " &
2089 "UNROLL_LOOPS " &
2090 "-funroll-loops " &
2091 "NO_STRICT_ALIASING " &
2092 "-fno-strict-aliasing " &
2093 "INLINING " &
2094 "-O3,!-O0,!-O1,!-O2";
2095 -- /NOOPTIMIZE (D)
2096 -- /OPTIMIZE[=(keyword[,...])]
2098 -- Selects the level of optimization for your program. The supported
2099 -- keywords are as follows:
2101 -- ALL (D) Perform most optimizations, including those that
2102 -- may be expensive.
2104 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
2106 -- SOME Perform some optimizations, but omit ones that
2107 -- are costly in compilation time.
2109 -- SPACE Optimize space usage
2111 -- DEVELOPMENT Same as SOME.
2113 -- INLINING Full optimization, and also attempt automatic inlining
2114 -- of small subprograms within a unit
2116 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
2117 -- with any keyword above other than NONE. Loop
2118 -- unrolling usually, but not always, improves the
2119 -- performance of programs.
2121 -- NO_STRICT_ALIASING
2122 -- Suppress aliasing analysis. When optimization is
2123 -- enabled (ALL or SOME above), the compiler assumes
2124 -- that pointers do in fact point to legitimate values
2125 -- of the pointer type (allocated from the proper pool).
2126 -- If this assumption is violated, e.g. by the use of
2127 -- unchecked conversion, then it may be necessary to
2128 -- suppress this assumption using this keyword (which
2129 -- may be specified only in conjunction with any
2130 -- keyword above, other than NONE).
2132 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
2133 "-O0,!-O1,!-O2,!-O3";
2134 -- NODOC (see /OPTIMIZE)
2136 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
2137 "-gnatl=>";
2138 -- /OUTPUT_FILE=fname
2140 -- This has the same effect as /LIST except that the output is written
2141 -- to a file instead of to standard output. If the given fname
2142 -- does not start with a period, then it is the full name of the file
2143 -- to be written. If fname starts with a period, the name of the file
2144 -- is the concatenation of to the name of the file being compiled with
2145 -- fname where the period is replace by an underline. For example, if
2146 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
2147 -- to file xyz.adb_lst.
2149 S_GCC_Overflo : aliased constant S := "/OVERFLOW_CHECKS=#" &
2150 "-gnato#";
2151 -- /OVERFLOW_CHECKS=nn
2153 -- Set default overflow cheecking mode. If nn is a single digit, in the
2154 -- range 0-3, it sets the overflow checking mode for all expressions,
2155 -- including those outside and within assertions. The meaning of nnn is:
2157 -- 1 all intermediate computations done using base type (STRICT)
2158 -- 2 minimize intermediate overflows (MINIMIZED)
2159 -- 3 eliminate intermediate overflows (ELIMINATED)
2161 -- Otherwise nn can be two digits, both 1-3, and in this case the first
2162 -- digit sets the mode (using the above code) for expressions outside an
2163 -- assertion, and the second digit sets the mode for expressions within
2164 -- an assertion.
2166 S_GCC_PValid : aliased constant S := "/PARAMETER_VALIDITY_CHECK " &
2167 "-gnateV";
2168 -- /NOPARAMETER_VALIDITY_CHECK (D)
2169 -- /PARAMETER_VALIDITY_CHECK
2171 -- Check validity of subprogram parameters.
2173 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2174 "64 " &
2175 "-mmalloc64 " &
2176 "LONG " &
2177 "-mmalloc64 " &
2178 "32 " &
2179 "-mno-malloc64 " &
2180 "SHORT " &
2181 "-mno-malloc64";
2182 -- /POINTER_SIZE=64 (D)
2183 -- /POINTER_SIZE[=(keyword[,...])]
2185 -- Change how pointers and descriptors are allocated. The following
2186 -- keywords are supported:
2188 -- 64 (D) Allocate heap pointers in 64bit space except as
2189 -- constrained by a 32bit size clause or by
2190 -- Convention_C and generate 64bit descriptors for
2191 -- Descriptor mechanisms for calling imported
2192 -- subprograms and accept both 64bit and 32bit
2193 -- descriptors for calls to exported subprograms.
2195 -- LONG Equivalent to option 64.
2197 -- 32 Allocate all heap pointers in 32bit space and
2198 -- generate 32bit descriptors for Descriptor
2199 -- mechanisms for calling imported subprograms.
2201 -- SHORT Equivalent to option 32.
2203 S_GCC_Polling : aliased constant S := "/POLLING " &
2204 "-gnatP";
2205 -- /NOPOLLING (D)
2206 -- /POLLING
2208 -- Enable polling. See the description of pragma Polling in the GNAT
2209 -- Reference Manual for full details.
2211 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2212 "-P>";
2213 -- /PROJECT_FILE=filename
2215 -- Specifies the main project file to be used. The project files rooted
2216 -- at the main project file will be parsed before the invocation of the
2217 -- compiler. The source and object directories to be searched will be
2218 -- communicated to the compiler through logical names
2219 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2221 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2222 "-gnatS";
2223 -- /PRINT_STANDARD
2225 -- cause the compiler to output a representation of package Standard
2226 -- in a form very close to standard Ada. It is not quite possible to
2227 -- do this and remain entirely Standard (since new numeric base types
2228 -- cannot be created in standard Ada), but the output is easily
2229 -- readable to any Ada programmer, and is useful to determine the
2230 -- characteristics of target dependent types in package Standard.
2232 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2233 "-gnatr";
2235 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2236 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2238 -- Causes all restrictions to be treated as warnings (pragma Restriction
2239 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2240 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2242 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2243 "VERBOSE " &
2244 "-gnatv " &
2245 "BRIEF " &
2246 "-gnatb " &
2247 "FULL " &
2248 "-gnatf " &
2249 "IMMEDIATE " &
2250 "-gnatdO " &
2251 "DEFAULT " &
2252 "!-gnatb,!-gnatv";
2253 -- /NOREPORT_ERRORS (D)
2254 -- /REPORT_ERRORS[=(keyword[,...])]
2256 -- Change the way errors are reported. The following keywords are
2257 -- supported:
2259 -- VERBOSE (D) Verbose mode. Full error output with source lines
2260 -- to SYS$OUTPUT.
2262 -- BRIEF Generate the brief format error messages to
2263 -- SYS$OUTPUT as well as the verbose format message or
2264 -- full listing.
2266 -- FULL Normally, the compiler suppresses error messages that
2267 -- are likely to be redundant. This keyword causes all
2268 -- error messages to be generated. One particular effect
2269 -- is for the case of references to undefined variables.
2270 -- If a given variable is referenced several times, the
2271 -- normal format of messages produces one error. With
2272 -- FULL, each undefined reference produces a separate
2273 -- error message.
2275 -- IMMEDIATE Normally, the compiler saves up error messages and
2276 -- generates them at the end of compilation in proper
2277 -- sequence. This keyword causes error messages to be
2278 -- generated as soon as they are detected. The use of
2279 -- IMMEDIATE usually causes error messages to be
2280 -- generated out of sequence. Use it when the compiler
2281 -- blows up due to an internal error. In this case, the
2282 -- error messages may be lost. Sometimes blowups are
2283 -- the result of mishandled error messages, so you may
2284 -- want to run with this keyword to determine whether
2285 -- any error messages were generated.
2287 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2289 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2290 "!-gnatb,!-gnatv";
2291 -- NODOC (see /REPORT_ERRORS)
2293 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2294 "DEFAULT " &
2295 "-gnatR " &
2296 "NONE " &
2297 "-gnatR0 " &
2298 "ARRAYS " &
2299 "-gnatR1 " &
2300 "ARRAYS_FILE " &
2301 "-gnatR1s " &
2302 "OBJECTS " &
2303 "-gnatR2 " &
2304 "OBJECTS_FILE " &
2305 "-gnatR2s " &
2306 "SYMBOLIC " &
2307 "-gnatR3 " &
2308 "SYMBOLIC_FILE " &
2309 "-gnatR3s " &
2310 "MECHANISMS " &
2311 "-gnatRm " &
2312 "MECHANISMS_FILE " &
2313 "-gnatRms";
2314 -- /NOREPRESENTATION_INFO (D)
2315 -- /REPRESENTATION_INFO[=(keyword[,...])]
2317 -- This qualifier controls output from the compiler of a listing showing
2318 -- representation information for declared types and objects.
2320 -- ARRAYS (D) Size and alignment information is listed for
2321 -- declared array and record types.
2323 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2324 -- with the name 'file_rep' where 'file' is the name
2325 -- of the corresponding source file.
2327 -- NONE no information is output (equivalent to omitting
2328 -- the /REPRESENTATION_INFO qualifiers).
2330 -- OBJECTS Size and alignment information is listed for all
2331 -- declared types and objects.
2333 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2334 -- with the name 'file_rep' where 'file' is the name
2335 -- of the corresponding source file.
2337 -- SYMBOLIC Symbolic expression information for values that
2338 -- are computed at run time for variant records.
2340 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2341 -- with the name 'file_rep' where 'file' is the name
2342 -- of the corresponding source file.
2344 -- MECHANISMS List convention and argument passing mechanisms
2345 -- for all subprograms
2347 -- MECHANISMS_FILE Similar to MECHANISMS, but the output is to a file
2348 -- with the name 'file_rep' where file is the name
2349 -- of the corresponding source file.
2351 -- DEFAULT Equivalent to ARRAYS.
2353 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2354 "!-gnatR";
2355 -- NODOC (see /REPRESENTATION_INFO)
2357 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2358 "--RTS=|";
2359 -- /RUNTIME_SYSTEM=xxx
2361 -- Build against an alternate runtime system named xxx or RTS-xxx.
2363 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2364 "-gnateS";
2365 -- /NOSCO_OUTPUT (D)
2366 -- /SCO_OUTPUT
2368 -- Controls the output of SCO (Source Coverage Obligation) information
2369 -- in the generated ALI file. This information is used by advanced source
2370 -- coverage tools. For a full description of the SCO format, see unit
2371 -- SCOs in the compiler sources (sco.ads/sco.adb).
2373 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2374 "-I*";
2375 -- /SEARCH=(directory[,...])
2377 -- When looking for source files also look in directories specified.
2379 S_GCC_Src_Info : aliased constant S := "/SRC_INFO=<" &
2380 "--source-info=>";
2381 -- /SRC_INFO=source-info-file
2383 -- Specify a source info file to be read or written by the Project
2384 -- Manager when project files are used.
2386 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2387 "ALL_BUILTIN " &
2388 "-gnatyy " &
2389 "0 " &
2390 "-gnaty0 " &
2391 "1 " &
2392 "-gnaty1 " &
2393 "2 " &
2394 "-gnaty2 " &
2395 "3 " &
2396 "-gnaty3 " &
2397 "4 " &
2398 "-gnaty4 " &
2399 "5 " &
2400 "-gnaty5 " &
2401 "6 " &
2402 "-gnaty6 " &
2403 "7 " &
2404 "-gnaty7 " &
2405 "8 " &
2406 "-gnaty8 " &
2407 "9 " &
2408 "-gnaty9 " &
2409 "ATTRIBUTE " &
2410 "-gnatya " &
2411 "NOATTRIBUTE " &
2412 "-gnaty-a " &
2413 "ARRAY_INDEXES " &
2414 "-gnatyA " &
2415 "NOARRAY_INDEXES " &
2416 "-gnaty-A " &
2417 "BLANKS " &
2418 "-gnatyb " &
2419 "NOBLANKS " &
2420 "-gnaty-b " &
2421 "BOOLEAN_OPERATORS " &
2422 "-gnatyB " &
2423 "NOBOOLEAN_OPERATORS " &
2424 "-gnaty-B " &
2425 "COMMENTS " &
2426 "-gnatyc " &
2427 "COMMENTS1 " &
2428 "-gnatyC " &
2429 "COMMENTS2 " &
2430 "-gnatyc " &
2431 "NOCOMMENTS " &
2432 "-gnaty-c " &
2433 "DOS_LINE_ENDINGS " &
2434 "-gnatyd " &
2435 "NODOS_LINE_ENDINGS " &
2436 "-gnaty-d " &
2437 "END " &
2438 "-gnatye " &
2439 "NOEND " &
2440 "-gnaty-e " &
2441 "VTABS " &
2442 "-gnatyf " &
2443 "NOVTABS " &
2444 "-gnaty-f " &
2445 "GNAT " &
2446 "-gnatyg " &
2447 "HTABS " &
2448 "-gnatyh " &
2449 "NOHTABS " &
2450 "-gnaty-h " &
2451 "IF_THEN " &
2452 "-gnatyi " &
2453 "NOIF_THEN " &
2454 "-gnaty-i " &
2455 "KEYWORD " &
2456 "-gnatyk " &
2457 "NOKEYWORD " &
2458 "-gnaty-k " &
2459 "LAYOUT " &
2460 "-gnatyl " &
2461 "NOLAYOUT " &
2462 "-gnaty-l " &
2463 "LINE_LENGTH " &
2464 "-gnatym " &
2465 "NOLINE_LENGTH " &
2466 "-gnaty-m " &
2467 "MODE_IN " &
2468 "-gnatyI " &
2469 "NOMODE_IN " &
2470 "-gnaty-I " &
2471 "NONE " &
2472 "-gnatyN " &
2473 "STANDARD_CASING " &
2474 "-gnatyn " &
2475 "NOSTANDARD_CASING " &
2476 "-gnaty-n " &
2477 "ORDERED_SUBPROGRAMS " &
2478 "-gnatyo " &
2479 "NOORDERED_SUBPROGRAMS " &
2480 "-gnaty-o " &
2481 "OVERRIDING_INDICATORS " &
2482 "-gnatyO " &
2483 "NOOVERRIDING_INDICATORS " &
2484 "-gnaty-O " &
2485 "PRAGMA " &
2486 "-gnatyp " &
2487 "NOPRAGMA " &
2488 "-gnaty-p " &
2489 "REFERENCES " &
2490 "-gnatyr " &
2491 "NOREFERENCES " &
2492 "-gnaty-r " &
2493 "SPECS " &
2494 "-gnatys " &
2495 "NOSPECS " &
2496 "-gnaty-s " &
2497 "STATEMENTS_AFTER_THEN_ELSE " &
2498 "-gnatyS " &
2499 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2500 "-gnaty-S " &
2501 "TOKEN " &
2502 "-gnatyt " &
2503 "NOTOKEN " &
2504 "-gnaty-t " &
2505 "UNNECESSARY_BLANK_LINES " &
2506 "-gnatyu " &
2507 "NOUNNECESSARY_BLANK_LINES " &
2508 "-gnaty-u " &
2509 "XTRA_PARENS " &
2510 "-gnaty-x " &
2511 "NOXTRA_PARENS " &
2512 "-gnaty-x";
2513 -- /NOSTYLE_CHECKS (D)
2514 -- /STYLE_CHECKS[=(keyword,[...])]
2516 -- Normally, GNAT permits any code layout consistent with the reference
2517 -- manual requirements. This qualifier imposes style checking on the
2518 -- input source code. The following keywords are supported:
2520 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2521 -- 3, ATTRIBUTE, BLANKS, COMMENTS2, END, VTABS,
2522 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2523 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2525 -- 1 .. 9 Specify indentation level from 1 to 9.
2526 -- The general style of required indentation is as
2527 -- specified by the examples in the Ada Reference
2528 -- Manual. Full line comments must be aligned with
2529 -- the -- starting on a column that is a multiple
2530 -- of the alignment level.
2532 -- ATTRIBUTE Check attribute casing.
2533 -- Attribute names, including the case of keywords
2534 -- such as digits used as attributes names,
2535 -- must be written in mixed case, that is,
2536 -- the initial letter and any letter following an
2537 -- underscore must be uppercase.
2538 -- All other letters must be lowercase.
2540 -- ARRAY_INDEXES Check indexes of array attributes.
2541 -- For array attributes First, Last, Range,
2542 -- or Length, the index number must be omitted
2543 -- for one-dimensional arrays and is required
2544 -- for multi-dimensional arrays.
2546 -- BLANKS Blanks not allowed at statement end.
2547 -- Trailing blanks are not allowed at the end of
2548 -- statements. The purpose of this rule, together
2549 -- with option HTABS (no horizontal tabs), is to
2550 -- enforce a canonical format for the use of
2551 -- blanks to separate source tokens.
2553 -- COMMENTS2 Check comments.
2554 -- COMMENTS Comments must meet the following set of rules:
2556 -- * The "--" that starts the column must either
2557 -- start in column one, or else at least one
2558 -- blank must precede this sequence.
2560 -- * Comments that follow other tokens on a line
2561 -- must have at least one blank following the
2562 -- "--" at the start of the comment.
2564 -- * Full line comments must have two blanks
2565 -- following the "--" that starts the comment,
2566 -- with the following exceptions.
2568 -- * A line consisting only of the "--"
2569 -- characters, possibly preceded by blanks is
2570 -- permitted.
2572 -- * A comment starting with "--x" where x is
2573 -- a special character is permitted. This
2574 -- allows proper processing of the output
2575 -- generated by specialized tools including
2576 -- gnatprep (where --! is used) and the SPARK
2577 -- annotation language (where --# is used).
2578 -- For the purposes of this rule, a special
2579 -- character is defined as being in one of the
2580 -- ASCII ranges 16#21#..16#2F# or
2581 -- 16#3A#..16#3F#.
2583 -- * A line consisting entirely of minus signs,
2584 -- possibly preceded by blanks, is permitted.
2585 -- This allows the construction of box
2586 -- comments where lines of minus signs are
2587 -- used to form the top and bottom of the box.
2589 -- * If a comment starts and ends with "--" is
2590 -- permitted as long as at least one blank
2591 -- follows the initial "--". Together with
2592 -- the preceding rule, this allows the
2593 -- construction of box comments, as shown in
2594 -- the following example:
2596 -- ---------------------------
2597 -- -- This is a box comment --
2598 -- ---------------------------
2600 -- COMMENTS1 Check comments (single space).
2601 -- Like COMMENTS2, but the -- of a comment only
2602 -- requires one or more spaces following, instead
2603 -- of two or more spaces.
2605 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2606 -- All lines must be terminated by a single
2607 -- ASCII.LF character. In particular the DOS line
2608 -- terminator sequence CR / LF is not allowed).
2610 -- END Check end/exit labels.
2611 -- Optional labels on end statements ending
2612 -- subprograms and on exit statements exiting
2613 -- named loops, are required to be present.
2615 -- GNAT Enforces a set of style conventions that
2616 -- match the style used in the GNAT source code.
2617 -- This maybe useful when developing code that
2618 -- is eventually intended to be incorporated into
2619 -- GNAT. For further details, see GNAT sources.
2621 -- HTABS No horizontal tabs.
2622 -- Horizontal tab characters are not permitted in
2623 -- the source text. Together with the BLANKS
2624 -- (no blanks at end of line) option, this
2625 -- enforces a canonical form for the use of blanks
2626 -- to separate source tokens.
2628 -- IF_THEN Check if-then layout.
2629 -- The keyword then must appear either on the
2630 -- same line as the corresponding if, or on a line
2631 -- on its own, lined up under the if with at least
2632 -- one non-blank line in between containing all or
2633 -- part of the condition to be tested.
2635 -- KEYWORD Check keyword casing.
2636 -- All keywords must be in lower case (with the
2637 -- exception of keywords such as digits used as
2638 -- attribute names to which this check does not
2639 -- apply).
2641 -- LAYOUT Check layout.
2642 -- Layout of statement and declaration constructs
2643 -- must follow the recommendations in the Ada
2644 -- Reference Manual, as indicated by the form of
2645 -- the syntax rules. For example an else keyword
2646 -- must be lined up with the corresponding if
2647 -- keyword.
2649 -- There are two respects in which the style rule
2650 -- enforced by this check option are more liberal
2651 -- than those in the Ada Reference Manual.
2652 -- First in the case of record declarations,
2653 -- it is permissible to put the record keyword on
2654 -- the same line as the type keyword, and then
2655 -- the end in end record must line up under type.
2656 -- For example, either of the following two
2657 -- layouts is acceptable:
2659 -- type q is record
2660 -- a : integer;
2661 -- b : integer;
2662 -- end record;
2664 -- type q is
2665 -- record
2666 -- a : integer;
2667 -- b : integer;
2668 -- end record;
2670 -- Second, in the case of a block statement,
2671 -- a permitted alternative is to put the block
2672 -- label on the same line as the declare or begin
2673 -- keyword, and then line the end keyword up under
2674 -- the block label. For example both the following
2675 -- are permitted:
2679 -- Block : declare
2680 -- A : Integer := 3;
2681 -- begin
2682 -- Proc (A, A);
2683 -- end Block;
2685 -- Block :
2686 -- declare
2687 -- A : Integer := 3;
2688 -- begin
2689 -- Proc (A, A);
2690 -- end Block;
2692 -- The same alternative format is allowed for
2693 -- loops. For example, both of the following are
2694 -- permitted:
2698 -- Clear : while J < 10 loop
2699 -- A (J) := 0;
2700 -- end loop Clear;
2702 -- Clear :
2703 -- while J < 10 loop
2704 -- A (J) := 0;
2705 -- end loop Clear;
2709 -- LINE_LENGTH Check maximum line length.
2710 -- The length of source lines must not exceed 79
2711 -- characters, including any trailing blanks
2712 -- The value of 79 allows convenient display on
2713 -- an 80 character wide device or window, allowing
2714 -- for possible special treatment of 80 character
2715 -- lines.
2717 -- NONE Clear any previously set style checks.
2719 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2720 -- All subprogram bodies in a given scope (e.g.
2721 -- a package body) must be in alphabetical order.
2722 -- The ordering rule uses normal Ada rules for
2723 -- comparing strings, ignoring casing of letters,
2724 -- except that if there is a trailing numeric
2725 -- suffix, then the value of this suffix is used
2726 -- in the ordering (e.g. Junk2 comes before
2727 -- Junk10).
2729 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2730 -- explicitly marked as such. The declaration of
2731 -- a primitive operation of a type extension that
2732 -- overrides an inherited operation must carry
2733 -- an overriding indicator.
2735 -- PRAGMA Check pragma casing.
2736 -- Pragma names must be written in mixed case,
2737 -- that is, the initial letter and any letter
2738 -- following an underscore must be uppercase.
2739 -- All other letters must be lowercase.
2741 -- REFERENCES Check references.
2742 -- All identifier references must be cased in the
2743 -- same way as the corresponding declaration.
2744 -- No specific casing style is imposed on
2745 -- identifiers. The only requirement is for
2746 -- consistency of references with declarations.
2748 -- SPECS Check separate specs.
2749 -- Separate declarations ("specs") are required
2750 -- for subprograms (a body is not allowed to serve
2751 -- as its own declaration). The only exception is
2752 -- that parameterless library level procedures are
2753 -- not required to have a separate declaration.
2754 -- This exception covers the most frequent form of
2755 -- main program procedures.
2757 -- STANDARD_CASING Check casing of entities in Standard.
2758 -- Any identifier from Standard must be cased to
2759 -- match the presentation in the Ada Reference
2760 -- Manual (for example, Integer and ASCII.NUL).
2762 -- TOKEN Check token spacing.
2763 -- The following token spacing rules are enforced:
2765 -- * The keywords abs and not must be followed
2766 -- by a space.
2768 -- * The token => must be surrounded by spaces.
2770 -- * The token <> must be preceded by a space or
2771 -- a left parenthesis.
2773 -- * Binary operators other than ** must be
2774 -- surrounded by spaces. There is no
2775 -- restriction on the layout of the ** binary
2776 -- operator.
2778 -- * Colon must be surrounded by spaces.
2780 -- * Colon-equal (assignment) must be surrounded
2781 -- by spaces.
2783 -- * Comma must be the first non-blank character
2784 -- on the line, or be immediately preceded by
2785 -- a non-blank character, and must be followed
2786 -- by a space.
2788 -- * If the token preceding a left paren ends
2789 -- with a letter or digit, then a space must
2790 -- separate the two tokens.
2792 -- * A right parenthesis must either be the
2793 -- first non-blank character on a line, or it
2794 -- must be preceded by a non-blank character.
2796 -- * A semicolon must not be preceded by
2797 -- a space, and must not be followed by
2798 -- a non-blank character.
2800 -- * A unary plus or minus may not be followed
2801 -- by a space.
2803 -- * A vertical bar must be surrounded by
2804 -- spaces.
2806 -- In the above rules, appearing in column one is
2807 -- always permitted, that is, counts as meeting
2808 -- either a requirement for a required preceding
2809 -- space, or as meeting a requirement for no
2810 -- preceding space.
2812 -- Appearing at the end of a line is also always
2813 -- permitted, that is, counts as meeting either
2814 -- a requirement for a following space,
2815 -- or as meeting a requirement for no following
2816 -- space.
2818 -- UNNECESSARY_BLANK_LINES
2819 -- Check for unnecessary blank lines.
2820 -- A blank line is considered unnecessary if it
2821 -- appears at the end of the file, or if more
2822 -- than one blank line occurs in sequence.
2824 -- VTABS No form feeds or vertical tabs.
2825 -- Form feeds or vertical tab characters are not
2826 -- permitted in the source text.
2828 -- XTRA_PARENS Check for the use of an unnecessary extra
2829 -- level of parentheses (C - style) around
2830 -- conditions in if statements, while statements
2831 -- and exit statements.
2833 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2834 "!-gnatg,!-gnaty*";
2835 -- NODOC (see /STYLE_CHECKS)
2837 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2838 "--subdirs=>";
2839 -- /SUBDIRS=dir
2841 -- The actual directories (object, exec, library, ...) are subdirectories
2842 -- of the directory specified in the project file. If the subdirectory
2843 -- does not exist, it is created automatically.
2845 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2846 "-gnateD" & '"';
2847 -- /SYMBOL_PREPROCESSING="symbol=value"
2849 -- Define or redefine a preprocessing symbol, associated with value.
2850 -- If "=value" is not specified, then the value of the symbol is True.
2851 -- A symbol is an identifier, following normal Ada (case-insensitive)
2852 -- rules for its syntax, and value is any sequence (including an empty
2853 -- sequence) of characters from the set (letters, digits, period,
2854 -- underline). Ada reserved words may be used as symbols, with the
2855 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2857 -- A symbol declared with this qualifier on the command line replaces
2858 -- a symbol with the same name either in a definition file or specified
2859 -- with a switch -D in the preprocessor data file.
2861 -- This qualifier is similar to qualifier /ASSOCIATE of
2862 -- GNAT PREPROCESSING.
2864 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2865 "-gnats";
2866 -- /NOSYNTAX_ONLY (D)
2867 -- /SYNTAX_ONLY
2869 -- Run GNAT in syntax checking only mode. You can check a series of
2870 -- files in a single command, and can use wild cards to specify such a
2871 -- group of files.
2873 -- You may use other qualifiers in conjunction with this qualifier. In
2874 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2875 -- format of any generated error messages.
2877 -- The output is simply the error messages, if any. No object file or ALI
2878 -- file is generated by a syntax-only compilation. Also, no units other
2879 -- than the one specified are accessed. For example, if a unit "X" with's
2880 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2881 -- access the source file containing unit "Y".
2883 -- Normally, GNAT allows only a single unit in a source file. However,
2884 -- this restriction does not apply in syntax-check-only mode, and it is
2885 -- possible to check a file containing multiple compilation units
2886 -- concatenated together. This is primarily used by the GNAT CHOP
2887 -- command.
2889 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2890 "-gnatT#";
2891 -- /TABLE_MULTIPLIER=nnn
2893 -- All compiler tables start at nnn times usual starting size.
2895 S_GCC_Target_W : aliased constant S := "/WRITE_TARGET_DEPENDENT_INFO=<" &
2896 "-gnatet=>";
2897 -- /WRITE_TARGET_DEPENDENT_INFO=file
2899 -- Generate target dependent information to file.
2901 S_GCC_Target_R : aliased constant S := "/READ_TARGET_DEPENDENT_INFO=<" &
2902 "-gnateT=>";
2903 -- /READ_TARGET_DEPENDENT_INFO=file
2905 -- Read target dependent information from file.
2907 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2908 "-gnatdc";
2909 -- /TRACE_UNITS
2910 -- /NOTRACE_UNITS
2912 -- This switch that does for the frontend what /VERBOSE does for the
2913 -- backend. The system prints the name of each unit, either a compilation
2914 -- unit or nested unit, as it is being analyzed.
2916 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2917 "-gnatt";
2918 -- /TREE_OUTPUT
2919 -- /NOTREE_OUTPUT
2921 -- Cause GNAT to write the internal tree for a unit to a file (with the
2922 -- filetype ATB for a body or ATS for a spec). This is not normally
2923 -- required, but is used by separate analysis tools. Typically these
2924 -- tools do the necessary compilations automatically, so you should never
2925 -- have to specify this switch in normal operation.
2927 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2928 "-gnatq";
2929 -- /TRY_SEMANTICS
2930 -- /NOTRY_SEMANTICS
2932 -- In normal operation mode the compiler first parses the program and
2933 -- determines if there are any syntax errors. If there are, appropriate
2934 -- error messages are generated and compilation is immediately
2935 -- terminated. This qualifier tells GNAT to continue with semantic
2936 -- analysis even if syntax errors have been found. This may enable the
2937 -- detection of more errors in a single run. On the other hand, the
2938 -- semantic analyzer is more likely to encounter some internal fatal
2939 -- error when given a syntactically invalid tree.
2941 S_GCC_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
2942 "--unchecked-shared-lib-imports";
2943 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
2944 -- /UNCHECKED_SHARED_LIB_IMPORTS
2946 -- Allow shared library projects to import static library projects
2948 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2949 "-gnatu";
2950 -- /NOUNITS_LIST (D)
2951 -- /UNITS_LIST
2953 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2954 -- listing includes all units on which the unit being compiled depends
2955 -- either directly or indirectly.
2957 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2958 "-gnatU";
2959 -- /NOUNIQUE_ERROR_TAG (D)
2960 -- /UNIQUE_ERROR_TAG
2962 -- Tag compiler error messages with the string "error: ".
2964 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2965 "-gnatF";
2966 -- /NOUPPERCASE_EXTERNALS (D)
2967 -- /UPPERCASE_EXTERNALS
2969 -- Fold default and explicit external names in pragmas Import and Export
2970 -- to uppercase for compatibility with the default behavior of DEC C.
2972 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2973 "DEFAULT " &
2974 "-gnatVd " &
2975 "NODEFAULT " &
2976 "-gnatVD " &
2977 "COPIES " &
2978 "-gnatVc " &
2979 "NOCOPIES " &
2980 "-gnatVC " &
2981 "COMPONENTS " &
2982 "-gnatVe " &
2983 "NOCOMPONENTS " &
2984 "-gnatVE " &
2985 "FLOATS " &
2986 "-gnatVf " &
2987 "NOFLOATS " &
2988 "-gnatVF " &
2989 "IN_PARAMS " &
2990 "-gnatVi " &
2991 "NOIN_PARAMS " &
2992 "-gnatVI " &
2993 "MOD_PARAMS " &
2994 "-gnatVm " &
2995 "NOMOD_PARAMS " &
2996 "-gnatVM " &
2997 "OPERANDS " &
2998 "-gnatVo " &
2999 "NOOPERANDS " &
3000 "-gnatVO " &
3001 "PARAMETERS " &
3002 "-gnatVp " &
3003 "NOPARAMETERS " &
3004 "-gnatVP " &
3005 "RETURNS " &
3006 "-gnatVr " &
3007 "NORETURNS " &
3008 "-gnatVR " &
3009 "SUBSCRIPTS " &
3010 "-gnatVs " &
3011 "NOSUBSCRIPTS " &
3012 "-gnatVS " &
3013 "TESTS " &
3014 "-gnatVt " &
3015 "NOTESTS " &
3016 "-gnatVT " &
3017 "ALL " &
3018 "-gnatVa " &
3019 "NONE " &
3020 "-gnatVn";
3021 -- /VALIDITY_CHECKING[=(keyword,[...])]
3023 -- Control level of validity checking.
3025 -- DEFAULT (D) In this mode checks are made to prevent
3026 -- erroneous behavior in accordance with the RM.
3027 -- Notably extra checks may be needed for case
3028 -- statements and subscripted array assignments.
3030 -- NONE No special checks for invalid values are
3031 -- performed. This means that references to
3032 -- uninitialized variables can cause erroneous
3033 -- behavior from constructs like case statements
3034 -- and subscripted array assignments. In this
3035 -- mode, invalid values can lead to erroneous
3036 -- behavior.
3038 -- FULL Every assignment is checked for validity, so
3039 -- that it is impossible to assign invalid values.
3040 -- The RM specifically allows such assignments,
3041 -- but in this mode, invalid values can never be
3042 -- assigned, and an attempt to perform such an
3043 -- assignment immediately raises Constraint_Error.
3044 -- This behavior is allowed (but not required) by
3045 -- the RM. This mode is intended as a debugging aid,
3046 -- and may be useful in helping to track down
3047 -- uninitialized variables. It may be useful to
3048 -- use this in conjunction with the Normalize_Scalars
3049 -- pragma which attempts to initialize with invalid
3050 -- values where possible.
3052 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
3053 "-v";
3054 -- /VERBOSE
3055 -- /NOVERBOSE
3057 -- Show commands generated by the GCC driver. Normally used only for
3058 -- debugging purposes or if you need to be sure what version of the
3059 -- compiler you are executing.
3061 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
3062 "-S,-verbose_asm,!-c";
3063 -- /NOASM (D)
3064 -- /ASM
3066 -- Use to cause the assembler source file to be generated, using S as the
3067 -- filetype, instead of the object file. This may be useful if you need
3068 -- to examine the generated assembly code.
3070 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
3071 "DEFAULT " &
3072 "!-gnatws,!-gnatwe " &
3073 "ALL " &
3074 "-gnatwa " &
3075 "EVERY " &
3076 "-gnatw.e " &
3077 "OPTIONAL " &
3078 "-gnatwa " &
3079 "NOOPTIONAL " &
3080 "-gnatwA " &
3081 "NOALL " &
3082 "-gnatwA " &
3083 "ALL_GCC " &
3084 "-Wall " &
3085 "FAILING_ASSERTIONS " &
3086 "-gnatw.a " &
3087 "NO_FAILING_ASSERTIONS " &
3088 "-gnatw.A " &
3089 "BAD_FIXED_VALUES " &
3090 "-gnatwb " &
3091 "NO_BAD_FIXED_VALUES " &
3092 "-gnatwB " &
3093 "BIASED_REPRESENTATION " &
3094 "-gnatw.b " &
3095 "NO_BIASED_REPRESENTATION " &
3096 "-gnatw.B " &
3097 "CONDITIONALS " &
3098 "-gnatwc " &
3099 "NOCONDITIONALS " &
3100 "-gnatwC " &
3101 "MISSING_COMPONENT_CLAUSES " &
3102 "-gnatw.c " &
3103 "NOMISSING_COMPONENT_CLAUSES " &
3104 "-gnatw.C " &
3105 "IMPLICIT_DEREFERENCE " &
3106 "-gnatwd " &
3107 "NO_IMPLICIT_DEREFERENCE " &
3108 "-gnatwD " &
3109 "TAG_WARNINGS " &
3110 "-gnatw.d " &
3111 "NOTAG_WARNINGS " &
3112 "-gnatw.D " &
3113 "ERRORS " &
3114 "-gnatwe " &
3115 "UNREFERENCED_FORMALS " &
3116 "-gnatwf " &
3117 "NOUNREFERENCED_FORMALS " &
3118 "-gnatwF " &
3119 "UNRECOGNIZED_PRAGMAS " &
3120 "-gnatwg " &
3121 "NOUNRECOGNIZED_PRAGMAS " &
3122 "-gnatwG " &
3123 "HIDING " &
3124 "-gnatwh " &
3125 "NOHIDING " &
3126 "-gnatwH " &
3127 "AVOIDGAPS " &
3128 "-gnatw.h " &
3129 "NOAVOIDGAPS " &
3130 "-gnatw.H " &
3131 "IMPLEMENTATION " &
3132 "-gnatwi " &
3133 "NOIMPLEMENTATION " &
3134 "-gnatwI " &
3135 "OBSOLESCENT " &
3136 "-gnatwj " &
3137 "NOOBSOLESCENT " &
3138 "-gnatwJ " &
3139 "CONSTANT_VARIABLES " &
3140 "-gnatwk " &
3141 "NOCONSTANT_VARIABLES " &
3142 "-gnatwK " &
3143 "STANDARD_REDEFINITION " &
3144 "-gnatw.k " &
3145 "NOSTANDARD_REDEFINITION " &
3146 "-gnatw.K " &
3147 "ELABORATION " &
3148 "-gnatwl " &
3149 "NOELABORATION " &
3150 "-gnatwL " &
3151 "MODIFIED_UNREF " &
3152 "-gnatwm " &
3153 "NOMODIFIED_UNREF " &
3154 "-gnatwM " &
3155 "SUSPICIOUS_MODULUS " &
3156 "-gnatw.m " &
3157 "NOSUSPICIOUS_MODULUS " &
3158 "-gnatw.M " &
3159 "NORMAL " &
3160 "-gnatwn " &
3161 "OVERLAYS " &
3162 "-gnatwo " &
3163 "NOOVERLAYS " &
3164 "-gnatwO " &
3165 "OUT_PARAM_UNREF " &
3166 "-gnatw.o " &
3167 "NOOUT_PARAM_UNREF " &
3168 "-gnatw.O " &
3169 "INEFFECTIVE_INLINE " &
3170 "-gnatwp " &
3171 "NOINEFFECTIVE_INLINE " &
3172 "-gnatwP " &
3173 "MISSING_PARENS " &
3174 "-gnatwq " &
3175 "PARAMETER_ORDER " &
3176 "-gnatw.p " &
3177 "NOPARAMETER_ORDER " &
3178 "-gnatw.P " &
3179 "NOMISSING_PARENS " &
3180 "-gnatwQ " &
3181 "REDUNDANT " &
3182 "-gnatwr " &
3183 "NOREDUNDANT " &
3184 "-gnatwR " &
3185 "OBJECT_RENAMES " &
3186 "-gnatw.r " &
3187 "NOOBJECT_RENAMES " &
3188 "-gnatw.R " &
3189 "SUPPRESS " &
3190 "-gnatws " &
3191 "OVERRIDING_SIZE " &
3192 "-gnatw.s " &
3193 "NOOVERRIDING_SIZE " &
3194 "-gnatw.S " &
3195 "DELETED_CODE " &
3196 "-gnatwt " &
3197 "NODELETED_CODE " &
3198 "-gnatwT " &
3199 "UNINITIALIZED " &
3200 "-Wuninitialized " &
3201 "UNUSED " &
3202 "-gnatwu " &
3203 "NOUNUSED " &
3204 "-gnatwU " &
3205 "UNORDERED_ENUMERATIONS " &
3206 "-gnatw.u " &
3207 "NOUNORDERED_ENUMERATIONS " &
3208 "-gnatw.U " &
3209 "VARIABLES_UNINITIALIZED " &
3210 "-gnatwv " &
3211 "NOVARIABLES_UNINITIALIZED " &
3212 "-gnatwV " &
3213 "REVERSE_BIT_ORDER " &
3214 "-gnatw.v " &
3215 "NOREVERSE_BIT_ORDER " &
3216 "-gnatw.V " &
3217 "LOWBOUND_ASSUMED " &
3218 "-gnatww " &
3219 "NOLOWBOUND_ASSUMED " &
3220 "-gnatwW " &
3221 "WARNINGS_OFF_PRAGMAS " &
3222 "-gnatw.w " &
3223 "NO_WARNINGS_OFF_PRAGMAS " &
3224 "-gnatw.W " &
3225 "IMPORT_EXPORT_PRAGMAS " &
3226 "-gnatwx " &
3227 "NOIMPORT_EXPORT_PRAGMAS " &
3228 "-gnatwX " &
3229 "LOCAL_RAISE_HANDLING " &
3230 "-gnatw.x " &
3231 "NOLOCAL_RAISE_HANDLING " &
3232 "-gnatw.X " &
3233 "ADA_2005_COMPATIBILITY " &
3234 "-gnatwy " &
3235 "NOADA_2005_COMPATIBILITY " &
3236 "-gnatwY " &
3237 "WHY_SPEC_NEEDS_BODY " &
3238 "-gnatw.y " &
3239 "NO_WHY_SPEC_NEEDS_BODY " &
3240 "-gnatw.Y " &
3241 "UNCHECKED_CONVERSIONS " &
3242 "-gnatwz " &
3243 "NOUNCHECKED_CONVERSIONS " &
3244 "-gnatwZ";
3245 -- /NOWARNINGS
3247 -- Suppress the output of all warning messages from the GNAT front end.
3248 -- Note that it does not suppress warnings from the gcc back end.
3250 -- /WARNINGS[=(keyword[,...])]
3252 -- In addition to error messages, corresponding to illegalities as
3253 -- defined in the reference manual, the compiler detects two kinds of
3254 -- warning situations. First, the compiler considers some constructs
3255 -- suspicious and generates a warning message to alert you to a possible
3256 -- error. Second, if the compiler detects a situation that is sure to
3257 -- raise an exception at runtime, it generates a warning message.
3259 -- You may specify the following keywords to change this behavior:
3261 -- DEFAULT (D) The default behavior above.
3263 -- ALL Activate all optional warnings.
3264 -- Activates most optional warning messages,
3265 -- see remaining list in this section for
3266 -- details on optional warning messages that
3267 -- can be individually controlled.
3268 -- The warnings that are not turned on by
3269 -- this option are BIASED_ROUNDING,
3270 -- IMPLICIT_DEREFERENCE, HIDING and
3271 -- ELABORATION. All other optional Ada
3272 -- warnings are turned on.
3274 -- EVERY Activate every optional warning.
3275 -- Activates all optional warnings, including
3276 -- those listed above as exceptions for ALL.
3278 -- NOALL Suppress all optional errors.
3279 -- Suppresses all optional warning messages
3280 -- that can be activated by option ALL.
3282 -- ALL_GCC Request additional messages from the GCC
3283 -- backend. Most of these are not relevant
3284 -- to Ada.
3286 -- CONDITIONALS Activate warnings for conditional
3287 -- Expressions used in tests that are known
3288 -- to be True or False at compile time. The
3289 -- default is that such warnings are not
3290 -- generated.
3292 -- NOCONDITIONALS Suppress warnings for conditional
3293 -- expressions used in tests that are known
3294 -- to be True or False at compile time.
3296 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3297 -- The use of a prefix of an access type in an
3298 -- indexed component, slice, or selected component
3299 -- without an explicit .all will generate
3300 -- a warning. With this warning enabled, access
3301 -- checks occur only at points where an explicit
3302 -- .all appears in the source code (assuming no
3303 -- warnings are generated as a result of this
3304 -- option). The default is that such warnings are
3305 -- not generated. Note that /WARNINGS=ALL does not
3306 -- affect the setting of this warning option.
3308 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
3309 -- in indexed components, slices, and selected
3310 -- components.
3312 -- ELABORATION Activate warnings on missing pragma
3313 -- Elaborate_All statements. The default is
3314 -- that such warnings are not generated.
3316 -- NOELABORATION Suppress warnings on missing pragma
3317 -- Elaborate_All statements.
3319 -- ERRORS Warning messages are to be treated as errors.
3320 -- The warning string still appears, but the
3321 -- warning messages are counted as errors, and
3322 -- prevent the generation of an object file.
3324 -- HIDING Activate warnings on hiding declarations.
3325 -- A declaration is considered hiding if it is
3326 -- for a non-overloadable entity, and it declares
3327 -- an entity with the same name as some other
3328 -- entity that is directly or use-visible. The
3329 -- default is that such warnings are not
3330 -- generated.
3332 -- NOHIDING Suppress warnings on hiding declarations.
3334 -- IMPLEMENTATION Activate warnings for a with of an internal
3335 -- GNAT implementation unit, defined as any unit
3336 -- from the Ada, Interfaces, GNAT, DEC or
3337 -- System hierarchies that is not documented in
3338 -- either the Ada Reference Manual or the GNAT
3339 -- Programmer's Reference Manual. Such units are
3340 -- intended only for internal implementation
3341 -- purposes and should not be with'ed by user
3342 -- programs. The default is that such warnings
3343 -- are generated.
3345 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3346 -- GNAT implementation unit.
3348 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3349 -- Activates warnings for failure of front end
3350 -- inlining (activated by /INLINE=FULL) to inline
3351 -- a particular call. There are many reasons for
3352 -- not being able to inline a call, including most
3353 -- commonly that the call is too complex to
3354 -- inline. This warning can also be turned on
3355 -- using /INLINE=FULL.
3357 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3358 -- Suppresses warnings on ineffective pragma
3359 -- Inlines. If the inlining mechanism cannot
3360 -- inline a call, it will simply ignore the
3361 -- request silently.
3363 -- MISSING_COMPONENT_CLAUSES
3364 -- Activate warnings for cases when there are
3365 -- component clauses for a record type, but not
3366 -- for every component of the record.
3368 -- NOMISSING_COMPONENT_CLAUSES
3369 -- Suppress warnings for cases when there are
3370 -- missing component clauses for a record type.
3372 -- MISSING_PARENS
3373 -- Activate warnings for cases where parentheses
3374 -- are not used and the result is potential
3375 -- ambiguity from a reader's point of view.
3376 -- For example (not a > b) when a and b are
3377 -- modular means (not (a) > b) and very likely
3378 -- the programmer intended (not (a > b)).
3380 -- NOMISSING_PARENS
3381 -- Suppress warnings for cases where parentheses
3382 -- are not used and the result is potential
3383 -- ambiguity from a reader's point of view.
3385 -- MODIFIED_UNREF Activates warnings for variables that are
3386 -- assigned (using an initialization value or with
3387 -- one or more assignment statements) but whose
3388 -- value is never read. The warning is suppressed
3389 -- for volatile variables and also for variables
3390 -- that are renamings of other variables or for
3391 -- which an address clause is given. This warning
3392 -- can also be turned on using /WARNINGS/OPTIONAL.
3394 -- NOMODIFIED_UNREF Disables warnings for variables that are
3395 -- assigned or initialized, but never read.
3397 -- NORMAL Sets normal warning mode, in which enabled
3398 -- warnings are issued and treated as warnings
3399 -- rather than errors. This is the default mode.
3400 -- It can be used to cancel the effect of an
3401 -- explicit /WARNINGS=SUPPRESS or
3402 -- /WARNINGS=ERRORS. It also cancels the effect
3403 -- of the implicit /WARNINGS=ERRORS that is
3404 -- activated by the use of /STYLE=GNAT.
3406 -- OBSOLESCENT Activates warnings for calls to subprograms
3407 -- marked with pragma Obsolescent and for use of
3408 -- features in Annex J of the Ada Reference
3409 -- Manual. In the case of Annex J, not all
3410 -- features are flagged. In particular use of the
3411 -- renamed packages (like Text_IO), use of package
3412 -- ASCII and use of the attribute 'Constrained are
3413 -- not flagged, since these are very common and
3414 -- would generate many annoying positive warnings.
3415 -- The default is that such warnings are not
3416 -- generated.
3418 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3419 -- features.
3421 -- OBJECT_RENAME Activate warnings for non limited objects
3422 -- renaming parameterless functions.
3424 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3425 -- renaming parameterless functions.
3427 -- OPTIONAL Equivalent to ALL.
3429 -- NOOPTIONAL Equivalent to NOALL.
3431 -- OVERLAYS Activate warnings for possibly unintended
3432 -- initialization effects of defining address
3433 -- clauses that cause one variable to overlap
3434 -- another. The default is that such warnings
3435 -- are generated.
3437 -- NOOVERLAYS Suppress warnings on possibly unintended
3438 -- initialization effects of defining address
3439 -- clauses that cause one variable to overlap
3440 -- another.
3442 -- REDUNDANT Activate warnings for redundant constructs.
3443 -- In particular assignments of a variable to
3444 -- itself, and a type conversion that converts
3445 -- an object to its own type. The default
3446 -- is that such warnings are not generated.
3448 -- NOREDUNDANT Suppress warnings for redundant constructs.
3450 -- SUPPRESS Completely suppress the output of all warning
3451 -- messages. Same as /NOWARNINGS.
3453 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3454 -- Causes warnings to be generated for
3455 -- unchecked conversions when the two types are
3456 -- known at compile time to have different sizes.
3457 -- The default is that such warnings are
3458 -- generated.
3460 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3462 -- UNINITIALIZED Generate warnings for uninitialized variables.
3463 -- This is a GCC option, not an Ada option.
3464 -- You must also specify the /OPTIMIZE qualifier
3465 -- with a value other than NONE (in other words,
3466 -- this keyword works only if optimization is
3467 -- turned on).
3469 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3470 -- Causes a warning to be generated if a formal
3471 -- parameter is not referenced in the body of
3472 -- the subprogram. This warning can also be turned
3473 -- on using option ALL or UNUSED.
3475 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3476 -- Suppresses warnings for unreferenced formal
3477 -- parameters. Note that the combination UNUSED
3478 -- followed by NOUNREFERENCED_FORMALS has the
3479 -- effect of warning on unreferenced entities
3480 -- other than subprogram formals.
3482 -- UNUSED Activates warnings to be generated for entities
3483 -- that are defined but not referenced, and for
3484 -- units that are with'ed and not referenced. In
3485 -- the case of packages, a warning is also
3486 -- generated if no entities in the package are
3487 -- referenced. This means that if the package
3488 -- is referenced but the only references are in
3489 -- use clauses or renames declarations, a warning
3490 -- is still generated. A warning is also generated
3491 -- for a generic package that is with'ed but never
3492 -- instantiated. In the case where a package or
3493 -- subprogram body is compiled, and there is a
3494 -- with on the corresponding spec that is only
3495 -- referenced in the body, a warning is also
3496 -- generated, noting that the with can be moved
3497 -- to the body. The default is that such warnings
3498 -- are not generated.
3500 -- NOUNUSED Suppress warnings for unused entities and
3501 -- packages.
3503 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3504 -- Causes warnings to be generated when a variable
3505 -- is accessed which may not be properly
3506 -- uninitialized. The default is that such
3507 -- warnings are generated.
3509 -- NOVARIABLES_UNINITIALIZED
3510 -- Suppress warnings for uninitialized variables.
3512 -- TAG_WARNINGS Causes the string [xxx] to be added to warnings
3513 -- that are controlled by the warning string xxx,
3514 -- e.g. [REDUNDANT], or if the warning is enabled
3515 -- by default, the tag is [enabled by default].
3517 -- NOTAG_WARNINGS Turns off warning tag output (default setting).
3519 -- WHY_SPEC_NEEDS_BODY Generates information messages showing why a
3520 -- package specification requires a body.
3522 -- NO_WHY_SPEC_NEEDS_BODY Turns off information messages showing why a
3523 -- package specification requires a body.
3525 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3526 "-gnatws";
3527 -- NODOC (see /WARNINGS)
3529 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3530 "-w";
3531 -- /NO_BACK_END_WARNINGS
3533 -- Inhibit all warning messages of the GCC back-end.
3535 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3536 "BRACKETS " &
3537 "-gnatWb " &
3538 "HEX " &
3539 "-gnatWh " &
3540 "UPPER " &
3541 "-gnatWu " &
3542 "SHIFT_JIS " &
3543 "-gnatWs " &
3544 "UTF8 " &
3545 "-gnatW8 " &
3546 "EUC " &
3547 "-gnatWe";
3548 -- /NOWIDE_CHARACTER_ENCODING (D)
3549 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3551 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3552 -- is one of the following:
3554 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3555 -- are four hexadecimal digits representing the coding
3556 -- ('Pos value) of the character in type
3557 -- Wide_Character. The hexadecimal digits may use upper
3558 -- or lower case letters.
3560 -- This notation can also be used for upper half
3561 -- Character values using the format ["xx"] where XX is
3562 -- two hexadecimal digits representing the coding ('Pos
3563 -- value) of the character in type Character (or
3564 -- Wide_Character). The hexadecimal digits may use upper
3565 -- of lower case.
3567 -- NONE No wide characters are allowed. Same
3568 -- as /NOWIDE_CHARACTER_ENCODING.
3570 -- HEX In this encoding, a wide character is represented by
3571 -- the following five character sequence: ESC a b c d
3572 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3573 -- characters (using uppercase letters) of the wide
3574 -- character code. For example, ESC A345 is used to
3575 -- represent the wide character with code 16#A345#. This
3576 -- scheme is compatible with use of the full
3577 -- Wide_Character set.
3579 -- UPPER The wide character with encoding 16#abcd# where the
3580 -- upper bit is on (in other words, "a" is in the range
3581 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3582 -- The second byte may never be a format control
3583 -- character, but is not required to be in the upper
3584 -- half. This method can be also used for shift-JIS or
3585 -- EUC, where the internal coding matches the external
3586 -- coding.
3588 -- SHIFT_JIS A wide character is represented by a two-character
3589 -- sequence, 16#ab# and 16#cd#, with the restrictions
3590 -- described for upper-half encoding as described above.
3591 -- The internal character code is the corresponding JIS
3592 -- character according to the standard algorithm for
3593 -- Shift-JIS conversion. Only characters defined in the
3594 -- JIS code set table can be used with this encoding
3595 -- method.
3597 -- UTF8 A wide character is represented using
3598 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3599 -- R of ISO 10646-1/Am.2. Depending on the character
3600 -- value, the representation is a one, two, or three byte
3601 -- sequence:
3603 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3604 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3605 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3607 -- where the xxx bits correspond to the left-padded bits
3608 -- of the 16-bit character value. Note that all lower
3609 -- half ASCII characters are represented as ASCII bytes
3610 -- and all upper half characters and other wide characters
3611 -- are represented as sequences of upper-half (The full
3612 -- UTF-8 scheme allows for encoding 31-bit characters as
3613 -- 6-byte sequences, but in this implementation, all UTF-8
3614 -- sequences of four or more bytes length will be treated
3615 -- as illegal).
3617 -- EUC A wide character is represented by a two-character
3618 -- sequence 16#ab# and 16#cd#, with both characters being
3619 -- in the upper half. The internal character code is the
3620 -- corresponding JIS character according to the EUC
3621 -- encoding algorithm. Only characters defined in the JIS
3622 -- code set table can be used with this encoding method.
3624 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3625 "-gnatWn";
3626 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3628 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3629 "-gnatD";
3630 -- /NOXDEBUG (D)
3631 -- /XDEBUG
3633 -- Output expanded source files for source level debugging.
3634 -- The expanded source (see /EXPAND_SOURCE) is written to files
3635 -- with names formed by appending "_DG" to the input file name,
3636 -- The debugging information generated by the /DEBUG qualifier will then
3637 -- refer to the generated file. This allows source level debugging using
3638 -- the generated code which is sometimes useful for complex code, for
3639 -- example to find out exactly which part of a complex construction
3640 -- raised an exception. The maximum line length for the output is 72.
3642 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3643 "-gnatD=#";
3644 -- /LXDEBUG=nnn
3646 -- Output expanded source files for source level debugging.
3647 -- The expanded source (see /EXPAND_SOURCE) is written to files
3648 -- with names formed by appending "_DG" to the input file name,
3649 -- The debugging information generated by the /DEBUG qualifier will then
3650 -- refer to the generated file. This allows source level debugging using
3651 -- the generated code which is sometimes useful for complex code, for
3652 -- example to find out exactly which part of a complex construction
3653 -- raised an exception. The parameter is the maximum line length for
3654 -- the output.
3656 S_GCC_Xref : aliased constant S := "/XREF=" &
3657 "GENERATE " &
3658 "!-gnatx " &
3659 "SUPPRESS " &
3660 "-gnatx";
3661 -- /XREF[=keyword]
3663 -- Normally the compiler generates full cross-referencing information in
3664 -- the .ALI file. This information is used by a number of tools,
3665 -- including GNAT FIND and GNAT XREF.
3667 -- GENERATE (D) Generate cross-referencing information.
3669 -- SUPPRESS Suppress cross-referencing information.
3670 -- This saves some space and may slightly
3671 -- speed up compilation, but means that some
3672 -- tools cannot be used.
3674 GCC_Switches : aliased constant Switches :=
3675 (S_GCC_Ada_83 'Access,
3676 S_GCC_Ada_95 'Access,
3677 S_GCC_Ada_05 'Access,
3678 S_GCC_Ada_2005'Access,
3679 S_GCC_Ada_12 'Access,
3680 S_GCC_Ada_2012'Access,
3681 S_GCC_Add 'Access,
3682 S_GCC_AlCheck 'Access,
3683 S_GCC_Asm 'Access,
3684 S_GCC_AValid 'Access,
3685 S_GCC_CategW 'Access,
3686 S_GCC_Checks 'Access,
3687 S_GCC_Chflov 'Access,
3688 S_GCC_ChecksX 'Access,
3689 S_GCC_Compres 'Access,
3690 S_GCC_Config 'Access,
3691 S_GCC_Current 'Access,
3692 S_GCC_Debug 'Access,
3693 S_GCC_DebugX 'Access,
3694 S_GCC_Data 'Access,
3695 S_GCC_DisAtom 'Access,
3696 S_GCC_Dist 'Access,
3697 S_GCC_DistX 'Access,
3698 S_GCC_Error 'Access,
3699 S_GCC_ErrorX 'Access,
3700 S_GCC_Expand 'Access,
3701 S_GCC_Lexpand 'Access,
3702 S_GCC_Except 'Access,
3703 S_GCC_Extend 'Access,
3704 S_GCC_Ext 'Access,
3705 S_GCC_File 'Access,
3706 S_GCC_Follow 'Access,
3707 S_GCC_Force 'Access,
3708 S_GCC_Full 'Access,
3709 S_GCC_Generate'Access,
3710 S_GCC_GNAT 'Access,
3711 S_GCC_Help 'Access,
3712 S_GCC_Ident 'Access,
3713 S_GCC_IdentX 'Access,
3714 S_GCC_IgnoreR 'Access,
3715 S_GCC_IgnoreS 'Access,
3716 S_GCC_IgnoreU 'Access,
3717 S_GCC_Immed 'Access,
3718 S_GCC_Inline 'Access,
3719 S_GCC_InlineX 'Access,
3720 S_GCC_Intsrc 'Access,
3721 S_GCC_Just 'Access,
3722 S_GCC_JustX 'Access,
3723 S_GCC_Length 'Access,
3724 S_GCC_List 'Access,
3725 S_GCC_Output 'Access,
3726 S_GCC_Machine 'Access,
3727 S_GCC_Mapping 'Access,
3728 S_GCC_MaxI 'Access,
3729 S_GCC_Multi 'Access,
3730 S_GCC_Mess 'Access,
3731 S_GCC_Nesting 'Access,
3732 S_GCC_Noadc 'Access,
3733 S_GCC_Noload 'Access,
3734 S_GCC_Nostinc 'Access,
3735 S_GCC_Nostlib 'Access,
3736 S_GCC_NoWarnP 'Access,
3737 S_GCC_Opt 'Access,
3738 S_GCC_OptX 'Access,
3739 S_GCC_Overflo 'Access,
3740 S_GCC_PValid 'Access,
3741 S_GCC_Pointer 'Access,
3742 S_GCC_Polling 'Access,
3743 S_GCC_Project 'Access,
3744 S_GCC_Psta 'Access,
3745 S_GCC_Report 'Access,
3746 S_GCC_ReportX 'Access,
3747 S_GCC_Repinfo 'Access,
3748 S_GCC_RepinfX 'Access,
3749 S_GCC_RTS 'Access,
3750 S_GCC_SCO 'Access,
3751 S_GCC_Search 'Access,
3752 S_GCC_Src_Info'Access,
3753 S_GCC_Style 'Access,
3754 S_GCC_StyleX 'Access,
3755 S_GCC_Subdirs 'Access,
3756 S_GCC_Symbol 'Access,
3757 S_GCC_Syntax 'Access,
3758 S_GCC_Table 'Access,
3759 S_GCC_Target_W'Access,
3760 S_GCC_Target_R'Access,
3761 S_GCC_Trace 'Access,
3762 S_GCC_Tree 'Access,
3763 S_GCC_Trys 'Access,
3764 S_GCC_USL 'Access,
3765 S_GCC_Units 'Access,
3766 S_GCC_Unique 'Access,
3767 S_GCC_Upcase 'Access,
3768 S_GCC_Valid 'Access,
3769 S_GCC_Verbose 'Access,
3770 S_GCC_Verb_Asm'Access,
3771 S_GCC_Warn 'Access,
3772 S_GCC_WarnX 'Access,
3773 S_GCC_Wide 'Access,
3774 S_GCC_WideX 'Access,
3775 S_GCC_No_Back 'Access,
3776 S_GCC_Xdebug 'Access,
3777 S_GCC_Lxdebug 'Access,
3778 S_GCC_Xref 'Access);
3780 ----------------------------
3781 -- Switches for GNAT ELIM --
3782 ----------------------------
3784 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3785 "-aP*";
3786 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3788 -- Add directories to the project search path.
3790 S_Elim_All : aliased constant S := "/ALL " &
3791 "-a";
3792 -- /NOALL (D)
3793 -- /ALL
3795 -- Also look for subprograms from the GNAT run time that can be
3796 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3797 -- the entire program must be recompiled with qualifier /ALL_FILES of
3798 -- GNAT MAKE.
3800 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3801 "-b>";
3802 -- /BIND_FILE=file_name
3804 -- Specifies file_name as the bind file to process. If this qualifier is
3805 -- not used, the name of the bind file is computed from the full expanded
3806 -- Ada name of a main subprogram.
3808 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3809 "--GCC=@";
3810 -- /COMPILER=path_name
3812 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3813 -- available on the path.
3815 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3816 "-C>";
3817 -- /CONFIGURATION_PRAGMAS=path_name
3819 -- Specifies a file that contains configuration pragmas.
3820 -- The file must be specified with absolute path.
3822 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3823 "!-I-";
3824 -- /CURRENT_DIRECTORY (D)
3825 -- /NOCURRENT_DIRECTORY
3827 -- Look for source files in the default directory.
3829 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3830 "-X" & '"';
3831 -- /EXTERNAL_REFERENCE="name=val"
3833 -- Specifies an external reference to the project manager. Useful only if
3834 -- /PROJECT_FILE is used.
3836 -- Example:
3837 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3839 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3840 "-eL";
3841 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3842 -- /FOLLOW_LINKS_FOR_FILES
3844 -- Follow links when parsing project files
3846 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3847 "--GNATMAKE=@";
3848 -- /GNATMAKE=path_name
3850 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3851 -- on the path.
3853 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3854 "DEFAULT " &
3855 "-vP0 " &
3856 "MEDIUM " &
3857 "-vP1 " &
3858 "HIGH " &
3859 "-vP2";
3860 -- /MESSAGES_PROJECT_FILE[=messages-option]
3862 -- Specifies the "verbosity" of the parsing of project files.
3863 -- messages-option may be one of the following:
3865 -- DEFAULT (D) No messages are output if there is no error or warning.
3867 -- MEDIUM A small number of messages are output.
3869 -- HIGH A great number of messages are output, most of them not
3870 -- being useful for the user.
3872 S_Elim_Nodisp : aliased constant S := "/NO_DISPATCH " &
3873 "--no-elim-dispatch";
3874 -- /NONO_DISPATCH (D)
3875 -- /NO_DISPATCH
3877 -- Do not generate pragmas for dispatching operations.
3879 S_Elim_Ignore : aliased constant S := "/IGNORE=@" &
3880 "--ignore=@";
3881 -- /IGNORE=filename
3883 -- Do not generate pragmas for subprograms declared in the sources
3884 -- listed in a specified file
3886 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3887 "-P>";
3888 -- /PROJECT_FILE=filename
3890 -- Specifies the main project file to be used. The project files rooted
3891 -- at the main project file will be parsed before the invocation of the
3892 -- gnatelim. The source directories to be searched will be communicated
3893 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3895 S_Elim_Quiet : aliased constant S := "/QUIET " &
3896 "-q";
3897 -- /NOQUIET (D)
3898 -- /QUIET
3900 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3901 -- the number of program units left to be processed. This option turns
3902 -- this trace off.
3904 S_Elim_Files : aliased constant S := "/FILES=@" &
3905 "-files=@";
3907 -- /FILES=filename
3909 -- Take as arguments the files that are listed in the specified
3910 -- text file.
3912 S_Elim_Log : aliased constant S := "/LOG " &
3913 "-l";
3914 -- /NOLOG (D)
3915 -- /LOG
3917 -- Duplicate all the output sent to Stderr into a default log file.
3919 S_Elim_Logfile : aliased constant S := "/LOGFILE=@" &
3920 "-l@";
3922 -- /LOGFILE=logfilename
3924 -- Duplicate all the output sent to Stderr into a specified log file.
3926 S_Elim_Main : aliased constant S := "/MAIN=@" &
3927 "-main=@";
3929 -- /MAIN=filename
3931 -- Specify the main subprogram of the partition to analyse.
3933 S_Elim_Out : aliased constant S := "/OUTPUT=@" &
3934 "-o@";
3935 -- /OUTPUT=filename
3937 -- Specify the name of the output file.
3939 S_Elim_Time : aliased constant S := "/TIME " &
3940 "-t";
3941 -- /NOTIME (D)
3942 -- /TIME
3944 -- Print out execution time
3946 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3947 "-I*";
3948 -- /SEARCH=(directory, ...)
3950 -- When looking for source files also look in the specified directories.
3952 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3953 "--subdirs=>";
3954 -- /SUBDIRS=dir
3956 -- The actual directories (object, exec, library, ...) are subdirectories
3957 -- of the directory specified in the project file. If the subdirectory
3958 -- does not exist, it is created automatically.
3960 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3961 "-v";
3962 -- /NOVERBOSE (D)
3963 -- /VERBOSE
3965 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3966 -- to the standard output stream. Also, in addition to the number of
3967 -- program units left, GNAT ELIM will output the name of the current unit
3968 -- being processed.
3970 S_Elim_Warn : aliased constant S := "/WARNINGS=" &
3971 "NORMAL " &
3972 "-wn " &
3973 "QUIET " &
3974 "-ws";
3976 -- /WARNINGS[=(keyword[,...])]
3978 -- The following keywords are supported:
3980 -- NORMAL (D) Print warning all the messages.
3981 -- QUIET Some warning messages are suppressed
3983 Elim_Switches : aliased constant Switches :=
3984 (S_Elim_Add 'Access,
3985 S_Elim_All 'Access,
3986 S_Elim_Bind 'Access,
3987 S_Elim_Comp 'Access,
3988 S_Elim_Config 'Access,
3989 S_Elim_Current 'Access,
3990 S_Elim_Ext 'Access,
3991 S_Elim_Files 'Access,
3992 S_Elim_Follow 'Access,
3993 S_Elim_GNATMAKE'Access,
3994 S_Elim_Log 'Access,
3995 S_Elim_Logfile 'Access,
3996 S_Elim_Main 'Access,
3997 S_Elim_Mess 'Access,
3998 S_Elim_Nodisp 'Access,
3999 S_Elim_Out 'Access,
4000 S_Elim_Project 'Access,
4001 S_Elim_Quiet 'Access,
4002 S_Elim_Search 'Access,
4003 S_Elim_Subdirs 'Access,
4004 S_Elim_Time 'Access,
4005 S_Elim_Verb 'Access,
4006 S_Elim_Warn 'Access);
4008 ----------------------------
4009 -- Switches for GNAT FIND --
4010 ----------------------------
4012 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4013 "-aP*";
4014 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4016 -- Add directories to the project search path.
4018 S_Find_All : aliased constant S := "/ALL_FILES " &
4019 "-a";
4020 -- /NOALL_FILES (D)
4021 -- /ALL_FILES
4023 -- If this switch is present, FIND and XREF will parse the read-only
4024 -- files found in the library search path. Otherwise, these files will
4025 -- be ignored. This option can be used to protect Gnat sources or your
4026 -- own libraries from being parsed, thus making FIND and XREF much
4027 -- faster, and their output much smaller.
4029 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
4030 "-d";
4031 -- /NODERIVED_TYPE_INFORMATION (D)
4032 -- /DERIVED_TYPE_INFORMATION
4034 -- Output the parent type reference for each matching derived types.
4036 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
4037 "-e";
4038 -- /NOEXPRESSIONS (D)
4039 -- /EXPRESSIONS
4041 -- By default, FIND accepts the simple regular expression set for pattern.
4042 -- If this switch is set, then the pattern will be considered as a full
4043 -- Unix-style regular expression.
4045 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4046 "-X" & '"';
4047 -- /EXTERNAL_REFERENCE="name=val"
4049 -- Specifies an external reference to the project manager. Useful only if
4050 -- /PROJECT_FILE is used.
4052 -- Example:
4053 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4055 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4056 "-eL";
4057 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4058 -- /FOLLOW_LINKS_FOR_FILES
4060 -- Follow links when parsing project files
4062 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
4063 "-f";
4064 -- /NOFULL_PATHNAME (D)
4065 -- /FULL_PATHNAME
4067 -- If this switch is set, the output file names will be preceded by their
4068 -- directory (if the file was found in the search path). If this switch
4069 -- is not set, the directory will not be printed.
4071 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
4072 "-g";
4073 -- /NOIGNORE_LOCALS (D)
4074 -- /IGNORE_LOCALS
4076 -- If this switch is set, information is output only for library-level
4077 -- entities, ignoring local entities. The use of this switch may
4078 -- accelerate FIND and XREF.
4080 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4081 "DEFAULT " &
4082 "-vP0 " &
4083 "MEDIUM " &
4084 "-vP1 " &
4085 "HIGH " &
4086 "-vP2";
4087 -- /MESSAGES_PROJECT_FILE[=messages-option]
4089 -- Specifies the "verbosity" of the parsing of project files.
4090 -- messages-option may be one of the following:
4092 -- DEFAULT (D) No messages are output if there is no error or warning.
4094 -- MEDIUM A small number of messages are output.
4096 -- HIGH A great number of messages are output, most of them not
4097 -- being useful for the user.
4099 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4100 "-nostdinc";
4101 -- /NOSTD_INCLUDES
4103 -- Do not look for sources in the system default directory.
4105 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4106 "-nostdlib";
4107 -- /NOSTD_LIBRARIES
4109 -- Do not look for library files in the system default directory.
4111 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4112 "-aO*";
4113 -- /OBJECT_SEARCH=(directory,...)
4115 -- When searching for library and object files, look in the specified
4116 -- directories. The order in which library files are searched is the same
4117 -- as for MAKE.
4119 S_Find_Print : aliased constant S := "/PRINT_LINES " &
4120 "-s";
4121 -- /NOPRINT_LINES (D)
4122 -- /PRINT_LINES
4124 -- Output the content of the Ada source file lines were the entity was
4125 -- found.
4127 S_Find_Project : aliased constant S := "/PROJECT=@" &
4128 "-p@";
4129 -- /PROJECT=file
4131 -- Specify a project file to use. By default, FIND and XREF will try to
4132 -- locate a project file in the current directory.
4134 -- If a project file is either specified or found by the tools, then the
4135 -- content of the source directory and object directory lines are added
4136 -- as if they had been specified respectively by /SOURCE_SEARCH and
4137 -- /OBJECT_SEARCH.
4139 -- This qualifier is not compatible with /PROJECT_FILE
4141 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
4142 "-P>";
4143 -- /PROJECT_FILE=filename
4145 -- Specifies the main project file to be used. The project files rooted
4146 -- at the main project file will be parsed before looking for sources.
4147 -- The source and object directories to be searched will be communicated
4148 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
4149 -- ADA_PRJ_OBJECTS_FILE.
4151 S_Find_Ref : aliased constant S := "/REFERENCES " &
4152 "-r";
4153 -- /NOREFERENCES (D)
4154 -- /REFERENCES
4156 -- By default, FIND will output only the information about the
4157 -- declaration, body or type completion of the entities. If this switch
4158 -- is set, the FIND will locate every reference to the entities in the
4159 -- files specified on the command line (or in every file in the search
4160 -- path if no file is given on the command line).
4162 S_Find_Search : aliased constant S := "/SEARCH=*" &
4163 "-I*";
4164 -- /SEARCH=(directory,...)
4166 -- Equivalent to:
4167 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
4169 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4170 "-aI*";
4171 -- /SOURCE_SEARCH=(directory,...)
4173 -- When looking for source files also look in the specified directories.
4174 -- The order in which source file search is undertaken is the same as for
4175 -- MAKE.
4177 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
4178 "--subdirs=>";
4179 -- /SUBDIRS=dir
4181 -- The actual directories (object, exec, library, ...) are subdirectories
4182 -- of the directory specified in the project file. If the subdirectory
4183 -- does not exist, it is created automatically.
4185 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
4186 "-t";
4187 -- /NOTYPE_HIERARCHY (D)
4188 -- /TYPE_HIERARCHY
4190 -- Output the type hierarchy for the specified type. It acts like the
4191 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
4192 -- to parent type. When this qualifier is specified it is not possible to
4193 -- specify more than one file.
4195 Find_Switches : aliased constant Switches :=
4196 (S_Find_Add 'Access,
4197 S_Find_All 'Access,
4198 S_Find_Deriv 'Access,
4199 S_Find_Expr 'Access,
4200 S_Find_Ext 'Access,
4201 S_Find_Follow 'Access,
4202 S_Find_Full 'Access,
4203 S_Find_Ignore 'Access,
4204 S_Find_Mess 'Access,
4205 S_Find_Nostinc 'Access,
4206 S_Find_Nostlib 'Access,
4207 S_Find_Object 'Access,
4208 S_Find_Print 'Access,
4209 S_Find_Project 'Access,
4210 S_Find_Prj 'Access,
4211 S_Find_Ref 'Access,
4212 S_Find_Search 'Access,
4213 S_Find_Source 'Access,
4214 S_Find_Subdirs 'Access,
4215 S_Find_Types 'Access);
4217 ------------------------------
4218 -- Switches for GNAT KRUNCH --
4219 ------------------------------
4221 S_Krunch_Count : aliased constant S := "/COUNT=#" &
4222 "`#";
4223 -- /COUNT=39 (D)
4224 -- /COUNT=nnn
4226 -- Limit file names to nnn characters (where nnn is a decimal
4227 -- integer). The maximum file name length is 39, but if you want to
4228 -- generate a set of files that would be usable if ported to a system
4229 -- with some different maximum file length, then a different value can
4230 -- be specified.
4232 Krunch_Switches : aliased constant Switches :=
4233 (1 .. 1 => S_Krunch_Count 'Access);
4235 ----------------------------
4236 -- Switches for GNAT LINK --
4237 ----------------------------
4239 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4240 "-aP*";
4241 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4243 -- Add directories to the project search path.
4245 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
4246 "ADA " &
4247 "-A " &
4248 "C " &
4249 "-C";
4250 -- /BIND_FILE=[bind-file-option]
4252 -- Specifies the language of the binder generated file.
4254 -- ADA (D) Binder file is Ada.
4256 -- C Binder file is 'C'.
4258 S_Link_Debug : aliased constant S := "/DEBUG=" &
4259 "ALL " &
4260 "-g3 " &
4261 "NONE " &
4262 "-g0 " &
4263 "TRACEBACK " &
4264 "-g1 " &
4265 "NOTRACEBACK " &
4266 "-g0";
4267 -- /NODEBUG (D)
4268 -- /DEBUG[=debug-option]
4270 -- Specifies the amount of debugging information included. 'debug-option'
4271 -- is one of the following:
4273 -- ALL (D) Include full debugging information.
4275 -- NONE Provide no debugging information. Same as /NODEBUG.
4277 -- TRACEBACK Provide sufficient debug information for a traceback.
4279 -- NOTRACEBACK Same as NONE.
4281 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
4282 "-g0";
4283 -- NODOC (see /DEBUG)
4285 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
4286 "-o@";
4287 -- /EXECUTABLE=exec-name
4289 -- 'exec-name' specifies an alternative name for the generated executable
4290 -- program. If this qualifier switch is omitted, the executable is called
4291 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
4292 -- executable called TRY.EXE.
4294 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4295 "-X" & '"';
4296 -- /EXTERNAL_REFERENCE="name=val"
4298 -- Specifies an external reference to the project manager. Useful only if
4299 -- /PROJECT_FILE is used.
4301 -- Example:
4302 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4304 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4305 "-eL";
4306 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4307 -- /FOLLOW_LINKS_FOR_FILES
4309 -- Follow links when parsing project files
4311 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
4312 "--for-linker=" & '"';
4313 -- /FOR_LINKER=<string>
4315 -- Transmit the option <string> to the underlying linker.
4317 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
4318 "-f";
4319 -- /NOFORCE_OBJECT_FILE_LIST (D)
4320 -- /FORCE_OBJECT_FILE_LIST
4322 -- Forces the generation of a file that contains commands for the linker.
4323 -- This is useful in some cases to deal with special situations where the
4324 -- command line length is exceeded.
4326 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
4327 "--for-linker=IDENT=" &
4328 '"';
4329 -- /IDENTIFICATION="<string>"
4331 -- "<string>" specifies the string to be stored in the image file ident-
4332 -- ification field in the image header. It overrides any pragma Ident
4333 -- specified string.
4335 S_Link_NoInhib : aliased constant S := "/NOINHIBIT-EXEC " &
4336 "--for-linker=--noinhibit-exec";
4337 -- /NOINHIBIT-EXEC (D)
4339 -- Preserve executable if there are warnings. This is the default.
4341 S_Link_Inhib : aliased constant S := "/INHIBIT-EXEC " &
4342 "--for-linker=--inhibit-exec";
4343 -- /INHIBIT-EXEC
4345 -- Remove executable if there are warnings.
4347 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
4348 "-L*";
4349 -- /LIBDIR=(directory, ...)
4351 -- Look for libraries in the specified directories.
4353 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4354 "-l|";
4355 -- /LIBRARY=xyz
4357 -- Link with library named "xyz".
4359 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4360 "DEFAULT " &
4361 "-vP0 " &
4362 "MEDIUM " &
4363 "-vP1 " &
4364 "HIGH " &
4365 "-vP2";
4366 -- /MESSAGES_PROJECT_FILE[=messages-option]
4368 -- Specifies the "verbosity" of the parsing of project files.
4369 -- messages-option may be one of the following:
4371 -- DEFAULT (D) No messages are output if there is no error or warning.
4373 -- MEDIUM A small number of messages are output.
4375 -- HIGH A great number of messages are output, most of them not
4376 -- being useful for the user.
4378 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4379 "-n";
4380 -- /NOCOMPILE
4382 -- Do not compile the file generated by the binder.
4383 -- This may be used when a link is rerun with different options,
4384 -- but there is no need to recompile the binder generated file.
4386 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4387 "-nostartfiles";
4388 -- /NOSTART_FILES
4390 -- Link in default image initialization and startup functions.
4392 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4393 "-P>";
4394 -- /PROJECT_FILE=filename
4396 -- Specifies the main project file to be used. The project files rooted
4397 -- at the main project file will be parsed before the invocation of the
4398 -- linker.
4399 -- The source and object directories to be searched will be communicated
4400 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4401 -- ADA_PRJ_OBJECTS_FILE.
4403 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4404 "POSIX " &
4405 "!-mvms-return-codes " &
4406 "VMS " &
4407 "-mvms-return-codes";
4408 -- /RETURN_CODES=POSIX (D)
4409 -- /RETURN_CODES=VMS
4411 -- Specifies the style of codes returned by
4412 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4413 -- and match the Bind qualifier with the same name.
4415 -- POSIX (D) Return Posix compatible exit codes.
4417 -- VMS Return VMS compatible exit codes. The value returned
4418 -- is identically equal to the Set_Exit_Status parameter.
4420 S_Link_Static : aliased constant S := "/STATIC " &
4421 "--for-linker=-static";
4422 -- /NOSTATIC (D)
4423 -- /STATIC
4425 -- Indicate to the linker that the link is static.
4427 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4428 "--subdirs=>";
4429 -- /SUBDIRS=dir
4431 -- The actual directories (object, exec, library, ...) are subdirectories
4432 -- of the directory specified in the project file. If the subdirectory
4433 -- does not exist, it is created automatically.
4435 S_Link_Verb : aliased constant S := "/VERBOSE " &
4436 "-v";
4437 -- /NOVERBOSE (D)
4438 -- /VERBOSE
4440 -- Causes additional information to be output, including a full list of
4441 -- the included object files. This switch option is most useful when you
4442 -- want to see what set of object files are being used in the link step.
4444 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4445 "--for-linker=";
4446 -- /<other>
4448 -- Any other switch that will be transmitted to the underlying linker.
4450 Link_Switches : aliased constant Switches :=
4451 (S_Link_Add 'Access,
4452 S_Link_Bind 'Access,
4453 S_Link_Debug 'Access,
4454 S_Link_Nodebug 'Access,
4455 S_Link_Execut 'Access,
4456 S_Link_Ext 'Access,
4457 S_Link_Follow 'Access,
4458 S_Link_Forlink 'Access,
4459 S_Link_Force 'Access,
4460 S_Link_Ident 'Access,
4461 S_Link_NoInhib 'Access,
4462 S_Link_Inhib 'Access,
4463 S_Link_Libdir 'Access,
4464 S_Link_Library 'Access,
4465 S_Link_Mess 'Access,
4466 S_Link_Nocomp 'Access,
4467 S_Link_Nofiles 'Access,
4468 S_Link_Project 'Access,
4469 S_Link_Return 'Access,
4470 S_Link_Static 'Access,
4471 S_Link_Subdirs 'Access,
4472 S_Link_Verb 'Access,
4473 S_Link_ZZZZZ 'Access);
4475 ----------------------------
4476 -- Switches for GNAT LIST --
4477 ----------------------------
4479 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4480 "-aP*";
4481 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4483 -- Add directories to the project search path.
4485 S_List_All : aliased constant S := "/ALL_UNITS " &
4486 "-a";
4487 -- /NOALL_UNITS (D)
4488 -- /ALL_UNITS
4490 -- Consider all units, including those of the predefined Ada library.
4491 -- Especially useful with /DEPENDENCIES.
4493 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4494 "-U";
4495 -- /NOALL_PROJECTS (D)
4496 -- /ALL_PROJECTS
4498 -- When used with a project file and no file specified, indicate
4499 -- that gnatls should be called for all sources of all projects in
4500 -- the project tree.
4502 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4503 "!-I-";
4504 -- /CURRENT_DIRECTORY (D)
4505 -- /NOCURRENT_DIRECTORY
4507 -- Look for source, library or object files in the default directory.
4509 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4510 "-d";
4511 -- /NODEPENDENCIES (D)
4512 -- /DEPENDENCIES
4514 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4515 "-X" & '"';
4516 -- /EXTERNAL_REFERENCE="name=val"
4518 -- Specifies an external reference to the project manager. Useful only if
4519 -- /PROJECT_FILE is used.
4521 -- Example:
4522 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4524 S_List_Files : aliased constant S := "/FILES=@" &
4525 "-files=@";
4526 -- /FILES=filename
4528 -- Take as arguments the files that are listed in the specified
4529 -- text file.
4531 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4532 "-eL";
4533 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4534 -- /FOLLOW_LINKS_FOR_FILES
4536 -- Follow links when parsing project files
4538 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4539 "DEFAULT " &
4540 "-vP0 " &
4541 "MEDIUM " &
4542 "-vP1 " &
4543 "HIGH " &
4544 "-vP2";
4545 -- /MESSAGES_PROJECT_FILE[=messages-option]
4547 -- Specifies the "verbosity" of the parsing of project files.
4548 -- messages-option may be one of the following:
4550 -- DEFAULT (D) No messages are output if there is no error or warning.
4552 -- MEDIUM A small number of messages are output.
4554 -- HIGH A great number of messages are output, most of them not
4555 -- being useful for the user.
4557 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4558 "-nostdinc";
4559 -- /NOSTD_INCLUDES
4561 -- Do not look for sources of the run time in the standard directory.
4563 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4564 "-aO*";
4565 -- /OBJECT_SEARCH=(directory,...)
4567 -- When looking for library and object files look also in the specified
4568 -- directories.
4570 S_List_Output : aliased constant S := "/OUTPUT=" &
4571 "SOURCES " &
4572 "-s " &
4573 "DEPEND " &
4574 "-d " &
4575 "OBJECTS " &
4576 "-o " &
4577 "UNITS " &
4578 "-u " &
4579 "OPTIONS " &
4580 "-h " &
4581 "VERBOSE " &
4582 "-v ";
4583 -- /OUTPUT=(option,option,...)
4585 -- SOURCES (D) Only output information about source files.
4587 -- DEPEND List sources from which specified units depend on.
4589 -- OBJECTS Only output information about object files.
4591 -- UNITS Only output information about compilation units.
4593 -- OPTIONS Output the list of options.
4595 -- VERBOSE Output the complete source and object paths.
4596 -- Do not use the default column layout but instead
4597 -- use long format giving as much as information
4598 -- possible on each requested units, including
4599 -- special characteristics.
4601 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4602 "-P>";
4603 -- /PROJECT_FILE=filename
4605 -- Specifies the main project file to be used. The project files rooted
4606 -- at the main project file will be parsed before doing any listing.
4607 -- The source and object directories to be searched will be communicated
4608 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4609 -- ADA_PRJ_OBJECTS_FILE.
4611 S_List_Search : aliased constant S := "/SEARCH=*" &
4612 "-I*";
4613 -- /SEARCH=(directory,...)
4615 -- Search the specified directories for both source and object files.
4617 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4618 "-aI*";
4619 -- /SOURCE_SEARCH=(directory,...)
4621 -- When looking for source files also look in the specified directories.
4623 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4624 "--subdirs=>";
4625 -- /SUBDIRS=dir
4627 -- The actual directories (object, exec, library, ...) are subdirectories
4628 -- of the directory specified in the project file. If the subdirectory
4629 -- does not exist, it is created automatically.
4631 List_Switches : aliased constant Switches :=
4632 (S_List_Add 'Access,
4633 S_List_All 'Access,
4634 S_List_Allproj 'Access,
4635 S_List_Current 'Access,
4636 S_List_Depend 'Access,
4637 S_List_Ext 'Access,
4638 S_List_Files 'Access,
4639 S_List_Follow 'Access,
4640 S_List_Mess 'Access,
4641 S_List_Nostinc 'Access,
4642 S_List_Object 'Access,
4643 S_List_Output 'Access,
4644 S_List_Project 'Access,
4645 S_List_Search 'Access,
4646 S_List_Source 'Access,
4647 S_List_Subdirs 'Access);
4649 ----------------------------
4650 -- Switches for GNAT MAKE --
4651 ----------------------------
4653 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4654 "COMPILE " &
4655 "-c " &
4656 "BIND " &
4657 "-b " &
4658 "LINK " &
4659 "-l ";
4660 -- /ACTIONS=(keyword[,...])
4662 -- GNAT MAKE default behavior is to check if the sources are up to date,
4663 -- compile those sources that are not up to date, bind the main source,
4664 -- then link the executable.
4666 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4667 -- two of these three steps:
4669 -- o Compile
4670 -- o Bind
4671 -- o Link
4674 -- You may specify one or more of the following keywords to the /ACTIONS
4675 -- qualifier:
4677 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4678 -- to do compilation and binding, but no linking.
4679 -- Can be combined with /ACTIONS=LINK to do binding and
4680 -- linking. When not combined with /ACTIONS=COMPILE,
4681 -- all the units in the closure of the main program must
4682 -- have been previously compiled and must be up to date.
4684 -- COMPILE Compile only. Do not perform binding, except when
4685 -- /ACTIONS=BIND is also specified. Do not perform
4686 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4687 -- are also specified.
4689 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4690 -- binding and linking. Linking will not be performed
4691 -- if combined with /ACTIONS=COMPILE but not with
4692 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4693 -- all the units in the closure of the main program must
4694 -- have been previously compiled and must be up to date,
4695 -- and the main program need to have been bound.
4697 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4698 "-aP*";
4699 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4701 -- Add directories to the project search path.
4703 S_Make_All : aliased constant S := "/ALL_FILES " &
4704 "-a";
4705 -- /NOALL_FILES (D)
4706 -- /ALL_FILES
4708 -- Consider all files in the make process, even the GNAT internal system
4709 -- files (for example, the predefined Ada library files). By default,
4710 -- GNAT MAKE does not check these files (however, if there is an
4711 -- installation problem, it will be caught when GNAT MAKE binds your
4712 -- program). You may have to specify this qualifier if you are working on
4713 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4714 -- specify this switch. All GNAT internal files with will be compiled
4715 -- with /STYLE_CHECK=GNAT.
4717 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4718 "-U";
4719 -- /NOALL_PROJECTS (D)
4720 -- /ALL_PROJECTS
4722 -- Implies /Unique.
4723 -- When used without project files, it is equivalent to /UNIQUE.
4724 -- When used with a project file with no main (neither on the command
4725 -- line nor in the attribute Main) check every source of every project,
4726 -- recompile all sources that are not up to date and rebuild libraries
4727 -- if necessary.
4729 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4730 "-bargs BIND";
4731 -- /BINDER_QUALIFIERS
4733 -- Any qualifiers specified after this qualifier other than
4734 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4735 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4737 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4738 "-B";
4739 -- /BND_LNK_FULL_PROJECT
4741 -- Bind and link all sources of a project, without any consideration
4742 -- to attribute Main, if there is one. This qualifier need to be
4743 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4744 -- be used with a main subprogram on the command line or for
4745 -- a library project file. As the binder is invoked with the option
4746 -- meaning "No Ada main subprogram", the user must ensure that the
4747 -- proper options are specified to the linker. This qualifier is
4748 -- normally used when the main subprogram is in a foreign language
4749 -- such as C.
4751 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4752 "-cargs COMPILE";
4753 -- /COMPILER_QUALIFIERS
4755 -- Any qualifiers specified after this qualifier other than
4756 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4757 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4759 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4760 "-A*";
4761 -- /CONDITIONAL_SOURCE_SEARCH=dir
4763 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4765 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4766 "-k";
4767 -- /NOCONTINUE_ON_ERROR (D)
4768 -- /CONTINUE_ON_ERROR
4770 -- Keep going. Continue as much as possible after a compilation error.
4771 -- To ease the programmer's task in case of compilation errors, the list
4772 -- of sources for which the compile fails is given when GNAT MAKE
4773 -- terminates.
4775 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4776 "!-I-";
4777 -- /CURRENT_DIRECTORY (D)
4778 -- /NOCURRENT_DIRECTORY
4780 -- Look for source, library or object files in the default directory.
4782 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4783 "-M";
4784 -- /NODEPENDENCIES_LIST (D)
4785 -- /DEPENDENCIES_LIST
4787 -- Check if all objects are up to date. If they are, output the object
4788 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4789 -- a Unix-style Makefile. By default, each source file is prefixed with
4790 -- its (relative or absolute) directory name. This name is whatever you
4791 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4792 -- you also specify the /QUIET qualifier, only the source file names,
4793 -- without relative paths, are output. If you just specify the
4794 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4795 -- files are omitted. This is typically what you want. If you also
4796 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4797 -- files are also listed. Note that dependencies of the objects in
4798 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4799 -- reported.
4801 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4802 "-D@";
4803 -- /DIRECTORY_OBJECTS=<file>
4805 -- Put all object files and .ALI files in <file>.
4806 -- This qualifier is not compatible with /PROJECT_FILE.
4808 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4809 "-d";
4810 -- /NOPLAY_PROGRESS (D)
4811 -- /DISPLAY_PROGRESS
4813 -- Display progress for each source, up to date or not, as a single line
4814 -- completed x out of y (zz%)
4815 -- If the file needs to be compiled this is displayed after the
4816 -- invocation of the compiler. These lines are displayed even in quiet
4817 -- output mode (/QUIET).
4819 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4820 "-n";
4821 -- /NODO_OBJECT_CHECK (D)
4822 -- /DO_OBJECT_CHECK
4824 -- Don't compile, bind, or link. Output a single command that will
4825 -- recompile an out of date unit, if any. Repeated use of this option,
4826 -- followed by carrying out the indicated compilation, will eventually
4827 -- result in recompiling all required units.
4829 -- If any ALI is missing during the process, GNAT MAKE halts and
4830 -- displays an error message.
4832 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4833 "-o@";
4834 -- /EXECUTABLE=exec-name
4836 -- The name of the final executable program will be 'exec_name'. If this
4837 -- qualifier is omitted the default name for the executable will be the
4838 -- name of the input file with an EXE filetype. You may prefix
4839 -- 'exec_name' with a relative or absolute directory path.
4841 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4842 "-X" & '"';
4843 -- /EXTERNAL_REFERENCE="name=val"
4845 -- Specifies an external reference to the project manager. Useful only if
4846 -- /PROJECT_FILE is used.
4848 -- Example:
4849 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4851 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4852 "-eL";
4853 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4854 -- /FOLLOW_LINKS_FOR_FILES
4856 -- Follow links when parsing project files
4858 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4859 "-f";
4860 -- /NOFORCE_COMPILE (D)
4861 -- /FORCE_COMPILE
4863 -- Force recompilations. Recompile all sources, even though some object
4864 -- files may be up to date, but don't recompile predefined or GNAT
4865 -- internal files unless the /ALL_FILES qualifier is also specified.
4867 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4868 "-F";
4869 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4870 -- /FULL_PATH_IN_BRIEF_MESSAGES
4872 -- When using project files, if some errors or warnings are detected
4873 -- during parsing and verbose mode is not in effect (no use of qualifier
4874 -- /VERBOSE), then error lines start with the full path name of the
4875 -- project file, rather than its simple file name.
4877 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4878 "-vh";
4879 -- /NOHIGH_VERBOSITY (D)
4880 -- /HIGH_VERBOSITY
4882 -- Displays the reason for all recompilations GNAT MAKE decides are
4883 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4885 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4886 "-i";
4887 -- /NOIN_PLACE (D)
4888 -- /IN_PLACE
4890 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4891 -- into the current directory. If the /IN_PLACE switch is used,
4892 -- then instead object files and ALI files that already exist are over-
4893 -- written in place. This means that once a large project is organized
4894 -- into separate directories in the desired manner, then GNAT MAKE will
4895 -- automatically maintain and update this organization. If no ALI files
4896 -- are found on the Ada object path, the new object and ALI files are
4897 -- created in the directory containing the source being compiled.
4899 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4900 "-eI#";
4901 -- /SOURCE_INDEX=nnn
4903 -- Specifies the index of the units in the source file
4904 -- By default, source files are mono-unit and there is no index
4905 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4906 -- on the command line.
4908 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4909 "-L*";
4910 -- /LIBRARY_SEARCH=(directory[,...])
4912 -- Add the specified directories to the list of directories in which the
4913 -- linker will search for libraries.
4915 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4916 "-largs LINK";
4917 -- /LINKER_QUALIFIERS
4919 -- Any qualifiers specified after this qualifier other than
4920 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4921 -- passed to any GNAT LINK commands generated by GNAT LINK.
4923 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4924 "-vl";
4925 -- /NOLOW_VERBOSITY (D)
4926 -- /LOW_VERBOSITY
4928 -- Displays the reason for all recompilations GNAT MAKE decides are
4929 -- necessary, in low verbosity, that is with less output than
4930 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4932 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4933 "-margs MAKE";
4934 -- /MAKE_QUALIFIERS
4936 -- Any qualifiers specified after this qualifier other than
4937 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4938 -- are for the benefit of GNAT MAKE itself.
4940 S_Make_Mapping : aliased constant S := "/MAPPING " &
4941 "-C";
4942 -- /NOMAPPING (D)
4943 -- /MAPPING
4945 -- Use a mapping file. A mapping file is a way to communicate to the
4946 -- compiler two mappings: from unit names to file names (without any
4947 -- directory information) and from file names to path names (with full
4948 -- directory information). These mappings are used by the compiler to
4949 -- short-circuit the path search. When GNAT MAKE is invoked with this
4950 -- qualifier, it will create a mapping file, initially populated by the
4951 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4952 -- Each invocation of the compiler will add the newly accessed sources to
4953 -- the mapping file. This will improve the source search during the next
4954 -- invocations of the compiler
4956 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4957 "-vm";
4958 -- /NOMEDIUM_VERBOSITY (D)
4959 -- /MEDIUM_VERBOSITY
4961 -- Displays the reason for all recompilations GNAT MAKE decides are
4962 -- necessary, in medium verbosity, that is with potentially less output
4963 -- than /HIGH_VERBOSITY or /VERBOSE.
4965 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4966 "DEFAULT " &
4967 "-vP0 " &
4968 "MEDIUM " &
4969 "-vP1 " &
4970 "HIGH " &
4971 "-vP2";
4972 -- /MESSAGES_PROJECT_FILE[=messages-option]
4974 -- Specifies the "verbosity" of the parsing of project files.
4975 -- messages-option may be one of the following:
4977 -- DEFAULT (D) No messages are output if there is no error or warning.
4979 -- MEDIUM A small number of messages are output.
4981 -- HIGH A great number of messages are output, most of them not
4982 -- being useful for the user.
4984 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4985 "-m";
4986 -- /NOMINIMAL_RECOMPILATION (D)
4987 -- /MINIMAL_RECOMPILATION
4989 -- Specifies that the minimum necessary amount of recompilation
4990 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4991 -- when the only modifications to a source file consist in
4992 -- adding/removing comments, empty lines, spaces or tabs.
4994 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4995 "-p";
4996 -- /NOCREATE_MISSING_DIRS (D)
4997 -- /CREATE_MISSING_DIRS
4999 -- When an object directory, a library directory or an exec directory
5000 -- in missing, attempt to create the directory.
5002 S_Make_Nolink : aliased constant S := "/NOLINK " &
5003 "-c";
5004 -- /NOLINK
5006 -- Compile only. Do not perform binding and linking. If the root unit is
5007 -- not a main unit, this is the default. Otherwise GNAT MAKE will
5008 -- attempt binding and linking unless all objects are up to date and the
5009 -- executable is more recent than the objects.
5010 -- This is equivalent to /ACTIONS=COMPILE
5012 S_Make_Nomain : aliased constant S := "/NOMAIN " &
5013 "-z";
5014 -- /NOMAIN
5016 -- No main subprogram. Bind and link the program even if the unit name
5017 -- given on the command line is a package name. The resulting executable
5018 -- will execute the elaboration routines of the package and its closure,
5019 -- then the finalization routines.
5021 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
5022 "-x";
5023 -- /NON_PROJECT_UNIT_COMPILATION
5025 -- Normally, when using project files, a unit that is not part of any
5026 -- project file, cannot be compile. These units may be compile, when
5027 -- needed, if this qualifier is specified.
5029 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
5030 "-nostdinc";
5031 -- /NOSTD_INCLUDES
5033 -- Do not look for sources the in the system default directory.
5035 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
5036 "-nostdlib";
5037 -- /NOSTD_LIBRARIES
5039 -- Do not look for library files in the system default directory.
5041 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
5042 "-aO*";
5043 -- /OBJECT_SEARCH=(directory[,...])
5045 -- When looking for library and object files look also in the specified
5046 -- directories.
5048 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
5049 "-j#";
5050 -- /NOPROCESSES (D)
5051 -- /PROCESSES=NNN
5053 -- Use NNN processes to carry out the (re)compilations. If you have a
5054 -- multiprocessor machine, compilations will occur in parallel. In the
5055 -- event of compilation errors, messages from various compilations might
5056 -- get interspersed (but GNAT MAKE will give you the full ordered list of
5057 -- failing compiles at the end). This can at times be annoying. To get a
5058 -- clean list of error messages don't use this qualifier.
5060 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
5061 "-j1";
5062 -- NODOC (see /PROCESS)
5064 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
5065 "-P>";
5066 -- /PROJECT_FILE=filename
5068 -- Specifies the main project file to be used. The project files rooted
5069 -- at the main project file will be parsed before any other processing to
5070 -- set the building environment.
5072 S_Make_Quiet : aliased constant S := "/QUIET " &
5073 "-q";
5074 -- /NOQUIET (D)
5075 -- /QUIET
5077 -- When this qualifiers is specified, the commands carried out by GNAT
5078 -- MAKE are not displayed.
5080 S_Make_Reason : aliased constant S := "/REASONS " &
5081 "-v";
5082 -- /NOREASONS (D)
5083 -- /REASONS
5085 -- Displays the reason for all recompilations GNAT MAKE decides are
5086 -- necessary.
5088 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
5089 "--RTS=|";
5090 -- /RUNTIME_SYSTEM=xxx
5092 -- Build against an alternate runtime system named xxx or RTS-xxx.
5094 S_Make_Search : aliased constant S := "/SEARCH=*" &
5095 "-I*";
5096 -- /SEARCH=(directory[,...])
5098 -- Search the specified directories for both source and object files.
5100 S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " &
5101 "--single-compile-per-obj-dir";
5102 -- /NOSINGLE_COMPILE_PER_OBJ_DIR (D)
5103 -- /SINGLE_COMPILE_PER_OBJ_DIR
5105 -- When project files are used, do not allow simultaneous compilations
5106 -- for the same object directory.
5108 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
5109 "-aL*";
5110 -- /SKIP_MISSING=(directory[,...])
5112 -- Skip missing library sources if ALI in 'directory'.
5114 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
5115 "-aI*";
5116 -- /SOURCE_SEARCH=(directory[,...])
5118 -- When looking for source files also look in the specified directories.
5120 S_Make_Src_Info : aliased constant S := "/SRC_INFO=<" &
5121 "--source-info=>";
5122 -- /SRC_INFO=source-info-file
5124 -- Specify a source info file to be read or written by the Project
5125 -- Manager when project files are used.
5127 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
5128 "-eS";
5129 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
5130 -- /STANDARD_OUTPUT_FOR_COMMANDS
5132 -- Output the commands for the compiler, the binder and the linker
5133 -- on SYS$OUTPUT, instead of SYS$ERROR.
5135 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
5136 "--subdirs=>";
5137 -- /SUBDIRS=dir
5139 -- The actual directories (object, exec, library, ...) are subdirectories
5140 -- of the directory specified in the project file. If the subdirectory
5141 -- does not exist, it is created automatically.
5143 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
5144 "-s";
5145 -- /NOSWITCH_CHECK (D)
5146 -- /SWITCH_CHECK
5148 -- Recompile if compiler switches have changed since last compilation.
5149 -- All compiler switches but -I and -o are taken into account in the
5150 -- following way: orders between different "first letter" switches are
5151 -- ignored, but orders between same switches are taken into account.
5152 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
5153 -- to -O -g.
5155 S_Make_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
5156 "--unchecked-shared-lib-imports";
5157 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
5158 -- /UNCHECKED_SHARED_LIB_IMPORTS
5160 -- Allow shared library projects to import static library projects
5162 S_Make_Unique : aliased constant S := "/UNIQUE " &
5163 "-u";
5164 -- /NOUNIQUE (D)
5165 -- /UNIQUE
5167 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
5168 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
5169 -- directly.
5171 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
5172 "-C=@";
5173 -- /USE_MAPPING_FILE=file_name
5175 -- Use a specific mapping file. The file 'file_name', specified as a path
5176 -- name (absolute or relative) by this qualifier, should already exist,
5177 -- otherwise the qualifier is ineffective. The specified mapping file
5178 -- will be communicated to the compiler. This switch is not compatible
5179 -- with a project file (/PROJECT_FILE=) or with multiple compiling
5180 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
5182 S_Make_Verbose : aliased constant S := "/VERBOSE " &
5183 "-v";
5184 -- /NOVERBOSE (D)
5185 -- /VERBOSE
5187 -- Displays the reason for all recompilations GNAT MAKE decides are
5188 -- necessary.
5190 Make_Switches : aliased constant Switches :=
5191 (S_Make_Add 'Access,
5192 S_Make_Actions 'Access,
5193 S_Make_All 'Access,
5194 S_Make_Allproj 'Access,
5195 S_Make_Bind 'Access,
5196 S_Make_Comp 'Access,
5197 S_Make_Cond 'Access,
5198 S_Make_Cont 'Access,
5199 S_Make_Current 'Access,
5200 S_Make_Dep 'Access,
5201 S_Make_Dirobj 'Access,
5202 S_Make_Disprog 'Access,
5203 S_Make_Doobj 'Access,
5204 S_Make_Execut 'Access,
5205 S_Make_Ext 'Access,
5206 S_Make_Follow 'Access,
5207 S_Make_Force 'Access,
5208 S_Make_Full 'Access,
5209 S_Make_Hi_Verb 'Access,
5210 S_Make_Inplace 'Access,
5211 S_Make_Index 'Access,
5212 S_Make_Library 'Access,
5213 S_Make_Link 'Access,
5214 S_Make_Low_Verb'Access,
5215 S_Make_Make 'Access,
5216 S_Make_Mapping 'Access,
5217 S_Make_Med_Verb'Access,
5218 S_Make_Mess 'Access,
5219 S_Make_Minimal 'Access,
5220 S_Make_Missing 'Access,
5221 S_Make_Nolink 'Access,
5222 S_Make_Nomain 'Access,
5223 S_Make_Nonpro 'Access,
5224 S_Make_Nostinc 'Access,
5225 S_Make_Nostlib 'Access,
5226 S_Make_Object 'Access,
5227 S_Make_Proc 'Access,
5228 S_Make_Nojobs 'Access,
5229 S_Make_Project 'Access,
5230 S_Make_Quiet 'Access,
5231 S_Make_Reason 'Access,
5232 S_Make_RTS 'Access,
5233 S_Make_Search 'Access,
5234 S_Make_Single 'Access,
5235 S_Make_Skip 'Access,
5236 S_Make_Source 'Access,
5237 S_Make_Src_Info'Access,
5238 S_Make_Stand 'Access,
5239 S_Make_Subdirs 'Access,
5240 S_Make_Switch 'Access,
5241 S_Make_USL 'Access,
5242 S_Make_Unique 'Access,
5243 S_Make_Use_Map 'Access,
5244 S_Make_Verbose 'Access);
5246 ------------------------------
5247 -- Switches for GNAT METRIC --
5248 ------------------------------
5250 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5251 "-aP*";
5252 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5254 -- Add directories to the project search path.
5256 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5257 "-U";
5258 -- /NOALL_PROJECTS (D)
5259 -- /ALL_PROJECTS
5260 -- When GNAT METRIC is used with a Project File and no source is
5261 -- specified, the underlying tool gnatmetric is called for all the
5262 -- sources of all the Project Files in the project tree.
5264 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
5265 "-dv";
5266 -- /DEBUG_OUTPUT
5268 -- Generate the debug information
5270 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
5271 "-d=@";
5272 -- /DIRECTORY=pathname
5274 -- Put the files with detailed metric information into the specified
5275 -- directory
5277 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
5278 "ALL " &
5279 "!-ed,!-es,!-enl,!-eps," &
5280 "!-eas,!-ept,!-eat,!-enu," &
5281 "!-ec " &
5282 "DECLARATION_TOTAL " &
5283 "-ed " &
5284 "STATEMENT_TOTAL " &
5285 "-es " &
5286 "LOOP_NESTING_MAX " &
5287 "-enl " &
5288 "INT_SUBPROGRAMS " &
5289 "-eps " &
5290 "SUBPROGRAMS_ALL " &
5291 "-eas " &
5292 "INT_TYPES " &
5293 "-ept " &
5294 "TYPES_ALL " &
5295 "-eat " &
5296 "PROGRAM_NESTING_MAX " &
5297 "-enu " &
5298 "CONSTRUCT_NESTING_MAX " &
5299 "-ec";
5300 -- NODOC (see /SYNTAX_METRICS)
5302 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
5303 "ALL " &
5304 "--syntax-all " &
5305 "NONE " &
5306 "--no-syntax-all " &
5307 "DECLARATIONS " &
5308 "--declarations " &
5309 "NODECLARATIONS " &
5310 "--no-declarations " &
5311 "STATEMENTS " &
5312 "--statements " &
5313 "NOSTATEMENTS " &
5314 "--no-statements " &
5315 "PUBLIC_SUBPROGRAMS " &
5316 "--public-subprograms " &
5317 "NOPUBLIC_SUBPROGRAMS " &
5318 "--no-public-subprograms " &
5319 "ALL_SUBPROGRAMS " &
5320 "--all-subprograms " &
5321 "NOALL_SUBPROGRAMS " &
5322 "--no-all-subprograms " &
5323 "PUBLIC_TYPES " &
5324 "--public-types " &
5325 "NOPUBLIC_TYPES " &
5326 "--no-public-types " &
5327 "ALL_TYPES " &
5328 "--all-types " &
5329 "NOALL_TYPES " &
5330 "--no-all-types " &
5331 "UNIT_NESTING " &
5332 "--unit-nesting " &
5333 "NOUNIT_NESTING " &
5334 "--no-unit-nesting " &
5335 "CONSTRUCT_NESTING " &
5336 "--construct-nesting " &
5337 "NOCONSTRUCT_NESTING " &
5338 "--no-construct-nesting";
5339 -- /SYNTAX_METRICS(option, option ...)
5341 -- Specifies the syntax element metrics to be computed (if at least one
5342 -- positive syntax element metric, line metric, complexity or coupling
5343 -- metric is specified then only explicitly specified syntax element
5344 -- metrics are computed and reported)
5346 -- option may be one of the following:
5348 -- ALL (D) All the syntax element metrics are computed
5349 -- NONE None of syntax element metrics is computed
5350 -- DECLARATIONS Compute the total number of declarations
5351 -- NODECLARATIONS Do not compute the total number of declarations
5352 -- STATEMENTS Compute the total number of statements
5353 -- NOSTATEMENTS Do not compute the total number of statements
5354 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
5355 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
5356 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
5357 -- NOALL_SUBPROGRAMS Do not compute the number of all the
5358 -- subprograms
5359 -- PUBLIC_TYPES Compute the number of public types
5360 -- NOPUBLIC_TYPES Do not compute the number of public types
5361 -- ALL_TYPES Compute the number of all the types
5362 -- NOALL_TYPES Do not compute the number of all the types
5363 -- UNIT_NESTING Compute the maximal program unit nesting
5364 -- level
5365 -- NOUNIT_NESTING Do not compute the maximal program unit
5366 -- nesting level
5367 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
5368 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
5369 -- level
5371 -- All combinations of syntax element metrics options are allowed.
5373 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5374 "-X" & '"';
5375 -- /EXTERNAL_REFERENCE="name=val"
5377 -- Specifies an external reference to the project manager. Useful only if
5378 -- /PROJECT_FILE is used.
5380 -- Example:
5381 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5383 S_Metric_Files : aliased constant S := "/FILES=@" &
5384 "-files=@";
5385 -- /FILES=filename
5387 -- Take as arguments the files that are listed in the specified
5388 -- text file.
5390 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5391 "DEFAULT " &
5392 "!-x,!-nt,!-sfn " &
5393 "XML " &
5394 "-x " &
5395 "XSD " &
5396 "-xs " &
5397 "NO_TEXT " &
5398 "-nt " &
5399 "SHORT_SOURCE_FILE_NAME " &
5400 "-sfn";
5401 -- /FORMAT_OUTPUT=(option, option ...)
5403 -- Specifies the details of the tool output
5405 -- option may be one of the following:
5407 -- DEFAULT (D) Generate the text output only, use full
5408 -- argument source names in global information
5409 -- XML Generate the output in XML format
5410 -- XSD Generate the output in XML format, and
5411 -- generate an XML schema file that describes
5412 -- the structure of XML metrics report
5413 -- NO_TEXT Do not generate the text output (implies XML)
5414 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5416 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5417 "-og@";
5418 -- /GLOBAL_OUTPUT=filename
5420 -- Put the textual global metric information into the specified file
5422 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5423 "ALL " &
5424 "!-la,!-lcode,!-lcomm," &
5425 "!-leol,!-lb " &
5426 "LINES_ALL " &
5427 "-la " &
5428 "CODE_LINES " &
5429 "-lcode " &
5430 "COMENT_LINES " &
5431 "-lcomm " &
5432 "MIXED_CODE_COMMENTS " &
5433 "-leol " &
5434 "COMMENT_PERCENTAGE " &
5435 "-lratio " &
5436 "BLANK_LINES " &
5437 "-lb " &
5438 "AVERAGE_LINES_IN_BODIES " &
5439 "-lav ";
5440 -- NODOC (see /LINE_COUNT_METRICS)
5442 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5443 "ALL " &
5444 "--lines-all " &
5445 "NONE " &
5446 "--no-lines-all " &
5447 "ALL_LINES " &
5448 "--lines " &
5449 "NOALL_LINES " &
5450 "--no-lines " &
5451 "CODE_LINES " &
5452 "--lines-code " &
5453 "NOCODE_LINES " &
5454 "--no-lines-code " &
5455 "COMMENT_LINES " &
5456 "--lines-comment " &
5457 "NOCOMMENT_LINES " &
5458 "--no-lines-comment " &
5459 "CODE_COMMENT_LINES " &
5460 "--lines-eol-comment " &
5461 "NOCODE_COMMENT_LINES " &
5462 "--no-lines-eol-comment " &
5463 "COMMENT_PERCENTAGE " &
5464 "--lines-ratio " &
5465 "NOCOMMENT_PERCENTAGE " &
5466 "--no-lines-ratio " &
5467 "BLANK_LINES " &
5468 "--lines-blank " &
5469 "NOBLANK_LINES " &
5470 "--no-lines-blank " &
5471 "AVERAGE_BODY_LINES " &
5472 "--lines-average " &
5473 "NOAVERAGE_BODY_LINES " &
5474 "--no-lines-average";
5475 -- /LINE_COUNT_METRICS=(option, option ...)
5477 -- Specifies the line metrics to be computed (if at least one positive
5478 -- syntax element metric, line metric, complexity or coupling metric is
5479 -- specified then only explicitly specified line metrics are computed
5480 -- and reported)
5482 -- option may be one of the following:
5484 -- ALL (D) All the line metrics are computed
5485 -- NONE None of line metrics is computed
5486 -- ALL_LINES All lines are computed
5487 -- NOALL_LINES All lines are not computed
5488 -- CODE_LINES Lines with Ada code are computed
5489 -- NOCODE_LINES Lines with Ada code are not computed
5490 -- COMMENT_LINES Comment lines are computed
5491 -- NOCOMMENT_LINES Comment lines are not computed
5492 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5493 -- are computed
5494 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5495 -- are not computed
5496 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5497 -- containing comments and program code is
5498 -- computed
5499 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5500 -- containing comments and program code is not
5501 -- computed
5502 -- BLANK_LINES Blank lines are computed
5503 -- NOBLANK_LINES Blank lines are not computed
5504 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5505 -- task and entry bodies and statement sequences
5506 -- of package bodies is computed
5507 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5508 -- task and entry bodies and statement sequences
5509 -- of package bodies is not computed
5511 -- All combinations of line metrics options are allowed.
5513 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5514 "ALL " &
5515 "--complexity-all " &
5516 "NONE " &
5517 "--no-complexity-all " &
5518 "CYCLOMATIC " &
5519 "--complexity-cyclomatic " &
5520 "NOCYCLOMATIC " &
5521 "--no-complexity-cyclomatic "&
5522 "ESSENTIAL " &
5523 "--complexity-essential " &
5524 "NOESSENTIAL " &
5525 "--no-complexity-essential " &
5526 "LOOP_NESTING " &
5527 "--loop-nesting " &
5528 "NOLOOP_NESTING " &
5529 "--no-loop-nesting " &
5530 "AVERAGE_COMPLEXITY " &
5531 "--complexity-average " &
5532 "NOAVERAGE_COMPLEXITY " &
5533 "--no-complexity-average " &
5534 "EXTRA_EXIT_POINTS " &
5535 "--extra-exit-points " &
5536 "NOEXTRA_EXIT_POINTS " &
5537 "--no-extra-exit-points";
5538 -- /COMPLEXITY_METRICS=(option, option ...)
5540 -- Specifies the complexity metrics to be computed (if at least one
5541 -- positive syntax element metric, line metric, complexity or coupling
5542 -- metric is specified then only explicitly specified complexity metrics
5543 -- are computed and reported)
5545 -- option may be one of the following:
5547 -- ALL (D) All the complexity metrics are computed
5548 -- NONE None of complexity metrics is computed
5549 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5550 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5551 -- ESSENTIAL Compute the Essential Complexity
5552 -- NOESSENTIAL Do not compute the Essential Complexity
5553 -- LOOP_NESTING Compute the maximal loop nesting
5554 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5555 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5556 -- bodies
5557 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5558 -- executable bodies
5559 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5560 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5562 -- All combinations of line metrics options are allowed.
5564 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5565 "ALL " &
5566 "--coupling-all " &
5567 "TAGGED_OUT " &
5568 "--tagged-coupling-out " &
5569 "TAGGED_IN " &
5570 "--tagged-coupling-in " &
5571 "HIERARCHY_OUT " &
5572 "--hierarchy-coupling-out " &
5573 "HIERARCHY_IN " &
5574 "--hierarchy-coupling-in " &
5575 "UNIT_OUT " &
5576 "--unit-coupling-out " &
5577 "UNIT_IN " &
5578 "--unit-coupling-in " &
5579 "CONTROL_OUT " &
5580 "--control-coupling-out " &
5581 "CONTROL_IN " &
5582 "--control-coupling-in";
5584 -- /COUPLING_METRICS=(option, option ...)
5586 -- Specifies the coupling metrics to be computed.
5588 -- option may be one of the following:
5590 -- ALL All the coupling metrics are computed
5591 -- NOALL (D) None of coupling metrics is computed
5592 -- TAGGED_OUT Compute tagged (class) far-out coupling
5593 -- TAGGED_IN Compute tagged (class) far-in coupling
5594 -- HIERARCHY_OUT Compute hieraqrchy (category) far-out coupling
5595 -- HIERARCHY_IN Compute hieraqrchy (category) far-in coupling
5596 -- UNIT_OUT Compute unit far-out coupling
5597 -- UNIT_IN Compute unit far-in coupling
5598 -- CONTROL_OUT Compute control far-out coupling
5599 -- CONTROL_IN Compute control far-in coupling
5602 -- All combinations of coupling metrics options are allowed.
5604 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5605 "-eL";
5606 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5607 -- /FOLLOW_LINKS_FOR_FILES
5609 -- Follow links when parsing project files
5611 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5612 "-nolocal";
5613 -- /LOCAL_DETAILS (D)
5614 -- /NO_LOCAL_DETAILS
5616 -- Do not compute the detailed metrics for local program units.
5618 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5619 "-ne";
5620 -- /EXITS_AS_GOTOS (D)
5621 -- /NO_EXITS_AS_GOTOS
5623 -- Do not count EXIT statements as GOTOs when computing the Essential
5624 -- Complexity.
5626 S_Metric_No_Static_Loop : aliased constant S := "/NO_STATIC_LOOP " &
5627 "--no-static-loop";
5628 -- /STATIC_LOOP (D)
5629 -- /NO_STATIC_LOOP
5631 -- Do not count static FOR loop statements when computing the Cyclomatic
5632 -- Complexity.
5634 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5635 "DEFAULT " &
5636 "-vP0 " &
5637 "MEDIUM " &
5638 "-vP1 " &
5639 "HIGH " &
5640 "-vP2";
5641 -- /MESSAGES_PROJECT_FILE[=messages-option]
5643 -- Specifies the "verbosity" of the parsing of project files.
5644 -- messages-option may be one of the following:
5646 -- DEFAULT (D) No messages are output if there is no error or warning.
5648 -- MEDIUM A small number of messages are output.
5650 -- HIGH A great number of messages are output, most of them not
5651 -- being useful for the user.
5653 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5654 "-P>";
5655 -- /PROJECT_FILE=filename
5657 -- Specifies the main project file to be used. The project files rooted
5658 -- at the main project file will be parsed before the invocation of the
5659 -- binder.
5661 S_Metric_Quiet : aliased constant S := "/QUIET " &
5662 "-q";
5663 -- /NOQUIET (D)
5664 -- /QUIET
5666 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5667 -- the number of program units left to be processed. This option turns
5668 -- this trace off.
5670 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5671 "--subdirs=>";
5672 -- /SUBDIRS=dir
5674 -- The actual directories (object, exec, library, ...) are subdirectories
5675 -- of the directory specified in the project file. If the subdirectory
5676 -- does not exist, it is created automatically.
5678 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5679 "-o" & '"';
5680 -- /SUFFIX_DETAILS=suffix
5682 -- Use the given suffix as the suffix for the name of the file to place
5683 -- the detailed metrics into.
5685 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5686 "NOTHING " &
5687 "!-nocc,!-noec,!-nonl," &
5688 "!-ne,!-nolocal " &
5689 "CYCLOMATIC_COMPLEXITY " &
5690 "-nocc " &
5691 "ESSENTIAL_COMPLEXITY " &
5692 "-noec " &
5693 "MAXIMAL_LOOP_NESTING " &
5694 "-nonl " &
5695 "EXITS_AS_GOTOS " &
5696 "-ne " &
5697 "LOCAL_DETAILS " &
5698 "-nolocal ";
5699 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5701 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5702 "-v";
5703 -- /NOVERBOSE (D)
5704 -- /VERBOSE
5706 -- Verbose mode.
5708 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5709 "-ox@";
5710 -- /XML_OUTPUT=filename
5712 -- Place the XML output into the specified file
5714 Metric_Switches : aliased constant Switches :=
5715 (S_Metric_Add 'Access,
5716 S_Metric_All_Prjs 'Access,
5717 S_Metric_Complexity 'Access,
5718 S_Metric_Coupling 'Access,
5719 S_Metric_Debug 'Access,
5720 S_Metric_Direct 'Access,
5721 S_Metric_Element 'Access,
5722 S_Metric_Ext 'Access,
5723 S_Metric_Files 'Access,
5724 S_Metric_Follow 'Access,
5725 S_Metric_Format 'Access,
5726 S_Metric_Globout 'Access,
5727 S_Metric_Line 'Access,
5728 S_Metric_Lines 'Access,
5729 S_Metric_Mess 'Access,
5730 S_Metric_No_Exits_As_Gotos'Access,
5731 S_Metric_No_Local 'Access,
5732 S_Metric_No_Static_Loop 'Access,
5733 S_Metric_Project 'Access,
5734 S_Metric_Quiet 'Access,
5735 S_Metric_Suffix 'Access,
5736 S_Metric_Subdirs 'Access,
5737 S_Metric_Syntax 'Access,
5738 S_Metric_Suppress 'Access,
5739 S_Metric_Verbose 'Access,
5740 S_Metric_XMLout 'Access);
5742 ----------------------------
5743 -- Switches for GNAT NAME --
5744 ----------------------------
5746 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5747 "-c>";
5748 -- /CONFIG_FILE=path_name
5750 -- Create a configuration pragmas file 'path_name' (instead of the default
5751 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5752 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5753 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5755 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5756 "-d*";
5757 -- /SOURCE_DIRS=(directory, ...)
5759 -- Look for source files in the specified directories. When this qualifier
5760 -- is specified, the current working directory will not be searched for
5761 -- source files, unless it is explicitly specified with a qualifier
5762 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5763 -- specified. If a directory is specified as a relative path, it is
5764 -- relative to the directory of the configuration pragmas file specified
5765 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5766 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5767 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5768 -- to the current working directory. The directories specified with
5769 -- qualifiers /SOURCE_DIRS must exist and be readable.
5771 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5772 "-D>";
5773 -- /DIRS_FILE=file_name
5775 -- Look for source files in all directories listed in text file
5776 -- 'file_name'. 'file_name' must be an existing, readable text file.
5777 -- Each non empty line in the specified file must be a directory.
5778 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5779 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5780 -- text file.
5782 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5783 "-eL";
5784 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5785 -- /FOLLOW_LINKS_FOR_FILES
5787 -- Follow links when parsing project files
5789 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5790 "-f" & '"';
5791 -- /FOREIGN_PATTERN=<string>
5793 -- Specify a foreign pattern.
5794 -- Using this qualifier, it is possible to add sources of languages other
5795 -- than Ada to the list of sources of a project file. It is only useful
5796 -- if a qualifier /PROJECT_FILE is used. For example,
5798 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5800 -- will look for Ada units in all files with the '.ADA' extension, and
5801 -- will add to the list of file for project PRJ.GPR the C files with
5802 -- extension ".C".
5804 S_Name_Help : aliased constant S := "/HELP " &
5805 "-h";
5806 -- /NOHELP (D)
5807 -- /HELP
5809 -- Output usage information to the standard output stream.
5811 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5812 "-P>";
5813 -- /PROJECT_FILE=file_name
5815 -- Create or update a project file. 'file_name' may include directory
5816 -- information. The specified file must be writable. There may be only
5817 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5818 -- specified, no qualifier /CONFIG_FILE may be specified.
5820 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5821 "--subdirs=>";
5822 -- /SUBDIRS=dir
5824 -- The actual directories (object, exec, library, ...) are subdirectories
5825 -- of the directory specified in the project file. If the subdirectory
5826 -- does not exist, it is created automatically.
5828 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5829 "-v";
5830 -- /NOVERBOSE (D)
5831 -- /VERBOSE
5833 -- Verbose mode. Output detailed explanation of behavior to the standard
5834 -- output stream. This includes name of the file written, the name of the
5835 -- directories to search and, for each file in those directories whose
5836 -- name matches at least one of the Naming Patterns, an indication of
5837 -- whether the file contains a unit, and if so the name of the unit.
5839 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5840 "-x" & '"';
5841 -- /EXCLUDED_PATTERN=<string>
5843 -- Specify an excluded pattern.
5844 -- Using this qualifier, it is possible to exclude some files that would
5845 -- match the Naming patterns. For example,
5847 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5849 -- will look for Ada units in all files with the '.ADA' extension, except
5850 -- those whose names end with '_NT.ADA'.
5852 Name_Switches : aliased constant Switches :=
5853 (S_Name_Conf 'Access,
5854 S_Name_Dirs 'Access,
5855 S_Name_Dfile 'Access,
5856 S_Name_Follow 'Access,
5857 S_Name_Frng 'Access,
5858 S_Name_Help 'Access,
5859 S_Name_Proj 'Access,
5860 S_Name_Subdirs 'Access,
5861 S_Name_Verbose 'Access,
5862 S_Name_Excl 'Access);
5864 ----------------------------------
5865 -- Switches for GNAT PREPROCESS --
5866 ----------------------------------
5868 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5869 "-D" & '"';
5870 -- /ASSOCIATE="name=val"
5872 -- Defines a new symbol, associated with value. If no value is given
5873 -- on the command line, then symbol is considered to be True.
5874 -- This qualifier can be used in place of a definition file.
5876 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5877 "-b";
5878 -- /NOBLANK_LINES (D)
5879 -- /BLANK_LINES
5881 -- Causes both preprocessor lines and the lines deleted by preprocessing
5882 -- to be replaced by blank lines in the output source file, thus
5883 -- preserving line numbers in the output file.
5885 S_Prep_Com : aliased constant S := "/COMMENTS " &
5886 "-c";
5887 -- /NOCOMMENTS (D)
5888 -- /COMMENTS
5890 -- /COMMENTS causes both preprocessor lines and the lines deleted
5891 -- by preprocessing to be retained in the output source as comments marked
5892 -- with the special string "--! ". This option will result in line numbers
5893 -- being preserved in the output file.
5895 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5896 -- preprocessing to be replaced by blank lines in the output source file,
5897 -- thus preserving line numbers in the output file.
5899 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5900 "-r";
5901 -- /NOREFERENCE (D)
5902 -- /REFERENCE
5904 -- Causes a "Source_Reference" pragma to be generated that references the
5905 -- original input file, so that error messages will use the file name of
5906 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5907 -- specified.
5909 S_Prep_Remove : aliased constant S := "/REMOVE " &
5910 "!-b,!-c";
5911 -- /REMOVE (D)
5912 -- /NOREMOVE
5914 -- Preprocessor lines and deleted lines are completely removed from the
5915 -- output.
5917 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5918 "-C";
5919 -- /NOREPLACE_IN_COMMENTS (D)
5920 -- /REPLACE_IN_COMMENTS
5922 -- Causes preprocessor to scan comments and perform replacements on
5923 -- any $symbol occurrences within the comment text.
5925 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5926 "-s";
5927 -- /NOSYMBOLS (D)
5928 -- /SYMBOLS
5930 -- Causes a sorted list of symbol names and values to be listed on
5931 -- SYS$OUTPUT.
5933 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5934 "-u";
5935 -- /NOUNDEFINED (D)
5936 -- /UNDEFINED
5938 Prep_Switches : aliased constant Switches :=
5939 (S_Prep_Assoc 'Access,
5940 S_Prep_Blank 'Access,
5941 S_Prep_Com 'Access,
5942 S_Prep_Ref 'Access,
5943 S_Prep_Remove 'Access,
5944 S_Prep_Replace 'Access,
5945 S_Prep_Symbols 'Access,
5946 S_Prep_Undef 'Access);
5948 ------------------------------
5949 -- Switches for GNAT PRETTY --
5950 ------------------------------
5952 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5953 "-aP*";
5954 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5956 -- Add directories to the project search path.
5958 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5959 "DEFAULT " &
5960 "-A12345 " &
5961 "OFF " &
5962 "-A0 " &
5963 "COLONS " &
5964 "-A1 " &
5965 "DECLARATIONS " &
5966 "-A2 " &
5967 "STATEMENTS " &
5968 "-A3 " &
5969 "ARROWS " &
5970 "-A4 " &
5971 "COMPONENT_CLAUSES " &
5972 "-A5";
5973 -- /ALIGN[=align-option, align-option, ...]
5975 -- Set alignments. By default, all alignments (colons in declarations,
5976 -- initialisations in declarations, assignments and arrow delimiters) are
5977 -- ON.
5979 -- align-option may be one of the following:
5981 -- OFF (D) Set all alignments to OFF
5982 -- COLONS Set alignments of colons in declarations to ON
5983 -- DECLARATIONS Set alignments of initialisations in declarations
5984 -- to ON
5985 -- STATEMENTS Set alignments of assignments statements to ON
5986 -- ARROWS Set alignments of arrow delimiters to ON.
5987 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5988 -- clauses ON
5990 -- Specifying one of the ON options without first specifying the OFF
5991 -- option has no effect, because by default all alignments are set to ON.
5993 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5994 "-U";
5995 -- /NOALL_PROJECTS (D)
5996 -- /ALL_PROJECTS
5997 -- When GNAT PRETTY is used with a Project File and no source is
5998 -- specified, the underlying tool gnatpp is called for all the
5999 -- sources of all the Project Files in the project tree.
6001 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
6002 "MIXED_CASE " &
6003 "-aM " &
6004 "LOWER_CASE " &
6005 "-aL " &
6006 "UPPER_CASE " &
6007 "-aU";
6008 -- /ATTRIBUTE_CASING[=casing-option]
6010 -- Set the case of the attributes. By default the attributes are in mixed
6011 -- case.
6012 -- casing-option may be one of the following:
6014 -- MIXED_CASE (D)
6015 -- LOWER_CASE
6016 -- UPPER_CASE
6018 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
6019 "UNTOUCHED " &
6020 "-c0 " &
6021 "DEFAULT " &
6022 "-c1 " &
6023 "STANDARD_INDENT " &
6024 "-c2 " &
6025 "GNAT_BEGINNING " &
6026 "-c3 " &
6027 "REFORMAT " &
6028 "-c4 " &
6029 "KEEP_SPECIAL " &
6030 "-c5";
6031 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
6033 -- Set the comment layout. By default, comments use the GNAT style
6034 -- comment line indentation.
6036 -- layout-option may be one of the following:
6038 -- UNTOUCHED All the comments remain unchanged
6039 -- DEFAULT (D) GNAT style comment line indentation
6040 -- STANDARD_INDENT Standard comment line indentation
6041 -- GNAT_BEGINNING GNAT style comment beginning
6042 -- REFORMAT Reformat comment blocks
6043 -- KEEP_SPECIAL Keep unchanged special form comments
6045 -- All combinations of layout options are allowed, except for DEFAULT
6046 -- and STANDARD_INDENT which are mutually exclusive, and also if
6047 -- UNTOUCHED is specified, this must be the only option.
6049 -- The difference between "GNAT style comment line indentation" and
6050 -- "standard comment line indentation" is the following: for standard
6051 -- comment indentation, any comment line is indented as if it were
6052 -- a declaration or statement at the same place.
6053 -- For GNAT style comment indentation, comment lines which are
6054 -- immediately followed by if or case statement alternative, record
6055 -- variant or 'begin' keyword are indented as the keyword that follows
6056 -- them.:
6058 -- Standard indentation:
6060 -- if A then
6061 -- null;
6062 -- -- some comment
6063 -- else
6064 -- null;
6065 -- end if;
6067 -- GNAT style indentation:
6069 -- if A then
6070 -- null;
6071 -- -- some comment
6072 -- else
6073 -- null;
6074 -- end if;
6076 -- Option "GNAT style comment beginning" means that for each comment
6077 -- which is not considered as non-formattable separator (that is, the
6078 -- comment line contains only dashes, or a comment line ends with two
6079 -- dashes), there will be at least two spaces between starting "--" and
6080 -- the first non-blank character of the comment.
6082 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6083 "-gnatec>";
6084 -- /CONFIGURATION_PRAGMAS_FILE=file
6086 -- Specify a configuration pragmas file that need to be passed to the
6087 -- compiler.
6089 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
6090 "GNAT " &
6091 "-l1 " &
6092 "COMPACT " &
6093 "-l2 " &
6094 "UNCOMPACT " &
6095 "-l3";
6096 -- /CONSTRUCT_LAYOUT[=construct-option]
6098 -- Set construct layout. Default is GNAT style layout.
6099 -- construct-option may be one of the following:
6101 -- GNAT (D)
6102 -- COMPACT
6103 -- UNCOMPACT
6105 -- The difference between GNAT style and Compact layout on one hand
6106 -- and Uncompact layout on the other hand can be illustrated by the
6107 -- following examples:
6109 -- GNAT style and Uncompact layout
6110 -- Compact layout
6112 -- type q is record type q is
6113 -- a : integer; record
6114 -- b : integer; a : integer;
6115 -- end record; b : integer;
6116 -- end record;
6119 -- Block : declare Block :
6120 -- A : Integer := 3; declare
6121 -- begin A : Integer := 3;
6122 -- Proc (A, A); begin
6123 -- end Block; Proc (A, A);
6124 -- end Block;
6126 -- Clear : for J in 1 .. 10 loop Clear :
6127 -- A (J) := 0; for J in 1 .. 10 loop
6128 -- end loop Clear; A (J) := 0;
6129 -- end loop Clear;
6132 -- A further difference between GNAT style layout and compact layout is
6133 -- that in GNAT style layout compound statements, return statements and
6134 -- bodies are always separated by empty lines.
6136 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
6137 "-cl#";
6138 -- /CONTINUATION_INDENT=nnn
6140 -- Indentation level for continuation lines, nnn from 1 .. 9.
6141 -- The default value is one less than the (normal) indentation level,
6142 -- unless the indentation is set to 1: in that case the default value for
6143 -- continuation line indentation is also 1.
6145 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
6146 "--no-separate-is";
6147 -- /NO_SEPARATE_IS
6149 -- Do not place the IS keyword on a separate line in a subprogram body in
6150 -- case if the specification occupies more than one line.
6152 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
6153 "--separate-label";
6154 -- /SEPARATE_LABEL
6156 -- Place statement label(s) and the statement itself on separate lines.
6158 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
6159 "--separate-loop-then";
6160 -- /SEPARATE_LOOP_THEN
6162 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
6163 -- and while-loops on a separate line.
6165 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
6166 "--no-separate-loop-then";
6167 -- /NO_SEPARATE_LOOP_THEN
6169 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
6170 -- for- and while-loops on a separate line.
6172 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
6173 "--use-on-new-line";
6174 -- /USE_ON_NEW_LINE
6176 -- Start any USE clause that is a part of a context clause from a
6177 -- separate line.
6179 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
6180 "--separate-stmt-name";
6181 -- /STMT_NAME_ON_NEW_LINE
6183 -- For named block and loop statements use a separate line for the
6184 -- statement name, but do not use an extra indentation level for the
6185 -- statement itself.
6187 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
6188 "DOS " &
6189 "--eol=dos " &
6190 "UNIX " &
6191 "--eol=unix " &
6192 "CRLF " &
6193 "--eol=crlf " &
6194 "LF " &
6195 "--eol=lf";
6196 -- /END_OF_LINE=[option]
6198 -- Specifies the form of the line terminators in the produced source.
6199 -- By default, the form of the line terminator depends on the platforms.
6200 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
6201 -- It is a Carriage Return (CR) followed by a Line Feed.
6203 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
6204 -- also equivalent.
6206 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6207 "-X" & '"';
6208 -- /EXTERNAL_REFERENCE="name=val"
6210 -- Specifies an external reference to the project manager. Useful only if
6211 -- /PROJECT_FILE is used.
6213 -- Example:
6214 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6216 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6217 "!-I-";
6218 -- /CURRENT_DIRECTORY (D)
6220 -- Look for source files in the current working directory.
6222 -- /NOCURRENT_DIRECTORY
6223 -- Do not look for source files in the current working directory.
6225 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
6226 "-D*";
6227 -- /DICTIONARY=(file_name, ...)
6229 -- Use each specified file as a dictionary file that defines the casing
6230 -- for a set of specified names, thereby overriding the effect on these
6231 -- names by any explicit or implicit /NAME_CASING qualifier.
6233 -- GNAT PRETTY implicitly uses a default dictionary file to define the
6234 -- casing for the Ada predefined names and the names declared in the GNAT
6235 -- libraries.
6237 -- The structure of a dictionary file, and details on the conventions
6238 -- used in the default dictionary file, are defined in the GNAT User's
6239 -- Guide.
6241 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
6242 "BRACKETS " &
6243 "-Wb " &
6244 "HEX " &
6245 "-Wh " &
6246 "UPPER " &
6247 "-Wu " &
6248 "SHIFT_JIS " &
6249 "-Ws " &
6250 "EUC " &
6251 "-We " &
6252 "UTF8 " &
6253 "-W8";
6254 -- /RESULT_ENCODING[=encoding-type]
6256 -- Specify the wide character encoding method used when writing the
6257 -- reformatted code in the result file. 'encoding-type' is one of the
6258 -- following:
6260 -- BRACKETS (D) Brackets encoding.
6262 -- HEX Hex ESC encoding.
6264 -- UPPER Upper half encoding.
6266 -- SHIFT_JIS Shift-JIS encoding.
6268 -- EUC EUC Encoding.
6270 -- UTF8 UTF-8 encoding.
6272 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
6273 -- about the different character encoding methods.
6275 S_Pretty_Enums : aliased constant S := "/ENUM_CASING=" &
6276 "AS_DECLARED " &
6277 "-neD " &
6278 "LOWER_CASE " &
6279 "-neL " &
6280 "UPPER_CASE " &
6281 "-neU " &
6282 "MIXED_CASE " &
6283 "-neM";
6284 -- /ENUM_CASING=name-option
6286 -- Specify the casing of enumeration literals. If not specified, the
6287 -- casing of enumeration literals is defined by the NAME_CASING option.
6288 -- 'name-option' may be one of:
6290 -- AS_DECLARED Literals casing for defining occurrences are
6291 -- as they appear in the source file.
6293 -- LOWER_CASE Literals are in lower case.
6295 -- UPPER_CASE Literals are in upper case.
6297 -- MIXED_CASE Literals are in mixed case.
6299 S_Pretty_Files : aliased constant S := "/FILES=@" &
6300 "-files=@";
6301 -- /FILES=filename
6303 -- Take as arguments the files that are listed in the specified
6304 -- text file.
6306 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6307 "-eL";
6308 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6309 -- /FOLLOW_LINKS_FOR_FILES
6311 -- Follow links when parsing project files
6313 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
6314 "-of@";
6315 -- /FORCED_OUTPUT=file
6317 -- Write the output into the specified file, overriding any possibly
6318 -- existing file.
6320 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
6321 "-ff";
6322 -- /FORM_FEED_AFTER_PRAGMA_PAGE
6324 -- When there is a pragma Page in the source, insert a Form Feed
6325 -- character immediately after the semicolon that follows the pragma
6326 -- Page.
6328 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
6329 "-i#";
6330 -- /INDENTATION_LEVEL=nnn
6332 -- Specify the number of spaces to add for each indentation level.
6333 -- nnn must be between 1 and 9. The default is 3.
6335 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
6336 "LOWER_CASE " &
6337 "-kL " &
6338 "UPPER_CASE " &
6339 "-kU";
6340 -- /KEYWORD_CASING[=keyword-option]
6342 -- Specify the case of Ada keywords. The default is keywords in lower
6343 -- case.
6345 -- keyword-option may be one of the following:
6347 -- LOWER_CASE (D)
6348 -- UPPER_CASE
6350 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
6351 "-M#";
6352 -- /LINE_LENGTH_MAX=nnn
6354 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
6356 S_Pretty_Maxact : aliased constant S := "/MAX_ACT=#" &
6357 "--call_threshold=#";
6358 -- /MAX_ACT=nnn
6360 -- If the number of parameter associations is greater than nnn and if at
6361 -- least one association uses named notation, start each association from
6362 -- a new line
6364 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
6365 "-T#";
6366 -- /MAX_INDENT=nnn
6368 -- Do not use an additional indentation level for case alternatives
6369 -- and variants if their number is nnn or more. The default is 10.
6370 -- If nnn is zero, an additional indentation level is used for any
6371 -- number of case alternatives and variants.
6373 S_Pretty_Maxpar : aliased constant S := "/MAX_PAR=#" &
6374 "--par_threshold=#";
6375 -- /MAX_PAR=nnn
6377 -- If the number of parameter specifications is greater than nnn (or equal
6378 -- to nnn in case of a function), start each specification from a new line.
6379 -- The default value is 3.
6381 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6382 "DEFAULT " &
6383 "-vP0 " &
6384 "MEDIUM " &
6385 "-vP1 " &
6386 "HIGH " &
6387 "-vP2";
6388 -- /MESSAGES_PROJECT_FILE[=messages-option]
6390 -- Specifies the "verbosity" of the parsing of project files.
6391 -- messages-option may be one of the following:
6393 -- DEFAULT (D) No messages are output if there is no error or warning.
6395 -- MEDIUM A small number of messages are output.
6397 -- HIGH A great number of messages are output, most of them not
6398 -- being useful for the user.
6400 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
6401 "AS_DECLARED " &
6402 "-nD " &
6403 "LOWER_CASE " &
6404 "-nL " &
6405 "UPPER_CASE " &
6406 "-nU " &
6407 "MIXED_CASE " &
6408 "-nM";
6409 -- /NAME_CASING[=name-option]
6411 -- Specify the casing of names.
6412 -- 'name-option' may be one of:
6414 -- AS_DECLARED (D) Name casing for defining occurrences are as they
6415 -- appear in the source file.
6417 -- LOWER_CASE Names are in lower case.
6419 -- UPPER_CASE Names are in upper case.
6421 -- MIXED_CASE Names are in mixed case.
6423 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6424 "-rnb";
6425 -- /REPLACE_NO_BACKUP
6427 -- Replace the argument source with the pretty-printed source without
6428 -- creating any backup copy of the argument source.
6430 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6431 "-e";
6432 -- /NO_MISSED_LABELS
6434 -- Do not insert missing end/exit labels. The end label is the name of
6435 -- a construct that may optionally appear at the end of the construct.
6436 -- This includes the names of packages and subprograms.
6437 -- Similarly, the exit label is the name of a loop that may appear as the
6438 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6439 -- inserts these end/exit labels when they are absent in the original
6440 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6441 -- so that the formatted source reflects the original.
6443 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6444 "-notabs";
6445 -- /NOTABS
6447 -- Replace all tabulations in comments with spaces.
6449 S_Pretty_Numbers : aliased constant S := "/NUMBER_CASING=" &
6450 "AS_DECLARED " &
6451 "-ntD " &
6452 "LOWER_CASE " &
6453 "-ntL " &
6454 "UPPER_CASE " &
6455 "-ntU " &
6456 "MIXED_CASE " &
6457 "-ntM";
6458 -- /NUMBER_CASING=name-option
6460 -- Specify the casing of named number names. If not specified, the casing
6461 -- of these names is defined by the NAME_CASING option. 'name-option'
6462 -- is one of:
6464 -- AS_DECLARED Names are cased as they appear in the declaration
6465 -- in the source file.
6467 -- LOWER_CASE Names are in lower case.
6469 -- UPPER_CASE Names are in upper case.
6471 -- MIXED_CASE Names are in mixed case.
6473 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6474 "-o@";
6475 -- /OUTPUT=file
6477 -- Write the output to the specified file. If the file already exists,
6478 -- an error is reported.
6480 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6481 "-rf";
6482 -- /NOOVERRIDING_REPLACE (D)
6483 -- /OVERRIDING_REPLACE
6485 -- Replace the argument source with the pretty-printed source and copy the
6486 -- argument source into filename.NPP, overriding any existing file if
6487 -- needed.
6489 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6490 "MIXED_CASE " &
6491 "-pM " &
6492 "LOWER_CASE " &
6493 "-pL " &
6494 "UPPER_CASE " &
6495 "-pU";
6496 -- /PRAGMA_CASING[=pragma-option]
6498 -- Set the case of pragma identifiers. The default is Mixed case.
6499 -- pragma-option may be one of the following:
6501 -- MIXED_CASE (D)
6502 -- LOWER_CASE
6503 -- UPPER_CASE
6505 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6506 "-P>";
6507 -- /PROJECT_FILE=filename
6509 -- Specifies the main project file to be used. The project files rooted
6510 -- at the main project file will be parsed before any other processing to
6511 -- set the building environment.
6513 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6514 "-r";
6515 -- /NOREPLACE (D)
6516 -- /REPLACE
6518 -- Replace the argument source with the pretty-printed source and copy the
6519 -- argument source into filename.NPP. If filename.NPP already exists,
6520 -- report an error and exit.
6522 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6523 "--RTS=|";
6524 -- /RUNTIME_SYSTEM=xxx
6526 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6528 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6529 "-I*";
6530 -- /SEARCH=(directory[,...])
6532 -- When looking for source files also look in directories specified.
6534 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6535 "-D-";
6536 -- /SPECIFIC_CASING
6538 -- Do not use the default dictionary file; instead, use the casing
6539 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6540 -- file specified by a qualifier /DICTIONARY.
6542 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6543 "-pipe";
6544 -- /NOSTANDARD_OUTPUT (D)
6545 -- /STANDARD_OUTPUT
6547 -- Redirect the output to the standard output.
6549 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6550 "--subdirs=>";
6551 -- /SUBDIRS=dir
6553 -- The actual directories (object, exec, library, ...) are subdirectories
6554 -- of the directory specified in the project file. If the subdirectory
6555 -- does not exist, it is created automatically.
6557 S_Pretty_Types : aliased constant S := "/TYPE_CASING=" &
6558 "AS_DECLARED " &
6559 "-ntD " &
6560 "LOWER_CASE " &
6561 "-ntL " &
6562 "UPPER_CASE " &
6563 "-ntU " &
6564 "MIXED_CASE " &
6565 "-ntM";
6566 -- /TYPE_CASING=name-option
6568 -- Specify the casing of subtype names (including first subtypes from
6569 -- type declarations). If not specified, the casing of these names is
6570 -- defined by the NAME_CASING option. 'name-option' is one of:
6572 -- AS_DECLARED Names are cased as they appear in the declaration
6573 -- in the source file.
6575 -- LOWER_CASE Names are in lower case.
6577 -- UPPER_CASE Names are in upper case.
6579 -- MIXED_CASE Names are in mixed case.
6581 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6582 "-v";
6583 -- /NOVERBOSE (D)
6584 -- /VERBOSE
6586 -- Verbose mode; GNAT PRETTY generates version information and then a
6587 -- trace of the actions it takes to produce or obtain the ASIS tree.
6589 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6590 "-w";
6591 -- /NOWARNINGS (D)
6592 -- /WARNINGS
6594 -- Issue a warning to the standard error stream if it is not possible
6595 -- to provide the required layout in the result source.
6596 -- By default such warnings are not activated.
6598 Pretty_Switches : aliased constant Switches :=
6599 (S_Pretty_Add 'Access,
6600 S_Pretty_Align 'Access,
6601 S_Pretty_All_Prjs 'Access,
6602 S_Pretty_Attrib 'Access,
6603 S_Pretty_Comments 'Access,
6604 S_Pretty_Compact_Is 'Access,
6605 S_Pretty_Config 'Access,
6606 S_Pretty_Constr 'Access,
6607 S_Pretty_Comind 'Access,
6608 S_Pretty_Current 'Access,
6609 S_Pretty_Dico 'Access,
6610 S_Pretty_Eol 'Access,
6611 S_Pretty_Ext 'Access,
6612 S_Pretty_Encoding 'Access,
6613 S_Pretty_Enums 'Access,
6614 S_Pretty_Files 'Access,
6615 S_Pretty_Follow 'Access,
6616 S_Pretty_Forced 'Access,
6617 S_Pretty_Formfeed 'Access,
6618 S_Pretty_Indent 'Access,
6619 S_Pretty_Keyword 'Access,
6620 S_Pretty_Maxlen 'Access,
6621 S_Pretty_Maxact 'Access,
6622 S_Pretty_Maxind 'Access,
6623 S_Pretty_Maxpar 'Access,
6624 S_Pretty_Mess 'Access,
6625 S_Pretty_Names 'Access,
6626 S_Pretty_No_Labels 'Access,
6627 S_Pretty_Notabs 'Access,
6628 S_Pretty_Numbers 'Access,
6629 S_Pretty_Output 'Access,
6630 S_Pretty_Override 'Access,
6631 S_Pretty_Pragma 'Access,
6632 S_Pretty_Replace 'Access,
6633 S_Pretty_Replace_No_Backup'Access,
6634 S_Pretty_Project 'Access,
6635 S_Pretty_RTS 'Access,
6636 S_Pretty_Search 'Access,
6637 S_Pretty_Sep_Label 'Access,
6638 S_Pretty_Sep_Loop_Then 'Access,
6639 S_Pretty_N_Sep_Loop_Then 'Access,
6640 S_Pretty_Subdirs 'Access,
6641 S_Pretty_Use_On_New_Line 'Access,
6642 S_Pretty_Stnm_On_Nw_Line 'Access,
6643 S_Pretty_Specific 'Access,
6644 S_Pretty_Standard 'Access,
6645 S_Pretty_Types 'Access,
6646 S_Pretty_Verbose 'Access,
6647 S_Pretty_Warnings 'Access);
6649 ------------------------------
6650 -- Switches for GNAT SHARED --
6651 ------------------------------
6653 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6654 "ALL " &
6655 "-g3 " &
6656 "NONE " &
6657 "-g0 " &
6658 "TRACEBACK " &
6659 "-g1 " &
6660 "NOTRACEBACK " &
6661 "-g0";
6662 -- /DEBUG[=debug-option]
6663 -- /NODEBUG
6665 -- Specifies the amount of debugging information included. 'debug-option'
6666 -- is one of the following:
6668 -- ALL (D) Include full debugging information.
6670 -- NONE Provide no debugging information. Same as /NODEBUG.
6672 -- TRACEBACK Provide sufficient debug information for a traceback.
6674 -- NOTRACEBACK Same as NONE.
6676 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6677 "-o@";
6678 -- /IMAGE=image-name
6680 -- 'image-name' specifies the name for the generated shared library.
6682 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6683 "--for-linker=IDENT=" &
6684 '"';
6685 -- /IDENTIFICATION="<string>"
6687 -- "<string>" specifies the string to be stored in the image file ident-
6688 -- ification field in the image header. It overrides any pragma Ident
6689 -- specified string.
6691 S_Shared_NoInhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6692 "--for-linker=--noinhibit-exec";
6693 -- /NOINHIBIT-EXEC (D)
6695 -- Preserve image if there are warnings. This is the default.
6697 S_Shared_Inhib : aliased constant S := "/INHIBIT-IMAGE " &
6698 "--for-linker=--inhibit-exec";
6699 -- /INHIBIT-EXEC
6701 -- Remove image if there are warnings.
6703 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6704 "-nostartfiles";
6705 -- /NOSTART_FILES
6707 -- Link in default image initialization and startup functions.
6709 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6710 "-v";
6711 -- /NOVERBOSE (D)
6712 -- /VERBOSE
6714 -- Causes additional information to be output, including a full list of
6715 -- the included object files. This switch option is most useful when you
6716 -- want to see what set of object files are being used in the link step.
6718 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6719 "--for-linker=";
6720 -- /<other>
6722 -- Any other switch transmitted to the underlying linker.
6724 Shared_Switches : aliased constant Switches :=
6725 (S_Shared_Debug 'Access,
6726 S_Shared_Image 'Access,
6727 S_Shared_Ident 'Access,
6728 S_Shared_NoInhib 'Access,
6729 S_Shared_Inhib 'Access,
6730 S_Shared_Nofiles 'Access,
6731 S_Shared_Verb 'Access,
6732 S_Shared_ZZZZZ 'Access);
6734 -----------------------------
6735 -- Switches for GNAT STACK --
6736 -----------------------------
6738 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6739 "-aP*";
6740 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6742 -- Add directories to the project search path.
6744 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6745 "-a";
6746 -- /NOALL_SUBPROGRAMS (D)
6747 -- /ALL_SUBPROGRAMS
6749 -- Consider all subprograms as entry points.
6751 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6752 "-ca";
6753 -- /NOALL_CYCLES (D)
6754 -- /ALL_CYCLES
6756 -- Extract all possible cycles in the call graph.
6758 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6759 "-U";
6760 -- /NOALL_PROJECTS (D)
6761 -- /ALL_PROJECTS
6763 -- When GNAT STACK is used with a Project File and no source is
6764 -- specified, the underlying tool gnatstack is called for all the
6765 -- units of all the Project Files in the project tree.
6767 S_Stack_Debug : aliased constant S := "/DEBUG " &
6768 "-g";
6769 -- /NODEBUG (D)
6770 -- /DEBUG
6772 -- Generate internal debug information.
6774 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6775 "-aO*";
6776 -- /DIRECTORY=(direc[,...])
6778 -- When looking for .ci files look also in directories specified.
6780 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6781 "-e*";
6783 -- /ENTRY=(entry_point[,...])
6785 -- Name of symbol to be used as entry point for the analysis.
6787 S_Stack_Files : aliased constant S := "/FILES=@" &
6788 "-files=@";
6789 -- /FILES=filename
6791 -- Take as arguments the files that are listed in the specified
6792 -- text file.
6794 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6795 "-eL";
6796 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6797 -- /FOLLOW_LINKS_FOR_FILES
6799 -- Follow links when parsing project files
6801 S_Stack_Help : aliased constant S := "/HELP " &
6802 "-h";
6803 -- /NOHELP (D)
6804 -- /HELP
6806 -- Output a message explaining the usage of gnatstack.
6808 S_Stack_List : aliased constant S := "/LIST=#" &
6809 "-l#";
6810 -- /LIST=nnn
6812 -- Print the nnn subprograms requiring the biggest local stack usage. By
6813 -- default none will be displayed.
6815 S_Stack_Order : aliased constant S := "/ORDER=" &
6816 "STACK " &
6817 "-os " &
6818 "ALPHABETICAL " &
6819 "-oa";
6820 -- /ORDER[=order-option]
6822 -- Specifies the order for displaying the different call graphs.
6823 -- order-option may be one of the following:
6825 -- STACK (D) Select stack usage order
6827 -- ALPHABETICAL Select alphabetical order
6829 S_Stack_Path : aliased constant S := "/PATH " &
6830 "-p";
6831 -- /NOPATH (D)
6832 -- /PATH
6834 -- Print all the subprograms that make up the worst-case path for every
6835 -- entry point.
6837 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6838 "-P>";
6839 -- /PROJECT_FILE=filename
6841 -- Specifies the main project file to be used. The project files rooted
6842 -- at the main project file will be parsed before the invocation of
6843 -- gnatstack.
6845 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6846 "-f@";
6847 -- /OUTPUT=filename
6849 -- Name of the file containing the generated graph (VCG format).
6851 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6852 "-r|";
6854 -- /EXPRESSION=regular-expression
6856 -- Any symbol matching the regular expression will be considered as a
6857 -- potential entry point for the analysis.
6859 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6860 "--subdirs=>";
6861 -- /SUBDIRS=dir
6863 -- The actual directories (object, exec, library, ...) are subdirectories
6864 -- of the directory specified in the project file. If the subdirectory
6865 -- does not exist, it is created automatically.
6867 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6868 "-d#";
6869 -- /UNBOUNDED=nnn
6871 -- Default stack size to be used for unbounded (dynamic) frames.
6873 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6874 "-u#";
6875 -- /UNKNOWN=nnn
6877 -- Default stack size to be used for unknown (external) calls.
6879 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6880 "-v";
6881 -- /NOVERBOSE (D)
6882 -- /VERBOSE
6884 -- Specifies the amount of information to be displayed about the
6885 -- different subprograms. In verbose mode the full location of the
6886 -- subprogram will be part of the output, as well as detailed information
6887 -- about inaccurate data.
6889 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6890 "ALL " &
6891 "-Wa " &
6892 "CYCLES " &
6893 "-Wc " &
6894 "UNBOUNDED " &
6895 "-Wu " &
6896 "EXTERNAL " &
6897 "-We " &
6898 "INDIRECT " &
6899 "-Wi";
6900 -- /WARNINGS[=(keyword[,...])]
6902 -- The following keywords are supported:
6904 -- ALL Turn on all optional warnings
6906 -- CYCLES Turn on warnings for cycles
6908 -- UNBOUNDED Turn on warnings for unbounded frames
6910 -- EXTERNAL Turn on warnings for external calls
6912 -- INDIRECT Turn on warnings for indirect calls
6914 Stack_Switches : aliased constant Switches :=
6915 (S_Stack_Add 'Access,
6916 S_Stack_All 'Access,
6917 S_Stack_All_Cycles 'Access,
6918 S_Stack_All_Prjs 'Access,
6919 S_Stack_Debug 'Access,
6920 S_Stack_Directory 'Access,
6921 S_Stack_Entries 'Access,
6922 S_Stack_Files 'Access,
6923 S_Stack_Follow 'Access,
6924 S_Stack_Help 'Access,
6925 S_Stack_List 'Access,
6926 S_Stack_Order 'Access,
6927 S_Stack_Path 'Access,
6928 S_Stack_Project 'Access,
6929 S_Stack_Output 'Access,
6930 S_Stack_Regexp 'Access,
6931 S_Stack_Subdirs 'Access,
6932 S_Stack_Unbounded 'Access,
6933 S_Stack_Unknown 'Access,
6934 S_Stack_Verbose 'Access,
6935 S_Stack_Warnings 'Access);
6937 ----------------------------
6938 -- Switches for GNAT STUB --
6939 ----------------------------
6941 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6942 "-aP*";
6943 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6945 -- Add directories to the project search path.
6947 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6948 "-gnatec>";
6949 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6951 -- Specifies a configuration pragmas file that must be taken into account
6952 -- when compiling.
6954 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6955 "!-I-";
6956 -- /CURRENT_DIRECTORY (D)
6957 -- /NOCURRENT_DIRECTORY
6959 -- Look for source, library or object files in the default directory.
6961 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6962 "-X" & '"';
6963 -- /EXTERNAL_REFERENCE="name=val"
6965 -- Specifies an external reference to the project manager. Useful only if
6966 -- /PROJECT_FILE is used.
6968 -- Example:
6969 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6971 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6972 "-eL";
6973 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6974 -- /FOLLOW_LINKS_FOR_FILES
6976 -- Follow links when parsing project files
6978 S_Stub_Full : aliased constant S := "/FULL " &
6979 "-f";
6980 -- /NOFULL (D)
6981 -- /FULL
6983 -- If the destination directory already contains a file with the name of
6984 -- the body file for the argument file spec, replace it with the generated
6985 -- body stub. If /FULL is not used and there is already a body file, this
6986 -- existing body file is not replaced.
6988 S_Stub_Header : aliased constant S := "/HEADER=" &
6989 "GENERAL " &
6990 "-hg " &
6991 "SPEC " &
6992 "-hs";
6993 -- /HEADER[=header-option]
6995 -- Specifies the form of the comment header above the generated body stub.
6996 -- If no /HEADER qualifier is specified, there is no comment header.
6997 -- header-option is one of the following:
7000 -- GENERAL (D) Put a sample comment header into the body stub.
7002 -- SPEC Put the comment header (i.e., all the comments
7003 -- preceding the compilation unit) from the source of the
7004 -- library unit declaration into the body stub.
7006 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
7007 "--header-file=>";
7009 -- /FROM_HEADER_FILE==filename
7011 -- Use the content of the file as the comment header for a generated body
7012 -- stub.
7014 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
7015 "-i#";
7016 -- /INDENTATION=nnn
7018 -- (nnn is a non-negative integer). Set the indentation level in the
7019 -- generated body stub to nnn. nnn=0 means "no indentation".
7020 -- Default indentation is 3.
7022 S_Stub_Keep : aliased constant S := "/KEEP " &
7023 "-k";
7024 -- /NOKEEP (D)
7025 -- /KEEP
7027 -- Do not delete the tree file (i.e., the snapshot of the compiler
7028 -- internal structures used by gnatstub) after creating the body stub.
7030 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
7031 "-l#";
7032 -- /LINE_LENGTH=nnn
7034 -- (n is a non-negative integer). Set the maximum line length in the body
7035 -- stub to nnn. Default is 78.
7037 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7038 "DEFAULT " &
7039 "-vP0 " &
7040 "MEDIUM " &
7041 "-vP1 " &
7042 "HIGH " &
7043 "-vP2";
7044 -- /MESSAGES_PROJECT_FILE[=messages-option]
7046 -- Specifies the "verbosity" of the parsing of project files.
7047 -- messages-option may be one of the following:
7049 -- DEFAULT (D) No messages are output if there is no error or warning.
7051 -- MEDIUM A small number of messages are output.
7053 -- HIGH A great number of messages are output, most of them not
7054 -- being useful for the user.
7056 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
7057 "--no-exception";
7058 -- /NONO_EXCEPTION (D)
7059 -- /NO_EXCEPTION
7061 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
7063 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
7064 "--no-local-header";
7065 -- /NONO_LOCAL_HEADER (D)
7066 -- /NO_LOCAL_HEADER
7068 -- Do not put local comment header before body stub for local program unit.
7070 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
7071 "-o@";
7072 -- /OUTPUT=filespec
7074 -- Body file name. This should be set if the argument file name does not
7075 -- follow the GNAT file naming conventions. If this switch is omitted,
7076 -- the default name for the body will be obtained from the argument file
7077 -- name according to the GNAT file naming conventions.
7079 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
7080 "-P>";
7081 -- /PROJECT_FILE=filename
7083 -- Specifies the main project file to be used. The project files rooted
7084 -- at the main project file will be parsed before any other processing.
7085 -- The source and object directories to be searched will be communicated
7086 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
7087 -- ADA_PRJ_OBJECTS_FILE.
7089 S_Stub_Quiet : aliased constant S := "/QUIET " &
7090 "-q";
7091 -- /NOQUIET (D)
7092 -- /QUIET
7094 -- Quiet mode: do not generate a confirmation when a body is successfully
7095 -- created, and do not generate a message when a body is not required for
7096 -- an argument unit.
7098 S_Stub_Search : aliased constant S := "/SEARCH=*" &
7099 "-I*";
7100 -- /SEARCH=(directory[,...])
7102 -- When looking for source files also look in directories specified.
7104 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
7105 "--subdirs=>";
7106 -- /SUBDIRS=dir
7108 -- The actual directories (object, exec, library, ...) are subdirectories
7109 -- of the directory specified in the project file. If the subdirectory
7110 -- does not exist, it is created automatically.
7112 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
7113 "OVERWRITE " &
7114 "-t " &
7115 "SAVE " &
7116 "-k " &
7117 "REUSE " &
7118 "-r";
7119 -- /TREE_FILE[=treefile-option]
7121 -- Specify what to do with the tree file.
7122 -- treefile-option is one of the following:
7124 -- OVERWRITE (D) Overwrite the existing tree file. If the current
7125 -- directory already contains the file which, according
7126 -- to the GNAT file naming rules should be considered
7127 -- as a tree file for the argument source file, gnatstub
7128 -- will refuse to create the tree file needed to create
7129 -- a sample body unless this option is chosen.
7131 -- SAVE Do not remove the tree file (i.e., the snapshot
7132 -- of the compiler internal structures used by gnatstub)
7133 -- after creating the body stub.
7135 -- REUSE Reuse the tree file (if it exists) instead of
7136 -- creating it.
7137 -- Instead of creating the tree file for the library
7138 -- unit declaration, gnatstub tries to find it in the
7139 -- current directory and use it for creating a body.
7140 -- If the tree file is not found, no body is created.
7141 -- This option also implies `SAVE', whether or not the
7142 -- latter is set explicitly.
7144 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
7145 "-v";
7146 -- /NOVERBOSE (D)
7147 -- /VERBOSE
7149 -- Verbose mode: generate version information.
7151 Stub_Switches : aliased constant Switches :=
7152 (S_Stub_Add 'Access,
7153 S_Stub_Config 'Access,
7154 S_Stub_Current 'Access,
7155 S_Stub_Ext 'Access,
7156 S_Stub_Follow 'Access,
7157 S_Stub_Full 'Access,
7158 S_Stub_Header 'Access,
7159 S_Stub_Header_File'Access,
7160 S_Stub_Indent 'Access,
7161 S_Stub_Keep 'Access,
7162 S_Stub_Length 'Access,
7163 S_Stub_Mess 'Access,
7164 S_Stub_Output 'Access,
7165 S_Stub_Project 'Access,
7166 S_Stub_No_Exc 'Access,
7167 S_Stub_No_Head 'Access,
7168 S_Stub_Quiet 'Access,
7169 S_Stub_Search 'Access,
7170 S_Stub_Subdirs 'Access,
7171 S_Stub_Tree 'Access,
7172 S_Stub_Verbose 'Access);
7174 ----------------------------
7175 -- Switches for GNAT SYNC --
7176 ----------------------------
7178 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7179 "-aP*";
7180 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7182 -- Add directories to the project search path.
7184 S_Sync_All : aliased constant S := "/ALL " &
7185 "-a";
7186 -- /NOALL (D)
7187 -- /ALL
7189 -- Also check the components of the GNAT run time and process the needed
7190 -- components of the GNAT RTL when building and analyzing the global
7191 -- structure for checking the global rules.
7193 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
7194 "-U";
7195 -- /NOALL_PROJECTS (D)
7196 -- /ALL_PROJECTS
7198 -- When GNAT SYNC is used with a Project File and no source is
7199 -- specified, the underlying tool gnatsync is called for all the
7200 -- sources of all the Project Files in the project tree.
7202 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7203 "-X" & '"';
7204 -- /EXTERNAL_REFERENCE="name=val"
7206 -- Specifies an external reference to the project manager. Useful only if
7207 -- /PROJECT_FILE is used.
7209 -- Example:
7210 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7212 S_Sync_Files : aliased constant S := "/FILES=@" &
7213 "-files=@";
7214 -- /FILES=filename
7216 -- Take as arguments the files that are listed in the specified
7217 -- text file.
7219 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7220 "-eL";
7221 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7222 -- /FOLLOW_LINKS_FOR_FILES
7224 -- Follow links when parsing project files
7226 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
7227 "-main=@";
7228 -- /MAIN_SUBPROGRAM=filename
7230 -- Specify the name of the file containing the main subprogram
7232 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7233 "DEFAULT " &
7234 "-vP0 " &
7235 "MEDIUM " &
7236 "-vP1 " &
7237 "HIGH " &
7238 "-vP2";
7239 -- /MESSAGES_PROJECT_FILE[=messages-option]
7241 -- Specifies the "verbosity" of the parsing of project files.
7242 -- messages-option may be one of the following:
7244 -- DEFAULT (D) No messages are output if there is no error or warning.
7246 -- MEDIUM A small number of messages are output.
7248 -- HIGH A great number of messages are output, most of them not
7249 -- being useful for the user.
7251 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
7252 "-P>";
7253 -- /PROJECT_FILE=filename
7255 -- Specifies the main project file to be used. The project files rooted
7256 -- at the main project file will be parsed before the invocation of the
7257 -- gnatcheck. The source directories to be searched will be communicated
7258 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
7260 S_Sync_Quiet : aliased constant S := "/QUIET " &
7261 "-q";
7262 -- /NOQUIET (D)
7263 -- /QUIET
7265 -- Work quietly, only output warnings and errors.
7267 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
7268 "--subdirs=>";
7269 -- /SUBDIRS=dir
7271 -- The actual directories (object, exec, library, ...) are subdirectories
7272 -- of the directory specified in the project file. If the subdirectory
7273 -- does not exist, it is created automatically.
7275 S_Sync_Verb : aliased constant S := "/VERBOSE " &
7276 "-v";
7277 -- /NOVERBOSE (D)
7278 -- /VERBOSE
7280 -- The version number and copyright notice are output, as well as exact
7281 -- copies of the gnat1 commands spawned to obtain the chop control
7282 -- information.
7284 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
7285 "-t";
7286 -- /NOEXECUTION_TIME (D)
7287 -- /EXECUTION_TIME
7289 -- Output the execution time
7291 S_Sync_Details : aliased constant S := "/DETAILS=" &
7292 "MEDIUM " &
7293 "-om " &
7294 "SHORT " &
7295 "-os " &
7296 "FULL " &
7297 "-of";
7298 -- /DETAILS[=options]
7300 -- Specifies the details of the output.
7301 -- Options may be one of the following:
7303 -- MEDIUM (D)
7304 -- SHORT
7305 -- FULL
7307 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
7308 "-wq";
7310 -- /WARNINGS_OFF
7312 -- Turn warnings off
7314 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
7315 "-out_file=>";
7317 -- /OUTPUT_FILE=filename
7319 -- Redirect output to a text file
7321 Sync_Switches : aliased constant Switches :=
7322 (S_Sync_Add 'Access,
7323 S_Sync_All 'Access,
7324 S_Sync_Allproj 'Access,
7325 S_Sync_Ext 'Access,
7326 S_Sync_Follow 'Access,
7327 S_Sync_Files 'Access,
7328 S_Sync_Main 'Access,
7329 S_Sync_Mess 'Access,
7330 S_Sync_Project 'Access,
7331 S_Sync_Quiet 'Access,
7332 S_Sync_Subdirs 'Access,
7333 S_Sync_Verb 'Access,
7334 S_Sync_Exec 'Access,
7335 S_Sync_Details 'Access,
7336 S_Sync_Warnoff 'Access,
7337 S_Sync_Output 'Access);
7339 ----------------------------
7340 -- Switches for GNAT TEST --
7341 ----------------------------
7343 Test_Switches : aliased constant Switches :=
7344 (1 .. 0 => null);
7346 ----------------------------
7347 -- Switches for GNAT XREF --
7348 ----------------------------
7350 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7351 "-aP*";
7352 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7354 -- Add directories to the project search path.
7356 S_Xref_All : aliased constant S := "/ALL_FILES " &
7357 "-a";
7358 -- /NOALL_FILES (D)
7359 -- /ALL_FILES
7361 -- If this switch is present, FIND and XREF will parse the read-only
7362 -- files found in the library search path. Otherwise, these files will
7363 -- be ignored. This option can be used to protect Gnat sources or your
7364 -- own libraries from being parsed, thus making FIND and XREF much
7365 -- faster, and their output much smaller.
7367 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
7368 "-d";
7369 -- /NODERIVED_TYPES (D)
7370 -- /DERIVED_TYPES
7372 -- Output the parent type reference for each matching derived types.
7374 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7375 "-X" & '"';
7376 -- /EXTERNAL_REFERENCE="name=val"
7378 -- Specifies an external reference to the project manager. Useful only if
7379 -- /PROJECT_FILE is used.
7381 -- Example:
7382 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7384 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7385 "-eL";
7386 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7387 -- /FOLLOW_LINKS_FOR_FILES
7389 -- Follow links when parsing project files
7391 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
7392 "-f";
7393 -- /NOFULL_PATHNAME (D)
7394 -- /FULL_PATHNAME
7396 -- If this switch is set, the output file names will be preceded by their
7397 -- directory (if the file was found in the search path). If this switch
7398 -- is not set, the directory will not be printed.
7400 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
7401 "-g";
7402 -- /NOIGNORE_LOCALS (D)
7403 -- /IGNORE_LOCALS
7405 -- If this switch is set, information is output only for library-level
7406 -- entities, ignoring local entities. The use of this switch may
7407 -- accelerate FIND and XREF.
7409 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7410 "DEFAULT " &
7411 "-vP0 " &
7412 "MEDIUM " &
7413 "-vP1 " &
7414 "HIGH " &
7415 "-vP2";
7416 -- /MESSAGES_PROJECT_FILE[=messages-option]
7418 -- Specifies the "verbosity" of the parsing of project files.
7419 -- messages-option may be one of the following:
7421 -- DEFAULT (D) No messages are output if there is no error or warning.
7423 -- MEDIUM A small number of messages are output.
7425 -- HIGH A great number of messages are output, most of them not
7426 -- being useful for the user.
7428 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
7429 "-nostdinc";
7430 -- /NOSTD_INCLUDES
7432 -- Do not look for sources in the system default directory.
7434 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
7435 "-nostdlib";
7436 -- /NOSTD_LIBRARIES
7438 -- Do not look for library files in the system default directory.
7440 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
7441 "-aO*";
7442 -- /OBJECT_SEARCH=(directory,...)
7444 -- When searching for library and object files, look in the specified
7445 -- directories. The order in which library files are searched is the same
7446 -- as for MAKE.
7448 S_Xref_Project : aliased constant S := "/PROJECT=@" &
7449 "-p@";
7450 -- /PROJECT=file
7452 -- Specify a project file to use. By default, FIND and XREF will try to
7453 -- locate a project file in the current directory.
7455 -- If a project file is either specified or found by the tools, then the
7456 -- content of the source directory and object directory lines are added
7457 -- as if they had been specified respectively by /SOURCE_SEARCH and
7458 -- /OBJECT_SEARCH.
7460 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
7461 "-P>";
7462 -- /PROJECT_FILE=filename
7464 -- Specifies the main project file to be used. The project files rooted
7465 -- at the main project file will be parsed before doing any processing.
7466 -- The source and object directories to be searched will be communicated
7467 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
7468 -- ADA_PRJ_OBJECTS_FILE.
7470 S_Xref_Search : aliased constant S := "/SEARCH=*" &
7471 "-I*";
7472 -- /SEARCH=(directory,...)
7474 -- Equivalent to:
7475 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
7477 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
7478 "-aI*";
7479 -- /SOURCE_SEARCH=(directory,...)
7481 -- When looking for source files also look in the specified directories.
7482 -- The order in which source file search is undertaken is the same as for
7483 -- MAKE.
7485 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
7486 "--subdirs=>";
7487 -- /SUBDIRS=dir
7489 -- The actual directories (object, exec, library, ...) are subdirectories
7490 -- of the directory specified in the project file. If the subdirectory
7491 -- does not exist, it is created automatically.
7493 S_Xref_Output : aliased constant S := "/UNUSED " &
7494 "-u";
7495 -- /SOURCE_SEARCH=(directory,...)
7497 -- When looking for source files also look in the specified directories.
7498 -- The order in which source file search is undertaken is the same as for
7499 -- MAKE.
7501 S_Xref_Tags : aliased constant S := "/TAGS " &
7502 "-v";
7503 -- /NOTAGS (D)
7504 -- /TAGS
7506 -- Print a 'tags' file for vi.
7508 Xref_Switches : aliased constant Switches :=
7509 (S_Xref_Add 'Access,
7510 S_Xref_All 'Access,
7511 S_Xref_Deriv 'Access,
7512 S_Xref_Ext 'Access,
7513 S_Xref_Follow 'Access,
7514 S_Xref_Full 'Access,
7515 S_Xref_Global 'Access,
7516 S_Xref_Mess 'Access,
7517 S_Xref_Nostinc 'Access,
7518 S_Xref_Nostlib 'Access,
7519 S_Xref_Object 'Access,
7520 S_Xref_Project 'Access,
7521 S_Xref_Prj 'Access,
7522 S_Xref_Search 'Access,
7523 S_Xref_Source 'Access,
7524 S_Xref_Subdirs 'Access,
7525 S_Xref_Output 'Access,
7526 S_Xref_Tags 'Access);
7528 end VMS_Data;