* contrib-list.mk (LIST): Remove arm-freebsd6, arm-linux,
[official-gcc.git] / gcc / ada / vms_data.ads
blob80c6eaf641cc47e03e222043882682127a8e7c9d
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- V M S _ D A T A --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1996-2012, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
20 -- --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
23 -- --
24 ------------------------------------------------------------------------------
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_Asm : aliased constant S := "/ASM " &
1284 "-S,!-c";
1285 -- /NOASM (D)
1286 -- /ASM
1288 -- Use to cause the assembler source file to be generated, using S as the
1289 -- filetype, instead of the object file. This may be useful if you need
1290 -- to examine the generated assembly code.
1292 S_GCC_AValid : aliased constant S := "/ASSUME_VALID " &
1293 "-gnatB";
1294 -- /NO_ASSUME_VALID (D)
1295 -- /ASSUME_VALID
1297 -- Use to tell the compiler to assume that all objects have valid values
1298 -- except those occurring as prefixes to 'Valid attributes. In the default
1299 -- mode, the compiler assumes that values may be invalid unless it can
1300 -- be sure that they are valid, and code is generated to allow for this
1301 -- possibility. The use of /ASSUME_VALID will improve the code.
1303 S_GCC_CategW : aliased constant S := "/CATEGORIZATION_WARNINGS " &
1304 "-gnateP";
1305 -- /NO_CATEGORIZATION_WARNINGS (D)
1306 -- /CATEGORIZATION_WARNINGS
1308 -- Use to tell the compiler to disable categorization dependency errors.
1309 -- Ada requires that units that WITH one another have compatible
1310 -- categories, for example a Pure unit cannot WITH a Preelaborate unit.
1311 -- If this switch is used, these errors become warnings (which can be
1312 -- ignored, or suppressed in the usual manner). This can be useful in
1313 -- some specialized circumstances such as the temporary use of special
1314 -- test software.
1316 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1317 "FULL " &
1318 "-gnato,!-gnatE,!-gnatp " &
1319 "OVERFLOW " &
1320 "-gnato " &
1321 "ELABORATION " &
1322 "-gnatE " &
1323 "ASSERTIONS " &
1324 "-gnata " &
1325 "DEFAULT " &
1326 "!-gnato,!-gnatp " &
1327 "STACK " &
1328 "-fstack-check " &
1329 "SUPPRESS_ALL " &
1330 "-gnatp " &
1331 "UNSUPPRESS_ALL " &
1332 "-gnat-p";
1333 -- /NOCHECKS
1334 -- /CHECKS[=(keyword[,...])]
1336 -- If you compile with the default options, GNAT will insert many runtime
1337 -- checks into the compiled code, including code that performs range
1338 -- checking against constraints, but not arithmetic overflow checking for
1339 -- integer operations (including division by zero) or checks for access
1340 -- before elaboration on subprogram calls. All other runtime checks, as
1341 -- required by the Ada 95 Reference Manual, are generated by default.
1343 -- You may specify one or more of the following keywords to the /CHECKS
1344 -- qualifier to modify this behavior:
1346 -- DEFAULT The behavior described above. This is the default
1347 -- if the /CHECKS qualifier is not present on the
1348 -- command line. Same as /NOCHECKS.
1350 -- OVERFLOW Enables overflow checking for integer operations and
1351 -- checks for access before elaboration on subprogram
1352 -- calls. This causes GNAT to generate slower and larger
1353 -- executable programs by adding code to check for both
1354 -- overflow and division by zero (resulting in raising
1355 -- "Constraint_Error" as required by Ada semantics).
1356 -- Similarly, GNAT does not generate elaboration check
1357 -- by default, and you must specify this keyword to
1358 -- enable them.
1360 -- Note that this keyword does not affect the code
1361 -- generated for any floating-point operations; it
1362 -- applies only to integer operations. For the case of
1363 -- floating-point, GNAT has the "Machine_Overflows"
1364 -- attribute set to "False" and the normal mode of
1365 -- operation is to generate IEEE NaN and infinite values
1366 -- on overflow or invalid operations (such as dividing
1367 -- 0.0 by 0.0).
1369 -- ELABORATION Enables dynamic checks for access-before-elaboration
1370 -- on subprogram calls and generic instantiations.
1372 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1373 -- effect and are ignored. This keyword causes "Assert"
1374 -- and "Debug" pragmas to be activated, as well as
1375 -- "Check", "Precondition" and "Postcondition" pragmas.
1377 -- SUPPRESS_ALL Suppress all runtime checks as though you have
1378 -- "pragma Suppress (all_checks)" in your source. Use
1379 -- this switch to improve the performance of the code at
1380 -- the expense of safety in the presence of invalid data
1381 -- or program bugs.
1383 -- UNSUPPRESS_ALL Cancels effect of previous SUPPRESS_ALL.
1385 -- DEFAULT Suppress the effect of any option OVERFLOW or
1386 -- ASSERTIONS.
1388 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1389 -- option ELABORATION or SUPPRESS_ALL.
1391 -- These keywords only control the default setting of the checks. You
1392 -- may modify them using either "Suppress" (to remove checks) or
1393 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1394 -- source.
1396 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1397 "-gnatp,!-gnato,!-gnatE";
1398 -- NODOC (see /CHECKS)
1400 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1401 "-gnatC";
1402 -- /NOCOMPRESS_NAMES (D)
1403 -- /COMPRESS_NAMES
1405 -- Compress debug information and external symbol name table entries.
1406 -- In the generated debugging information, and also in the case of long
1407 -- external names, the compiler uses a compression mechanism if the name
1408 -- is very long. This compression method uses a checksum, and avoids
1409 -- trouble on some operating systems which have difficulty with very long
1410 -- names.
1412 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1413 "-gnatec>";
1414 -- /CONFIGURATION_PRAGMAS_FILE=file
1416 -- Specify a configuration pragmas file that need to be taken into account
1418 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1419 "!-I-";
1420 -- /CURRENT_DIRECTORY (D)
1421 -- /NOCURRENT_DIRECTORY
1423 -- Look for source files in the default directory.
1425 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1426 "-gnatep>";
1427 -- /DATA_PREPROCESSING=file_name
1429 -- This qualifier indicates to the compiler the file name (without
1430 -- directory information) of the preprocessor data file to use.
1431 -- The preprocessor data file should be found in the source directories.
1433 -- A preprocessing data file is a text file with significant lines
1434 -- indicating how should be preprocessed either a specific source or all
1435 -- sources not mentioned in other lines. A significant line is a non
1436 -- empty, non comment line. Comments are similar to Ada comments.
1438 -- Each significant line starts with either a literal string or the
1439 -- character '*'. A literal string is the file name (without directory
1440 -- information) of the source to preprocess. A character '*' indicates the
1441 -- preprocessing for all the sources that are not specified explicitly on
1442 -- other lines. It is an error to have two lines with the same file name
1443 -- or two lines starting with the character '*'.
1445 -- After the file name or the character '*', another optional literal
1446 -- string indicating the file name of the definition file to be used for
1447 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1448 -- are found by the compiler in one of the source directories. In some
1449 -- cases, when compiling a source in a directory other than the current
1450 -- directory, if the definition file is in the current directory, it may
1451 -- be necessary to add the current directory as a source directory through
1452 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1453 -- definition file.
1455 -- Then, optionally, switches similar to those of gnatprep may be found.
1456 -- Those switches are:
1458 -- -b Causes both preprocessor lines and the lines deleted by
1459 -- preprocessing to be replaced by blank lines, preserving
1460 -- the line number. This switch is always implied;
1461 -- however, if specified after `-c' it cancels the effect
1462 -- of `-c'.
1464 -- -c Causes both preprocessor lines and the lines deleted by
1465 -- preprocessing to be retained as comments marked with
1466 -- the special string "--! ".
1468 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1469 -- A symbol is an Ada identifier, or an Ada reserved word,
1470 -- with the exception of "if", "else", "elsif", "end",
1471 -- "and", "or" and "then". value is either a literal
1472 -- string, an Ada identifier or any Ada reserved word.
1473 -- A symbol declared with this switch replaces a symbol
1474 -- with the same name defined in a definition file.
1476 -- -s Causes a sorted list of symbol names and values to be
1477 -- listed on the standard output file.
1479 -- -u Causes undefined symbols to be treated as having the
1480 -- value FALSE in the context of a preprocessor test.
1481 -- In the absence of this option, an undefined symbol
1482 -- in a #if or #elsif test will be treated as an error.
1484 -- Examples of valid lines in a preprocessor data file:
1486 -- "toto.adb" "prep.def" -u
1487 -- -- preprocess "toto.adb", using definition file "prep.def",
1488 -- -- undefined symbol are False.
1490 -- * -c -DVERSION=V101
1491 -- -- preprocess all other sources without a definition file;
1492 -- -- suppressed lined are commented; symbol VERSION has the value
1493 -- -- V101.
1495 -- "titi.adb" "prep2.def" -s
1496 -- -- preprocess "titi.adb", using definition file "prep2.def";
1497 -- -- list all symbols with their values.
1499 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1500 "SYMBOLS " &
1501 "-g2 " &
1502 "NOSYMBOLS " &
1503 "!-g2 " &
1504 "TRACEBACK " &
1505 "-g1 " &
1506 "ALL " &
1507 "-g3 " &
1508 "NONE " &
1509 "-g0 " &
1510 "NOTRACEBACK " &
1511 "-g0";
1512 -- /DEBUG[=debug-level]
1513 -- /NODEBUG
1515 -- Specifies how much debugging information is to be included in
1516 -- the resulting object fie.
1518 -- 'debug-level' is one of the following:
1520 -- SYMBOLS (D) Include both debugger symbol records and traceback
1521 -- in the object file.
1523 -- ALL Include debugger symbol records, traceback plus
1524 -- extra debug information in the object file.
1526 -- NONE Excludes both debugger symbol records and traceback
1527 -- from the object file. Same as /NODEBUG.
1529 -- TRACEBACK Includes only traceback records in the object
1530 -- file. This is the default when /DEBUG is not used.
1532 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1533 "!-g";
1534 -- NODOC (see /Debug)
1536 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1537 "RECEIVER " &
1538 "-gnatzr " &
1539 "CALLER " &
1540 "-gnatzc";
1541 -- /NODISTRIBUTION_STUBS (D)
1542 -- /DISTRIBUTION_STUBS[=dist-opt]
1544 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1545 -- that stubs for use in distributed programs (see the Distributed
1546 -- Systems Annex of the Ada RM) should be generated.
1548 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1549 "!-gnatzr,!-gnatzc";
1550 -- NODOC (see /DISTRIBUTION_STUBS)
1552 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1553 "-gnatm#";
1554 -- /NOERROR_LIMIT (D)
1555 -- /ERROR_LIMIT=nnn
1557 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1558 -- number of error messages to be generated to that number. Once that
1559 -- number has been reached, the compilation is abandoned.
1560 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1562 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1563 "-gnatm999999";
1564 -- NODOC (see /ERROR_LIMIT)
1566 S_GCC_Except : aliased constant S := "/EXTRA_EXCEPTION_INFORMATION " &
1567 "-gnateE";
1568 -- /EXTRA_EXCEPTION_INFORMATION
1570 -- Generate extra information in exception messages, in particular
1571 -- display extra column information and the value and range associated
1572 -- with index and range check failures, and extra column information for
1573 -- access checks.
1575 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1576 "-gnatG";
1577 -- /NOEXPAND_SOURCE (D)
1578 -- /EXPAND_SOURCE
1580 -- Produces a listing of the expanded code in Ada source form. For
1581 -- example, all tasking constructs are reduced to appropriate run-time
1582 -- library calls. The maximum line length for the listing 72.
1584 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1585 "-gnatG#";
1586 -- /LEXPAND_SOURCE=nnn
1588 -- Produces a listing of the expanded code in Ada source form. For
1589 -- example, all tasking constructs are reduced to appropriate run-time
1590 -- library calls. The parameter is the maximum line length for the
1591 -- listing.
1593 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1594 "-gnatX";
1595 -- /NOEXTENSIONS_ALLOWED (D)
1596 -- /EXTENSIONS_ALLOWED
1598 -- GNAT specific language extensions allowed.
1600 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1601 "-X" & '"';
1602 -- /EXTERNAL_REFERENCE="name=val"
1604 -- Specifies an external reference to the project manager. Useful only if
1605 -- /PROJECT_FILE is used.
1607 -- Example:
1608 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1610 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1611 "-gnatk#";
1612 -- /FILE_NAME_MAX_LENGTH=nnn
1614 -- Activates file name "krunching". NNN, a decimal integer in the range
1615 -- 1-999, indicates the maximum allowable length of a file name (not
1616 -- including the ADS or ADB filetype. The default is not to enable file
1617 -- name krunching.
1619 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1620 "-eL";
1621 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1622 -- /FOLLOW_LINKS_FOR_FILES
1624 -- Follow links when parsing project files
1626 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1627 "-gnatQ";
1628 -- /NOFORCE_ALI (D)
1629 -- /FORCE_ALI
1631 -- In normal operation mode, the .ALI file is not generated if any
1632 -- illegalities are detected in the program. The use of this qualifier
1633 -- forces generation of the .ALI file. This file is marked as being
1634 -- in error, so it cannot be used for binding purposes, but it does
1635 -- contain reasonably complete cross-reference information, and thus may
1636 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1637 -- development environments) that are driven from the .ALI file.
1639 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1640 "-gnatef";
1641 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1642 -- /FULL_PATH_IN_BRIEF_MESSAGES
1644 -- When using project files, if some errors or warnings are detected
1645 -- during parsing and verbose mode is not in effect (no use of qualifier
1646 -- /VERBOSE), then error lines start with the full path name of the
1647 -- project file, rather than its simple file name.
1649 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1650 "-gnateG";
1651 -- /NOGENERATE_PROCESSED_SOURCE (D)
1652 -- /GENERATE_PROCESSED_SOURCE
1654 -- Generate a file <source>_prep if the integrated preprocessing
1655 -- is modifying the source text.
1657 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1658 "-gnatg";
1659 -- /NOGNAT_INTERNAL (D)
1660 -- /GNAT_INTERNAL
1662 -- Internal GNAT implementation mode. This should not be used for
1663 -- applications programs, it is intended only for use by the compiler
1664 -- and its run-time library. For documentation, see the GNAT sources.
1665 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1666 -- so that all standard warnings and all standard style options are
1667 -- turned on. All warnings and style error messages are treated as
1668 -- errors.
1670 S_GCC_Help : aliased constant S := "/HELP " &
1671 "-gnath";
1672 -- /NOHELP (D)
1673 -- /HELP
1675 -- Output usage information.
1677 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1678 "DEFAULT " &
1679 "-gnati1 " &
1680 "1 " &
1681 "-gnati1 " &
1682 "2 " &
1683 "-gnati2 " &
1684 "3 " &
1685 "-gnati3 " &
1686 "4 " &
1687 "-gnati4 " &
1688 "5 " &
1689 "-gnati5 " &
1690 "PC " &
1691 "-gnatip " &
1692 "PC850 " &
1693 "-gnati8 " &
1694 "FULL_UPPER " &
1695 "-gnatif " &
1696 "NO_UPPER " &
1697 "-gnatin " &
1698 "WIDE " &
1699 "-gnatiw";
1700 -- /NOIDENTIFIER_CHARACTER_SET (D)
1701 -- /IDENTIFIER_CHARACTER_SET=char-set
1703 -- Normally GNAT recognizes the Latin-1 character set in source program
1704 -- identifiers, as described in the reference manual. This qualifier
1705 -- causes GNAT to recognize alternate character sets in identifiers.
1706 -- 'char-set' is one of the following strings indicating the character
1707 -- set:
1709 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1710 -- /NOIDENTIFIER_CHARACTER_SET.
1712 -- 1 The basic character set is Latin-1. This character
1713 -- set is defined by ISO standard 8859, part 1. The lower
1714 -- half (character codes 16#00# ... 16#7F#) is identical
1715 -- to standard ASCII coding, but the upper half is used
1716 -- to represent additional characters. This includes
1717 -- extended letters used by European languages, such as
1718 -- the umlaut used in German.
1720 -- You may use any of these extended characters freely
1721 -- in character or string literals. In addition, the
1722 -- extended characters that represent letters can be
1723 -- used in identifiers.
1725 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1726 -- and lowercase equivalence.
1728 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1729 -- and lower case equivalence.
1731 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1732 -- and lower case equivalence.
1734 -- PC IBM PC code page 437. This code page is the normal
1735 -- default for PCs in the U.S. It corresponds to the
1736 -- original IBM PC character set. This set has some, but
1737 -- not all, of the extended Latin-1 letters, but these
1738 -- letters do not have the same encoding as Latin-1. In
1739 -- this mode, these letters are allowed in identifiers
1740 -- with uppercase and lowercase equivalence.
1742 -- PC850 This code page (850) is a modification of 437 extended
1743 -- to include all the Latin-1 letters, but still not with
1744 -- the usual Latin-1 encoding. In this mode, all these
1745 -- letters are allowed in identifiers with uppercase and
1746 -- lower case equivalence.
1748 -- FULL_UPPER Any character in the range 80-FF allowed in
1749 -- identifiers, and all are considered distinct. In
1750 -- other words, there are no uppercase and lower case
1751 -- equivalences in this range.
1753 -- NO_UPPER No upper-half characters in the range 80-FF are
1754 -- allowed in identifiers. This gives Ada 95
1755 -- compatibility for identifier names.
1757 -- WIDE GNAT allows wide character codes to appear in
1758 -- character and string literals, and also optionally
1759 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1760 -- qualifier for information on encoding formats.
1762 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1763 "-gnati1";
1764 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1766 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1767 "-gnatI";
1768 -- /IGNORE_REP_CLAUSES
1770 -- Causes all representation clauses to be ignored and treated as
1771 -- comments. Useful when compiling foreign code (for example when ASIS
1772 -- is used to analyze such code).
1774 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1775 "-gnatdO";
1776 -- /NOIMMEDIATE_ERRORS (D)
1777 -- /IMMEDIATE_ERRORS
1779 -- Causes errors to be displayed as soon as they are encountered, rather
1780 -- than after compilation is terminated. If GNAT terminates prematurely
1781 -- or goes into an infinite loop, the last error message displayed may
1782 -- help to pinpoint the culprit.
1784 -- Note that this qualifier is intended only for helping to diagnose
1785 -- illegal programs when the compiler fails. It disconnects many of the
1786 -- normal handling procedures for error messages, and may for example
1787 -- cause malfunction of pragma Warnings.
1789 S_GCC_Inline : aliased constant S := "/INLINE=" &
1790 "PRAGMA " &
1791 "-gnatn " &
1792 "PRAGMA_LEVEL_1 " &
1793 "-gnatn1 " &
1794 "PRAGMA_LEVEL_2 " &
1795 "-gnatn2 " &
1796 "FULL " &
1797 "-gnatN " &
1798 "SUPPRESS " &
1799 "-fno-inline";
1800 -- /NOINLINE (D)
1801 -- /INLINE[=keyword]
1803 -- Selects the level of inlining for your program. In the absence of this
1804 -- qualifier, GNAT does not attempt inlining across units and does not
1805 -- need to access the bodies of subprograms for which "pragma Inline" is
1806 -- specified if they are not in the current unit.
1808 -- The supported keywords are as follows:
1810 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1811 -- for the inlining to actually occur, optimization
1812 -- must be enabled. This enables inlining across unit
1813 -- boundaries, that is, inlining a call in one unit of
1814 -- a subprogram declared in a with'ed unit. The compiler
1815 -- will access these bodies, creating an extra source
1816 -- dependency for the resulting object file, and where
1817 -- possible, the call will be inlined.
1819 -- This qualifier also turns on full optimization and
1820 -- requests GNAT to try to attempt automatic inlining
1821 -- of small subprograms within a unit.
1823 -- Specifying /OPTIMIZE=NONE will disable the main effect
1824 -- of this qualifier, but you may specify other
1825 -- optimization options, to get either lower
1826 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1827 -- levels of optimization.
1829 -- PRAGMA_LEVEL_1
1830 -- Direct control of the level of "Inline" pragmas
1831 -- optimization with moderate inlining across modules.
1833 -- PRAGMA_LEVEL_2
1834 -- Direct control of the level of "Inline" pragmas
1835 -- optimization with full inlining across modules.
1837 -- FULL Front end inlining. The front end inlining activated
1838 -- by this switch is generally more extensive, and quite
1839 -- often more effective than the standard PRAGMA inlining
1840 -- mode. It will also generate additional dependencies.
1842 -- SUPPRESS Suppresses all inlining, even if other optimization
1843 -- or inlining switches are set.
1845 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1846 "!-gnatn,!-gnatN";
1847 -- NODOC (see /INLINE)
1849 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1850 "-gnatL";
1852 -- /NO_INTERSPERSE_SOURCE (D)
1853 -- /INTERSPERSE_SOURCE
1855 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1856 -- lines from the original source file, output as comment lines with the
1857 -- associated line number.
1859 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1860 "-gnatj#";
1862 -- /NO_JUSTIFY_MESSAGES (D)
1863 -- /JUSTIFY_MESSAGES=nnn
1865 -- Causes error messages to be reformatted so that a message and all its
1866 -- continuation lines count as one warning or error in the statistics on
1867 -- total errors, and the message is broken down into lines (justified) so
1868 -- that no line is longer than nnn characters. The default message
1869 -- behavior (each message counted separately and not reformatted to fit
1870 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1872 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1873 "-gnatj0";
1875 -- NODOC (see /JUSTIFY_MESSAGES)
1877 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1878 "-gnatyM#";
1879 -- /MAX_LINE_LENGTH=nnn
1881 -- Set maximum line length.
1882 -- The length of lines must not exceed the given value nnn.
1884 S_GCC_List : aliased constant S := "/LIST " &
1885 "-gnatl";
1886 -- /NOLIST (D)
1887 -- /LIST
1889 -- Cause a full listing of the file to be generated. In the case where
1890 -- a body is compiled, the corresponding spec is also listed, along
1891 -- with any subunits.
1893 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1894 "-source-listing";
1895 -- /NOMACHINE_CODE_LISTING (D)
1896 -- /MACHINE_CODE_LISTING
1898 -- Cause a full machine code listing of the file to be generated to
1899 -- <filename>.lis. Interspersed source is included if the /DEBUG
1900 -- qualifier is also present.
1902 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1903 "-gnatem>";
1904 -- /MAPPING_FILE=file_name
1906 -- Use mapping file file_name
1908 -- A mapping file is a way to communicate to the compiler two mappings:
1909 -- from unit names to file names (without any directory information) and
1910 -- from file names to path names (with full directory information).
1911 -- These mappings are used by the compiler to short-circuit the path
1912 -- search.
1914 -- The use of mapping files is not required for correct operation of the
1915 -- compiler, but mapping files can improve efficiency, particularly when
1916 -- sources are read over a slow network connection. In normal operation,
1917 -- you need not be concerned with the format or use of mapping files,
1918 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1919 -- It is intended only for use by automatic tools such as GNAT MAKE
1920 -- running under the project file facility. The description here of the
1921 -- format of mapping files is provided for completeness and for possible
1922 -- use by other tools.
1924 -- A mapping file is a sequence of sets of three lines. In each set, the
1925 -- first line is the unit name, in lower case, with "%s" appended for
1926 -- specifications and "%b" appended for bodies; the second line is the
1927 -- file name; and the third line is the path name.
1929 -- Example:
1931 -- main%b
1932 -- main.2_ada
1933 -- /gnat/project1/sources/main.2_ada
1935 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1936 -- memory the two mappings from the specified file. If there is any
1937 -- problem (non existent file, truncated file or duplicate entries),
1938 -- no mapping will be created.
1940 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1941 -- last one on the command line will be taken into account.
1943 -- When using a project file, GNAT MAKE creates a temporary mapping file
1944 -- and communicates it to the compiler using this switch.
1946 S_GCC_MaxI : aliased constant S := "/MAX_INSTANTIATIONS=#" &
1947 "-gnatei#";
1949 -- /MAX_INSTANTIATIONS=nnn
1951 -- Specify the maximum number of instantiations permitted. The default
1952 -- value is 8000, which is probably enough for all programs except those
1953 -- containing some kind of runaway unintended instantiation loop.
1955 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1956 "DEFAULT " &
1957 "-vP0 " &
1958 "MEDIUM " &
1959 "-vP1 " &
1960 "HIGH " &
1961 "-vP2";
1962 -- /MESSAGES_PROJECT_FILE[=messages-option]
1964 -- Specifies the "verbosity" of the parsing of project files.
1965 -- messages-option may be one of the following:
1967 -- DEFAULT (D) No messages are output if there is no error or warning.
1969 -- MEDIUM A small number of messages are output.
1971 -- HIGH A great number of messages are output, most of them not
1972 -- being useful for the user.
1974 S_GCC_Multi : aliased constant S := "/MULTI_UNIT_INDEX=#" &
1975 "-gnateI#";
1976 -- /MULTI_UNIT_INDEX=nnn
1978 -- Specify the index of the unit to compile in a multi-unit source file.
1980 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1981 "-gnatyL#";
1982 -- /MAX_NESTING=nnn
1984 -- Set maximum level of nesting of constructs (including subprograms,
1985 -- loops, blocks, packages, and conditionals).
1986 -- The level of nesting must not exceed the given value nnn.
1987 -- A value of zero disable this style check (not enabled by default).
1989 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1990 "-gnatA";
1991 -- /NO_GNAT_ADC
1993 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1994 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1995 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1997 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1998 "-gnatc";
1999 -- /NOLOAD
2001 -- Cause the compiler to operate in semantic check mode with full
2002 -- checking for all illegalities specified in the reference manual, but
2003 -- without generation of any source code (no object or ALI file
2004 -- generated).
2006 -- Since dependent files must be accessed, you must follow the GNAT
2007 -- semantic restrictions on file structuring to operate in this mode:
2009 -- o The needed source files must be accessible.
2010 -- o Each file must contain only one compilation unit.
2011 -- o The file name and unit name must match.
2013 -- The output consists of error messages as appropriate. No object file
2014 -- or ALI file is generated. The checking corresponds exactly to the
2015 -- notion of legality in the Ada reference manual.
2017 -- Any unit can be compiled in semantics-checking-only mode, including
2018 -- units that would not normally be compiled (generic library units,
2019 -- subunits, and specifications where a separate body is present).
2021 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
2022 "-nostdinc";
2023 -- /NOSTD_INCLUDES
2025 -- Do not look in the default directory for source files of the runtime.
2027 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
2028 "-nostdlib";
2029 -- /NOSTD_LIBRARIES
2031 -- Do not look for library files in the system default directory.
2033 S_GCC_NoWarnP : aliased constant S := "/NOWARNING_PRAGMAS " &
2034 "-gnatd.i";
2035 -- /NOWARNING_PRAGMAS
2037 -- Causes all Warnings pragmas to be ignored. Useful to check if the
2038 -- program has obsolete warnings pragmas that are hiding problems.
2040 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
2041 "ALL " &
2042 "-O2,!-O0,!-O1,!-O3 " &
2043 "NONE " &
2044 "-O0,!-O1,!-O2,!-O3 " &
2045 "SOME " &
2046 "-O1,!-O0,!-O2,!-O3 " &
2047 "SPACE " &
2048 "-Os,!-O0,!-O1,!-O2,!-O3 " &
2049 "DEVELOPMENT " &
2050 "-O1,!-O0,!-O2,!-O3 " &
2051 "UNROLL_LOOPS " &
2052 "-funroll-loops " &
2053 "NO_STRICT_ALIASING " &
2054 "-fno-strict-aliasing " &
2055 "INLINING " &
2056 "-O3,!-O0,!-O1,!-O2";
2057 -- /NOOPTIMIZE (D)
2058 -- /OPTIMIZE[=(keyword[,...])]
2060 -- Selects the level of optimization for your program. The supported
2061 -- keywords are as follows:
2063 -- ALL (D) Perform most optimizations, including those that
2064 -- may be expensive.
2066 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
2068 -- SOME Perform some optimizations, but omit ones that
2069 -- are costly in compilation time.
2071 -- SPACE Optimize space usage
2073 -- DEVELOPMENT Same as SOME.
2075 -- INLINING Full optimization, and also attempt automatic inlining
2076 -- of small subprograms within a unit
2078 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
2079 -- with any keyword above other than NONE. Loop
2080 -- unrolling usually, but not always, improves the
2081 -- performance of programs.
2083 -- NO_STRICT_ALIASING
2084 -- Suppress aliasing analysis. When optimization is
2085 -- enabled (ALL or SOME above), the compiler assumes
2086 -- that pointers do in fact point to legitimate values
2087 -- of the pointer type (allocated from the proper pool).
2088 -- If this assumption is violated, e.g. by the use of
2089 -- unchecked conversion, then it may be necessary to
2090 -- suppress this assumption using this keyword (which
2091 -- may be specified only in conjunction with any
2092 -- keyword above, other than NONE).
2094 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
2095 "-O0,!-O1,!-O2,!-O3";
2096 -- NODOC (see /OPTIMIZE)
2098 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
2099 "-gnatl=>";
2100 -- /OUTPUT_FILE=fname
2102 -- This has the same effect as /LIST except that the output is written
2103 -- to a file instead of to standard output. If the given fname
2104 -- does not start with a period, then it is the full name of the file
2105 -- to be written. If fname starts with a period, the name of the file
2106 -- is the concatenation of to the name of the file being compiled with
2107 -- fname where the period is replace by an underline. For example, if
2108 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
2109 -- to file xyz.adb_lst.
2111 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2112 "64 " &
2113 "-mmalloc64 " &
2114 "LONG " &
2115 "-mmalloc64 " &
2116 "32 " &
2117 "-mno-malloc64 " &
2118 "SHORT " &
2119 "-mno-malloc64";
2120 -- /POINTER_SIZE=64 (D)
2121 -- /POINTER_SIZE[=(keyword[,...])]
2123 -- Change how pointers and descriptors are allocated. The following
2124 -- keywords are supported:
2126 -- 64 (D) Allocate heap pointers in 64bit space except as
2127 -- constrained by a 32bit size clause or by
2128 -- Convention_C and generate 64bit descriptors for
2129 -- Descriptor mechanisms for calling imported
2130 -- subprograms and accept both 64bit and 32bit
2131 -- descriptors for calls to exported subprograms.
2133 -- LONG Equivalent to option 64.
2135 -- 32 Allocate all heap pointers in 32bit space and
2136 -- generate 32bit descriptors for Descriptor
2137 -- mechanisms for calling imported subprograms.
2139 -- SHORT Equivalent to option 32.
2141 S_GCC_Polling : aliased constant S := "/POLLING " &
2142 "-gnatP";
2143 -- /NOPOLLING (D)
2144 -- /POLLING
2146 -- Enable polling. See the description of pragma Polling in the GNAT
2147 -- Reference Manual for full details.
2149 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2150 "-P>";
2151 -- /PROJECT_FILE=filename
2153 -- Specifies the main project file to be used. The project files rooted
2154 -- at the main project file will be parsed before the invocation of the
2155 -- compiler. The source and object directories to be searched will be
2156 -- communicated to the compiler through logical names
2157 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2159 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2160 "-gnatS";
2161 -- /PRINT_STANDARD
2163 -- cause the compiler to output a representation of package Standard
2164 -- in a form very close to standard Ada. It is not quite possible to
2165 -- do this and remain entirely Standard (since new numeric base types
2166 -- cannot be created in standard Ada), but the output is easily
2167 -- readable to any Ada programmer, and is useful to determine the
2168 -- characteristics of target dependent types in package Standard.
2170 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2171 "-gnatr";
2173 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2174 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2176 -- Causes all restrictions to be treated as warnings (pragma Restriction
2177 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2178 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2180 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2181 "VERBOSE " &
2182 "-gnatv " &
2183 "BRIEF " &
2184 "-gnatb " &
2185 "FULL " &
2186 "-gnatf " &
2187 "IMMEDIATE " &
2188 "-gnatdO " &
2189 "DEFAULT " &
2190 "!-gnatb,!-gnatv";
2191 -- /NOREPORT_ERRORS (D)
2192 -- /REPORT_ERRORS[=(keyword[,...])]
2194 -- Change the way errors are reported. The following keywords are
2195 -- supported:
2197 -- VERBOSE (D) Verbose mode. Full error output with source lines
2198 -- to SYS$OUTPUT.
2200 -- BRIEF Generate the brief format error messages to
2201 -- SYS$OUTPUT as well as the verbose format message or
2202 -- full listing.
2204 -- FULL Normally, the compiler suppresses error messages that
2205 -- are likely to be redundant. This keyword causes all
2206 -- error messages to be generated. One particular effect
2207 -- is for the case of references to undefined variables.
2208 -- If a given variable is referenced several times, the
2209 -- normal format of messages produces one error. With
2210 -- FULL, each undefined reference produces a separate
2211 -- error message.
2213 -- IMMEDIATE Normally, the compiler saves up error messages and
2214 -- generates them at the end of compilation in proper
2215 -- sequence. This keyword causes error messages to be
2216 -- generated as soon as they are detected. The use of
2217 -- IMMEDIATE usually causes error messages to be
2218 -- generated out of sequence. Use it when the compiler
2219 -- blows up due to an internal error. In this case, the
2220 -- error messages may be lost. Sometimes blowups are
2221 -- the result of mishandled error messages, so you may
2222 -- want to run with this keyword to determine whether
2223 -- any error messages were generated.
2225 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2227 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2228 "!-gnatb,!-gnatv";
2229 -- NODOC (see /REPORT_ERRORS)
2231 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2232 "DEFAULT " &
2233 "-gnatR " &
2234 "NONE " &
2235 "-gnatR0 " &
2236 "ARRAYS " &
2237 "-gnatR1 " &
2238 "ARRAYS_FILE " &
2239 "-gnatR1s " &
2240 "OBJECTS " &
2241 "-gnatR2 " &
2242 "OBJECTS_FILE " &
2243 "-gnatR2s " &
2244 "SYMBOLIC " &
2245 "-gnatR3 " &
2246 "SYMBOLIC_FILE " &
2247 "-gnatR3s";
2248 -- /NOREPRESENTATION_INFO (D)
2249 -- /REPRESENTATION_INFO[=(keyword[,...])]
2251 -- This qualifier controls output from the compiler of a listing showing
2252 -- representation information for declared types and objects.
2254 -- ARRAYS (D) Size and alignment information is listed for
2255 -- declared array and record types.
2257 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2258 -- with the name 'file_rep' where 'file' is the name
2259 -- of the corresponding source file.
2261 -- NONE no information is output (equivalent to omitting
2262 -- the /REPRESENTATION_INFO qualifiers).
2264 -- OBJECTS Size and alignment information is listed for all
2265 -- declared types and objects.
2267 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2268 -- with the name 'file_rep' where 'file' is the name
2269 -- of the corresponding source file.
2271 -- SYMBOLIC Symbolic expression information for values that
2272 -- are computed at run time for variant records.
2274 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2275 -- with the name 'file_rep' where 'file' is the name
2276 -- of the corresponding source file.
2278 -- DEFAULT Equivalent to ARRAYS.
2280 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2281 "!-gnatR";
2282 -- NODOC (see /REPRESENTATION_INFO)
2284 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2285 "--RTS=|";
2286 -- /RUNTIME_SYSTEM=xxx
2288 -- Build against an alternate runtime system named xxx or RTS-xxx.
2290 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2291 "-gnateS";
2292 -- /NOSCO_OUTPUT (D)
2293 -- /SCO_OUTPUT
2295 -- Controls the output of SCO (Source Coverage Obligation) information
2296 -- in the generated ALI file. This information is used by advanced source
2297 -- coverage tools. For a full description of the SCO format, see unit
2298 -- SCOs in the compiler sources (sco.ads/sco.adb).
2300 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2301 "-I*";
2302 -- /SEARCH=(directory[,...])
2304 -- When looking for source files also look in directories specified.
2306 S_GCC_Src_Info : aliased constant S := "/SRC_INFO=<" &
2307 "--source-info=>";
2308 -- /SRC_INFO=source-info-file
2310 -- Specify a source info file to be read or written by the Project
2311 -- Manager when project files are used.
2313 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2314 "ALL_BUILTIN " &
2315 "-gnatyy " &
2316 "0 " &
2317 "-gnaty0 " &
2318 "1 " &
2319 "-gnaty1 " &
2320 "2 " &
2321 "-gnaty2 " &
2322 "3 " &
2323 "-gnaty3 " &
2324 "4 " &
2325 "-gnaty4 " &
2326 "5 " &
2327 "-gnaty5 " &
2328 "6 " &
2329 "-gnaty6 " &
2330 "7 " &
2331 "-gnaty7 " &
2332 "8 " &
2333 "-gnaty8 " &
2334 "9 " &
2335 "-gnaty9 " &
2336 "ATTRIBUTE " &
2337 "-gnatya " &
2338 "NOATTRIBUTE " &
2339 "-gnaty-a " &
2340 "ARRAY_INDEXES " &
2341 "-gnatyA " &
2342 "NOARRAY_INDEXES " &
2343 "-gnaty-A " &
2344 "BLANKS " &
2345 "-gnatyb " &
2346 "NOBLANKS " &
2347 "-gnaty-b " &
2348 "BOOLEAN_OPERATORS " &
2349 "-gnatyB " &
2350 "NOBOOLEAN_OPERATORS " &
2351 "-gnaty-B " &
2352 "COMMENTS " &
2353 "-gnatyc " &
2354 "COMMENTS1 " &
2355 "-gnatyC " &
2356 "COMMENTS2 " &
2357 "-gnatyc " &
2358 "NOCOMMENTS " &
2359 "-gnaty-c " &
2360 "DOS_LINE_ENDINGS " &
2361 "-gnatyd " &
2362 "NODOS_LINE_ENDINGS " &
2363 "-gnaty-d " &
2364 "END " &
2365 "-gnatye " &
2366 "NOEND " &
2367 "-gnaty-e " &
2368 "VTABS " &
2369 "-gnatyf " &
2370 "NOVTABS " &
2371 "-gnaty-f " &
2372 "GNAT " &
2373 "-gnatyg " &
2374 "HTABS " &
2375 "-gnatyh " &
2376 "NOHTABS " &
2377 "-gnaty-h " &
2378 "IF_THEN " &
2379 "-gnatyi " &
2380 "NOIF_THEN " &
2381 "-gnaty-i " &
2382 "KEYWORD " &
2383 "-gnatyk " &
2384 "NOKEYWORD " &
2385 "-gnaty-k " &
2386 "LAYOUT " &
2387 "-gnatyl " &
2388 "NOLAYOUT " &
2389 "-gnaty-l " &
2390 "LINE_LENGTH " &
2391 "-gnatym " &
2392 "NOLINE_LENGTH " &
2393 "-gnaty-m " &
2394 "MODE_IN " &
2395 "-gnatyI " &
2396 "NOMODE_IN " &
2397 "-gnaty-I " &
2398 "NONE " &
2399 "-gnatyN " &
2400 "STANDARD_CASING " &
2401 "-gnatyn " &
2402 "NOSTANDARD_CASING " &
2403 "-gnaty-n " &
2404 "ORDERED_SUBPROGRAMS " &
2405 "-gnatyo " &
2406 "NOORDERED_SUBPROGRAMS " &
2407 "-gnaty-o " &
2408 "OVERRIDING_INDICATORS " &
2409 "-gnatyO " &
2410 "NOOVERRIDING_INDICATORS " &
2411 "-gnaty-O " &
2412 "PRAGMA " &
2413 "-gnatyp " &
2414 "NOPRAGMA " &
2415 "-gnaty-p " &
2416 "REFERENCES " &
2417 "-gnatyr " &
2418 "NOREFERENCES " &
2419 "-gnaty-r " &
2420 "SPECS " &
2421 "-gnatys " &
2422 "NOSPECS " &
2423 "-gnaty-s " &
2424 "STATEMENTS_AFTER_THEN_ELSE " &
2425 "-gnatyS " &
2426 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2427 "-gnaty-S " &
2428 "TOKEN " &
2429 "-gnatyt " &
2430 "NOTOKEN " &
2431 "-gnaty-t " &
2432 "UNNECESSARY_BLANK_LINES " &
2433 "-gnatyu " &
2434 "NOUNNECESSARY_BLANK_LINES " &
2435 "-gnaty-u " &
2436 "XTRA_PARENS " &
2437 "-gnaty-x " &
2438 "NOXTRA_PARENS " &
2439 "-gnaty-x ";
2440 -- /NOSTYLE_CHECKS (D)
2441 -- /STYLE_CHECKS[=(keyword,[...])]
2443 -- Normally, GNAT permits any code layout consistent with the reference
2444 -- manual requirements. This qualifier imposes style checking on the
2445 -- input source code. The following keywords are supported:
2447 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2448 -- 3, ATTRIBUTE, BLANKS, COMMENTS2, END, VTABS,
2449 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2450 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2452 -- 1 .. 9 Specify indentation level from 1 to 9.
2453 -- The general style of required indentation is as
2454 -- specified by the examples in the Ada Reference
2455 -- Manual. Full line comments must be aligned with
2456 -- the -- starting on a column that is a multiple
2457 -- of the alignment level.
2459 -- ATTRIBUTE Check attribute casing.
2460 -- Attribute names, including the case of keywords
2461 -- such as digits used as attributes names,
2462 -- must be written in mixed case, that is,
2463 -- the initial letter and any letter following an
2464 -- underscore must be uppercase.
2465 -- All other letters must be lowercase.
2467 -- ARRAY_INDEXES Check indexes of array attributes.
2468 -- For array attributes First, Last, Range,
2469 -- or Length, the index number must be omitted
2470 -- for one-dimensional arrays and is required
2471 -- for multi-dimensional arrays.
2473 -- BLANKS Blanks not allowed at statement end.
2474 -- Trailing blanks are not allowed at the end of
2475 -- statements. The purpose of this rule, together
2476 -- with option HTABS (no horizontal tabs), is to
2477 -- enforce a canonical format for the use of
2478 -- blanks to separate source tokens.
2480 -- COMMENTS2 Check comments.
2481 -- COMMENTS Comments must meet the following set of rules:
2483 -- * The "--" that starts the column must either
2484 -- start in column one, or else at least one
2485 -- blank must precede this sequence.
2487 -- * Comments that follow other tokens on a line
2488 -- must have at least one blank following the
2489 -- "--" at the start of the comment.
2491 -- * Full line comments must have two blanks
2492 -- following the "--" that starts the comment,
2493 -- with the following exceptions.
2495 -- * A line consisting only of the "--"
2496 -- characters, possibly preceded by blanks is
2497 -- permitted.
2499 -- * A comment starting with "--x" where x is
2500 -- a special character is permitted. This
2501 -- allows proper processing of the output
2502 -- generated by specialized tools including
2503 -- gnatprep (where --! is used) and the SPARK
2504 -- annotation language (where --# is used).
2505 -- For the purposes of this rule, a special
2506 -- character is defined as being in one of the
2507 -- ASCII ranges 16#21#..16#2F# or
2508 -- 16#3A#..16#3F#.
2510 -- * A line consisting entirely of minus signs,
2511 -- possibly preceded by blanks, is permitted.
2512 -- This allows the construction of box
2513 -- comments where lines of minus signs are
2514 -- used to form the top and bottom of the box.
2516 -- * If a comment starts and ends with "--" is
2517 -- permitted as long as at least one blank
2518 -- follows the initial "--". Together with
2519 -- the preceding rule, this allows the
2520 -- construction of box comments, as shown in
2521 -- the following example:
2523 -- ---------------------------
2524 -- -- This is a box comment --
2525 -- ---------------------------
2527 -- COMMENTS1 Check comments (single space).
2528 -- Like COMMENTS2, but the -- of a comment only
2529 -- requires one or more spaces following, instead
2530 -- of two or more spaces.
2532 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2533 -- All lines must be terminated by a single
2534 -- ASCII.LF character. In particular the DOS line
2535 -- terminator sequence CR / LF is not allowed).
2537 -- END Check end/exit labels.
2538 -- Optional labels on end statements ending
2539 -- subprograms and on exit statements exiting
2540 -- named loops, are required to be present.
2542 -- GNAT Enforces a set of style conventions that
2543 -- match the style used in the GNAT source code.
2544 -- This maybe useful when developing code that
2545 -- is eventually intended to be incorporated into
2546 -- GNAT. For further details, see GNAT sources.
2548 -- HTABS No horizontal tabs.
2549 -- Horizontal tab characters are not permitted in
2550 -- the source text. Together with the BLANKS
2551 -- (no blanks at end of line) option, this
2552 -- enforces a canonical form for the use of blanks
2553 -- to separate source tokens.
2555 -- IF_THEN Check if-then layout.
2556 -- The keyword then must appear either on the
2557 -- same line as the corresponding if, or on a line
2558 -- on its own, lined up under the if with at least
2559 -- one non-blank line in between containing all or
2560 -- part of the condition to be tested.
2562 -- KEYWORD Check keyword casing.
2563 -- All keywords must be in lower case (with the
2564 -- exception of keywords such as digits used as
2565 -- attribute names to which this check does not
2566 -- apply).
2568 -- LAYOUT Check layout.
2569 -- Layout of statement and declaration constructs
2570 -- must follow the recommendations in the Ada
2571 -- Reference Manual, as indicated by the form of
2572 -- the syntax rules. For example an else keyword
2573 -- must be lined up with the corresponding if
2574 -- keyword.
2576 -- There are two respects in which the style rule
2577 -- enforced by this check option are more liberal
2578 -- than those in the Ada Reference Manual.
2579 -- First in the case of record declarations,
2580 -- it is permissible to put the record keyword on
2581 -- the same line as the type keyword, and then
2582 -- the end in end record must line up under type.
2583 -- For example, either of the following two
2584 -- layouts is acceptable:
2586 -- type q is record
2587 -- a : integer;
2588 -- b : integer;
2589 -- end record;
2591 -- type q is
2592 -- record
2593 -- a : integer;
2594 -- b : integer;
2595 -- end record;
2597 -- Second, in the case of a block statement,
2598 -- a permitted alternative is to put the block
2599 -- label on the same line as the declare or begin
2600 -- keyword, and then line the end keyword up under
2601 -- the block label. For example both the following
2602 -- are permitted:
2606 -- Block : declare
2607 -- A : Integer := 3;
2608 -- begin
2609 -- Proc (A, A);
2610 -- end Block;
2612 -- Block :
2613 -- declare
2614 -- A : Integer := 3;
2615 -- begin
2616 -- Proc (A, A);
2617 -- end Block;
2619 -- The same alternative format is allowed for
2620 -- loops. For example, both of the following are
2621 -- permitted:
2625 -- Clear : while J < 10 loop
2626 -- A (J) := 0;
2627 -- end loop Clear;
2629 -- Clear :
2630 -- while J < 10 loop
2631 -- A (J) := 0;
2632 -- end loop Clear;
2636 -- LINE_LENGTH Check maximum line length.
2637 -- The length of source lines must not exceed 79
2638 -- characters, including any trailing blanks
2639 -- The value of 79 allows convenient display on
2640 -- an 80 character wide device or window, allowing
2641 -- for possible special treatment of 80 character
2642 -- lines.
2644 -- NONE Clear any previously set style checks.
2646 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2647 -- All subprogram bodies in a given scope (e.g.
2648 -- a package body) must be in alphabetical order.
2649 -- The ordering rule uses normal Ada rules for
2650 -- comparing strings, ignoring casing of letters,
2651 -- except that if there is a trailing numeric
2652 -- suffix, then the value of this suffix is used
2653 -- in the ordering (e.g. Junk2 comes before
2654 -- Junk10).
2656 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2657 -- explicitly marked as such. The declaration of
2658 -- a primitive operation of a type extension that
2659 -- overrides an inherited operation must carry
2660 -- an overriding indicator.
2662 -- PRAGMA Check pragma casing.
2663 -- Pragma names must be written in mixed case,
2664 -- that is, the initial letter and any letter
2665 -- following an underscore must be uppercase.
2666 -- All other letters must be lowercase.
2668 -- REFERENCES Check references.
2669 -- All identifier references must be cased in the
2670 -- same way as the corresponding declaration.
2671 -- No specific casing style is imposed on
2672 -- identifiers. The only requirement is for
2673 -- consistency of references with declarations.
2675 -- SPECS Check separate specs.
2676 -- Separate declarations ("specs") are required
2677 -- for subprograms (a body is not allowed to serve
2678 -- as its own declaration). The only exception is
2679 -- that parameterless library level procedures are
2680 -- not required to have a separate declaration.
2681 -- This exception covers the most frequent form of
2682 -- main program procedures.
2684 -- STANDARD_CASING Check casing of entities in Standard.
2685 -- Any identifier from Standard must be cased to
2686 -- match the presentation in the Ada Reference
2687 -- Manual (for example, Integer and ASCII.NUL).
2689 -- TOKEN Check token spacing.
2690 -- The following token spacing rules are enforced:
2692 -- * The keywords abs and not must be followed
2693 -- by a space.
2695 -- * The token => must be surrounded by spaces.
2697 -- * The token <> must be preceded by a space or
2698 -- a left parenthesis.
2700 -- * Binary operators other than ** must be
2701 -- surrounded by spaces. There is no
2702 -- restriction on the layout of the ** binary
2703 -- operator.
2705 -- * Colon must be surrounded by spaces.
2707 -- * Colon-equal (assignment) must be surrounded
2708 -- by spaces.
2710 -- * Comma must be the first non-blank character
2711 -- on the line, or be immediately preceded by
2712 -- a non-blank character, and must be followed
2713 -- by a space.
2715 -- * If the token preceding a left paren ends
2716 -- with a letter or digit, then a space must
2717 -- separate the two tokens.
2719 -- * A right parenthesis must either be the
2720 -- first non-blank character on a line, or it
2721 -- must be preceded by a non-blank character.
2723 -- * A semicolon must not be preceded by
2724 -- a space, and must not be followed by
2725 -- a non-blank character.
2727 -- * A unary plus or minus may not be followed
2728 -- by a space.
2730 -- * A vertical bar must be surrounded by
2731 -- spaces.
2733 -- In the above rules, appearing in column one is
2734 -- always permitted, that is, counts as meeting
2735 -- either a requirement for a required preceding
2736 -- space, or as meeting a requirement for no
2737 -- preceding space.
2739 -- Appearing at the end of a line is also always
2740 -- permitted, that is, counts as meeting either
2741 -- a requirement for a following space,
2742 -- or as meeting a requirement for no following
2743 -- space.
2745 -- UNNECESSARY_BLANK_LINES
2746 -- Check for unnecessary blank lines.
2747 -- A blank line is considered unnecessary if it
2748 -- appears at the end of the file, or if more
2749 -- than one blank line occurs in sequence.
2751 -- VTABS No form feeds or vertical tabs.
2752 -- Form feeds or vertical tab characters are not
2753 -- permitted in the source text.
2755 -- XTRA_PARENS Check for the use of an unnecessary extra
2756 -- level of parentheses (C - style) around
2757 -- conditions in if statements, while statements
2758 -- and exit statements.
2760 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2761 "!-gnatg,!-gnaty*";
2762 -- NODOC (see /STYLE_CHECKS)
2764 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2765 "--subdirs=>";
2766 -- /SUBDIRS=dir
2768 -- The actual directories (object, exec, library, ...) are subdirectories
2769 -- of the directory specified in the project file. If the subdirectory
2770 -- does not exist, it is created automatically.
2772 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2773 "-gnateD" & '"';
2774 -- /SYMBOL_PREPROCESSING="symbol=value"
2776 -- Define or redefine a preprocessing symbol, associated with value.
2777 -- If "=value" is not specified, then the value of the symbol is True.
2778 -- A symbol is an identifier, following normal Ada (case-insensitive)
2779 -- rules for its syntax, and value is any sequence (including an empty
2780 -- sequence) of characters from the set (letters, digits, period,
2781 -- underline). Ada reserved words may be used as symbols, with the
2782 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2784 -- A symbol declared with this qualifier on the command line replaces
2785 -- a symbol with the same name either in a definition file or specified
2786 -- with a switch -D in the preprocessor data file.
2788 -- This qualifier is similar to qualifier /ASSOCIATE of
2789 -- GNAT PREPROCESSING.
2791 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2792 "-gnats";
2793 -- /NOSYNTAX_ONLY (D)
2794 -- /SYNTAX_ONLY
2796 -- Run GNAT in syntax checking only mode. You can check a series of
2797 -- files in a single command, and can use wild cards to specify such a
2798 -- group of files.
2800 -- You may use other qualifiers in conjunction with this qualifier. In
2801 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2802 -- format of any generated error messages.
2804 -- The output is simply the error messages, if any. No object file or ALI
2805 -- file is generated by a syntax-only compilation. Also, no units other
2806 -- than the one specified are accessed. For example, if a unit "X" with's
2807 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2808 -- access the source file containing unit "Y".
2810 -- Normally, GNAT allows only a single unit in a source file. However,
2811 -- this restriction does not apply in syntax-check-only mode, and it is
2812 -- possible to check a file containing multiple compilation units
2813 -- concatenated together. This is primarily used by the GNAT CHOP
2814 -- command.
2816 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2817 "-gnatT#";
2818 -- /TABLE_MULTIPLIER=nnn
2820 -- All compiler tables start at nnn times usual starting size.
2822 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2823 "-gnatdc";
2824 -- /TRACE_UNITS
2825 -- /NOTRACE_UNITS
2827 -- This switch that does for the frontend what /VERBOSE does for the
2828 -- backend. The system prints the name of each unit, either a compilation
2829 -- unit or nested unit, as it is being analyzed.
2831 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2832 "-gnatt";
2833 -- /TREE_OUTPUT
2834 -- /NOTREE_OUTPUT
2836 -- Cause GNAT to write the internal tree for a unit to a file (with the
2837 -- filetype ATB for a body or ATS for a spec). This is not normally
2838 -- required, but is used by separate analysis tools. Typically these
2839 -- tools do the necessary compilations automatically, so you should never
2840 -- have to specify this switch in normal operation.
2842 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2843 "-gnatq";
2844 -- /TRY_SEMANTICS
2845 -- /NOTRY_SEMANTICS
2847 -- In normal operation mode the compiler first parses the program and
2848 -- determines if there are any syntax errors. If there are, appropriate
2849 -- error messages are generated and compilation is immediately
2850 -- terminated. This qualifier tells GNAT to continue with semantic
2851 -- analysis even if syntax errors have been found. This may enable the
2852 -- detection of more errors in a single run. On the other hand, the
2853 -- semantic analyzer is more likely to encounter some internal fatal
2854 -- error when given a syntactically invalid tree.
2856 S_GCC_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
2857 "--unchecked-shared-lib-imports";
2858 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
2859 -- /UNCHECKED_SHARED_LIB_IMPORTS
2861 -- Allow shared library projects to import static library projects
2863 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2864 "-gnatu";
2865 -- /NOUNITS_LIST (D)
2866 -- /UNITS_LIST
2868 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2869 -- listing includes all units on which the unit being compiled depends
2870 -- either directly or indirectly.
2872 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2873 "-gnatU";
2874 -- /NOUNIQUE_ERROR_TAG (D)
2875 -- /UNIQUE_ERROR_TAG
2877 -- Tag compiler error messages with the string "error: ".
2879 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2880 "-gnatF";
2881 -- /NOUPPERCASE_EXTERNALS (D)
2882 -- /UPPERCASE_EXTERNALS
2884 -- Fold default and explicit external names in pragmas Import and Export
2885 -- to uppercase for compatibility with the default behavior of DEC C.
2887 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2888 "DEFAULT " &
2889 "-gnatVd " &
2890 "NODEFAULT " &
2891 "-gnatVD " &
2892 "COPIES " &
2893 "-gnatVc " &
2894 "NOCOPIES " &
2895 "-gnatVC " &
2896 "COMPONENTS " &
2897 "-gnatVe " &
2898 "NOCOMPONENTS " &
2899 "-gnatVE " &
2900 "FLOATS " &
2901 "-gnatVf " &
2902 "NOFLOATS " &
2903 "-gnatVF " &
2904 "IN_PARAMS " &
2905 "-gnatVi " &
2906 "NOIN_PARAMS " &
2907 "-gnatVI " &
2908 "MOD_PARAMS " &
2909 "-gnatVm " &
2910 "NOMOD_PARAMS " &
2911 "-gnatVM " &
2912 "OPERANDS " &
2913 "-gnatVo " &
2914 "NOOPERANDS " &
2915 "-gnatVO " &
2916 "PARAMETERS " &
2917 "-gnatVp " &
2918 "NOPARAMETERS " &
2919 "-gnatVP " &
2920 "RETURNS " &
2921 "-gnatVr " &
2922 "NORETURNS " &
2923 "-gnatVR " &
2924 "SUBSCRIPTS " &
2925 "-gnatVs " &
2926 "NOSUBSCRIPTS " &
2927 "-gnatVS " &
2928 "TESTS " &
2929 "-gnatVt " &
2930 "NOTESTS " &
2931 "-gnatVT " &
2932 "ALL " &
2933 "-gnatVa " &
2934 "NONE " &
2935 "-gnatVn";
2936 -- /VALIDITY_CHECKING[=(keyword,[...])]
2938 -- Control level of validity checking.
2940 -- DEFAULT (D) In this mode checks are made to prevent
2941 -- erroneous behavior in accordance with the RM.
2942 -- Notably extra checks may be needed for case
2943 -- statements and subscripted array assignments.
2945 -- NONE No special checks for invalid values are
2946 -- performed. This means that references to
2947 -- uninitialized variables can cause erroneous
2948 -- behavior from constructs like case statements
2949 -- and subscripted array assignments. In this
2950 -- mode, invalid values can lead to erroneous
2951 -- behavior.
2953 -- FULL Every assignment is checked for validity, so
2954 -- that it is impossible to assign invalid values.
2955 -- The RM specifically allows such assignments,
2956 -- but in this mode, invalid values can never be
2957 -- assigned, and an attempt to perform such an
2958 -- assignment immediately raises Constraint_Error.
2959 -- This behavior is allowed (but not required) by
2960 -- the RM. This mode is intended as a debugging aid,
2961 -- and may be useful in helping to track down
2962 -- uninitialized variables. It may be useful to
2963 -- use this in conjunction with the Normalize_Scalars
2964 -- pragma which attempts to initialize with invalid
2965 -- values where possible.
2967 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2968 "-v";
2969 -- /VERBOSE
2970 -- /NOVERBOSE
2972 -- Show commands generated by the GCC driver. Normally used only for
2973 -- debugging purposes or if you need to be sure what version of the
2974 -- compiler you are executing.
2976 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2977 "-S,-verbose_asm,!-c";
2978 -- /NOASM (D)
2979 -- /ASM
2981 -- Use to cause the assembler source file to be generated, using S as the
2982 -- filetype, instead of the object file. This may be useful if you need
2983 -- to examine the generated assembly code.
2985 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2986 "DEFAULT " &
2987 "!-gnatws,!-gnatwe " &
2988 "ALL " &
2989 "-gnatwa " &
2990 "EVERY " &
2991 "-gnatw.e " &
2992 "OPTIONAL " &
2993 "-gnatwa " &
2994 "NOOPTIONAL " &
2995 "-gnatwA " &
2996 "NOALL " &
2997 "-gnatwA " &
2998 "ALL_GCC " &
2999 "-Wall " &
3000 "FAILING_ASSERTIONS " &
3001 "-gnatw.a " &
3002 "NO_FAILING_ASSERTIONS " &
3003 "-gnatw.A " &
3004 "BAD_FIXED_VALUES " &
3005 "-gnatwb " &
3006 "NO_BAD_FIXED_VALUES " &
3007 "-gnatwB " &
3008 "BIASED_REPRESENTATION " &
3009 "-gnatw.b " &
3010 "NO_BIASED_REPRESENTATION " &
3011 "-gnatw.B " &
3012 "CONDITIONALS " &
3013 "-gnatwc " &
3014 "NOCONDITIONALS " &
3015 "-gnatwC " &
3016 "MISSING_COMPONENT_CLAUSES " &
3017 "-gnatw.c " &
3018 "NOMISSING_COMPONENT_CLAUSES " &
3019 "-gnatw.C " &
3020 "IMPLICIT_DEREFERENCE " &
3021 "-gnatwd " &
3022 "NO_IMPLICIT_DEREFERENCE " &
3023 "-gnatwD " &
3024 "ERRORS " &
3025 "-gnatwe " &
3026 "UNREFERENCED_FORMALS " &
3027 "-gnatwf " &
3028 "NOUNREFERENCED_FORMALS " &
3029 "-gnatwF " &
3030 "UNRECOGNIZED_PRAGMAS " &
3031 "-gnatwg " &
3032 "NOUNRECOGNIZED_PRAGMAS " &
3033 "-gnatwG " &
3034 "HIDING " &
3035 "-gnatwh " &
3036 "NOHIDING " &
3037 "-gnatwH " &
3038 "AVOIDGAPS " &
3039 "-gnatw.h " &
3040 "NOAVOIDGAPS " &
3041 "-gnatw.H " &
3042 "IMPLEMENTATION " &
3043 "-gnatwi " &
3044 "NOIMPLEMENTATION " &
3045 "-gnatwI " &
3046 "OBSOLESCENT " &
3047 "-gnatwj " &
3048 "NOOBSOLESCENT " &
3049 "-gnatwJ " &
3050 "CONSTANT_VARIABLES " &
3051 "-gnatwk " &
3052 "NOCONSTANT_VARIABLES " &
3053 "-gnatwK " &
3054 "ELABORATION " &
3055 "-gnatwl " &
3056 "NOELABORATION " &
3057 "-gnatwL " &
3058 "MODIFIED_UNREF " &
3059 "-gnatwm " &
3060 "NOMODIFIED_UNREF " &
3061 "-gnatwM " &
3062 "SUSPICIOUS_MODULUS " &
3063 "-gnatw.m " &
3064 "NOSUSPICIOUS_MODULUS " &
3065 "-gnatw.M " &
3066 "NORMAL " &
3067 "-gnatwn " &
3068 "OVERLAYS " &
3069 "-gnatwo " &
3070 "NOOVERLAYS " &
3071 "-gnatwO " &
3072 "OUT_PARAM_UNREF " &
3073 "-gnatw.o " &
3074 "NOOUT_PARAM_UNREF " &
3075 "-gnatw.O " &
3076 "INEFFECTIVE_INLINE " &
3077 "-gnatwp " &
3078 "NOINEFFECTIVE_INLINE " &
3079 "-gnatwP " &
3080 "MISSING_PARENS " &
3081 "-gnatwq " &
3082 "PARAMETER_ORDER " &
3083 "-gnatw.p " &
3084 "NOPARAMETER_ORDER " &
3085 "-gnatw.P " &
3086 "NOMISSING_PARENS " &
3087 "-gnatwQ " &
3088 "REDUNDANT " &
3089 "-gnatwr " &
3090 "NOREDUNDANT " &
3091 "-gnatwR " &
3092 "OBJECT_RENAMES " &
3093 "-gnatw.r " &
3094 "NOOBJECT_RENAMES " &
3095 "-gnatw.R " &
3096 "SUPPRESS " &
3097 "-gnatws " &
3098 "OVERRIDING_SIZE " &
3099 "-gnatw.s " &
3100 "NOOVERRIDING_SIZE " &
3101 "-gnatw.S " &
3102 "DELETED_CODE " &
3103 "-gnatwt " &
3104 "NODELETED_CODE " &
3105 "-gnatwT " &
3106 "UNINITIALIZED " &
3107 "-Wuninitialized " &
3108 "UNUSED " &
3109 "-gnatwu " &
3110 "NOUNUSED " &
3111 "-gnatwU " &
3112 "UNORDERED_ENUMERATIONS " &
3113 "-gnatw.u " &
3114 "NOUNORDERED_ENUMERATIONS " &
3115 "-gnatw.U " &
3116 "VARIABLES_UNINITIALIZED " &
3117 "-gnatwv " &
3118 "NOVARIABLES_UNINITIALIZED " &
3119 "-gnatwV " &
3120 "REVERSE_BIT_ORDER " &
3121 "-gnatw.v " &
3122 "NOREVERSE_BIT_ORDER " &
3123 "-gnatw.V " &
3124 "LOWBOUND_ASSUMED " &
3125 "-gnatww " &
3126 "NOLOWBOUND_ASSUMED " &
3127 "-gnatwW " &
3128 "WARNINGS_OFF_PRAGMAS " &
3129 "-gnatw.w " &
3130 "NO_WARNINGS_OFF_PRAGMAS " &
3131 "-gnatw.W " &
3132 "IMPORT_EXPORT_PRAGMAS " &
3133 "-gnatwx " &
3134 "NOIMPORT_EXPORT_PRAGMAS " &
3135 "-gnatwX " &
3136 "LOCAL_RAISE_HANDLING " &
3137 "-gnatw.x " &
3138 "NOLOCAL_RAISE_HANDLING " &
3139 "-gnatw.X " &
3140 "ADA_2005_COMPATIBILITY " &
3141 "-gnatwy " &
3142 "NOADA_2005_COMPATIBILITY " &
3143 "-gnatwY " &
3144 "UNCHECKED_CONVERSIONS " &
3145 "-gnatwz " &
3146 "NOUNCHECKED_CONVERSIONS " &
3147 "-gnatwZ";
3148 -- /NOWARNINGS
3150 -- Suppress the output of all warning messages from the GNAT front end.
3151 -- Note that it does not suppress warnings from the gcc back end.
3153 -- /WARNINGS[=(keyword[,...])]
3155 -- In addition to error messages, corresponding to illegalities as
3156 -- defined in the reference manual, the compiler detects two kinds of
3157 -- warning situations. First, the compiler considers some constructs
3158 -- suspicious and generates a warning message to alert you to a possible
3159 -- error. Second, if the compiler detects a situation that is sure to
3160 -- raise an exception at runtime, it generates a warning message.
3162 -- You may specify the following keywords to change this behavior:
3164 -- DEFAULT (D) The default behavior above.
3166 -- ALL Activate all optional warnings.
3167 -- Activates most optional warning messages,
3168 -- see remaining list in this section for
3169 -- details on optional warning messages that
3170 -- can be individually controlled.
3171 -- The warnings that are not turned on by
3172 -- this option are BIASED_ROUNDING,
3173 -- IMPLICIT_DEREFERENCE, HIDING and
3174 -- ELABORATION. All other optional Ada
3175 -- warnings are turned on.
3177 -- EVERY Activate every optional warning.
3178 -- Activates all optional warnings, including
3179 -- those listed above as exceptions for ALL.
3181 -- NOALL Suppress all optional errors.
3182 -- Suppresses all optional warning messages
3183 -- that can be activated by option ALL.
3185 -- ALL_GCC Request additional messages from the GCC
3186 -- backend. Most of these are not relevant
3187 -- to Ada.
3189 -- CONDITIONALS Activate warnings for conditional
3190 -- Expressions used in tests that are known
3191 -- to be True or False at compile time. The
3192 -- default is that such warnings are not
3193 -- generated.
3195 -- NOCONDITIONALS Suppress warnings for conditional
3196 -- expressions used in tests that are known
3197 -- to be True or False at compile time.
3199 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3200 -- The use of a prefix of an access type in an
3201 -- indexed component, slice, or selected component
3202 -- without an explicit .all will generate
3203 -- a warning. With this warning enabled, access
3204 -- checks occur only at points where an explicit
3205 -- .all appears in the source code (assuming no
3206 -- warnings are generated as a result of this
3207 -- option). The default is that such warnings are
3208 -- not generated. Note that /WARNINGS=ALL does not
3209 -- affect the setting of this warning option.
3211 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
3212 -- in indexed components, slices, and selected
3213 -- components.
3215 -- ELABORATION Activate warnings on missing pragma
3216 -- Elaborate_All statements. The default is
3217 -- that such warnings are not generated.
3219 -- NOELABORATION Suppress warnings on missing pragma
3220 -- Elaborate_All statements.
3222 -- ERRORS Warning messages are to be treated as errors.
3223 -- The warning string still appears, but the
3224 -- warning messages are counted as errors, and
3225 -- prevent the generation of an object file.
3227 -- HIDING Activate warnings on hiding declarations.
3228 -- A declaration is considered hiding if it is
3229 -- for a non-overloadable entity, and it declares
3230 -- an entity with the same name as some other
3231 -- entity that is directly or use-visible. The
3232 -- default is that such warnings are not
3233 -- generated.
3235 -- NOHIDING Suppress warnings on hiding declarations.
3237 -- IMPLEMENTATION Activate warnings for a with of an internal
3238 -- GNAT implementation unit, defined as any unit
3239 -- from the Ada, Interfaces, GNAT, DEC or
3240 -- System hierarchies that is not documented in
3241 -- either the Ada Reference Manual or the GNAT
3242 -- Programmer's Reference Manual. Such units are
3243 -- intended only for internal implementation
3244 -- purposes and should not be with'ed by user
3245 -- programs. The default is that such warnings
3246 -- are generated.
3248 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3249 -- GNAT implementation unit.
3251 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3252 -- Activates warnings for failure of front end
3253 -- inlining (activated by /INLINE=FULL) to inline
3254 -- a particular call. There are many reasons for
3255 -- not being able to inline a call, including most
3256 -- commonly that the call is too complex to
3257 -- inline. This warning can also be turned on
3258 -- using /INLINE=FULL.
3260 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3261 -- Suppresses warnings on ineffective pragma
3262 -- Inlines. If the inlining mechanism cannot
3263 -- inline a call, it will simply ignore the
3264 -- request silently.
3266 -- MISSING_COMPONENT_CLAUSES
3267 -- Activate warnings for cases when there are
3268 -- component clauses for a record type, but not
3269 -- for every component of the record.
3271 -- NOMISSING_COMPONENT_CLAUSES
3272 -- Suppress warnings for cases when there are
3273 -- missing component clauses for a record type.
3275 -- MISSING_PARENS
3276 -- Activate warnings for cases where parentheses
3277 -- are not used and the result is potential
3278 -- ambiguity from a reader's point of view.
3279 -- For example (not a > b) when a and b are
3280 -- modular means (not (a) > b) and very likely
3281 -- the programmer intended (not (a > b)).
3283 -- NOMISSING_PARENS
3284 -- Suppress warnings for cases where parentheses
3285 -- are not used and the result is potential
3286 -- ambiguity from a reader's point of view.
3288 -- MODIFIED_UNREF Activates warnings for variables that are
3289 -- assigned (using an initialization value or with
3290 -- one or more assignment statements) but whose
3291 -- value is never read. The warning is suppressed
3292 -- for volatile variables and also for variables
3293 -- that are renamings of other variables or for
3294 -- which an address clause is given. This warning
3295 -- can also be turned on using /WARNINGS/OPTIONAL.
3297 -- NOMODIFIED_UNREF Disables warnings for variables that are
3298 -- assigned or initialized, but never read.
3300 -- NORMAL Sets normal warning mode, in which enabled
3301 -- warnings are issued and treated as warnings
3302 -- rather than errors. This is the default mode.
3303 -- It can be used to cancel the effect of an
3304 -- explicit /WARNINGS=SUPPRESS or
3305 -- /WARNINGS=ERRORS. It also cancels the effect
3306 -- of the implicit /WARNINGS=ERRORS that is
3307 -- activated by the use of /STYLE=GNAT.
3309 -- OBSOLESCENT Activates warnings for calls to subprograms
3310 -- marked with pragma Obsolescent and for use of
3311 -- features in Annex J of the Ada Reference
3312 -- Manual. In the case of Annex J, not all
3313 -- features are flagged. In particular use of the
3314 -- renamed packages (like Text_IO), use of package
3315 -- ASCII and use of the attribute 'Constrained are
3316 -- not flagged, since these are very common and
3317 -- would generate many annoying positive warnings.
3318 -- The default is that such warnings are not
3319 -- generated.
3321 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3322 -- features.
3324 -- OBJECT_RENAME Activate warnings for non limited objects
3325 -- renaming parameterless functions.
3327 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3328 -- renaming parameterless functions.
3330 -- OPTIONAL Equivalent to ALL.
3332 -- NOOPTIONAL Equivalent to NOALL.
3334 -- OVERLAYS Activate warnings for possibly unintended
3335 -- initialization effects of defining address
3336 -- clauses that cause one variable to overlap
3337 -- another. The default is that such warnings
3338 -- are generated.
3340 -- NOOVERLAYS Suppress warnings on possibly unintended
3341 -- initialization effects of defining address
3342 -- clauses that cause one variable to overlap
3343 -- another.
3345 -- REDUNDANT Activate warnings for redundant constructs.
3346 -- In particular assignments of a variable to
3347 -- itself, and a type conversion that converts
3348 -- an object to its own type. The default
3349 -- is that such warnings are not generated.
3351 -- NOREDUNDANT Suppress warnings for redundant constructs.
3353 -- SUPPRESS Completely suppress the output of all warning
3354 -- messages. Same as /NOWARNINGS.
3356 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3357 -- Causes warnings to be generated for
3358 -- unchecked conversions when the two types are
3359 -- known at compile time to have different sizes.
3360 -- The default is that such warnings are
3361 -- generated.
3363 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3365 -- UNINITIALIZED Generate warnings for uninitialized variables.
3366 -- This is a GCC option, not an Ada option.
3367 -- You must also specify the /OPTIMIZE qualifier
3368 -- with a value other than NONE (in other words,
3369 -- this keyword works only if optimization is
3370 -- turned on).
3372 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3373 -- Causes a warning to be generated if a formal
3374 -- parameter is not referenced in the body of
3375 -- the subprogram. This warning can also be turned
3376 -- on using option ALL or UNUSED.
3378 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3379 -- Suppresses warnings for unreferenced formal
3380 -- parameters. Note that the combination UNUSED
3381 -- followed by NOUNREFERENCED_FORMALS has the
3382 -- effect of warning on unreferenced entities
3383 -- other than subprogram formals.
3385 -- UNUSED Activates warnings to be generated for entities
3386 -- that are defined but not referenced, and for
3387 -- units that are with'ed and not referenced. In
3388 -- the case of packages, a warning is also
3389 -- generated if no entities in the package are
3390 -- referenced. This means that if the package
3391 -- is referenced but the only references are in
3392 -- use clauses or renames declarations, a warning
3393 -- is still generated. A warning is also generated
3394 -- for a generic package that is with'ed but never
3395 -- instantiated. In the case where a package or
3396 -- subprogram body is compiled, and there is a
3397 -- with on the corresponding spec that is only
3398 -- referenced in the body, a warning is also
3399 -- generated, noting that the with can be moved
3400 -- to the body. The default is that such warnings
3401 -- are not generated.
3403 -- NOUNUSED Suppress warnings for unused entities and
3404 -- packages.
3406 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3407 -- Causes warnings to be generated when a variable
3408 -- is accessed which may not be properly
3409 -- uninitialized.
3410 -- The default is that such warnings are
3411 -- generated.
3413 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
3414 -- variables.
3416 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3417 "-gnatws";
3418 -- NODOC (see /WARNINGS)
3420 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3421 "-w";
3422 -- /NO_BACK_END_WARNINGS
3424 -- Inhibit all warning messages of the GCC back-end.
3426 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3427 "BRACKETS " &
3428 "-gnatWb " &
3429 "HEX " &
3430 "-gnatWh " &
3431 "UPPER " &
3432 "-gnatWu " &
3433 "SHIFT_JIS " &
3434 "-gnatWs " &
3435 "UTF8 " &
3436 "-gnatW8 " &
3437 "EUC " &
3438 "-gnatWe";
3439 -- /NOWIDE_CHARACTER_ENCODING (D)
3440 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3442 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3443 -- is one of the following:
3445 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3446 -- are four hexadecimal digits representing the coding
3447 -- ('Pos value) of the character in type
3448 -- Wide_Character. The hexadecimal digits may use upper
3449 -- or lower case letters.
3451 -- This notation can also be used for upper half
3452 -- Character values using the format ["xx"] where XX is
3453 -- two hexadecimal digits representing the coding ('Pos
3454 -- value) of the character in type Character (or
3455 -- Wide_Character). The hexadecimal digits may use upper
3456 -- of lower case.
3458 -- NONE No wide characters are allowed. Same
3459 -- as /NOWIDE_CHARACTER_ENCODING.
3461 -- HEX In this encoding, a wide character is represented by
3462 -- the following five character sequence: ESC a b c d
3463 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3464 -- characters (using uppercase letters) of the wide
3465 -- character code. For example, ESC A345 is used to
3466 -- represent the wide character with code 16#A345#. This
3467 -- scheme is compatible with use of the full
3468 -- Wide_Character set.
3470 -- UPPER The wide character with encoding 16#abcd# where the
3471 -- upper bit is on (in other words, "a" is in the range
3472 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3473 -- The second byte may never be a format control
3474 -- character, but is not required to be in the upper
3475 -- half. This method can be also used for shift-JIS or
3476 -- EUC, where the internal coding matches the external
3477 -- coding.
3479 -- SHIFT_JIS A wide character is represented by a two-character
3480 -- sequence, 16#ab# and 16#cd#, with the restrictions
3481 -- described for upper-half encoding as described above.
3482 -- The internal character code is the corresponding JIS
3483 -- character according to the standard algorithm for
3484 -- Shift-JIS conversion. Only characters defined in the
3485 -- JIS code set table can be used with this encoding
3486 -- method.
3488 -- UTF8 A wide character is represented using
3489 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3490 -- R of ISO 10646-1/Am.2. Depending on the character
3491 -- value, the representation is a one, two, or three byte
3492 -- sequence:
3494 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3495 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3496 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3498 -- where the xxx bits correspond to the left-padded bits
3499 -- of the 16-bit character value. Note that all lower
3500 -- half ASCII characters are represented as ASCII bytes
3501 -- and all upper half characters and other wide characters
3502 -- are represented as sequences of upper-half (The full
3503 -- UTF-8 scheme allows for encoding 31-bit characters as
3504 -- 6-byte sequences, but in this implementation, all UTF-8
3505 -- sequences of four or more bytes length will be treated
3506 -- as illegal).
3508 -- EUC A wide character is represented by a two-character
3509 -- sequence 16#ab# and 16#cd#, with both characters being
3510 -- in the upper half. The internal character code is the
3511 -- corresponding JIS character according to the EUC
3512 -- encoding algorithm. Only characters defined in the JIS
3513 -- code set table can be used with this encoding method.
3515 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3516 "-gnatWn";
3517 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3519 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3520 "-gnatD";
3521 -- /NOXDEBUG (D)
3522 -- /XDEBUG
3524 -- Output expanded source files for source level debugging.
3525 -- The expanded source (see /EXPAND_SOURCE) is written to files
3526 -- with names formed by appending "_DG" to the input file name,
3527 -- The debugging information generated by the /DEBUG qualifier will then
3528 -- refer to the generated file. This allows source level debugging using
3529 -- the generated code which is sometimes useful for complex code, for
3530 -- example to find out exactly which part of a complex construction
3531 -- raised an exception. The maximum line length for the output is 72.
3533 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3534 "-gnatD=#";
3535 -- /LXDEBUG=nnn
3537 -- Output expanded source files for source level debugging.
3538 -- The expanded source (see /EXPAND_SOURCE) is written to files
3539 -- with names formed by appending "_DG" to the input file name,
3540 -- The debugging information generated by the /DEBUG qualifier will then
3541 -- refer to the generated file. This allows source level debugging using
3542 -- the generated code which is sometimes useful for complex code, for
3543 -- example to find out exactly which part of a complex construction
3544 -- raised an exception. The parameter is the maximum line length for
3545 -- the output.
3547 S_GCC_Xref : aliased constant S := "/XREF=" &
3548 "GENERATE " &
3549 "!-gnatx " &
3550 "SUPPRESS " &
3551 "-gnatx";
3552 -- /XREF[=keyword]
3554 -- Normally the compiler generates full cross-referencing information in
3555 -- the .ALI file. This information is used by a number of tools,
3556 -- including GNAT FIND and GNAT XREF.
3558 -- GENERATE (D) Generate cross-referencing information.
3560 -- SUPPRESS Suppress cross-referencing information.
3561 -- This saves some space and may slightly
3562 -- speed up compilation, but means that some
3563 -- tools cannot be used.
3565 GCC_Switches : aliased constant Switches :=
3566 (S_GCC_Ada_83 'Access,
3567 S_GCC_Ada_95 'Access,
3568 S_GCC_Ada_05 'Access,
3569 S_GCC_Ada_2005'Access,
3570 S_GCC_Ada_12 'Access,
3571 S_GCC_Ada_2012'Access,
3572 S_GCC_Add 'Access,
3573 S_GCC_Asm 'Access,
3574 S_GCC_AValid 'Access,
3575 S_GCC_CategW 'Access,
3576 S_GCC_Checks 'Access,
3577 S_GCC_ChecksX 'Access,
3578 S_GCC_Compres 'Access,
3579 S_GCC_Config 'Access,
3580 S_GCC_Current 'Access,
3581 S_GCC_Debug 'Access,
3582 S_GCC_DebugX 'Access,
3583 S_GCC_Data 'Access,
3584 S_GCC_Dist 'Access,
3585 S_GCC_DistX 'Access,
3586 S_GCC_Error 'Access,
3587 S_GCC_ErrorX 'Access,
3588 S_GCC_Expand 'Access,
3589 S_GCC_Lexpand 'Access,
3590 S_GCC_Except 'Access,
3591 S_GCC_Extend 'Access,
3592 S_GCC_Ext 'Access,
3593 S_GCC_File 'Access,
3594 S_GCC_Follow 'Access,
3595 S_GCC_Force 'Access,
3596 S_GCC_Full 'Access,
3597 S_GCC_Generate'Access,
3598 S_GCC_GNAT 'Access,
3599 S_GCC_Help 'Access,
3600 S_GCC_Ident 'Access,
3601 S_GCC_IdentX 'Access,
3602 S_GCC_Ignore 'Access,
3603 S_GCC_Immed 'Access,
3604 S_GCC_Inline 'Access,
3605 S_GCC_InlineX 'Access,
3606 S_GCC_Intsrc 'Access,
3607 S_GCC_Just 'Access,
3608 S_GCC_JustX 'Access,
3609 S_GCC_Length 'Access,
3610 S_GCC_List 'Access,
3611 S_GCC_Output 'Access,
3612 S_GCC_Machine 'Access,
3613 S_GCC_Mapping 'Access,
3614 S_GCC_MaxI 'Access,
3615 S_GCC_Multi 'Access,
3616 S_GCC_Mess 'Access,
3617 S_GCC_Nesting 'Access,
3618 S_GCC_Noadc 'Access,
3619 S_GCC_Noload 'Access,
3620 S_GCC_Nostinc 'Access,
3621 S_GCC_Nostlib 'Access,
3622 S_GCC_NoWarnP 'Access,
3623 S_GCC_Opt 'Access,
3624 S_GCC_OptX 'Access,
3625 S_GCC_Pointer 'Access,
3626 S_GCC_Polling 'Access,
3627 S_GCC_Project 'Access,
3628 S_GCC_Psta 'Access,
3629 S_GCC_Report 'Access,
3630 S_GCC_ReportX 'Access,
3631 S_GCC_Repinfo 'Access,
3632 S_GCC_RepinfX 'Access,
3633 S_GCC_RTS 'Access,
3634 S_GCC_SCO 'Access,
3635 S_GCC_Search 'Access,
3636 S_GCC_Src_Info'Access,
3637 S_GCC_Style 'Access,
3638 S_GCC_StyleX 'Access,
3639 S_GCC_Subdirs 'Access,
3640 S_GCC_Symbol 'Access,
3641 S_GCC_Syntax 'Access,
3642 S_GCC_Table 'Access,
3643 S_GCC_Trace 'Access,
3644 S_GCC_Tree 'Access,
3645 S_GCC_Trys 'Access,
3646 S_GCC_USL 'Access,
3647 S_GCC_Units 'Access,
3648 S_GCC_Unique 'Access,
3649 S_GCC_Upcase 'Access,
3650 S_GCC_Valid 'Access,
3651 S_GCC_Verbose 'Access,
3652 S_GCC_Verb_Asm'Access,
3653 S_GCC_Warn 'Access,
3654 S_GCC_WarnX 'Access,
3655 S_GCC_Wide 'Access,
3656 S_GCC_WideX 'Access,
3657 S_GCC_No_Back 'Access,
3658 S_GCC_Xdebug 'Access,
3659 S_GCC_Lxdebug 'Access,
3660 S_GCC_Xref 'Access);
3662 ----------------------------
3663 -- Switches for GNAT ELIM --
3664 ----------------------------
3666 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3667 "-aP*";
3668 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3670 -- Add directories to the project search path.
3672 S_Elim_All : aliased constant S := "/ALL " &
3673 "-a";
3674 -- /NOALL (D)
3675 -- /ALL
3677 -- Also look for subprograms from the GNAT run time that can be
3678 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3679 -- the entire program must be recompiled with qualifier /ALL_FILES of
3680 -- GNAT MAKE.
3682 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3683 "-b>";
3684 -- /BIND_FILE=file_name
3686 -- Specifies file_name as the bind file to process. If this qualifier is
3687 -- not used, the name of the bind file is computed from the full expanded
3688 -- Ada name of a main subprogram.
3690 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3691 "--GCC=@";
3692 -- /COMPILER=path_name
3694 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3695 -- available on the path.
3697 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3698 "-C>";
3699 -- /CONFIGURATION_PRAGMAS=path_name
3701 -- Specifies a file that contains configuration pragmas.
3702 -- The file must be specified with absolute path.
3704 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3705 "!-I-";
3706 -- /CURRENT_DIRECTORY (D)
3707 -- /NOCURRENT_DIRECTORY
3709 -- Look for source files in the default directory.
3711 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3712 "-X" & '"';
3713 -- /EXTERNAL_REFERENCE="name=val"
3715 -- Specifies an external reference to the project manager. Useful only if
3716 -- /PROJECT_FILE is used.
3718 -- Example:
3719 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3721 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3722 "-eL";
3723 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3724 -- /FOLLOW_LINKS_FOR_FILES
3726 -- Follow links when parsing project files
3728 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3729 "--GNATMAKE=@";
3730 -- /GNATMAKE=path_name
3732 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3733 -- on the path.
3735 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3736 "DEFAULT " &
3737 "-vP0 " &
3738 "MEDIUM " &
3739 "-vP1 " &
3740 "HIGH " &
3741 "-vP2";
3742 -- /MESSAGES_PROJECT_FILE[=messages-option]
3744 -- Specifies the "verbosity" of the parsing of project files.
3745 -- messages-option may be one of the following:
3747 -- DEFAULT (D) No messages are output if there is no error or warning.
3749 -- MEDIUM A small number of messages are output.
3751 -- HIGH A great number of messages are output, most of them not
3752 -- being useful for the user.
3754 S_Elim_Nodisp : aliased constant S := "/NO_DISPATCH " &
3755 "--no-elim-dispatch";
3756 -- /NONO_DISPATCH (D)
3757 -- /NO_DISPATCH
3759 -- Do not generate pragmas for dispatching operations.
3761 S_Elim_Ignore : aliased constant S := "/IGNORE=@" &
3762 "--ignore=@";
3763 -- /IGNORE=filename
3765 -- Do not generate pragmas for subprograms declared in the sources
3766 -- listed in a specified file
3768 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3769 "-P>";
3770 -- /PROJECT_FILE=filename
3772 -- Specifies the main project file to be used. The project files rooted
3773 -- at the main project file will be parsed before the invocation of the
3774 -- gnatelim. The source directories to be searched will be communicated
3775 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3777 S_Elim_Quiet : aliased constant S := "/QUIET " &
3778 "-q";
3779 -- /NOQUIET (D)
3780 -- /QUIET
3782 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3783 -- the number of program units left to be processed. This option turns
3784 -- this trace off.
3786 S_Elim_Files : aliased constant S := "/FILES=@" &
3787 "-files=@";
3789 -- /FILES=filename
3791 -- Take as arguments the files that are listed in the specified
3792 -- text file.
3794 S_Elim_Log : aliased constant S := "/LOG " &
3795 "-l";
3796 -- /NOLOG (D)
3797 -- /LOG
3799 -- Duplicate all the output sent to Stderr into a default log file.
3801 S_Elim_Logfile : aliased constant S := "/LOGFILE=@" &
3802 "-l@";
3804 -- /LOGFILE=logfilename
3806 -- Duplicate all the output sent to Stderr into a specified log file.
3808 S_Elim_Main : aliased constant S := "/MAIN=@" &
3809 "-main=@";
3811 -- /MAIN=filename
3813 -- Specify the main subprogram of the partition to analyse.
3815 S_Elim_Out : aliased constant S := "/OUTPUT=@" &
3816 "-o@";
3817 -- /OUTPUT=filename
3819 -- Specify the name of the output file.
3821 S_Elim_Time : aliased constant S := "/TIME " &
3822 "-t";
3823 -- /NOTIME (D)
3824 -- /TIME
3826 -- Print out execution time
3828 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3829 "-I*";
3830 -- /SEARCH=(directory, ...)
3832 -- When looking for source files also look in the specified directories.
3834 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3835 "--subdirs=>";
3836 -- /SUBDIRS=dir
3838 -- The actual directories (object, exec, library, ...) are subdirectories
3839 -- of the directory specified in the project file. If the subdirectory
3840 -- does not exist, it is created automatically.
3842 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3843 "-v";
3844 -- /NOVERBOSE (D)
3845 -- /VERBOSE
3847 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3848 -- to the standard output stream. Also, in addition to the number of
3849 -- program units left, GNAT ELIM will output the name of the current unit
3850 -- being processed.
3852 S_Elim_Warn : aliased constant S := "/WARNINGS=" &
3853 "NORMAL " &
3854 "-wn " &
3855 "QUIET " &
3856 "-ws";
3858 -- /WARNINGS[=(keyword[,...])]
3860 -- The following keywords are supported:
3862 -- NORMAL (D) Print warning all the messages.
3863 -- QUIET Some warning messages are suppressed
3865 Elim_Switches : aliased constant Switches :=
3866 (S_Elim_Add 'Access,
3867 S_Elim_All 'Access,
3868 S_Elim_Bind 'Access,
3869 S_Elim_Comp 'Access,
3870 S_Elim_Config 'Access,
3871 S_Elim_Current 'Access,
3872 S_Elim_Ext 'Access,
3873 S_Elim_Files 'Access,
3874 S_Elim_Follow 'Access,
3875 S_Elim_GNATMAKE'Access,
3876 S_Elim_Log 'Access,
3877 S_Elim_Logfile 'Access,
3878 S_Elim_Main 'Access,
3879 S_Elim_Mess 'Access,
3880 S_Elim_Nodisp 'Access,
3881 S_Elim_Out 'Access,
3882 S_Elim_Project 'Access,
3883 S_Elim_Quiet 'Access,
3884 S_Elim_Search 'Access,
3885 S_Elim_Subdirs 'Access,
3886 S_Elim_Time 'Access,
3887 S_Elim_Verb 'Access,
3888 S_Elim_Warn 'Access);
3890 ----------------------------
3891 -- Switches for GNAT FIND --
3892 ----------------------------
3894 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3895 "-aP*";
3896 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3898 -- Add directories to the project search path.
3900 S_Find_All : aliased constant S := "/ALL_FILES " &
3901 "-a";
3902 -- /NOALL_FILES (D)
3903 -- /ALL_FILES
3905 -- If this switch is present, FIND and XREF will parse the read-only
3906 -- files found in the library search path. Otherwise, these files will
3907 -- be ignored. This option can be used to protect Gnat sources or your
3908 -- own libraries from being parsed, thus making FIND and XREF much
3909 -- faster, and their output much smaller.
3911 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3912 "-d";
3913 -- /NODERIVED_TYPE_INFORMATION (D)
3914 -- /DERIVED_TYPE_INFORMATION
3916 -- Output the parent type reference for each matching derived types.
3918 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3919 "-e";
3920 -- /NOEXPRESSIONS (D)
3921 -- /EXPRESSIONS
3923 -- By default, FIND accepts the simple regular expression set for pattern.
3924 -- If this switch is set, then the pattern will be considered as a full
3925 -- Unix-style regular expression.
3927 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3928 "-X" & '"';
3929 -- /EXTERNAL_REFERENCE="name=val"
3931 -- Specifies an external reference to the project manager. Useful only if
3932 -- /PROJECT_FILE is used.
3934 -- Example:
3935 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3937 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3938 "-eL";
3939 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3940 -- /FOLLOW_LINKS_FOR_FILES
3942 -- Follow links when parsing project files
3944 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3945 "-f";
3946 -- /NOFULL_PATHNAME (D)
3947 -- /FULL_PATHNAME
3949 -- If this switch is set, the output file names will be preceded by their
3950 -- directory (if the file was found in the search path). If this switch
3951 -- is not set, the directory will not be printed.
3953 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3954 "-g";
3955 -- /NOIGNORE_LOCALS (D)
3956 -- /IGNORE_LOCALS
3958 -- If this switch is set, information is output only for library-level
3959 -- entities, ignoring local entities. The use of this switch may
3960 -- accelerate FIND and XREF.
3962 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3963 "DEFAULT " &
3964 "-vP0 " &
3965 "MEDIUM " &
3966 "-vP1 " &
3967 "HIGH " &
3968 "-vP2";
3969 -- /MESSAGES_PROJECT_FILE[=messages-option]
3971 -- Specifies the "verbosity" of the parsing of project files.
3972 -- messages-option may be one of the following:
3974 -- DEFAULT (D) No messages are output if there is no error or warning.
3976 -- MEDIUM A small number of messages are output.
3978 -- HIGH A great number of messages are output, most of them not
3979 -- being useful for the user.
3981 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3982 "-nostdinc";
3983 -- /NOSTD_INCLUDES
3985 -- Do not look for sources in the system default directory.
3987 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3988 "-nostdlib";
3989 -- /NOSTD_LIBRARIES
3991 -- Do not look for library files in the system default directory.
3993 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3994 "-aO*";
3995 -- /OBJECT_SEARCH=(directory,...)
3997 -- When searching for library and object files, look in the specified
3998 -- directories. The order in which library files are searched is the same
3999 -- as for MAKE.
4001 S_Find_Print : aliased constant S := "/PRINT_LINES " &
4002 "-s";
4003 -- /NOPRINT_LINES (D)
4004 -- /PRINT_LINES
4006 -- Output the content of the Ada source file lines were the entity was
4007 -- found.
4009 S_Find_Project : aliased constant S := "/PROJECT=@" &
4010 "-p@";
4011 -- /PROJECT=file
4013 -- Specify a project file to use. By default, FIND and XREF will try to
4014 -- locate a project file in the current directory.
4016 -- If a project file is either specified or found by the tools, then the
4017 -- content of the source directory and object directory lines are added
4018 -- as if they had been specified respectively by /SOURCE_SEARCH and
4019 -- /OBJECT_SEARCH.
4021 -- This qualifier is not compatible with /PROJECT_FILE
4023 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
4024 "-P>";
4025 -- /PROJECT_FILE=filename
4027 -- Specifies the main project file to be used. The project files rooted
4028 -- at the main project file will be parsed before looking for sources.
4029 -- The source and object directories to be searched will be communicated
4030 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
4031 -- ADA_PRJ_OBJECTS_FILE.
4033 S_Find_Ref : aliased constant S := "/REFERENCES " &
4034 "-r";
4035 -- /NOREFERENCES (D)
4036 -- /REFERENCES
4038 -- By default, FIND will output only the information about the
4039 -- declaration, body or type completion of the entities. If this switch
4040 -- is set, the FIND will locate every reference to the entities in the
4041 -- files specified on the command line (or in every file in the search
4042 -- path if no file is given on the command line).
4044 S_Find_Search : aliased constant S := "/SEARCH=*" &
4045 "-I*";
4046 -- /SEARCH=(directory,...)
4048 -- Equivalent to:
4049 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
4051 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4052 "-aI*";
4053 -- /SOURCE_SEARCH=(directory,...)
4055 -- When looking for source files also look in the specified directories.
4056 -- The order in which source file search is undertaken is the same as for
4057 -- MAKE.
4059 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
4060 "--subdirs=>";
4061 -- /SUBDIRS=dir
4063 -- The actual directories (object, exec, library, ...) are subdirectories
4064 -- of the directory specified in the project file. If the subdirectory
4065 -- does not exist, it is created automatically.
4067 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
4068 "-t";
4069 -- /NOTYPE_HIERARCHY (D)
4070 -- /TYPE_HIERARCHY
4072 -- Output the type hierarchy for the specified type. It acts like the
4073 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
4074 -- to parent type. When this qualifier is specified it is not possible to
4075 -- specify more than one file.
4077 Find_Switches : aliased constant Switches :=
4078 (S_Find_Add 'Access,
4079 S_Find_All 'Access,
4080 S_Find_Deriv 'Access,
4081 S_Find_Expr 'Access,
4082 S_Find_Ext 'Access,
4083 S_Find_Follow 'Access,
4084 S_Find_Full 'Access,
4085 S_Find_Ignore 'Access,
4086 S_Find_Mess 'Access,
4087 S_Find_Nostinc 'Access,
4088 S_Find_Nostlib 'Access,
4089 S_Find_Object 'Access,
4090 S_Find_Print 'Access,
4091 S_Find_Project 'Access,
4092 S_Find_Prj 'Access,
4093 S_Find_Ref 'Access,
4094 S_Find_Search 'Access,
4095 S_Find_Source 'Access,
4096 S_Find_Subdirs 'Access,
4097 S_Find_Types 'Access);
4099 ------------------------------
4100 -- Switches for GNAT KRUNCH --
4101 ------------------------------
4103 S_Krunch_Count : aliased constant S := "/COUNT=#" &
4104 "`#";
4105 -- /COUNT=39 (D)
4106 -- /COUNT=nnn
4108 -- Limit file names to nnn characters (where nnn is a decimal
4109 -- integer). The maximum file name length is 39, but if you want to
4110 -- generate a set of files that would be usable if ported to a system
4111 -- with some different maximum file length, then a different value can
4112 -- be specified.
4114 Krunch_Switches : aliased constant Switches :=
4115 (1 .. 1 => S_Krunch_Count 'Access);
4117 ----------------------------
4118 -- Switches for GNAT LINK --
4119 ----------------------------
4121 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4122 "-aP*";
4123 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4125 -- Add directories to the project search path.
4127 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
4128 "ADA " &
4129 "-A " &
4130 "C " &
4131 "-C";
4132 -- /BIND_FILE=[bind-file-option]
4134 -- Specifies the language of the binder generated file.
4136 -- ADA (D) Binder file is Ada.
4138 -- C Binder file is 'C'.
4140 S_Link_Debug : aliased constant S := "/DEBUG=" &
4141 "ALL " &
4142 "-g3 " &
4143 "NONE " &
4144 "-g0 " &
4145 "TRACEBACK " &
4146 "-g1 " &
4147 "NOTRACEBACK " &
4148 "-g0";
4149 -- /NODEBUG (D)
4150 -- /DEBUG[=debug-option]
4152 -- Specifies the amount of debugging information included. 'debug-option'
4153 -- is one of the following:
4155 -- ALL (D) Include full debugging information.
4157 -- NONE Provide no debugging information. Same as /NODEBUG.
4159 -- TRACEBACK Provide sufficient debug information for a traceback.
4161 -- NOTRACEBACK Same as NONE.
4163 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
4164 "-g0";
4165 -- NODOC (see /DEBUG)
4167 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
4168 "-o@";
4169 -- /EXECUTABLE=exec-name
4171 -- 'exec-name' specifies an alternative name for the generated executable
4172 -- program. If this qualifier switch is omitted, the executable is called
4173 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
4174 -- executable called TRY.EXE.
4176 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4177 "-X" & '"';
4178 -- /EXTERNAL_REFERENCE="name=val"
4180 -- Specifies an external reference to the project manager. Useful only if
4181 -- /PROJECT_FILE is used.
4183 -- Example:
4184 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4186 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4187 "-eL";
4188 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4189 -- /FOLLOW_LINKS_FOR_FILES
4191 -- Follow links when parsing project files
4193 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
4194 "--for-linker=" & '"';
4195 -- /FOR_LINKER=<string>
4197 -- Transmit the option <string> to the underlying linker.
4199 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
4200 "-f";
4201 -- /NOFORCE_OBJECT_FILE_LIST (D)
4202 -- /FORCE_OBJECT_FILE_LIST
4204 -- Forces the generation of a file that contains commands for the linker.
4205 -- This is useful in some cases to deal with special situations where the
4206 -- command line length is exceeded.
4208 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
4209 "--for-linker=IDENT=" &
4210 '"';
4211 -- /IDENTIFICATION="<string>"
4213 -- "<string>" specifies the string to be stored in the image file ident-
4214 -- ification field in the image header. It overrides any pragma Ident
4215 -- specified string.
4217 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
4218 "-L*";
4219 -- /LIBDIR=(directory, ...)
4221 -- Look for libraries in the specified directories.
4223 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4224 "-l|";
4225 -- /LIBRARY=xyz
4227 -- Link with library named "xyz".
4229 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4230 "DEFAULT " &
4231 "-vP0 " &
4232 "MEDIUM " &
4233 "-vP1 " &
4234 "HIGH " &
4235 "-vP2";
4236 -- /MESSAGES_PROJECT_FILE[=messages-option]
4238 -- Specifies the "verbosity" of the parsing of project files.
4239 -- messages-option may be one of the following:
4241 -- DEFAULT (D) No messages are output if there is no error or warning.
4243 -- MEDIUM A small number of messages are output.
4245 -- HIGH A great number of messages are output, most of them not
4246 -- being useful for the user.
4248 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4249 "-n";
4250 -- /NOCOMPILE
4252 -- Do not compile the file generated by the binder.
4253 -- This may be used when a link is rerun with different options,
4254 -- but there is no need to recompile the binder generated file.
4256 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
4257 "--for-linker=--noinhibit-exec";
4258 -- /NOINHIBIT-EXEC
4260 -- Delete executable if there are errors or warnings.
4262 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4263 "-nostartfiles";
4264 -- /NOSTART_FILES
4266 -- Link in default image initialization and startup functions.
4268 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4269 "-P>";
4270 -- /PROJECT_FILE=filename
4272 -- Specifies the main project file to be used. The project files rooted
4273 -- at the main project file will be parsed before the invocation of the
4274 -- linker.
4275 -- The source and object directories to be searched will be communicated
4276 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4277 -- ADA_PRJ_OBJECTS_FILE.
4279 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4280 "POSIX " &
4281 "!-mvms-return-codes " &
4282 "VMS " &
4283 "-mvms-return-codes";
4284 -- /RETURN_CODES=POSIX (D)
4285 -- /RETURN_CODES=VMS
4287 -- Specifies the style of codes returned by
4288 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4289 -- and match the Bind qualifier with the same name.
4291 -- POSIX (D) Return Posix compatible exit codes.
4293 -- VMS Return VMS compatible exit codes. The value returned
4294 -- is identically equal to the Set_Exit_Status parameter.
4296 S_Link_Static : aliased constant S := "/STATIC " &
4297 "--for-linker=-static";
4298 -- /NOSTATIC (D)
4299 -- /STATIC
4301 -- Indicate to the linker that the link is static.
4303 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4304 "--subdirs=>";
4305 -- /SUBDIRS=dir
4307 -- The actual directories (object, exec, library, ...) are subdirectories
4308 -- of the directory specified in the project file. If the subdirectory
4309 -- does not exist, it is created automatically.
4311 S_Link_Verb : aliased constant S := "/VERBOSE " &
4312 "-v";
4313 -- /NOVERBOSE (D)
4314 -- /VERBOSE
4316 -- Causes additional information to be output, including a full list of
4317 -- the included object files. This switch option is most useful when you
4318 -- want to see what set of object files are being used in the link step.
4320 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4321 "--for-linker=";
4322 -- /<other>
4324 -- Any other switch that will be transmitted to the underlying linker.
4326 Link_Switches : aliased constant Switches :=
4327 (S_Link_Add 'Access,
4328 S_Link_Bind 'Access,
4329 S_Link_Debug 'Access,
4330 S_Link_Nodebug 'Access,
4331 S_Link_Execut 'Access,
4332 S_Link_Ext 'Access,
4333 S_Link_Follow 'Access,
4334 S_Link_Forlink 'Access,
4335 S_Link_Force 'Access,
4336 S_Link_Ident 'Access,
4337 S_Link_Libdir 'Access,
4338 S_Link_Library 'Access,
4339 S_Link_Mess 'Access,
4340 S_Link_Nocomp 'Access,
4341 S_Link_Nofiles 'Access,
4342 S_Link_Noinhib 'Access,
4343 S_Link_Project 'Access,
4344 S_Link_Return 'Access,
4345 S_Link_Static 'Access,
4346 S_Link_Subdirs 'Access,
4347 S_Link_Verb 'Access,
4348 S_Link_ZZZZZ 'Access);
4350 ----------------------------
4351 -- Switches for GNAT LIST --
4352 ----------------------------
4354 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4355 "-aP*";
4356 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4358 -- Add directories to the project search path.
4360 S_List_All : aliased constant S := "/ALL_UNITS " &
4361 "-a";
4362 -- /NOALL_UNITS (D)
4363 -- /ALL_UNITS
4365 -- Consider all units, including those of the predefined Ada library.
4366 -- Especially useful with /DEPENDENCIES.
4368 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4369 "-U";
4370 -- /NOALL_PROJECTS (D)
4371 -- /ALL_PROJECTS
4373 -- When used with a project file and no file specified, indicate
4374 -- that gnatls should be called for all sources of all projects in
4375 -- the project tree.
4377 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4378 "!-I-";
4379 -- /CURRENT_DIRECTORY (D)
4380 -- /NOCURRENT_DIRECTORY
4382 -- Look for source, library or object files in the default directory.
4384 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4385 "-d";
4386 -- /NODEPENDENCIES (D)
4387 -- /DEPENDENCIES
4389 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4390 "-X" & '"';
4391 -- /EXTERNAL_REFERENCE="name=val"
4393 -- Specifies an external reference to the project manager. Useful only if
4394 -- /PROJECT_FILE is used.
4396 -- Example:
4397 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4399 S_List_Files : aliased constant S := "/FILES=@" &
4400 "-files=@";
4401 -- /FILES=filename
4403 -- Take as arguments the files that are listed in the specified
4404 -- text file.
4406 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4407 "-eL";
4408 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4409 -- /FOLLOW_LINKS_FOR_FILES
4411 -- Follow links when parsing project files
4413 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4414 "DEFAULT " &
4415 "-vP0 " &
4416 "MEDIUM " &
4417 "-vP1 " &
4418 "HIGH " &
4419 "-vP2";
4420 -- /MESSAGES_PROJECT_FILE[=messages-option]
4422 -- Specifies the "verbosity" of the parsing of project files.
4423 -- messages-option may be one of the following:
4425 -- DEFAULT (D) No messages are output if there is no error or warning.
4427 -- MEDIUM A small number of messages are output.
4429 -- HIGH A great number of messages are output, most of them not
4430 -- being useful for the user.
4432 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4433 "-nostdinc";
4434 -- /NOSTD_INCLUDES
4436 -- Do not look for sources of the run time in the standard directory.
4438 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4439 "-aO*";
4440 -- /OBJECT_SEARCH=(directory,...)
4442 -- When looking for library and object files look also in the specified
4443 -- directories.
4445 S_List_Output : aliased constant S := "/OUTPUT=" &
4446 "SOURCES " &
4447 "-s " &
4448 "DEPEND " &
4449 "-d " &
4450 "OBJECTS " &
4451 "-o " &
4452 "UNITS " &
4453 "-u " &
4454 "OPTIONS " &
4455 "-h " &
4456 "VERBOSE " &
4457 "-v ";
4458 -- /OUTPUT=(option,option,...)
4460 -- SOURCES (D) Only output information about source files.
4462 -- DEPEND List sources from which specified units depend on.
4464 -- OBJECTS Only output information about object files.
4466 -- UNITS Only output information about compilation units.
4468 -- OPTIONS Output the list of options.
4470 -- VERBOSE Output the complete source and object paths.
4471 -- Do not use the default column layout but instead
4472 -- use long format giving as much as information
4473 -- possible on each requested units, including
4474 -- special characteristics.
4476 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4477 "-P>";
4478 -- /PROJECT_FILE=filename
4480 -- Specifies the main project file to be used. The project files rooted
4481 -- at the main project file will be parsed before doing any listing.
4482 -- The source and object directories to be searched will be communicated
4483 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4484 -- ADA_PRJ_OBJECTS_FILE.
4486 S_List_Search : aliased constant S := "/SEARCH=*" &
4487 "-I*";
4488 -- /SEARCH=(directory,...)
4490 -- Search the specified directories for both source and object files.
4492 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4493 "-aI*";
4494 -- /SOURCE_SEARCH=(directory,...)
4496 -- When looking for source files also look in the specified directories.
4498 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4499 "--subdirs=>";
4500 -- /SUBDIRS=dir
4502 -- The actual directories (object, exec, library, ...) are subdirectories
4503 -- of the directory specified in the project file. If the subdirectory
4504 -- does not exist, it is created automatically.
4506 List_Switches : aliased constant Switches :=
4507 (S_List_Add 'Access,
4508 S_List_All 'Access,
4509 S_List_Allproj 'Access,
4510 S_List_Current 'Access,
4511 S_List_Depend 'Access,
4512 S_List_Ext 'Access,
4513 S_List_Files 'Access,
4514 S_List_Follow 'Access,
4515 S_List_Mess 'Access,
4516 S_List_Nostinc 'Access,
4517 S_List_Object 'Access,
4518 S_List_Output 'Access,
4519 S_List_Project 'Access,
4520 S_List_Search 'Access,
4521 S_List_Source 'Access,
4522 S_List_Subdirs 'Access);
4524 ----------------------------
4525 -- Switches for GNAT MAKE --
4526 ----------------------------
4528 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4529 "COMPILE " &
4530 "-c " &
4531 "BIND " &
4532 "-b " &
4533 "LINK " &
4534 "-l ";
4535 -- /ACTIONS=(keyword[,...])
4537 -- GNAT MAKE default behavior is to check if the sources are up to date,
4538 -- compile those sources that are not up to date, bind the main source,
4539 -- then link the executable.
4541 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4542 -- two of these three steps:
4544 -- o Compile
4545 -- o Bind
4546 -- o Link
4549 -- You may specify one or more of the following keywords to the /ACTIONS
4550 -- qualifier:
4552 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4553 -- to do compilation and binding, but no linking.
4554 -- Can be combined with /ACTIONS=LINK to do binding and
4555 -- linking. When not combined with /ACTIONS=COMPILE,
4556 -- all the units in the closure of the main program must
4557 -- have been previously compiled and must be up to date.
4559 -- COMPILE Compile only. Do not perform binding, except when
4560 -- /ACTIONS=BIND is also specified. Do not perform
4561 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4562 -- are also specified.
4564 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4565 -- binding and linking. Linking will not be performed
4566 -- if combined with /ACTIONS=COMPILE but not with
4567 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4568 -- all the units in the closure of the main program must
4569 -- have been previously compiled and must be up to date,
4570 -- and the main program need to have been bound.
4572 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4573 "-aP*";
4574 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4576 -- Add directories to the project search path.
4578 S_Make_All : aliased constant S := "/ALL_FILES " &
4579 "-a";
4580 -- /NOALL_FILES (D)
4581 -- /ALL_FILES
4583 -- Consider all files in the make process, even the GNAT internal system
4584 -- files (for example, the predefined Ada library files). By default,
4585 -- GNAT MAKE does not check these files (however, if there is an
4586 -- installation problem, it will be caught when GNAT MAKE binds your
4587 -- program). You may have to specify this qualifier if you are working on
4588 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4589 -- specify this switch. All GNAT internal files with will be compiled
4590 -- with /STYLE_CHECK=GNAT.
4592 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4593 "-U";
4594 -- /NOALL_PROJECTS (D)
4595 -- /ALL_PROJECTS
4597 -- Implies /Unique.
4598 -- When used without project files, it is equivalent to /UNIQUE.
4599 -- When used with a project file with no main (neither on the command
4600 -- line nor in the attribute Main) check every source of every project,
4601 -- recompile all sources that are not up to date and rebuild libraries
4602 -- if necessary.
4604 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4605 "-bargs BIND";
4606 -- /BINDER_QUALIFIERS
4608 -- Any qualifiers specified after this qualifier other than
4609 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4610 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4612 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4613 "-B";
4614 -- /BND_LNK_FULL_PROJECT
4616 -- Bind and link all sources of a project, without any consideration
4617 -- to attribute Main, if there is one. This qualifier need to be
4618 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4619 -- be used with a main subprogram on the command line or for
4620 -- a library project file. As the binder is invoked with the option
4621 -- meaning "No Ada main subprogram", the user must ensure that the
4622 -- proper options are specified to the linker. This qualifier is
4623 -- normally used when the main subprogram is in a foreign language
4624 -- such as C.
4626 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4627 "-cargs COMPILE";
4628 -- /COMPILER_QUALIFIERS
4630 -- Any qualifiers specified after this qualifier other than
4631 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4632 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4634 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4635 "-A*";
4636 -- /CONDITIONAL_SOURCE_SEARCH=dir
4638 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4640 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4641 "-k";
4642 -- /NOCONTINUE_ON_ERROR (D)
4643 -- /CONTINUE_ON_ERROR
4645 -- Keep going. Continue as much as possible after a compilation error.
4646 -- To ease the programmer's task in case of compilation errors, the list
4647 -- of sources for which the compile fails is given when GNAT MAKE
4648 -- terminates.
4650 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4651 "!-I-";
4652 -- /CURRENT_DIRECTORY (D)
4653 -- /NOCURRENT_DIRECTORY
4655 -- Look for source, library or object files in the default directory.
4657 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4658 "-M";
4659 -- /NODEPENDENCIES_LIST (D)
4660 -- /DEPENDENCIES_LIST
4662 -- Check if all objects are up to date. If they are, output the object
4663 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4664 -- a Unix-style Makefile. By default, each source file is prefixed with
4665 -- its (relative or absolute) directory name. This name is whatever you
4666 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4667 -- you also specify the /QUIET qualifier, only the source file names,
4668 -- without relative paths, are output. If you just specify the
4669 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4670 -- files are omitted. This is typically what you want. If you also
4671 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4672 -- files are also listed. Note that dependencies of the objects in
4673 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4674 -- reported.
4676 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4677 "-D@";
4678 -- /DIRECTORY_OBJECTS=<file>
4680 -- Put all object files and .ALI files in <file>.
4681 -- This qualifier is not compatible with /PROJECT_FILE.
4683 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4684 "-d";
4685 -- /NOPLAY_PROGRESS (D)
4686 -- /DISPLAY_PROGRESS
4688 -- Display progress for each source, up to date or not, as a single line
4689 -- completed x out of y (zz%)
4690 -- If the file needs to be compiled this is displayed after the
4691 -- invocation of the compiler. These lines are displayed even in quiet
4692 -- output mode (/QUIET).
4694 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4695 "-n";
4696 -- /NODO_OBJECT_CHECK (D)
4697 -- /DO_OBJECT_CHECK
4699 -- Don't compile, bind, or link. Output a single command that will
4700 -- recompile an out of date unit, if any. Repeated use of this option,
4701 -- followed by carrying out the indicated compilation, will eventually
4702 -- result in recompiling all required units.
4704 -- If any ALI is missing during the process, GNAT MAKE halts and
4705 -- displays an error message.
4707 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4708 "-o@";
4709 -- /EXECUTABLE=exec-name
4711 -- The name of the final executable program will be 'exec_name'. If this
4712 -- qualifier is omitted the default name for the executable will be the
4713 -- name of the input file with an EXE filetype. You may prefix
4714 -- 'exec_name' with a relative or absolute directory path.
4716 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4717 "-X" & '"';
4718 -- /EXTERNAL_REFERENCE="name=val"
4720 -- Specifies an external reference to the project manager. Useful only if
4721 -- /PROJECT_FILE is used.
4723 -- Example:
4724 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4726 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4727 "-eL";
4728 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4729 -- /FOLLOW_LINKS_FOR_FILES
4731 -- Follow links when parsing project files
4733 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4734 "-f";
4735 -- /NOFORCE_COMPILE (D)
4736 -- /FORCE_COMPILE
4738 -- Force recompilations. Recompile all sources, even though some object
4739 -- files may be up to date, but don't recompile predefined or GNAT
4740 -- internal files unless the /ALL_FILES qualifier is also specified.
4742 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4743 "-F";
4744 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4745 -- /FULL_PATH_IN_BRIEF_MESSAGES
4747 -- When using project files, if some errors or warnings are detected
4748 -- during parsing and verbose mode is not in effect (no use of qualifier
4749 -- /VERBOSE), then error lines start with the full path name of the
4750 -- project file, rather than its simple file name.
4752 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4753 "-vh";
4754 -- /NOHIGH_VERBOSITY (D)
4755 -- /HIGH_VERBOSITY
4757 -- Displays the reason for all recompilations GNAT MAKE decides are
4758 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4760 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4761 "-i";
4762 -- /NOIN_PLACE (D)
4763 -- /IN_PLACE
4765 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4766 -- into the current directory. If the /IN_PLACE switch is used,
4767 -- then instead object files and ALI files that already exist are over-
4768 -- written in place. This means that once a large project is organized
4769 -- into separate directories in the desired manner, then GNAT MAKE will
4770 -- automatically maintain and update this organization. If no ALI files
4771 -- are found on the Ada object path, the new object and ALI files are
4772 -- created in the directory containing the source being compiled.
4774 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4775 "-eI#";
4776 -- /SOURCE_INDEX=nnn
4778 -- Specifies the index of the units in the source file
4779 -- By default, source files are mono-unit and there is no index
4780 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4781 -- on the command line.
4783 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4784 "-L*";
4785 -- /LIBRARY_SEARCH=(directory[,...])
4787 -- Add the specified directories to the list of directories in which the
4788 -- linker will search for libraries.
4790 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4791 "-largs LINK";
4792 -- /LINKER_QUALIFIERS
4794 -- Any qualifiers specified after this qualifier other than
4795 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4796 -- passed to any GNAT LINK commands generated by GNAT LINK.
4798 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4799 "-vl";
4800 -- /NOLOW_VERBOSITY (D)
4801 -- /LOW_VERBOSITY
4803 -- Displays the reason for all recompilations GNAT MAKE decides are
4804 -- necessary, in low verbosity, that is with less output than
4805 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4807 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4808 "-margs MAKE";
4809 -- /MAKE_QUALIFIERS
4811 -- Any qualifiers specified after this qualifier other than
4812 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4813 -- are for the benefit of GNAT MAKE itself.
4815 S_Make_Mapping : aliased constant S := "/MAPPING " &
4816 "-C";
4817 -- /NOMAPPING (D)
4818 -- /MAPPING
4820 -- Use a mapping file. A mapping file is a way to communicate to the
4821 -- compiler two mappings: from unit names to file names (without any
4822 -- directory information) and from file names to path names (with full
4823 -- directory information). These mappings are used by the compiler to
4824 -- short-circuit the path search. When GNAT MAKE is invoked with this
4825 -- qualifier, it will create a mapping file, initially populated by the
4826 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4827 -- Each invocation of the compiler will add the newly accessed sources to
4828 -- the mapping file. This will improve the source search during the next
4829 -- invocations of the compiler
4831 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4832 "-vm";
4833 -- /NOMEDIUM_VERBOSITY (D)
4834 -- /MEDIUM_VERBOSITY
4836 -- Displays the reason for all recompilations GNAT MAKE decides are
4837 -- necessary, in medium verbosity, that is with potentially less output
4838 -- than /HIGH_VERBOSITY or /VERBOSE.
4840 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4841 "DEFAULT " &
4842 "-vP0 " &
4843 "MEDIUM " &
4844 "-vP1 " &
4845 "HIGH " &
4846 "-vP2";
4847 -- /MESSAGES_PROJECT_FILE[=messages-option]
4849 -- Specifies the "verbosity" of the parsing of project files.
4850 -- messages-option may be one of the following:
4852 -- DEFAULT (D) No messages are output if there is no error or warning.
4854 -- MEDIUM A small number of messages are output.
4856 -- HIGH A great number of messages are output, most of them not
4857 -- being useful for the user.
4859 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4860 "-m";
4861 -- /NOMINIMAL_RECOMPILATION (D)
4862 -- /MINIMAL_RECOMPILATION
4864 -- Specifies that the minimum necessary amount of recompilation
4865 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4866 -- when the only modifications to a source file consist in
4867 -- adding/removing comments, empty lines, spaces or tabs.
4869 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4870 "-p";
4871 -- /NOCREATE_MISSING_DIRS (D)
4872 -- /CREATE_MISSING_DIRS
4874 -- When an object directory, a library directory or an exec directory
4875 -- in missing, attempt to create the directory.
4877 S_Make_Nolink : aliased constant S := "/NOLINK " &
4878 "-c";
4879 -- /NOLINK
4881 -- Compile only. Do not perform binding and linking. If the root unit is
4882 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4883 -- attempt binding and linking unless all objects are up to date and the
4884 -- executable is more recent than the objects.
4885 -- This is equivalent to /ACTIONS=COMPILE
4887 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4888 "-z";
4889 -- /NOMAIN
4891 -- No main subprogram. Bind and link the program even if the unit name
4892 -- given on the command line is a package name. The resulting executable
4893 -- will execute the elaboration routines of the package and its closure,
4894 -- then the finalization routines.
4896 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4897 "-x";
4898 -- /NON_PROJECT_UNIT_COMPILATION
4900 -- Normally, when using project files, a unit that is not part of any
4901 -- project file, cannot be compile. These units may be compile, when
4902 -- needed, if this qualifier is specified.
4904 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4905 "-nostdinc";
4906 -- /NOSTD_INCLUDES
4908 -- Do not look for sources the in the system default directory.
4910 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4911 "-nostdlib";
4912 -- /NOSTD_LIBRARIES
4914 -- Do not look for library files in the system default directory.
4916 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4917 "-aO*";
4918 -- /OBJECT_SEARCH=(directory[,...])
4920 -- When looking for library and object files look also in the specified
4921 -- directories.
4923 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4924 "-j#";
4925 -- /NOPROCESSES (D)
4926 -- /PROCESSES=NNN
4928 -- Use NNN processes to carry out the (re)compilations. If you have a
4929 -- multiprocessor machine, compilations will occur in parallel. In the
4930 -- event of compilation errors, messages from various compilations might
4931 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4932 -- failing compiles at the end). This can at times be annoying. To get a
4933 -- clean list of error messages don't use this qualifier.
4935 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4936 "-j1";
4937 -- NODOC (see /PROCESS)
4939 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4940 "-P>";
4941 -- /PROJECT_FILE=filename
4943 -- Specifies the main project file to be used. The project files rooted
4944 -- at the main project file will be parsed before any other processing to
4945 -- set the building environment.
4947 S_Make_Quiet : aliased constant S := "/QUIET " &
4948 "-q";
4949 -- /NOQUIET (D)
4950 -- /QUIET
4952 -- When this qualifiers is specified, the commands carried out by GNAT
4953 -- MAKE are not displayed.
4955 S_Make_Reason : aliased constant S := "/REASONS " &
4956 "-v";
4957 -- /NOREASONS (D)
4958 -- /REASONS
4960 -- Displays the reason for all recompilations GNAT MAKE decides are
4961 -- necessary.
4963 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4964 "--RTS=|";
4965 -- /RUNTIME_SYSTEM=xxx
4967 -- Build against an alternate runtime system named xxx or RTS-xxx.
4969 S_Make_Search : aliased constant S := "/SEARCH=*" &
4970 "-I*";
4971 -- /SEARCH=(directory[,...])
4973 -- Search the specified directories for both source and object files.
4975 S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " &
4976 "--single-compile-per-obj-dir";
4977 -- /NOSINGLE_COMPILE_PER_OBJ_DIR (D)
4978 -- /SINGLE_COMPILE_PER_OBJ_DIR
4980 -- When project files are used, do not allow simultaneous compilations
4981 -- for the same object directory.
4983 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4984 "-aL*";
4985 -- /SKIP_MISSING=(directory[,...])
4987 -- Skip missing library sources if ALI in 'directory'.
4989 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4990 "-aI*";
4991 -- /SOURCE_SEARCH=(directory[,...])
4993 -- When looking for source files also look in the specified directories.
4995 S_Make_Src_Info : aliased constant S := "/SRC_INFO=<" &
4996 "--source-info=>";
4997 -- /SRC_INFO=source-info-file
4999 -- Specify a source info file to be read or written by the Project
5000 -- Manager when project files are used.
5002 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
5003 "-eS";
5004 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
5005 -- /STANDARD_OUTPUT_FOR_COMMANDS
5007 -- Output the commands for the compiler, the binder and the linker
5008 -- on SYS$OUTPUT, instead of SYS$ERROR.
5010 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
5011 "--subdirs=>";
5012 -- /SUBDIRS=dir
5014 -- The actual directories (object, exec, library, ...) are subdirectories
5015 -- of the directory specified in the project file. If the subdirectory
5016 -- does not exist, it is created automatically.
5018 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
5019 "-s";
5020 -- /NOSWITCH_CHECK (D)
5021 -- /SWITCH_CHECK
5023 -- Recompile if compiler switches have changed since last compilation.
5024 -- All compiler switches but -I and -o are taken into account in the
5025 -- following way: orders between different "first letter" switches are
5026 -- ignored, but orders between same switches are taken into account.
5027 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
5028 -- to -O -g.
5030 S_Make_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
5031 "--unchecked-shared-lib-imports";
5032 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
5033 -- /UNCHECKED_SHARED_LIB_IMPORTS
5035 -- Allow shared library projects to import static library projects
5037 S_Make_Unique : aliased constant S := "/UNIQUE " &
5038 "-u";
5039 -- /NOUNIQUE (D)
5040 -- /UNIQUE
5042 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
5043 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
5044 -- directly.
5046 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
5047 "-C=@";
5048 -- /USE_MAPPING_FILE=file_name
5050 -- Use a specific mapping file. The file 'file_name', specified as a path
5051 -- name (absolute or relative) by this qualifier, should already exist,
5052 -- otherwise the qualifier is ineffective. The specified mapping file
5053 -- will be communicated to the compiler. This switch is not compatible
5054 -- with a project file (/PROJECT_FILE=) or with multiple compiling
5055 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
5057 S_Make_Verbose : aliased constant S := "/VERBOSE " &
5058 "-v";
5059 -- /NOVERBOSE (D)
5060 -- /VERBOSE
5062 -- Displays the reason for all recompilations GNAT MAKE decides are
5063 -- necessary.
5065 Make_Switches : aliased constant Switches :=
5066 (S_Make_Add 'Access,
5067 S_Make_Actions 'Access,
5068 S_Make_All 'Access,
5069 S_Make_Allproj 'Access,
5070 S_Make_Bind 'Access,
5071 S_Make_Comp 'Access,
5072 S_Make_Cond 'Access,
5073 S_Make_Cont 'Access,
5074 S_Make_Current 'Access,
5075 S_Make_Dep 'Access,
5076 S_Make_Dirobj 'Access,
5077 S_Make_Disprog 'Access,
5078 S_Make_Doobj 'Access,
5079 S_Make_Execut 'Access,
5080 S_Make_Ext 'Access,
5081 S_Make_Follow 'Access,
5082 S_Make_Force 'Access,
5083 S_Make_Full 'Access,
5084 S_Make_Hi_Verb 'Access,
5085 S_Make_Inplace 'Access,
5086 S_Make_Index 'Access,
5087 S_Make_Library 'Access,
5088 S_Make_Link 'Access,
5089 S_Make_Low_Verb'Access,
5090 S_Make_Make 'Access,
5091 S_Make_Mapping 'Access,
5092 S_Make_Med_Verb'Access,
5093 S_Make_Mess 'Access,
5094 S_Make_Minimal 'Access,
5095 S_Make_Missing 'Access,
5096 S_Make_Nolink 'Access,
5097 S_Make_Nomain 'Access,
5098 S_Make_Nonpro 'Access,
5099 S_Make_Nostinc 'Access,
5100 S_Make_Nostlib 'Access,
5101 S_Make_Object 'Access,
5102 S_Make_Proc 'Access,
5103 S_Make_Nojobs 'Access,
5104 S_Make_Project 'Access,
5105 S_Make_Quiet 'Access,
5106 S_Make_Reason 'Access,
5107 S_Make_RTS 'Access,
5108 S_Make_Search 'Access,
5109 S_Make_Single 'Access,
5110 S_Make_Skip 'Access,
5111 S_Make_Source 'Access,
5112 S_Make_Src_Info'Access,
5113 S_Make_Stand 'Access,
5114 S_Make_Subdirs 'Access,
5115 S_Make_Switch 'Access,
5116 S_Make_USL 'Access,
5117 S_Make_Unique 'Access,
5118 S_Make_Use_Map 'Access,
5119 S_Make_Verbose 'Access);
5121 ------------------------------
5122 -- Switches for GNAT METRIC --
5123 ------------------------------
5125 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5126 "-aP*";
5127 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5129 -- Add directories to the project search path.
5131 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5132 "-U";
5133 -- /NOALL_PROJECTS (D)
5134 -- /ALL_PROJECTS
5135 -- When GNAT METRIC is used with a Project File and no source is
5136 -- specified, the underlying tool gnatmetric is called for all the
5137 -- sources of all the Project Files in the project tree.
5139 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
5140 "-dv";
5141 -- /DEBUG_OUTPUT
5143 -- Generate the debug information
5145 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
5146 "-d=@";
5147 -- /DIRECTORY=pathname
5149 -- Put the files with detailed metric information into the specified
5150 -- directory
5152 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
5153 "ALL " &
5154 "!-ed,!-es,!-enl,!-eps," &
5155 "!-eas,!-ept,!-eat,!-enu," &
5156 "!-ec " &
5157 "DECLARATION_TOTAL " &
5158 "-ed " &
5159 "STATEMENT_TOTAL " &
5160 "-es " &
5161 "LOOP_NESTING_MAX " &
5162 "-enl " &
5163 "INT_SUBPROGRAMS " &
5164 "-eps " &
5165 "SUBPROGRAMS_ALL " &
5166 "-eas " &
5167 "INT_TYPES " &
5168 "-ept " &
5169 "TYPES_ALL " &
5170 "-eat " &
5171 "PROGRAM_NESTING_MAX " &
5172 "-enu " &
5173 "CONSTRUCT_NESTING_MAX " &
5174 "-ec";
5175 -- NODOC (see /SYNTAX_METRICS)
5177 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
5178 "ALL " &
5179 "--syntax-all " &
5180 "NONE " &
5181 "--no-syntax-all " &
5182 "DECLARATIONS " &
5183 "--declarations " &
5184 "NODECLARATIONS " &
5185 "--no-declarations " &
5186 "STATEMENTS " &
5187 "--statements " &
5188 "NOSTATEMENTS " &
5189 "--no-statements " &
5190 "PUBLIC_SUBPROGRAMS " &
5191 "--public-subprograms " &
5192 "NOPUBLIC_SUBPROGRAMS " &
5193 "--no-public-subprograms " &
5194 "ALL_SUBPROGRAMS " &
5195 "--all-subprograms " &
5196 "NOALL_SUBPROGRAMS " &
5197 "--no-all-subprograms " &
5198 "PUBLIC_TYPES " &
5199 "--public-types " &
5200 "NOPUBLIC_TYPES " &
5201 "--no-public-types " &
5202 "ALL_TYPES " &
5203 "--all-types " &
5204 "NOALL_TYPES " &
5205 "--no-all-types " &
5206 "UNIT_NESTING " &
5207 "--unit-nesting " &
5208 "NOUNIT_NESTING " &
5209 "--no-unit-nesting " &
5210 "CONSTRUCT_NESTING " &
5211 "--construct-nesting " &
5212 "NOCONSTRUCT_NESTING " &
5213 "--no-construct-nesting";
5214 -- /SYNTAX_METRICS(option, option ...)
5216 -- Specifies the syntax element metrics to be computed (if at least one
5217 -- positive syntax element metric, line metric, complexity or coupling
5218 -- metric is specified then only explicitly specified syntax element
5219 -- metrics are computed and reported)
5221 -- option may be one of the following:
5223 -- ALL (D) All the syntax element metrics are computed
5224 -- NONE None of syntax element metrics is computed
5225 -- DECLARATIONS Compute the total number of declarations
5226 -- NODECLARATIONS Do not compute the total number of declarations
5227 -- STATEMENTS Compute the total number of statements
5228 -- NOSTATEMENTS Do not compute the total number of statements
5229 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
5230 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
5231 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
5232 -- NOALL_SUBPROGRAMS Do not compute the number of all the
5233 -- subprograms
5234 -- PUBLIC_TYPES Compute the number of public types
5235 -- NOPUBLIC_TYPES Do not compute the number of public types
5236 -- ALL_TYPES Compute the number of all the types
5237 -- NOALL_TYPES Do not compute the number of all the types
5238 -- UNIT_NESTING Compute the maximal program unit nesting
5239 -- level
5240 -- NOUNIT_NESTING Do not compute the maximal program unit
5241 -- nesting level
5242 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
5243 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
5244 -- level
5246 -- All combinations of syntax element metrics options are allowed.
5248 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5249 "-X" & '"';
5250 -- /EXTERNAL_REFERENCE="name=val"
5252 -- Specifies an external reference to the project manager. Useful only if
5253 -- /PROJECT_FILE is used.
5255 -- Example:
5256 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5258 S_Metric_Files : aliased constant S := "/FILES=@" &
5259 "-files=@";
5260 -- /FILES=filename
5262 -- Take as arguments the files that are listed in the specified
5263 -- text file.
5265 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5266 "DEFAULT " &
5267 "!-x,!-nt,!-sfn " &
5268 "XML " &
5269 "-x " &
5270 "XSD " &
5271 "-xs " &
5272 "NO_TEXT " &
5273 "-nt " &
5274 "SHORT_SOURCE_FILE_NAME " &
5275 "-sfn";
5276 -- /FORMAT_OUTPUT=(option, option ...)
5278 -- Specifies the details of the tool output
5280 -- option may be one of the following:
5282 -- DEFAULT (D) Generate the text output only, use full
5283 -- argument source names in global information
5284 -- XML Generate the output in XML format
5285 -- XSD Generate the output in XML format, and
5286 -- generate an XML schema file that describes
5287 -- the structure of XML metrics report
5288 -- NO_TEXT Do not generate the text output (implies XML)
5289 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5291 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5292 "-og@";
5293 -- /GLOBAL_OUTPUT=filename
5295 -- Put the textual global metric information into the specified file
5297 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5298 "ALL " &
5299 "!-la,!-lcode,!-lcomm," &
5300 "!-leol,!-lb " &
5301 "LINES_ALL " &
5302 "-la " &
5303 "CODE_LINES " &
5304 "-lcode " &
5305 "COMENT_LINES " &
5306 "-lcomm " &
5307 "MIXED_CODE_COMMENTS " &
5308 "-leol " &
5309 "COMMENT_PERCENTAGE " &
5310 "-lratio " &
5311 "BLANK_LINES " &
5312 "-lb " &
5313 "AVERAGE_LINES_IN_BODIES " &
5314 "-lav ";
5315 -- NODOC (see /LINE_COUNT_METRICS)
5317 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5318 "ALL " &
5319 "--lines-all " &
5320 "NONE " &
5321 "--no-lines-all " &
5322 "ALL_LINES " &
5323 "--lines " &
5324 "NOALL_LINES " &
5325 "--no-lines " &
5326 "CODE_LINES " &
5327 "--lines-code " &
5328 "NOCODE_LINES " &
5329 "--no-lines-code " &
5330 "COMMENT_LINES " &
5331 "--lines-comment " &
5332 "NOCOMMENT_LINES " &
5333 "--no-lines-comment " &
5334 "CODE_COMMENT_LINES " &
5335 "--lines-eol-comment " &
5336 "NOCODE_COMMENT_LINES " &
5337 "--no-lines-eol-comment " &
5338 "COMMENT_PERCENTAGE " &
5339 "--lines-ratio " &
5340 "NOCOMMENT_PERCENTAGE " &
5341 "--no-lines-ratio " &
5342 "BLANK_LINES " &
5343 "--lines-blank " &
5344 "NOBLANK_LINES " &
5345 "--no-lines-blank " &
5346 "AVERAGE_BODY_LINES " &
5347 "--lines-average " &
5348 "NOAVERAGE_BODY_LINES " &
5349 "--no-lines-average";
5350 -- /LINE_COUNT_METRICS=(option, option ...)
5352 -- Specifies the line metrics to be computed (if at least one positive
5353 -- syntax element metric, line metric, complexity or coupling metric is
5354 -- specified then only explicitly specified line metrics are computed
5355 -- and reported)
5357 -- option may be one of the following:
5359 -- ALL (D) All the line metrics are computed
5360 -- NONE None of line metrics is computed
5361 -- ALL_LINES All lines are computed
5362 -- NOALL_LINES All lines are not computed
5363 -- CODE_LINES Lines with Ada code are computed
5364 -- NOCODE_LINES Lines with Ada code are not computed
5365 -- COMMENT_LINES Comment lines are computed
5366 -- NOCOMMENT_LINES Comment lines are not computed
5367 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5368 -- are computed
5369 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5370 -- are not computed
5371 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5372 -- containing comments and program code is
5373 -- computed
5374 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5375 -- containing comments and program code is not
5376 -- computed
5377 -- BLANK_LINES Blank lines are computed
5378 -- NOBLANK_LINES Blank lines are not computed
5379 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5380 -- task and entry bodies and statement sequences
5381 -- of package bodies is computed
5382 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5383 -- task and entry bodies and statement sequences
5384 -- of package bodies is not computed
5386 -- All combinations of line metrics options are allowed.
5388 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5389 "ALL " &
5390 "--complexity-all " &
5391 "NONE " &
5392 "--no-complexity-all " &
5393 "CYCLOMATIC " &
5394 "--complexity-cyclomatic " &
5395 "NOCYCLOMATIC " &
5396 "--no-complexity-cyclomatic "&
5397 "ESSENTIAL " &
5398 "--complexity-essential " &
5399 "NOESSENTIAL " &
5400 "--no-complexity-essential " &
5401 "LOOP_NESTING " &
5402 "--loop-nesting " &
5403 "NOLOOP_NESTING " &
5404 "--no-loop-nesting " &
5405 "AVERAGE_COMPLEXITY " &
5406 "--complexity-average " &
5407 "NOAVERAGE_COMPLEXITY " &
5408 "--no-complexity-average " &
5409 "EXTRA_EXIT_POINTS " &
5410 "--extra-exit-points " &
5411 "NOEXTRA_EXIT_POINTS " &
5412 "--no-extra-exit-points";
5413 -- /COMPLEXITY_METRICS=(option, option ...)
5415 -- Specifies the complexity metrics to be computed (if at least one
5416 -- positive syntax element metric, line metric, complexity or coupling
5417 -- metric is specified then only explicitly specified complexity metrics
5418 -- are computed and reported)
5420 -- option may be one of the following:
5422 -- ALL (D) All the complexity metrics are computed
5423 -- NONE None of complexity metrics is computed
5424 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5425 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5426 -- ESSENTIAL Compute the Essential Complexity
5427 -- NOESSENTIAL Do not compute the Essential Complexity
5428 -- LOOP_NESTING Compute the maximal loop nesting
5429 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5430 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5431 -- bodies
5432 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5433 -- executable bodies
5434 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5435 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5437 -- All combinations of line metrics options are allowed.
5439 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5440 "ALL " &
5441 "--coupling-all " &
5442 "TAGGED_OUT " &
5443 "--tagged-coupling-out " &
5444 "TAGGED_IN " &
5445 "--tagged-coupling-in " &
5446 "HIERARCHY_OUT " &
5447 "--hierarchy-coupling-out " &
5448 "HIERARCHY_IN " &
5449 "--hierarchy-coupling-in " &
5450 "UNIT_OUT " &
5451 "--unit-coupling-out " &
5452 "UNIT_IN " &
5453 "--unit-coupling-in " &
5454 "CONTROL_OUT " &
5455 "--control-coupling-out " &
5456 "CONTROL_IN " &
5457 "--control-coupling-in";
5459 -- /COUPLING_METRICS=(option, option ...)
5461 -- Specifies the coupling metrics to be computed.
5463 -- option may be one of the following:
5465 -- ALL All the coupling metrics are computed
5466 -- NOALL (D) None of coupling metrics is computed
5467 -- TAGGED_OUT Compute tagged (class) far-out coupling
5468 -- TAGGED_IN Compute tagged (class) far-in coupling
5469 -- HIERARCHY_OUT Compute hieraqrchy (category) far-out coupling
5470 -- HIERARCHY_IN Compute hieraqrchy (category) far-in coupling
5471 -- UNIT_OUT Compute unit far-out coupling
5472 -- UNIT_IN Compute unit far-in coupling
5473 -- CONTROL_OUT Compute control far-out coupling
5474 -- CONTROL_IN Compute control far-in coupling
5477 -- All combinations of coupling metrics options are allowed.
5479 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5480 "-eL";
5481 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5482 -- /FOLLOW_LINKS_FOR_FILES
5484 -- Follow links when parsing project files
5486 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5487 "-nolocal";
5488 -- /LOCAL_DETAILS (D)
5489 -- /NO_LOCAL_DETAILS
5491 -- Do not compute the detailed metrics for local program units.
5493 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5494 "-ne";
5495 -- /EXITS_AS_GOTOS (D)
5496 -- /NO_EXITS_AS_GOTOS
5498 -- Do not count EXIT statements as GOTOs when computing the Essential
5499 -- Complexity.
5501 S_Metric_No_Static_Loop : aliased constant S := "/NO_STATIC_LOOP " &
5502 "--no-static-loop";
5503 -- /STATIC_LOOP (D)
5504 -- /NO_STATIC_LOOP
5506 -- Do not count static FOR loop statements when computing the Cyclomatic
5507 -- Complexity.
5509 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5510 "DEFAULT " &
5511 "-vP0 " &
5512 "MEDIUM " &
5513 "-vP1 " &
5514 "HIGH " &
5515 "-vP2";
5516 -- /MESSAGES_PROJECT_FILE[=messages-option]
5518 -- Specifies the "verbosity" of the parsing of project files.
5519 -- messages-option may be one of the following:
5521 -- DEFAULT (D) No messages are output if there is no error or warning.
5523 -- MEDIUM A small number of messages are output.
5525 -- HIGH A great number of messages are output, most of them not
5526 -- being useful for the user.
5528 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5529 "-P>";
5530 -- /PROJECT_FILE=filename
5532 -- Specifies the main project file to be used. The project files rooted
5533 -- at the main project file will be parsed before the invocation of the
5534 -- binder.
5536 S_Metric_Quiet : aliased constant S := "/QUIET " &
5537 "-q";
5538 -- /NOQUIET (D)
5539 -- /QUIET
5541 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5542 -- the number of program units left to be processed. This option turns
5543 -- this trace off.
5545 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5546 "--subdirs=>";
5547 -- /SUBDIRS=dir
5549 -- The actual directories (object, exec, library, ...) are subdirectories
5550 -- of the directory specified in the project file. If the subdirectory
5551 -- does not exist, it is created automatically.
5553 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5554 "-o" & '"';
5555 -- /SUFFIX_DETAILS=suffix
5557 -- Use the given suffix as the suffix for the name of the file to place
5558 -- the detailed metrics into.
5560 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5561 "NOTHING " &
5562 "!-nocc,!-noec,!-nonl," &
5563 "!-ne,!-nolocal " &
5564 "CYCLOMATIC_COMPLEXITY " &
5565 "-nocc " &
5566 "ESSENTIAL_COMPLEXITY " &
5567 "-noec " &
5568 "MAXIMAL_LOOP_NESTING " &
5569 "-nonl " &
5570 "EXITS_AS_GOTOS " &
5571 "-ne " &
5572 "LOCAL_DETAILS " &
5573 "-nolocal ";
5574 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5576 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5577 "-v";
5578 -- /NOVERBOSE (D)
5579 -- /VERBOSE
5581 -- Verbose mode.
5583 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5584 "-ox@";
5585 -- /XML_OUTPUT=filename
5587 -- Place the XML output into the specified file
5589 Metric_Switches : aliased constant Switches :=
5590 (S_Metric_Add 'Access,
5591 S_Metric_All_Prjs 'Access,
5592 S_Metric_Complexity 'Access,
5593 S_Metric_Coupling 'Access,
5594 S_Metric_Debug 'Access,
5595 S_Metric_Direct 'Access,
5596 S_Metric_Element 'Access,
5597 S_Metric_Ext 'Access,
5598 S_Metric_Files 'Access,
5599 S_Metric_Follow 'Access,
5600 S_Metric_Format 'Access,
5601 S_Metric_Globout 'Access,
5602 S_Metric_Line 'Access,
5603 S_Metric_Lines 'Access,
5604 S_Metric_Mess 'Access,
5605 S_Metric_No_Exits_As_Gotos'Access,
5606 S_Metric_No_Local 'Access,
5607 S_Metric_No_Static_Loop 'Access,
5608 S_Metric_Project 'Access,
5609 S_Metric_Quiet 'Access,
5610 S_Metric_Suffix 'Access,
5611 S_Metric_Subdirs 'Access,
5612 S_Metric_Syntax 'Access,
5613 S_Metric_Suppress 'Access,
5614 S_Metric_Verbose 'Access,
5615 S_Metric_XMLout 'Access);
5617 ----------------------------
5618 -- Switches for GNAT NAME --
5619 ----------------------------
5621 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5622 "-c>";
5623 -- /CONFIG_FILE=path_name
5625 -- Create a configuration pragmas file 'path_name' (instead of the default
5626 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5627 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5628 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5630 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5631 "-d*";
5632 -- /SOURCE_DIRS=(directory, ...)
5634 -- Look for source files in the specified directories. When this qualifier
5635 -- is specified, the current working directory will not be searched for
5636 -- source files, unless it is explicitly specified with a qualifier
5637 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5638 -- specified. If a directory is specified as a relative path, it is
5639 -- relative to the directory of the configuration pragmas file specified
5640 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5641 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5642 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5643 -- to the current working directory. The directories specified with
5644 -- qualifiers /SOURCE_DIRS must exist and be readable.
5646 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5647 "-D>";
5648 -- /DIRS_FILE=file_name
5650 -- Look for source files in all directories listed in text file
5651 -- 'file_name'. 'file_name' must be an existing, readable text file.
5652 -- Each non empty line in the specified file must be a directory.
5653 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5654 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5655 -- text file.
5657 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5658 "-eL";
5659 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5660 -- /FOLLOW_LINKS_FOR_FILES
5662 -- Follow links when parsing project files
5664 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5665 "-f" & '"';
5666 -- /FOREIGN_PATTERN=<string>
5668 -- Specify a foreign pattern.
5669 -- Using this qualifier, it is possible to add sources of languages other
5670 -- than Ada to the list of sources of a project file. It is only useful
5671 -- if a qualifier /PROJECT_FILE is used. For example,
5673 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5675 -- will look for Ada units in all files with the '.ADA' extension, and
5676 -- will add to the list of file for project PRJ.GPR the C files with
5677 -- extension ".C".
5679 S_Name_Help : aliased constant S := "/HELP " &
5680 "-h";
5681 -- /NOHELP (D)
5682 -- /HELP
5684 -- Output usage information to the standard output stream.
5686 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5687 "-P>";
5688 -- /PROJECT_FILE=file_name
5690 -- Create or update a project file. 'file_name' may include directory
5691 -- information. The specified file must be writable. There may be only
5692 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5693 -- specified, no qualifier /CONFIG_FILE may be specified.
5695 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5696 "--subdirs=>";
5697 -- /SUBDIRS=dir
5699 -- The actual directories (object, exec, library, ...) are subdirectories
5700 -- of the directory specified in the project file. If the subdirectory
5701 -- does not exist, it is created automatically.
5703 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5704 "-v";
5705 -- /NOVERBOSE (D)
5706 -- /VERBOSE
5708 -- Verbose mode. Output detailed explanation of behavior to the standard
5709 -- output stream. This includes name of the file written, the name of the
5710 -- directories to search and, for each file in those directories whose
5711 -- name matches at least one of the Naming Patterns, an indication of
5712 -- whether the file contains a unit, and if so the name of the unit.
5714 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5715 "-x" & '"';
5716 -- /EXCLUDED_PATTERN=<string>
5718 -- Specify an excluded pattern.
5719 -- Using this qualifier, it is possible to exclude some files that would
5720 -- match the Naming patterns. For example,
5722 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5724 -- will look for Ada units in all files with the '.ADA' extension, except
5725 -- those whose names end with '_NT.ADA'.
5727 Name_Switches : aliased constant Switches :=
5728 (S_Name_Conf 'Access,
5729 S_Name_Dirs 'Access,
5730 S_Name_Dfile 'Access,
5731 S_Name_Follow 'Access,
5732 S_Name_Frng 'Access,
5733 S_Name_Help 'Access,
5734 S_Name_Proj 'Access,
5735 S_Name_Subdirs 'Access,
5736 S_Name_Verbose 'Access,
5737 S_Name_Excl 'Access);
5739 ----------------------------------
5740 -- Switches for GNAT PREPROCESS --
5741 ----------------------------------
5743 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5744 "-D" & '"';
5745 -- /ASSOCIATE="name=val"
5747 -- Defines a new symbol, associated with value. If no value is given
5748 -- on the command line, then symbol is considered to be True.
5749 -- This qualifier can be used in place of a definition file.
5751 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5752 "-b";
5753 -- /NOBLANK_LINES (D)
5754 -- /BLANK_LINES
5756 -- Causes both preprocessor lines and the lines deleted by preprocessing
5757 -- to be replaced by blank lines in the output source file, thus
5758 -- preserving line numbers in the output file.
5760 S_Prep_Com : aliased constant S := "/COMMENTS " &
5761 "-c";
5762 -- /NOCOMMENTS (D)
5763 -- /COMMENTS
5765 -- /COMMENTS causes both preprocessor lines and the lines deleted
5766 -- by preprocessing to be retained in the output source as comments marked
5767 -- with the special string "--! ". This option will result in line numbers
5768 -- being preserved in the output file.
5770 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5771 -- preprocessing to be replaced by blank lines in the output source file,
5772 -- thus preserving line numbers in the output file.
5774 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5775 "-r";
5776 -- /NOREFERENCE (D)
5777 -- /REFERENCE
5779 -- Causes a "Source_Reference" pragma to be generated that references the
5780 -- original input file, so that error messages will use the file name of
5781 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5782 -- specified.
5784 S_Prep_Remove : aliased constant S := "/REMOVE " &
5785 "!-b,!-c";
5786 -- /REMOVE (D)
5787 -- /NOREMOVE
5789 -- Preprocessor lines and deleted lines are completely removed from the
5790 -- output.
5792 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5793 "-C";
5794 -- /NOREPLACE_IN_COMMENTS (D)
5795 -- /REPLACE_IN_COMMENTS
5797 -- Causes preprocessor to scan comments and perform replacements on
5798 -- any $symbol occurrences within the comment text.
5800 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5801 "-s";
5802 -- /NOSYMBOLS (D)
5803 -- /SYMBOLS
5805 -- Causes a sorted list of symbol names and values to be listed on
5806 -- SYS$OUTPUT.
5808 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5809 "-u";
5810 -- /NOUNDEFINED (D)
5811 -- /UNDEFINED
5813 Prep_Switches : aliased constant Switches :=
5814 (S_Prep_Assoc 'Access,
5815 S_Prep_Blank 'Access,
5816 S_Prep_Com 'Access,
5817 S_Prep_Ref 'Access,
5818 S_Prep_Remove 'Access,
5819 S_Prep_Replace 'Access,
5820 S_Prep_Symbols 'Access,
5821 S_Prep_Undef 'Access);
5823 ------------------------------
5824 -- Switches for GNAT PRETTY --
5825 ------------------------------
5827 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5828 "-aP*";
5829 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5831 -- Add directories to the project search path.
5833 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5834 "DEFAULT " &
5835 "-A12345 " &
5836 "OFF " &
5837 "-A0 " &
5838 "COLONS " &
5839 "-A1 " &
5840 "DECLARATIONS " &
5841 "-A2 " &
5842 "STATEMENTS " &
5843 "-A3 " &
5844 "ARROWS " &
5845 "-A4 " &
5846 "COMPONENT_CLAUSES " &
5847 "-A5";
5848 -- /ALIGN[=align-option, align-option, ...]
5850 -- Set alignments. By default, all alignments (colons in declarations,
5851 -- initialisations in declarations, assignments and arrow delimiters) are
5852 -- ON.
5854 -- align-option may be one of the following:
5856 -- OFF (D) Set all alignments to OFF
5857 -- COLONS Set alignments of colons in declarations to ON
5858 -- DECLARATIONS Set alignments of initialisations in declarations
5859 -- to ON
5860 -- STATEMENTS Set alignments of assignments statements to ON
5861 -- ARROWS Set alignments of arrow delimiters to ON.
5862 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5863 -- clauses ON
5865 -- Specifying one of the ON options without first specifying the OFF
5866 -- option has no effect, because by default all alignments are set to ON.
5868 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5869 "-U";
5870 -- /NOALL_PROJECTS (D)
5871 -- /ALL_PROJECTS
5872 -- When GNAT PRETTY is used with a Project File and no source is
5873 -- specified, the underlying tool gnatpp is called for all the
5874 -- sources of all the Project Files in the project tree.
5876 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5877 "MIXED_CASE " &
5878 "-aM " &
5879 "LOWER_CASE " &
5880 "-aL " &
5881 "UPPER_CASE " &
5882 "-aU";
5883 -- /ATTRIBUTE_CASING[=casing-option]
5885 -- Set the case of the attributes. By default the attributes are in mixed
5886 -- case.
5887 -- casing-option may be one of the following:
5889 -- MIXED_CASE (D)
5890 -- LOWER_CASE
5891 -- UPPER_CASE
5893 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5894 "UNTOUCHED " &
5895 "-c0 " &
5896 "DEFAULT " &
5897 "-c1 " &
5898 "STANDARD_INDENT " &
5899 "-c2 " &
5900 "GNAT_BEGINNING " &
5901 "-c3 " &
5902 "REFORMAT " &
5903 "-c4 " &
5904 "KEEP_SPECIAL " &
5905 "-c5";
5906 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5908 -- Set the comment layout. By default, comments use the GNAT style
5909 -- comment line indentation.
5911 -- layout-option may be one of the following:
5913 -- UNTOUCHED All the comments remain unchanged
5914 -- DEFAULT (D) GNAT style comment line indentation
5915 -- STANDARD_INDENT Standard comment line indentation
5916 -- GNAT_BEGINNING GNAT style comment beginning
5917 -- REFORMAT Reformat comment blocks
5918 -- KEEP_SPECIAL Keep unchanged special form comments
5920 -- All combinations of layout options are allowed, except for DEFAULT
5921 -- and STANDARD_INDENT which are mutually exclusive, and also if
5922 -- UNTOUCHED is specified, this must be the only option.
5924 -- The difference between "GNAT style comment line indentation" and
5925 -- "standard comment line indentation" is the following: for standard
5926 -- comment indentation, any comment line is indented as if it were
5927 -- a declaration or statement at the same place.
5928 -- For GNAT style comment indentation, comment lines which are
5929 -- immediately followed by if or case statement alternative, record
5930 -- variant or 'begin' keyword are indented as the keyword that follows
5931 -- them.:
5933 -- Standard indentation:
5935 -- if A then
5936 -- null;
5937 -- -- some comment
5938 -- else
5939 -- null;
5940 -- end if;
5942 -- GNAT style indentation:
5944 -- if A then
5945 -- null;
5946 -- -- some comment
5947 -- else
5948 -- null;
5949 -- end if;
5951 -- Option "GNAT style comment beginning" means that for each comment
5952 -- which is not considered as non-formattable separator (that is, the
5953 -- comment line contains only dashes, or a comment line ends with two
5954 -- dashes), there will be at least two spaces between starting "--" and
5955 -- the first non-blank character of the comment.
5957 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5958 "-gnatec>";
5959 -- /CONFIGURATION_PRAGMAS_FILE=file
5961 -- Specify a configuration pragmas file that need to be passed to the
5962 -- compiler.
5964 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5965 "GNAT " &
5966 "-l1 " &
5967 "COMPACT " &
5968 "-l2 " &
5969 "UNCOMPACT " &
5970 "-l3";
5971 -- /CONSTRUCT_LAYOUT[=construct-option]
5973 -- Set construct layout. Default is GNAT style layout.
5974 -- construct-option may be one of the following:
5976 -- GNAT (D)
5977 -- COMPACT
5978 -- UNCOMPACT
5980 -- The difference between GNAT style and Compact layout on one hand
5981 -- and Uncompact layout on the other hand can be illustrated by the
5982 -- following examples:
5984 -- GNAT style and Uncompact layout
5985 -- Compact layout
5987 -- type q is record type q is
5988 -- a : integer; record
5989 -- b : integer; a : integer;
5990 -- end record; b : integer;
5991 -- end record;
5994 -- Block : declare Block :
5995 -- A : Integer := 3; declare
5996 -- begin A : Integer := 3;
5997 -- Proc (A, A); begin
5998 -- end Block; Proc (A, A);
5999 -- end Block;
6001 -- Clear : for J in 1 .. 10 loop Clear :
6002 -- A (J) := 0; for J in 1 .. 10 loop
6003 -- end loop Clear; A (J) := 0;
6004 -- end loop Clear;
6007 -- A further difference between GNAT style layout and compact layout is
6008 -- that in GNAT style layout compound statements, return statements and
6009 -- bodies are always separated by empty lines.
6011 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
6012 "-cl#";
6013 -- /CONTINUATION_INDENT=nnn
6015 -- Indentation level for continuation lines, nnn from 1 .. 9.
6016 -- The default value is one less than the (normal) indentation level,
6017 -- unless the indentation is set to 1: in that case the default value for
6018 -- continuation line indentation is also 1.
6020 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
6021 "--no-separate-is";
6022 -- /NO_SEPARATE_IS
6024 -- Do not place the IS keyword on a separate line in a subprogram body in
6025 -- case if the specification occupies more than one line.
6027 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
6028 "--separate-label";
6029 -- /SEPARATE_LABEL
6031 -- Place statement label(s) and the statement itself on separate lines.
6033 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
6034 "--separate-loop-then";
6035 -- /SEPARATE_LOOP_THEN
6037 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
6038 -- and while-loops on a separate line.
6040 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
6041 "--no-separate-loop-then";
6042 -- /NO_SEPARATE_LOOP_THEN
6044 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
6045 -- for- and while-loops on a separate line.
6047 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
6048 "--use-on-new-line";
6049 -- /USE_ON_NEW_LINE
6051 -- Start any USE clause that is a part of a context clause from a
6052 -- separate line.
6054 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
6055 "--separate-stmt-name";
6056 -- /STMT_NAME_ON_NEW_LINE
6058 -- For named block and loop statements use a separate line for the
6059 -- statement name, but do not use an extra indentation level for the
6060 -- statement itself.
6062 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
6063 "DOS " &
6064 "--eol=dos " &
6065 "UNIX " &
6066 "--eol=unix " &
6067 "CRLF " &
6068 "--eol=crlf " &
6069 "LF " &
6070 "--eol=lf";
6071 -- /END_OF_LINE=[option]
6073 -- Specifies the form of the line terminators in the produced source.
6074 -- By default, the form of the line terminator depends on the platforms.
6075 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
6076 -- It is a Carriage Return (CR) followed by a Line Feed.
6077 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
6078 -- also equivalent.
6080 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6081 "-X" & '"';
6082 -- /EXTERNAL_REFERENCE="name=val"
6084 -- Specifies an external reference to the project manager. Useful only if
6085 -- /PROJECT_FILE is used.
6087 -- Example:
6088 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6090 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6091 "!-I-";
6092 -- /CURRENT_DIRECTORY (D)
6094 -- Look for source files in the current working directory.
6096 -- /NOCURRENT_DIRECTORY
6097 -- Do not look for source files in the current working directory.
6099 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
6100 "-D*";
6101 -- /DICTIONARY=(file_name, ...)
6103 -- Use each specified file as a dictionary file that defines the casing
6104 -- for a set of specified names, thereby overriding the effect on these
6105 -- names by any explicit or implicit /NAME_CASING qualifier.
6107 -- GNAT PRETTY implicitly uses a default dictionary file to define the
6108 -- casing for the Ada predefined names and the names declared in the GNAT
6109 -- libraries.
6111 -- The structure of a dictionary file, and details on the conventions
6112 -- used in the default dictionary file, are defined in the GNAT User's
6113 -- Guide.
6115 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
6116 "BRACKETS " &
6117 "-Wb " &
6118 "HEX " &
6119 "-Wh " &
6120 "UPPER " &
6121 "-Wu " &
6122 "SHIFT_JIS " &
6123 "-Ws " &
6124 "EUC " &
6125 "-We " &
6126 "UTF8 " &
6127 "-W8";
6128 -- /RESULT_ENCODING[=encoding-type]
6130 -- Specify the wide character encoding method used when writing the
6131 -- reformatted code in the result file. 'encoding-type' is one of the
6132 -- following:
6134 -- BRACKETS (D) Brackets encoding.
6136 -- HEX Hex ESC encoding.
6138 -- UPPER Upper half encoding.
6140 -- SHIFT_JIS Shift-JIS encoding.
6142 -- EUC EUC Encoding.
6144 -- UTF8 UTF-8 encoding.
6146 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
6147 -- about the different character encoding methods.
6149 S_Pretty_Enums : aliased constant S := "/ENUM_CASING=" &
6150 "AS_DECLARED " &
6151 "-neD " &
6152 "LOWER_CASE " &
6153 "-neL " &
6154 "UPPER_CASE " &
6155 "-neU " &
6156 "MIXED_CASE " &
6157 "-neM";
6158 -- /ENUM_CASING=name-option
6160 -- Specify the casing of enumeration literals. If not specified, the
6161 -- casing of enumeration literals is defined by the NAME_CASING option.
6162 -- 'name-option' may be one of:
6164 -- AS_DECLARED Literals casing for defining occurrences are
6165 -- as they appear in the source file.
6167 -- LOWER_CASE Literals are in lower case.
6169 -- UPPER_CASE Literals are in upper case.
6171 -- MIXED_CASE Literals are in mixed case.
6173 S_Pretty_Files : aliased constant S := "/FILES=@" &
6174 "-files=@";
6175 -- /FILES=filename
6177 -- Take as arguments the files that are listed in the specified
6178 -- text file.
6180 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6181 "-eL";
6182 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6183 -- /FOLLOW_LINKS_FOR_FILES
6185 -- Follow links when parsing project files
6187 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
6188 "-of@";
6189 -- /FORCED_OUTPUT=file
6191 -- Write the output into the specified file, overriding any possibly
6192 -- existing file.
6194 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
6195 "-ff";
6196 -- /FORM_FEED_AFTER_PRAGMA_PAGE
6198 -- When there is a pragma Page in the source, insert a Form Feed
6199 -- character immediately after the semicolon that follows the pragma
6200 -- Page.
6202 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
6203 "-i#";
6204 -- /INDENTATION_LEVEL=nnn
6206 -- Specify the number of spaces to add for each indentation level.
6207 -- nnn must be between 1 and 9. The default is 3.
6209 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
6210 "LOWER_CASE " &
6211 "-kL " &
6212 "UPPER_CASE " &
6213 "-kU";
6214 -- /KEYWORD_CASING[=keyword-option]
6216 -- Specify the case of Ada keywords. The default is keywords in lower
6217 -- case.
6219 -- keyword-option may be one of the following:
6221 -- LOWER_CASE (D)
6222 -- UPPER_CASE
6224 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
6225 "-M#";
6226 -- /LINE_LENGTH_MAX=nnn
6228 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
6230 S_Pretty_Maxact : aliased constant S := "/MAX_ACT=#" &
6231 "--call_threshold=#";
6232 -- /MAX_ACT=nnn
6234 -- If the number of parameter associations is greater than nnn and if at
6235 -- least one association uses named notation, start each association from
6236 -- a new line
6238 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
6239 "-T#";
6240 -- /MAX_INDENT=nnn
6242 -- Do not use an additional indentation level for case alternatives
6243 -- and variants if their number is nnn or more. The default is 10.
6244 -- If nnn is zero, an additional indentation level is used for any
6245 -- number of case alternatives and variants.
6247 S_Pretty_Maxpar : aliased constant S := "/MAX_PAR=#" &
6248 "--par_threshold=#";
6249 -- /MAX_PAR=nnn
6251 -- If the number of parameter specifications is greater than nnn (or equal
6252 -- to nnn in case of a function), start each specification from a new line.
6253 -- The default value is 3.
6255 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6256 "DEFAULT " &
6257 "-vP0 " &
6258 "MEDIUM " &
6259 "-vP1 " &
6260 "HIGH " &
6261 "-vP2";
6262 -- /MESSAGES_PROJECT_FILE[=messages-option]
6264 -- Specifies the "verbosity" of the parsing of project files.
6265 -- messages-option may be one of the following:
6267 -- DEFAULT (D) No messages are output if there is no error or warning.
6269 -- MEDIUM A small number of messages are output.
6271 -- HIGH A great number of messages are output, most of them not
6272 -- being useful for the user.
6274 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
6275 "AS_DECLARED " &
6276 "-nD " &
6277 "LOWER_CASE " &
6278 "-nL " &
6279 "UPPER_CASE " &
6280 "-nU " &
6281 "MIXED_CASE " &
6282 "-nM";
6283 -- /NAME_CASING[=name-option]
6285 -- Specify the casing of names.
6286 -- 'name-option' may be one of:
6288 -- AS_DECLARED (D) Name casing for defining occurrences are as they
6289 -- appear in the source file.
6291 -- LOWER_CASE Names are in lower case.
6293 -- UPPER_CASE Names are in upper case.
6295 -- MIXED_CASE Names are in mixed case.
6297 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6298 "-rnb";
6299 -- /REPLACE_NO_BACKUP
6301 -- Replace the argument source with the pretty-printed source without
6302 -- creating any backup copy of the argument source.
6304 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6305 "-e";
6306 -- /NO_MISSED_LABELS
6308 -- Do not insert missing end/exit labels. The end label is the name of
6309 -- a construct that may optionally appear at the end of the construct.
6310 -- This includes the names of packages and subprograms.
6311 -- Similarly, the exit label is the name of a loop that may appear as the
6312 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6313 -- inserts these end/exit labels when they are absent in the original
6314 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6315 -- so that the formatted source reflects the original.
6317 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6318 "-notabs";
6319 -- /NOTABS
6321 -- Replace all tabulations in comments with spaces.
6323 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6324 "-o@";
6325 -- /OUTPUT=file
6327 -- Write the output to the specified file. If the file already exists,
6328 -- an error is reported.
6330 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6331 "-rf";
6332 -- /NOOVERRIDING_REPLACE (D)
6333 -- /OVERRIDING_REPLACE
6335 -- Replace the argument source with the pretty-printed source and copy the
6336 -- argument source into filename.NPP, overriding any existing file if
6337 -- needed.
6339 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6340 "MIXED_CASE " &
6341 "-pM " &
6342 "LOWER_CASE " &
6343 "-pL " &
6344 "UPPER_CASE " &
6345 "-pU";
6346 -- /PRAGMA_CASING[=pragma-option]
6348 -- Set the case of pragma identifiers. The default is Mixed case.
6349 -- pragma-option may be one of the following:
6351 -- MIXED_CASE (D)
6352 -- LOWER_CASE
6353 -- UPPER_CASE
6355 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6356 "-P>";
6357 -- /PROJECT_FILE=filename
6359 -- Specifies the main project file to be used. The project files rooted
6360 -- at the main project file will be parsed before any other processing to
6361 -- set the building environment.
6363 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6364 "-r";
6365 -- /NOREPLACE (D)
6366 -- /REPLACE
6368 -- Replace the argument source with the pretty-printed source and copy the
6369 -- argument source into filename.NPP. If filename.NPP already exists,
6370 -- report an error and exit.
6372 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6373 "--RTS=|";
6374 -- /RUNTIME_SYSTEM=xxx
6376 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6378 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6379 "-I*";
6380 -- /SEARCH=(directory[,...])
6382 -- When looking for source files also look in directories specified.
6384 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6385 "-D-";
6386 -- /SPECIFIC_CASING
6388 -- Do not use the default dictionary file; instead, use the casing
6389 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6390 -- file specified by a qualifier /DICTIONARY.
6392 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6393 "-pipe";
6394 -- /NOSTANDARD_OUTPUT (D)
6395 -- /STANDARD_OUTPUT
6397 -- Redirect the output to the standard output.
6399 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6400 "--subdirs=>";
6401 -- /SUBDIRS=dir
6403 -- The actual directories (object, exec, library, ...) are subdirectories
6404 -- of the directory specified in the project file. If the subdirectory
6405 -- does not exist, it is created automatically.
6407 S_Pretty_Types : aliased constant S := "/TYPE_CASING=" &
6408 "AS_DECLARED " &
6409 "-ntD " &
6410 "LOWER_CASE " &
6411 "-ntL " &
6412 "UPPER_CASE " &
6413 "-ntU " &
6414 "MIXED_CASE " &
6415 "-ntM";
6416 -- /TYPE_CASING=name-option
6418 -- Specify the casing of subtype names (including first subtypes from
6419 -- type declarations). If not specified, the casing of these names is
6420 -- defined by the NAME_CASING option. 'name-option' is one of:
6422 -- AS_DECLARED Names are cased as they appear in the declaration
6423 -- in the source file.
6425 -- LOWER_CASE Names are in lower case.
6427 -- UPPER_CASE Names are in upper case.
6429 -- MIXED_CASE Names are in mixed case.
6431 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6432 "-v";
6433 -- /NOVERBOSE (D)
6434 -- /VERBOSE
6436 -- Verbose mode; GNAT PRETTY generates version information and then a
6437 -- trace of the actions it takes to produce or obtain the ASIS tree.
6439 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6440 "-w";
6441 -- /NOWARNINGS (D)
6442 -- /WARNINGS
6444 -- Issue a warning to the standard error stream if it is not possible
6445 -- to provide the required layout in the result source.
6446 -- By default such warnings are not activated.
6448 Pretty_Switches : aliased constant Switches :=
6449 (S_Pretty_Add 'Access,
6450 S_Pretty_Align 'Access,
6451 S_Pretty_All_Prjs 'Access,
6452 S_Pretty_Attrib 'Access,
6453 S_Pretty_Comments 'Access,
6454 S_Pretty_Compact_Is 'Access,
6455 S_Pretty_Config 'Access,
6456 S_Pretty_Constr 'Access,
6457 S_Pretty_Comind 'Access,
6458 S_Pretty_Current 'Access,
6459 S_Pretty_Dico 'Access,
6460 S_Pretty_Eol 'Access,
6461 S_Pretty_Ext 'Access,
6462 S_Pretty_Encoding 'Access,
6463 S_Pretty_Enums 'Access,
6464 S_Pretty_Files 'Access,
6465 S_Pretty_Follow 'Access,
6466 S_Pretty_Forced 'Access,
6467 S_Pretty_Formfeed 'Access,
6468 S_Pretty_Indent 'Access,
6469 S_Pretty_Keyword 'Access,
6470 S_Pretty_Maxlen 'Access,
6471 S_Pretty_Maxact 'Access,
6472 S_Pretty_Maxind 'Access,
6473 S_Pretty_Maxpar 'Access,
6474 S_Pretty_Mess 'Access,
6475 S_Pretty_Names 'Access,
6476 S_Pretty_No_Labels 'Access,
6477 S_Pretty_Notabs 'Access,
6478 S_Pretty_Output 'Access,
6479 S_Pretty_Override 'Access,
6480 S_Pretty_Pragma 'Access,
6481 S_Pretty_Replace 'Access,
6482 S_Pretty_Replace_No_Backup'Access,
6483 S_Pretty_Project 'Access,
6484 S_Pretty_RTS 'Access,
6485 S_Pretty_Search 'Access,
6486 S_Pretty_Sep_Label 'Access,
6487 S_Pretty_Sep_Loop_Then 'Access,
6488 S_Pretty_N_Sep_Loop_Then 'Access,
6489 S_Pretty_Subdirs 'Access,
6490 S_Pretty_Use_On_New_Line 'Access,
6491 S_Pretty_Stnm_On_Nw_Line 'Access,
6492 S_Pretty_Specific 'Access,
6493 S_Pretty_Standard 'Access,
6494 S_Pretty_Types 'Access,
6495 S_Pretty_Verbose 'Access,
6496 S_Pretty_Warnings 'Access);
6498 ------------------------------
6499 -- Switches for GNAT SHARED --
6500 ------------------------------
6502 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6503 "ALL " &
6504 "-g3 " &
6505 "NONE " &
6506 "-g0 " &
6507 "TRACEBACK " &
6508 "-g1 " &
6509 "NOTRACEBACK " &
6510 "-g0";
6511 -- /DEBUG[=debug-option]
6512 -- /NODEBUG
6514 -- Specifies the amount of debugging information included. 'debug-option'
6515 -- is one of the following:
6517 -- ALL (D) Include full debugging information.
6519 -- NONE Provide no debugging information. Same as /NODEBUG.
6521 -- TRACEBACK Provide sufficient debug information for a traceback.
6523 -- NOTRACEBACK Same as NONE.
6525 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6526 "-o@";
6527 -- /IMAGE=image-name
6529 -- 'image-name' specifies the name for the generated shared library.
6531 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6532 "--for-linker=IDENT=" &
6533 '"';
6534 -- /IDENTIFICATION="<string>"
6536 -- "<string>" specifies the string to be stored in the image file ident-
6537 -- ification field in the image header. It overrides any pragma Ident
6538 -- specified string.
6540 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6541 "-nostartfiles";
6542 -- /NOSTART_FILES
6544 -- Link in default image initialization and startup functions.
6546 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6547 "--for-linker=--noinhibit-exec";
6548 -- /NOINHIBIT-IMAGE
6550 -- Delete image if there are errors or warnings.
6552 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6553 "-v";
6554 -- /NOVERBOSE (D)
6555 -- /VERBOSE
6557 -- Causes additional information to be output, including a full list of
6558 -- the included object files. This switch option is most useful when you
6559 -- want to see what set of object files are being used in the link step.
6561 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6562 "--for-linker=";
6563 -- /<other>
6565 -- Any other switch transmitted to the underlying linker.
6567 Shared_Switches : aliased constant Switches :=
6568 (S_Shared_Debug 'Access,
6569 S_Shared_Image 'Access,
6570 S_Shared_Ident 'Access,
6571 S_Shared_Nofiles 'Access,
6572 S_Shared_Noinhib 'Access,
6573 S_Shared_Verb 'Access,
6574 S_Shared_ZZZZZ 'Access);
6576 -----------------------------
6577 -- Switches for GNAT STACK --
6578 -----------------------------
6580 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6581 "-aP*";
6582 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6584 -- Add directories to the project search path.
6586 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6587 "-a";
6588 -- /NOALL_SUBPROGRAMS (D)
6589 -- /ALL_SUBPROGRAMS
6591 -- Consider all subprograms as entry points.
6593 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6594 "-ca";
6595 -- /NOALL_CYCLES (D)
6596 -- /ALL_CYCLES
6598 -- Extract all possible cycles in the call graph.
6600 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6601 "-U";
6602 -- /NOALL_PROJECTS (D)
6603 -- /ALL_PROJECTS
6605 -- When GNAT STACK is used with a Project File and no source is
6606 -- specified, the underlying tool gnatstack is called for all the
6607 -- units of all the Project Files in the project tree.
6609 S_Stack_Debug : aliased constant S := "/DEBUG " &
6610 "-g";
6611 -- /NODEBUG (D)
6612 -- /DEBUG
6614 -- Generate internal debug information.
6616 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6617 "-aO*";
6618 -- /DIRECTORY=(direc[,...])
6620 -- When looking for .ci files look also in directories specified.
6622 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6623 "-e*";
6625 -- /ENTRY=(entry_point[,...])
6627 -- Name of symbol to be used as entry point for the analysis.
6629 S_Stack_Files : aliased constant S := "/FILES=@" &
6630 "-files=@";
6631 -- /FILES=filename
6633 -- Take as arguments the files that are listed in the specified
6634 -- text file.
6636 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6637 "-eL";
6638 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6639 -- /FOLLOW_LINKS_FOR_FILES
6641 -- Follow links when parsing project files
6643 S_Stack_Help : aliased constant S := "/HELP " &
6644 "-h";
6645 -- /NOHELP (D)
6646 -- /HELP
6648 -- Output a message explaining the usage of gnatstack.
6650 S_Stack_List : aliased constant S := "/LIST=#" &
6651 "-l#";
6652 -- /LIST=nnn
6654 -- Print the nnn subprograms requiring the biggest local stack usage. By
6655 -- default none will be displayed.
6657 S_Stack_Order : aliased constant S := "/ORDER=" &
6658 "STACK " &
6659 "-os " &
6660 "ALPHABETICAL " &
6661 "-oa";
6662 -- /ORDER[=order-option]
6664 -- Specifies the order for displaying the different call graphs.
6665 -- order-option may be one of the following:
6667 -- STACK (D) Select stack usage order
6669 -- ALPHABETICAL Select alphabetical order
6671 S_Stack_Path : aliased constant S := "/PATH " &
6672 "-p";
6673 -- /NOPATH (D)
6674 -- /PATH
6676 -- Print all the subprograms that make up the worst-case path for every
6677 -- entry point.
6679 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6680 "-P>";
6681 -- /PROJECT_FILE=filename
6683 -- Specifies the main project file to be used. The project files rooted
6684 -- at the main project file will be parsed before the invocation of
6685 -- gnatstack.
6687 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6688 "-f@";
6689 -- /OUTPUT=filename
6691 -- Name of the file containing the generated graph (VCG format).
6693 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6694 "-r|";
6696 -- /EXPRESSION=regular-expression
6698 -- Any symbol matching the regular expression will be considered as a
6699 -- potential entry point for the analysis.
6701 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6702 "--subdirs=>";
6703 -- /SUBDIRS=dir
6705 -- The actual directories (object, exec, library, ...) are subdirectories
6706 -- of the directory specified in the project file. If the subdirectory
6707 -- does not exist, it is created automatically.
6709 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6710 "-d#";
6711 -- /UNBOUNDED=nnn
6713 -- Default stack size to be used for unbounded (dynamic) frames.
6715 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6716 "-u#";
6717 -- /UNKNOWN=nnn
6719 -- Default stack size to be used for unknown (external) calls.
6721 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6722 "-v";
6723 -- /NOVERBOSE (D)
6724 -- /VERBOSE
6726 -- Specifies the amount of information to be displayed about the
6727 -- different subprograms. In verbose mode the full location of the
6728 -- subprogram will be part of the output, as well as detailed information
6729 -- about inaccurate data.
6731 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6732 "ALL " &
6733 "-Wa " &
6734 "CYCLES " &
6735 "-Wc " &
6736 "UNBOUNDED " &
6737 "-Wu " &
6738 "EXTERNAL " &
6739 "-We " &
6740 "INDIRECT " &
6741 "-Wi";
6742 -- /WARNINGS[=(keyword[,...])]
6744 -- The following keywords are supported:
6746 -- ALL Turn on all optional warnings
6748 -- CYCLES Turn on warnings for cycles
6750 -- UNBOUNDED Turn on warnings for unbounded frames
6752 -- EXTERNAL Turn on warnings for external calls
6754 -- INDIRECT Turn on warnings for indirect calls
6756 Stack_Switches : aliased constant Switches :=
6757 (S_Stack_Add 'Access,
6758 S_Stack_All 'Access,
6759 S_Stack_All_Cycles 'Access,
6760 S_Stack_All_Prjs 'Access,
6761 S_Stack_Debug 'Access,
6762 S_Stack_Directory 'Access,
6763 S_Stack_Entries 'Access,
6764 S_Stack_Files 'Access,
6765 S_Stack_Follow 'Access,
6766 S_Stack_Help 'Access,
6767 S_Stack_List 'Access,
6768 S_Stack_Order 'Access,
6769 S_Stack_Path 'Access,
6770 S_Stack_Project 'Access,
6771 S_Stack_Output 'Access,
6772 S_Stack_Regexp 'Access,
6773 S_Stack_Subdirs 'Access,
6774 S_Stack_Unbounded 'Access,
6775 S_Stack_Unknown 'Access,
6776 S_Stack_Verbose 'Access,
6777 S_Stack_Warnings 'Access);
6779 ----------------------------
6780 -- Switches for GNAT STUB --
6781 ----------------------------
6783 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6784 "-aP*";
6785 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6787 -- Add directories to the project search path.
6789 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6790 "-gnatec>";
6791 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6793 -- Specifies a configuration pragmas file that must be taken into account
6794 -- when compiling.
6796 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6797 "!-I-";
6798 -- /CURRENT_DIRECTORY (D)
6799 -- /NOCURRENT_DIRECTORY
6801 -- Look for source, library or object files in the default directory.
6803 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6804 "-X" & '"';
6805 -- /EXTERNAL_REFERENCE="name=val"
6807 -- Specifies an external reference to the project manager. Useful only if
6808 -- /PROJECT_FILE is used.
6810 -- Example:
6811 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6813 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6814 "-eL";
6815 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6816 -- /FOLLOW_LINKS_FOR_FILES
6818 -- Follow links when parsing project files
6820 S_Stub_Full : aliased constant S := "/FULL " &
6821 "-f";
6822 -- /NOFULL (D)
6823 -- /FULL
6825 -- If the destination directory already contains a file with the name of
6826 -- the body file for the argument file spec, replace it with the generated
6827 -- body stub. If /FULL is not used and there is already a body file, this
6828 -- existing body file is not replaced.
6830 S_Stub_Header : aliased constant S := "/HEADER=" &
6831 "GENERAL " &
6832 "-hg " &
6833 "SPEC " &
6834 "-hs";
6835 -- /HEADER[=header-option]
6837 -- Specifies the form of the comment header above the generated body stub.
6838 -- If no /HEADER qualifier is specified, there is no comment header.
6839 -- header-option is one of the following:
6842 -- GENERAL (D) Put a sample comment header into the body stub.
6844 -- SPEC Put the comment header (i.e., all the comments
6845 -- preceding the compilation unit) from the source of the
6846 -- library unit declaration into the body stub.
6848 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
6849 "--header-file=>";
6851 -- /FROM_HEADER_FILE==filename
6853 -- Use the content of the file as the comment header for a generated body
6854 -- stub.
6856 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
6857 "-i#";
6858 -- /INDENTATION=nnn
6860 -- (nnn is a non-negative integer). Set the indentation level in the
6861 -- generated body stub to nnn. nnn=0 means "no indentation".
6862 -- Default indentation is 3.
6864 S_Stub_Keep : aliased constant S := "/KEEP " &
6865 "-k";
6866 -- /NOKEEP (D)
6867 -- /KEEP
6869 -- Do not delete the tree file (i.e., the snapshot of the compiler
6870 -- internal structures used by gnatstub) after creating the body stub.
6872 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6873 "-l#";
6874 -- /LINE_LENGTH=nnn
6876 -- (n is a non-negative integer). Set the maximum line length in the body
6877 -- stub to nnn. Default is 78.
6879 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6880 "DEFAULT " &
6881 "-vP0 " &
6882 "MEDIUM " &
6883 "-vP1 " &
6884 "HIGH " &
6885 "-vP2";
6886 -- /MESSAGES_PROJECT_FILE[=messages-option]
6888 -- Specifies the "verbosity" of the parsing of project files.
6889 -- messages-option may be one of the following:
6891 -- DEFAULT (D) No messages are output if there is no error or warning.
6893 -- MEDIUM A small number of messages are output.
6895 -- HIGH A great number of messages are output, most of them not
6896 -- being useful for the user.
6898 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
6899 "--no-exception";
6900 -- /NONO_EXCEPTION (D)
6901 -- /NO_EXCEPTION
6903 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
6905 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
6906 "--no-local-header";
6907 -- /NONO_LOCAL_HEADER (D)
6908 -- /NO_LOCAL_HEADER
6910 -- Do not put local comment header before body stub for local program unit.
6912 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6913 "-o@";
6914 -- /OUTPUT=filespec
6916 -- Body file name. This should be set if the argument file name does not
6917 -- follow the GNAT file naming conventions. If this switch is omitted,
6918 -- the default name for the body will be obtained from the argument file
6919 -- name according to the GNAT file naming conventions.
6921 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6922 "-P>";
6923 -- /PROJECT_FILE=filename
6925 -- Specifies the main project file to be used. The project files rooted
6926 -- at the main project file will be parsed before any other processing.
6927 -- The source and object directories to be searched will be communicated
6928 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6929 -- ADA_PRJ_OBJECTS_FILE.
6931 S_Stub_Quiet : aliased constant S := "/QUIET " &
6932 "-q";
6933 -- /NOQUIET (D)
6934 -- /QUIET
6936 -- Quiet mode: do not generate a confirmation when a body is successfully
6937 -- created, and do not generate a message when a body is not required for
6938 -- an argument unit.
6940 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6941 "-I*";
6942 -- /SEARCH=(directory[,...])
6944 -- When looking for source files also look in directories specified.
6946 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
6947 "--subdirs=>";
6948 -- /SUBDIRS=dir
6950 -- The actual directories (object, exec, library, ...) are subdirectories
6951 -- of the directory specified in the project file. If the subdirectory
6952 -- does not exist, it is created automatically.
6954 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6955 "OVERWRITE " &
6956 "-t " &
6957 "SAVE " &
6958 "-k " &
6959 "REUSE " &
6960 "-r";
6961 -- /TREE_FILE[=treefile-option]
6963 -- Specify what to do with the tree file.
6964 -- treefile-option is one of the following:
6966 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6967 -- directory already contains the file which, according
6968 -- to the GNAT file naming rules should be considered
6969 -- as a tree file for the argument source file, gnatstub
6970 -- will refuse to create the tree file needed to create
6971 -- a sample body unless this option is chosen.
6973 -- SAVE Do not remove the tree file (i.e., the snapshot
6974 -- of the compiler internal structures used by gnatstub)
6975 -- after creating the body stub.
6977 -- REUSE Reuse the tree file (if it exists) instead of
6978 -- creating it.
6979 -- Instead of creating the tree file for the library
6980 -- unit declaration, gnatstub tries to find it in the
6981 -- current directory and use it for creating a body.
6982 -- If the tree file is not found, no body is created.
6983 -- This option also implies `SAVE', whether or not the
6984 -- latter is set explicitly.
6986 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
6987 "-v";
6988 -- /NOVERBOSE (D)
6989 -- /VERBOSE
6991 -- Verbose mode: generate version information.
6993 Stub_Switches : aliased constant Switches :=
6994 (S_Stub_Add 'Access,
6995 S_Stub_Config 'Access,
6996 S_Stub_Current 'Access,
6997 S_Stub_Ext 'Access,
6998 S_Stub_Follow 'Access,
6999 S_Stub_Full 'Access,
7000 S_Stub_Header 'Access,
7001 S_Stub_Header_File'Access,
7002 S_Stub_Indent 'Access,
7003 S_Stub_Keep 'Access,
7004 S_Stub_Length 'Access,
7005 S_Stub_Mess 'Access,
7006 S_Stub_Output 'Access,
7007 S_Stub_Project 'Access,
7008 S_Stub_No_Exc 'Access,
7009 S_Stub_No_Head 'Access,
7010 S_Stub_Quiet 'Access,
7011 S_Stub_Search 'Access,
7012 S_Stub_Subdirs 'Access,
7013 S_Stub_Tree 'Access,
7014 S_Stub_Verbose 'Access);
7016 ----------------------------
7017 -- Switches for GNAT SYNC --
7018 ----------------------------
7020 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7021 "-aP*";
7022 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7024 -- Add directories to the project search path.
7026 S_Sync_All : aliased constant S := "/ALL " &
7027 "-a";
7028 -- /NOALL (D)
7029 -- /ALL
7031 -- Also check the components of the GNAT run time and process the needed
7032 -- components of the GNAT RTL when building and analyzing the global
7033 -- structure for checking the global rules.
7035 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
7036 "-U";
7037 -- /NOALL_PROJECTS (D)
7038 -- /ALL_PROJECTS
7040 -- When GNAT SYNC is used with a Project File and no source is
7041 -- specified, the underlying tool gnatsync is called for all the
7042 -- sources of all the Project Files in the project tree.
7044 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7045 "-X" & '"';
7046 -- /EXTERNAL_REFERENCE="name=val"
7048 -- Specifies an external reference to the project manager. Useful only if
7049 -- /PROJECT_FILE is used.
7051 -- Example:
7052 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7054 S_Sync_Files : aliased constant S := "/FILES=@" &
7055 "-files=@";
7056 -- /FILES=filename
7058 -- Take as arguments the files that are listed in the specified
7059 -- text file.
7061 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7062 "-eL";
7063 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7064 -- /FOLLOW_LINKS_FOR_FILES
7066 -- Follow links when parsing project files
7068 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
7069 "-main=@";
7070 -- /MAIN_SUBPROGRAM=filename
7072 -- Specify the name of the file containing the main subprogram
7074 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7075 "DEFAULT " &
7076 "-vP0 " &
7077 "MEDIUM " &
7078 "-vP1 " &
7079 "HIGH " &
7080 "-vP2";
7081 -- /MESSAGES_PROJECT_FILE[=messages-option]
7083 -- Specifies the "verbosity" of the parsing of project files.
7084 -- messages-option may be one of the following:
7086 -- DEFAULT (D) No messages are output if there is no error or warning.
7088 -- MEDIUM A small number of messages are output.
7090 -- HIGH A great number of messages are output, most of them not
7091 -- being useful for the user.
7093 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
7094 "-P>";
7095 -- /PROJECT_FILE=filename
7097 -- Specifies the main project file to be used. The project files rooted
7098 -- at the main project file will be parsed before the invocation of the
7099 -- gnatcheck. The source directories to be searched will be communicated
7100 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
7102 S_Sync_Quiet : aliased constant S := "/QUIET " &
7103 "-q";
7104 -- /NOQUIET (D)
7105 -- /QUIET
7107 -- Work quietly, only output warnings and errors.
7109 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
7110 "--subdirs=>";
7111 -- /SUBDIRS=dir
7113 -- The actual directories (object, exec, library, ...) are subdirectories
7114 -- of the directory specified in the project file. If the subdirectory
7115 -- does not exist, it is created automatically.
7117 S_Sync_Verb : aliased constant S := "/VERBOSE " &
7118 "-v";
7119 -- /NOVERBOSE (D)
7120 -- /VERBOSE
7122 -- The version number and copyright notice are output, as well as exact
7123 -- copies of the gnat1 commands spawned to obtain the chop control
7124 -- information.
7126 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
7127 "-t";
7128 -- /NOEXECUTION_TIME (D)
7129 -- /EXECUTION_TIME
7131 -- Output the execution time
7133 S_Sync_Details : aliased constant S := "/DETAILS=" &
7134 "MEDIUM " &
7135 "-om " &
7136 "SHORT " &
7137 "-os " &
7138 "FULL " &
7139 "-of";
7140 -- /DETAILS[=options]
7142 -- Specifies the details of the output.
7143 -- Options may be one of the following:
7145 -- MEDIUM (D)
7146 -- SHORT
7147 -- FULL
7149 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
7150 "-wq";
7152 -- /WARNINGS_OFF
7154 -- Turn warnings off
7156 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
7157 "-out_file=>";
7159 -- /OUTPUT_FILE=filename
7161 -- Redirect output to a text file
7163 Sync_Switches : aliased constant Switches :=
7164 (S_Sync_Add 'Access,
7165 S_Sync_All 'Access,
7166 S_Sync_Allproj 'Access,
7167 S_Sync_Ext 'Access,
7168 S_Sync_Follow 'Access,
7169 S_Sync_Files 'Access,
7170 S_Sync_Main 'Access,
7171 S_Sync_Mess 'Access,
7172 S_Sync_Project 'Access,
7173 S_Sync_Quiet 'Access,
7174 S_Sync_Subdirs 'Access,
7175 S_Sync_Verb 'Access,
7176 S_Sync_Exec 'Access,
7177 S_Sync_Details 'Access,
7178 S_Sync_Warnoff 'Access,
7179 S_Sync_Output 'Access);
7181 ----------------------------
7182 -- Switches for GNAT TEST --
7183 ----------------------------
7185 Test_Switches : aliased constant Switches :=
7186 (1 .. 0 => null);
7188 ----------------------------
7189 -- Switches for GNAT XREF --
7190 ----------------------------
7192 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7193 "-aP*";
7194 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7196 -- Add directories to the project search path.
7198 S_Xref_All : aliased constant S := "/ALL_FILES " &
7199 "-a";
7200 -- /NOALL_FILES (D)
7201 -- /ALL_FILES
7203 -- If this switch is present, FIND and XREF will parse the read-only
7204 -- files found in the library search path. Otherwise, these files will
7205 -- be ignored. This option can be used to protect Gnat sources or your
7206 -- own libraries from being parsed, thus making FIND and XREF much
7207 -- faster, and their output much smaller.
7209 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
7210 "-d";
7211 -- /NODERIVED_TYPES (D)
7212 -- /DERIVED_TYPES
7214 -- Output the parent type reference for each matching derived types.
7216 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7217 "-X" & '"';
7218 -- /EXTERNAL_REFERENCE="name=val"
7220 -- Specifies an external reference to the project manager. Useful only if
7221 -- /PROJECT_FILE is used.
7223 -- Example:
7224 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7226 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7227 "-eL";
7228 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7229 -- /FOLLOW_LINKS_FOR_FILES
7231 -- Follow links when parsing project files
7233 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
7234 "-f";
7235 -- /NOFULL_PATHNAME (D)
7236 -- /FULL_PATHNAME
7238 -- If this switch is set, the output file names will be preceded by their
7239 -- directory (if the file was found in the search path). If this switch
7240 -- is not set, the directory will not be printed.
7242 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
7243 "-g";
7244 -- /NOIGNORE_LOCALS (D)
7245 -- /IGNORE_LOCALS
7247 -- If this switch is set, information is output only for library-level
7248 -- entities, ignoring local entities. The use of this switch may
7249 -- accelerate FIND and XREF.
7251 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7252 "DEFAULT " &
7253 "-vP0 " &
7254 "MEDIUM " &
7255 "-vP1 " &
7256 "HIGH " &
7257 "-vP2";
7258 -- /MESSAGES_PROJECT_FILE[=messages-option]
7260 -- Specifies the "verbosity" of the parsing of project files.
7261 -- messages-option may be one of the following:
7263 -- DEFAULT (D) No messages are output if there is no error or warning.
7265 -- MEDIUM A small number of messages are output.
7267 -- HIGH A great number of messages are output, most of them not
7268 -- being useful for the user.
7270 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
7271 "-nostdinc";
7272 -- /NOSTD_INCLUDES
7274 -- Do not look for sources in the system default directory.
7276 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
7277 "-nostdlib";
7278 -- /NOSTD_LIBRARIES
7280 -- Do not look for library files in the system default directory.
7282 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
7283 "-aO*";
7284 -- /OBJECT_SEARCH=(directory,...)
7286 -- When searching for library and object files, look in the specified
7287 -- directories. The order in which library files are searched is the same
7288 -- as for MAKE.
7290 S_Xref_Project : aliased constant S := "/PROJECT=@" &
7291 "-p@";
7292 -- /PROJECT=file
7294 -- Specify a project file to use. By default, FIND and XREF will try to
7295 -- locate a project file in the current directory.
7297 -- If a project file is either specified or found by the tools, then the
7298 -- content of the source directory and object directory lines are added
7299 -- as if they had been specified respectively by /SOURCE_SEARCH and
7300 -- /OBJECT_SEARCH.
7302 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
7303 "-P>";
7304 -- /PROJECT_FILE=filename
7306 -- Specifies the main project file to be used. The project files rooted
7307 -- at the main project file will be parsed before doing any processing.
7308 -- The source and object directories to be searched will be communicated
7309 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
7310 -- ADA_PRJ_OBJECTS_FILE.
7312 S_Xref_Search : aliased constant S := "/SEARCH=*" &
7313 "-I*";
7314 -- /SEARCH=(directory,...)
7316 -- Equivalent to:
7317 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
7319 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
7320 "-aI*";
7321 -- /SOURCE_SEARCH=(directory,...)
7323 -- When looking for source files also look in the specified directories.
7324 -- The order in which source file search is undertaken is the same as for
7325 -- MAKE.
7327 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
7328 "--subdirs=>";
7329 -- /SUBDIRS=dir
7331 -- The actual directories (object, exec, library, ...) are subdirectories
7332 -- of the directory specified in the project file. If the subdirectory
7333 -- does not exist, it is created automatically.
7335 S_Xref_Output : aliased constant S := "/UNUSED " &
7336 "-u";
7337 -- /SOURCE_SEARCH=(directory,...)
7339 -- When looking for source files also look in the specified directories.
7340 -- The order in which source file search is undertaken is the same as for
7341 -- MAKE.
7343 S_Xref_Tags : aliased constant S := "/TAGS " &
7344 "-v";
7345 -- /NOTAGS (D)
7346 -- /TAGS
7348 -- Print a 'tags' file for vi.
7350 Xref_Switches : aliased constant Switches :=
7351 (S_Xref_Add 'Access,
7352 S_Xref_All 'Access,
7353 S_Xref_Deriv 'Access,
7354 S_Xref_Ext 'Access,
7355 S_Xref_Follow 'Access,
7356 S_Xref_Full 'Access,
7357 S_Xref_Global 'Access,
7358 S_Xref_Mess 'Access,
7359 S_Xref_Nostinc 'Access,
7360 S_Xref_Nostlib 'Access,
7361 S_Xref_Object 'Access,
7362 S_Xref_Project 'Access,
7363 S_Xref_Prj 'Access,
7364 S_Xref_Search 'Access,
7365 S_Xref_Source 'Access,
7366 S_Xref_Subdirs 'Access,
7367 S_Xref_Output 'Access,
7368 S_Xref_Tags 'Access);
7370 end VMS_Data;