* config/darwin.c (darwin_assemble_visibility): Treat
[official-gcc.git] / gcc / ada / vms_data.ads
blobc33bb8f71f601479775891fad4bd1517f32bcf88
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 in CHECKED mode for integer
1351 -- operations and checks for access before elaboration
1352 -- on subprogram calls. This causes GNAT to generate
1353 -- slower and larger executable programs by adding code
1354 -- to check for both overflow and division by zero
1355 -- (resulting in raising "Constraint_Error" as required
1356 -- by Ada semantics).
1357 -- Similarly, GNAT does not generate elaboration check
1358 -- by default, and you must specify this keyword to
1359 -- enable them.
1361 -- Note that this keyword does not affect the code
1362 -- generated for any floating-point operations; it
1363 -- applies only to integer operations. For the case of
1364 -- floating-point, GNAT has the "Machine_Overflows"
1365 -- attribute set to "False" and the normal mode of
1366 -- operation is to generate IEEE NaN and infinite values
1367 -- on overflow or invalid operations (such as dividing
1368 -- 0.0 by 0.0).
1370 -- ELABORATION Enables dynamic checks for access-before-elaboration
1371 -- on subprogram calls and generic instantiations.
1373 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1374 -- effect and are ignored. This keyword causes "Assert"
1375 -- and "Debug" pragmas to be activated, as well as
1376 -- "Check", "Precondition" and "Postcondition" pragmas.
1378 -- SUPPRESS_ALL Suppress all runtime checks as though you have
1379 -- "pragma Suppress (all_checks)" in your source. Use
1380 -- this switch to improve the performance of the code at
1381 -- the expense of safety in the presence of invalid data
1382 -- or program bugs.
1384 -- UNSUPPRESS_ALL Cancels effect of previous SUPPRESS_ALL.
1386 -- DEFAULT Suppress the effect of any option OVERFLOW or
1387 -- ASSERTIONS.
1389 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1390 -- option ELABORATION or SUPPRESS_ALL.
1392 -- These keywords only control the default setting of the checks. You
1393 -- may modify them using either "Suppress" (to remove checks) or
1394 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1395 -- source.
1397 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1398 "-gnatp,!-gnato,!-gnatE";
1399 -- NODOC (see /CHECKS)
1401 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1402 "-gnatC";
1403 -- /NOCOMPRESS_NAMES (D)
1404 -- /COMPRESS_NAMES
1406 -- Compress debug information and external symbol name table entries.
1407 -- In the generated debugging information, and also in the case of long
1408 -- external names, the compiler uses a compression mechanism if the name
1409 -- is very long. This compression method uses a checksum, and avoids
1410 -- trouble on some operating systems which have difficulty with very long
1411 -- names.
1413 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1414 "-gnatec>";
1415 -- /CONFIGURATION_PRAGMAS_FILE=file
1417 -- Specify a configuration pragmas file that need to be taken into account
1419 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1420 "!-I-";
1421 -- /CURRENT_DIRECTORY (D)
1422 -- /NOCURRENT_DIRECTORY
1424 -- Look for source files in the default directory.
1426 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1427 "-gnatep>";
1428 -- /DATA_PREPROCESSING=file_name
1430 -- This qualifier indicates to the compiler the file name (without
1431 -- directory information) of the preprocessor data file to use.
1432 -- The preprocessor data file should be found in the source directories.
1434 -- A preprocessing data file is a text file with significant lines
1435 -- indicating how should be preprocessed either a specific source or all
1436 -- sources not mentioned in other lines. A significant line is a non
1437 -- empty, non comment line. Comments are similar to Ada comments.
1439 -- Each significant line starts with either a literal string or the
1440 -- character '*'. A literal string is the file name (without directory
1441 -- information) of the source to preprocess. A character '*' indicates the
1442 -- preprocessing for all the sources that are not specified explicitly on
1443 -- other lines. It is an error to have two lines with the same file name
1444 -- or two lines starting with the character '*'.
1446 -- After the file name or the character '*', another optional literal
1447 -- string indicating the file name of the definition file to be used for
1448 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1449 -- are found by the compiler in one of the source directories. In some
1450 -- cases, when compiling a source in a directory other than the current
1451 -- directory, if the definition file is in the current directory, it may
1452 -- be necessary to add the current directory as a source directory through
1453 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1454 -- definition file.
1456 -- Then, optionally, switches similar to those of gnatprep may be found.
1457 -- Those switches are:
1459 -- -b Causes both preprocessor lines and the lines deleted by
1460 -- preprocessing to be replaced by blank lines, preserving
1461 -- the line number. This switch is always implied;
1462 -- however, if specified after `-c' it cancels the effect
1463 -- of `-c'.
1465 -- -c Causes both preprocessor lines and the lines deleted by
1466 -- preprocessing to be retained as comments marked with
1467 -- the special string "--! ".
1469 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1470 -- A symbol is an Ada identifier, or an Ada reserved word,
1471 -- with the exception of "if", "else", "elsif", "end",
1472 -- "and", "or" and "then". value is either a literal
1473 -- string, an Ada identifier or any Ada reserved word.
1474 -- A symbol declared with this switch replaces a symbol
1475 -- with the same name defined in a definition file.
1477 -- -s Causes a sorted list of symbol names and values to be
1478 -- listed on the standard output file.
1480 -- -u Causes undefined symbols to be treated as having the
1481 -- value FALSE in the context of a preprocessor test.
1482 -- In the absence of this option, an undefined symbol
1483 -- in a #if or #elsif test will be treated as an error.
1485 -- Examples of valid lines in a preprocessor data file:
1487 -- "toto.adb" "prep.def" -u
1488 -- -- preprocess "toto.adb", using definition file "prep.def",
1489 -- -- undefined symbol are False.
1491 -- * -c -DVERSION=V101
1492 -- -- preprocess all other sources without a definition file;
1493 -- -- suppressed lined are commented; symbol VERSION has the value
1494 -- -- V101.
1496 -- "titi.adb" "prep2.def" -s
1497 -- -- preprocess "titi.adb", using definition file "prep2.def";
1498 -- -- list all symbols with their values.
1500 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1501 "SYMBOLS " &
1502 "-g2 " &
1503 "NOSYMBOLS " &
1504 "!-g2 " &
1505 "TRACEBACK " &
1506 "-g1 " &
1507 "ALL " &
1508 "-g3 " &
1509 "NONE " &
1510 "-g0 " &
1511 "NOTRACEBACK " &
1512 "-g0";
1513 -- /DEBUG[=debug-level]
1514 -- /NODEBUG
1516 -- Specifies how much debugging information is to be included in
1517 -- the resulting object fie.
1519 -- 'debug-level' is one of the following:
1521 -- SYMBOLS (D) Include both debugger symbol records and traceback
1522 -- in the object file.
1524 -- ALL Include debugger symbol records, traceback plus
1525 -- extra debug information in the object file.
1527 -- NONE Excludes both debugger symbol records and traceback
1528 -- from the object file. Same as /NODEBUG.
1530 -- TRACEBACK Includes only traceback records in the object
1531 -- file. This is the default when /DEBUG is not used.
1533 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1534 "!-g";
1535 -- NODOC (see /Debug)
1537 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1538 "RECEIVER " &
1539 "-gnatzr " &
1540 "CALLER " &
1541 "-gnatzc";
1542 -- /NODISTRIBUTION_STUBS (D)
1543 -- /DISTRIBUTION_STUBS[=dist-opt]
1545 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1546 -- that stubs for use in distributed programs (see the Distributed
1547 -- Systems Annex of the Ada RM) should be generated.
1549 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1550 "!-gnatzr,!-gnatzc";
1551 -- NODOC (see /DISTRIBUTION_STUBS)
1553 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1554 "-gnatm#";
1555 -- /NOERROR_LIMIT (D)
1556 -- /ERROR_LIMIT=nnn
1558 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1559 -- number of error messages to be generated to that number. Once that
1560 -- number has been reached, the compilation is abandoned.
1561 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1563 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1564 "-gnatm999999";
1565 -- NODOC (see /ERROR_LIMIT)
1567 S_GCC_Except : aliased constant S := "/EXTRA_EXCEPTION_INFORMATION " &
1568 "-gnateE";
1569 -- /EXTRA_EXCEPTION_INFORMATION
1571 -- Generate extra information in exception messages, in particular
1572 -- display extra column information and the value and range associated
1573 -- with index and range check failures, and extra column information for
1574 -- access checks.
1576 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1577 "-gnatG";
1578 -- /NOEXPAND_SOURCE (D)
1579 -- /EXPAND_SOURCE
1581 -- Produces a listing of the expanded code in Ada source form. For
1582 -- example, all tasking constructs are reduced to appropriate run-time
1583 -- library calls. The maximum line length for the listing 72.
1585 S_GCC_Lexpand : aliased constant S := "/LEXPAND_SOURCE=#" &
1586 "-gnatG#";
1587 -- /LEXPAND_SOURCE=nnn
1589 -- Produces a listing of the expanded code in Ada source form. For
1590 -- example, all tasking constructs are reduced to appropriate run-time
1591 -- library calls. The parameter is the maximum line length for the
1592 -- listing.
1594 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1595 "-gnatX";
1596 -- /NOEXTENSIONS_ALLOWED (D)
1597 -- /EXTENSIONS_ALLOWED
1599 -- GNAT specific language extensions allowed.
1601 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1602 "-X" & '"';
1603 -- /EXTERNAL_REFERENCE="name=val"
1605 -- Specifies an external reference to the project manager. Useful only if
1606 -- /PROJECT_FILE is used.
1608 -- Example:
1609 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1611 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1612 "-gnatk#";
1613 -- /FILE_NAME_MAX_LENGTH=nnn
1615 -- Activates file name "krunching". NNN, a decimal integer in the range
1616 -- 1-999, indicates the maximum allowable length of a file name (not
1617 -- including the ADS or ADB filetype. The default is not to enable file
1618 -- name krunching.
1620 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1621 "-eL";
1622 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1623 -- /FOLLOW_LINKS_FOR_FILES
1625 -- Follow links when parsing project files
1627 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1628 "-gnatQ";
1629 -- /NOFORCE_ALI (D)
1630 -- /FORCE_ALI
1632 -- In normal operation mode, the .ALI file is not generated if any
1633 -- illegalities are detected in the program. The use of this qualifier
1634 -- forces generation of the .ALI file. This file is marked as being
1635 -- in error, so it cannot be used for binding purposes, but it does
1636 -- contain reasonably complete cross-reference information, and thus may
1637 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1638 -- development environments) that are driven from the .ALI file.
1640 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1641 "-gnatef";
1642 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1643 -- /FULL_PATH_IN_BRIEF_MESSAGES
1645 -- When using project files, if some errors or warnings are detected
1646 -- during parsing and verbose mode is not in effect (no use of qualifier
1647 -- /VERBOSE), then error lines start with the full path name of the
1648 -- project file, rather than its simple file name.
1650 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1651 "-gnateG";
1652 -- /NOGENERATE_PROCESSED_SOURCE (D)
1653 -- /GENERATE_PROCESSED_SOURCE
1655 -- Generate a file <source>_prep if the integrated preprocessing
1656 -- is modifying the source text.
1658 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1659 "-gnatg";
1660 -- /NOGNAT_INTERNAL (D)
1661 -- /GNAT_INTERNAL
1663 -- Internal GNAT implementation mode. This should not be used for
1664 -- applications programs, it is intended only for use by the compiler
1665 -- and its run-time library. For documentation, see the GNAT sources.
1666 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1667 -- so that all standard warnings and all standard style options are
1668 -- turned on. All warnings and style error messages are treated as
1669 -- errors.
1671 S_GCC_Help : aliased constant S := "/HELP " &
1672 "-gnath";
1673 -- /NOHELP (D)
1674 -- /HELP
1676 -- Output usage information.
1678 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1679 "DEFAULT " &
1680 "-gnati1 " &
1681 "1 " &
1682 "-gnati1 " &
1683 "2 " &
1684 "-gnati2 " &
1685 "3 " &
1686 "-gnati3 " &
1687 "4 " &
1688 "-gnati4 " &
1689 "5 " &
1690 "-gnati5 " &
1691 "PC " &
1692 "-gnatip " &
1693 "PC850 " &
1694 "-gnati8 " &
1695 "FULL_UPPER " &
1696 "-gnatif " &
1697 "NO_UPPER " &
1698 "-gnatin " &
1699 "WIDE " &
1700 "-gnatiw";
1701 -- /NOIDENTIFIER_CHARACTER_SET (D)
1702 -- /IDENTIFIER_CHARACTER_SET=char-set
1704 -- Normally GNAT recognizes the Latin-1 character set in source program
1705 -- identifiers, as described in the reference manual. This qualifier
1706 -- causes GNAT to recognize alternate character sets in identifiers.
1707 -- 'char-set' is one of the following strings indicating the character
1708 -- set:
1710 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1711 -- /NOIDENTIFIER_CHARACTER_SET.
1713 -- 1 The basic character set is Latin-1. This character
1714 -- set is defined by ISO standard 8859, part 1. The lower
1715 -- half (character codes 16#00# ... 16#7F#) is identical
1716 -- to standard ASCII coding, but the upper half is used
1717 -- to represent additional characters. This includes
1718 -- extended letters used by European languages, such as
1719 -- the umlaut used in German.
1721 -- You may use any of these extended characters freely
1722 -- in character or string literals. In addition, the
1723 -- extended characters that represent letters can be
1724 -- used in identifiers.
1726 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1727 -- and lowercase equivalence.
1729 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1730 -- and lower case equivalence.
1732 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1733 -- and lower case equivalence.
1735 -- PC IBM PC code page 437. This code page is the normal
1736 -- default for PCs in the U.S. It corresponds to the
1737 -- original IBM PC character set. This set has some, but
1738 -- not all, of the extended Latin-1 letters, but these
1739 -- letters do not have the same encoding as Latin-1. In
1740 -- this mode, these letters are allowed in identifiers
1741 -- with uppercase and lowercase equivalence.
1743 -- PC850 This code page (850) is a modification of 437 extended
1744 -- to include all the Latin-1 letters, but still not with
1745 -- the usual Latin-1 encoding. In this mode, all these
1746 -- letters are allowed in identifiers with uppercase and
1747 -- lower case equivalence.
1749 -- FULL_UPPER Any character in the range 80-FF allowed in
1750 -- identifiers, and all are considered distinct. In
1751 -- other words, there are no uppercase and lower case
1752 -- equivalences in this range.
1754 -- NO_UPPER No upper-half characters in the range 80-FF are
1755 -- allowed in identifiers. This gives Ada 95
1756 -- compatibility for identifier names.
1758 -- WIDE GNAT allows wide character codes to appear in
1759 -- character and string literals, and also optionally
1760 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1761 -- qualifier for information on encoding formats.
1763 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1764 "-gnati1";
1765 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1767 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1768 "-gnatI";
1769 -- /IGNORE_REP_CLAUSES
1771 -- Causes all representation clauses to be ignored and treated as
1772 -- comments. Useful when compiling foreign code (for example when ASIS
1773 -- is used to analyze such code).
1775 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1776 "-gnatdO";
1777 -- /NOIMMEDIATE_ERRORS (D)
1778 -- /IMMEDIATE_ERRORS
1780 -- Causes errors to be displayed as soon as they are encountered, rather
1781 -- than after compilation is terminated. If GNAT terminates prematurely
1782 -- or goes into an infinite loop, the last error message displayed may
1783 -- help to pinpoint the culprit.
1785 -- Note that this qualifier is intended only for helping to diagnose
1786 -- illegal programs when the compiler fails. It disconnects many of the
1787 -- normal handling procedures for error messages, and may for example
1788 -- cause malfunction of pragma Warnings.
1790 S_GCC_Inline : aliased constant S := "/INLINE=" &
1791 "PRAGMA " &
1792 "-gnatn " &
1793 "PRAGMA_LEVEL_1 " &
1794 "-gnatn1 " &
1795 "PRAGMA_LEVEL_2 " &
1796 "-gnatn2 " &
1797 "FULL " &
1798 "-gnatN " &
1799 "SUPPRESS " &
1800 "-fno-inline";
1801 -- /NOINLINE (D)
1802 -- /INLINE[=keyword]
1804 -- Selects the level of inlining for your program. In the absence of this
1805 -- qualifier, GNAT does not attempt inlining across units and does not
1806 -- need to access the bodies of subprograms for which "pragma Inline" is
1807 -- specified if they are not in the current unit.
1809 -- The supported keywords are as follows:
1811 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1812 -- for the inlining to actually occur, optimization
1813 -- must be enabled. This enables inlining across unit
1814 -- boundaries, that is, inlining a call in one unit of
1815 -- a subprogram declared in a with'ed unit. The compiler
1816 -- will access these bodies, creating an extra source
1817 -- dependency for the resulting object file, and where
1818 -- possible, the call will be inlined.
1820 -- This qualifier also turns on full optimization and
1821 -- requests GNAT to try to attempt automatic inlining
1822 -- of small subprograms within a unit.
1824 -- Specifying /OPTIMIZE=NONE will disable the main effect
1825 -- of this qualifier, but you may specify other
1826 -- optimization options, to get either lower
1827 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1828 -- levels of optimization.
1830 -- PRAGMA_LEVEL_1
1831 -- Direct control of the level of "Inline" pragmas
1832 -- optimization with moderate inlining across modules.
1834 -- PRAGMA_LEVEL_2
1835 -- Direct control of the level of "Inline" pragmas
1836 -- optimization with full inlining across modules.
1838 -- FULL Front end inlining. The front end inlining activated
1839 -- by this switch is generally more extensive, and quite
1840 -- often more effective than the standard PRAGMA inlining
1841 -- mode. It will also generate additional dependencies.
1843 -- SUPPRESS Suppresses all inlining, even if other optimization
1844 -- or inlining switches are set.
1846 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1847 "!-gnatn,!-gnatN";
1848 -- NODOC (see /INLINE)
1850 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1851 "-gnatL";
1853 -- /NO_INTERSPERSE_SOURCE (D)
1854 -- /INTERSPERSE_SOURCE
1856 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1857 -- lines from the original source file, output as comment lines with the
1858 -- associated line number.
1860 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1861 "-gnatj#";
1863 -- /NO_JUSTIFY_MESSAGES (D)
1864 -- /JUSTIFY_MESSAGES=nnn
1866 -- Causes error messages to be reformatted so that a message and all its
1867 -- continuation lines count as one warning or error in the statistics on
1868 -- total errors, and the message is broken down into lines (justified) so
1869 -- that no line is longer than nnn characters. The default message
1870 -- behavior (each message counted separately and not reformatted to fit
1871 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1873 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1874 "-gnatj0";
1876 -- NODOC (see /JUSTIFY_MESSAGES)
1878 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1879 "-gnatyM#";
1880 -- /MAX_LINE_LENGTH=nnn
1882 -- Set maximum line length.
1883 -- The length of lines must not exceed the given value nnn.
1885 S_GCC_List : aliased constant S := "/LIST " &
1886 "-gnatl";
1887 -- /NOLIST (D)
1888 -- /LIST
1890 -- Cause a full listing of the file to be generated. In the case where
1891 -- a body is compiled, the corresponding spec is also listed, along
1892 -- with any subunits.
1894 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1895 "-source-listing";
1896 -- /NOMACHINE_CODE_LISTING (D)
1897 -- /MACHINE_CODE_LISTING
1899 -- Cause a full machine code listing of the file to be generated to
1900 -- <filename>.lis. Interspersed source is included if the /DEBUG
1901 -- qualifier is also present.
1903 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1904 "-gnatem>";
1905 -- /MAPPING_FILE=file_name
1907 -- Use mapping file file_name
1909 -- A mapping file is a way to communicate to the compiler two mappings:
1910 -- from unit names to file names (without any directory information) and
1911 -- from file names to path names (with full directory information).
1912 -- These mappings are used by the compiler to short-circuit the path
1913 -- search.
1915 -- The use of mapping files is not required for correct operation of the
1916 -- compiler, but mapping files can improve efficiency, particularly when
1917 -- sources are read over a slow network connection. In normal operation,
1918 -- you need not be concerned with the format or use of mapping files,
1919 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1920 -- It is intended only for use by automatic tools such as GNAT MAKE
1921 -- running under the project file facility. The description here of the
1922 -- format of mapping files is provided for completeness and for possible
1923 -- use by other tools.
1925 -- A mapping file is a sequence of sets of three lines. In each set, the
1926 -- first line is the unit name, in lower case, with "%s" appended for
1927 -- specifications and "%b" appended for bodies; the second line is the
1928 -- file name; and the third line is the path name.
1930 -- Example:
1932 -- main%b
1933 -- main.2_ada
1934 -- /gnat/project1/sources/main.2_ada
1936 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1937 -- memory the two mappings from the specified file. If there is any
1938 -- problem (non existent file, truncated file or duplicate entries),
1939 -- no mapping will be created.
1941 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1942 -- last one on the command line will be taken into account.
1944 -- When using a project file, GNAT MAKE creates a temporary mapping file
1945 -- and communicates it to the compiler using this switch.
1947 S_GCC_MaxI : aliased constant S := "/MAX_INSTANTIATIONS=#" &
1948 "-gnatei#";
1950 -- /MAX_INSTANTIATIONS=nnn
1952 -- Specify the maximum number of instantiations permitted. The default
1953 -- value is 8000, which is probably enough for all programs except those
1954 -- containing some kind of runaway unintended instantiation loop.
1956 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1957 "DEFAULT " &
1958 "-vP0 " &
1959 "MEDIUM " &
1960 "-vP1 " &
1961 "HIGH " &
1962 "-vP2";
1963 -- /MESSAGES_PROJECT_FILE[=messages-option]
1965 -- Specifies the "verbosity" of the parsing of project files.
1966 -- messages-option may be one of the following:
1968 -- DEFAULT (D) No messages are output if there is no error or warning.
1970 -- MEDIUM A small number of messages are output.
1972 -- HIGH A great number of messages are output, most of them not
1973 -- being useful for the user.
1975 S_GCC_Multi : aliased constant S := "/MULTI_UNIT_INDEX=#" &
1976 "-gnateI#";
1977 -- /MULTI_UNIT_INDEX=nnn
1979 -- Specify the index of the unit to compile in a multi-unit source file.
1981 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1982 "-gnatyL#";
1983 -- /MAX_NESTING=nnn
1985 -- Set maximum level of nesting of constructs (including subprograms,
1986 -- loops, blocks, packages, and conditionals).
1987 -- The level of nesting must not exceed the given value nnn.
1988 -- A value of zero disable this style check (not enabled by default).
1990 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1991 "-gnatA";
1992 -- /NO_GNAT_ADC
1994 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1995 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1996 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1998 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1999 "-gnatc";
2000 -- /NOLOAD
2002 -- Cause the compiler to operate in semantic check mode with full
2003 -- checking for all illegalities specified in the reference manual, but
2004 -- without generation of any source code (no object or ALI file
2005 -- generated).
2007 -- Since dependent files must be accessed, you must follow the GNAT
2008 -- semantic restrictions on file structuring to operate in this mode:
2010 -- o The needed source files must be accessible.
2011 -- o Each file must contain only one compilation unit.
2012 -- o The file name and unit name must match.
2014 -- The output consists of error messages as appropriate. No object file
2015 -- or ALI file is generated. The checking corresponds exactly to the
2016 -- notion of legality in the Ada reference manual.
2018 -- Any unit can be compiled in semantics-checking-only mode, including
2019 -- units that would not normally be compiled (generic library units,
2020 -- subunits, and specifications where a separate body is present).
2022 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
2023 "-nostdinc";
2024 -- /NOSTD_INCLUDES
2026 -- Do not look in the default directory for source files of the runtime.
2028 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
2029 "-nostdlib";
2030 -- /NOSTD_LIBRARIES
2032 -- Do not look for library files in the system default directory.
2034 S_GCC_NoWarnP : aliased constant S := "/NOWARNING_PRAGMAS " &
2035 "-gnatd.i";
2036 -- /NOWARNING_PRAGMAS
2038 -- Causes all Warnings pragmas to be ignored. Useful to check if the
2039 -- program has obsolete warnings pragmas that are hiding problems.
2041 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
2042 "ALL " &
2043 "-O2,!-O0,!-O1,!-O3 " &
2044 "NONE " &
2045 "-O0,!-O1,!-O2,!-O3 " &
2046 "SOME " &
2047 "-O1,!-O0,!-O2,!-O3 " &
2048 "SPACE " &
2049 "-Os,!-O0,!-O1,!-O2,!-O3 " &
2050 "DEVELOPMENT " &
2051 "-O1,!-O0,!-O2,!-O3 " &
2052 "UNROLL_LOOPS " &
2053 "-funroll-loops " &
2054 "NO_STRICT_ALIASING " &
2055 "-fno-strict-aliasing " &
2056 "INLINING " &
2057 "-O3,!-O0,!-O1,!-O2";
2058 -- /NOOPTIMIZE (D)
2059 -- /OPTIMIZE[=(keyword[,...])]
2061 -- Selects the level of optimization for your program. The supported
2062 -- keywords are as follows:
2064 -- ALL (D) Perform most optimizations, including those that
2065 -- may be expensive.
2067 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
2069 -- SOME Perform some optimizations, but omit ones that
2070 -- are costly in compilation time.
2072 -- SPACE Optimize space usage
2074 -- DEVELOPMENT Same as SOME.
2076 -- INLINING Full optimization, and also attempt automatic inlining
2077 -- of small subprograms within a unit
2079 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
2080 -- with any keyword above other than NONE. Loop
2081 -- unrolling usually, but not always, improves the
2082 -- performance of programs.
2084 -- NO_STRICT_ALIASING
2085 -- Suppress aliasing analysis. When optimization is
2086 -- enabled (ALL or SOME above), the compiler assumes
2087 -- that pointers do in fact point to legitimate values
2088 -- of the pointer type (allocated from the proper pool).
2089 -- If this assumption is violated, e.g. by the use of
2090 -- unchecked conversion, then it may be necessary to
2091 -- suppress this assumption using this keyword (which
2092 -- may be specified only in conjunction with any
2093 -- keyword above, other than NONE).
2095 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
2096 "-O0,!-O1,!-O2,!-O3";
2097 -- NODOC (see /OPTIMIZE)
2099 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
2100 "-gnatl=>";
2101 -- /OUTPUT_FILE=fname
2103 -- This has the same effect as /LIST except that the output is written
2104 -- to a file instead of to standard output. If the given fname
2105 -- does not start with a period, then it is the full name of the file
2106 -- to be written. If fname starts with a period, the name of the file
2107 -- is the concatenation of to the name of the file being compiled with
2108 -- fname where the period is replace by an underline. For example, if
2109 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
2110 -- to file xyz.adb_lst.
2112 S_GCC_Overflo : aliased constant S := "/OVERFLOW_CHECKS=#" &
2113 "-gnato#";
2114 -- /OVERFLOW_CHECKS=nn
2116 -- Set default overflow cheecking mode. If nn is a single digit, in the
2117 -- range 0-3, it sets the overflow checking mode for all expressions,
2118 -- including those outside and within assertions. The meaning of nnn is:
2120 -- 0 suppress overflow checks (SUPPRESSED)
2121 -- 1 all intermediate overflows checked (CHECKED)
2122 -- 2 minimize intermediate overflows (MINIMIZED)
2123 -- 3 eliminate intermediate overflows (ELIMINATED)
2125 -- Otherwise nn can be two digits, both 0-3, and in this case the first
2126 -- digit sets the mode (using the above code) for expressions outside an
2127 -- assertion, and the second digit sets the mode for expressions within
2128 -- an assertion.
2130 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
2131 "64 " &
2132 "-mmalloc64 " &
2133 "LONG " &
2134 "-mmalloc64 " &
2135 "32 " &
2136 "-mno-malloc64 " &
2137 "SHORT " &
2138 "-mno-malloc64";
2139 -- /POINTER_SIZE=64 (D)
2140 -- /POINTER_SIZE[=(keyword[,...])]
2142 -- Change how pointers and descriptors are allocated. The following
2143 -- keywords are supported:
2145 -- 64 (D) Allocate heap pointers in 64bit space except as
2146 -- constrained by a 32bit size clause or by
2147 -- Convention_C and generate 64bit descriptors for
2148 -- Descriptor mechanisms for calling imported
2149 -- subprograms and accept both 64bit and 32bit
2150 -- descriptors for calls to exported subprograms.
2152 -- LONG Equivalent to option 64.
2154 -- 32 Allocate all heap pointers in 32bit space and
2155 -- generate 32bit descriptors for Descriptor
2156 -- mechanisms for calling imported subprograms.
2158 -- SHORT Equivalent to option 32.
2160 S_GCC_Polling : aliased constant S := "/POLLING " &
2161 "-gnatP";
2162 -- /NOPOLLING (D)
2163 -- /POLLING
2165 -- Enable polling. See the description of pragma Polling in the GNAT
2166 -- Reference Manual for full details.
2168 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2169 "-P>";
2170 -- /PROJECT_FILE=filename
2172 -- Specifies the main project file to be used. The project files rooted
2173 -- at the main project file will be parsed before the invocation of the
2174 -- compiler. The source and object directories to be searched will be
2175 -- communicated to the compiler through logical names
2176 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2178 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2179 "-gnatS";
2180 -- /PRINT_STANDARD
2182 -- cause the compiler to output a representation of package Standard
2183 -- in a form very close to standard Ada. It is not quite possible to
2184 -- do this and remain entirely Standard (since new numeric base types
2185 -- cannot be created in standard Ada), but the output is easily
2186 -- readable to any Ada programmer, and is useful to determine the
2187 -- characteristics of target dependent types in package Standard.
2189 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2190 "-gnatr";
2192 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2193 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2195 -- Causes all restrictions to be treated as warnings (pragma Restriction
2196 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2197 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2199 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2200 "VERBOSE " &
2201 "-gnatv " &
2202 "BRIEF " &
2203 "-gnatb " &
2204 "FULL " &
2205 "-gnatf " &
2206 "IMMEDIATE " &
2207 "-gnatdO " &
2208 "DEFAULT " &
2209 "!-gnatb,!-gnatv";
2210 -- /NOREPORT_ERRORS (D)
2211 -- /REPORT_ERRORS[=(keyword[,...])]
2213 -- Change the way errors are reported. The following keywords are
2214 -- supported:
2216 -- VERBOSE (D) Verbose mode. Full error output with source lines
2217 -- to SYS$OUTPUT.
2219 -- BRIEF Generate the brief format error messages to
2220 -- SYS$OUTPUT as well as the verbose format message or
2221 -- full listing.
2223 -- FULL Normally, the compiler suppresses error messages that
2224 -- are likely to be redundant. This keyword causes all
2225 -- error messages to be generated. One particular effect
2226 -- is for the case of references to undefined variables.
2227 -- If a given variable is referenced several times, the
2228 -- normal format of messages produces one error. With
2229 -- FULL, each undefined reference produces a separate
2230 -- error message.
2232 -- IMMEDIATE Normally, the compiler saves up error messages and
2233 -- generates them at the end of compilation in proper
2234 -- sequence. This keyword causes error messages to be
2235 -- generated as soon as they are detected. The use of
2236 -- IMMEDIATE usually causes error messages to be
2237 -- generated out of sequence. Use it when the compiler
2238 -- blows up due to an internal error. In this case, the
2239 -- error messages may be lost. Sometimes blowups are
2240 -- the result of mishandled error messages, so you may
2241 -- want to run with this keyword to determine whether
2242 -- any error messages were generated.
2244 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2246 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2247 "!-gnatb,!-gnatv";
2248 -- NODOC (see /REPORT_ERRORS)
2250 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2251 "DEFAULT " &
2252 "-gnatR " &
2253 "NONE " &
2254 "-gnatR0 " &
2255 "ARRAYS " &
2256 "-gnatR1 " &
2257 "ARRAYS_FILE " &
2258 "-gnatR1s " &
2259 "OBJECTS " &
2260 "-gnatR2 " &
2261 "OBJECTS_FILE " &
2262 "-gnatR2s " &
2263 "SYMBOLIC " &
2264 "-gnatR3 " &
2265 "SYMBOLIC_FILE " &
2266 "-gnatR3s";
2267 -- /NOREPRESENTATION_INFO (D)
2268 -- /REPRESENTATION_INFO[=(keyword[,...])]
2270 -- This qualifier controls output from the compiler of a listing showing
2271 -- representation information for declared types and objects.
2273 -- ARRAYS (D) Size and alignment information is listed for
2274 -- declared array and record types.
2276 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2277 -- with the name 'file_rep' where 'file' is the name
2278 -- of the corresponding source file.
2280 -- NONE no information is output (equivalent to omitting
2281 -- the /REPRESENTATION_INFO qualifiers).
2283 -- OBJECTS Size and alignment information is listed for all
2284 -- declared types and objects.
2286 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2287 -- with the name 'file_rep' where 'file' is the name
2288 -- of the corresponding source file.
2290 -- SYMBOLIC Symbolic expression information for values that
2291 -- are computed at run time for variant records.
2293 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2294 -- with the name 'file_rep' where 'file' is the name
2295 -- of the corresponding source file.
2297 -- DEFAULT Equivalent to ARRAYS.
2299 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2300 "!-gnatR";
2301 -- NODOC (see /REPRESENTATION_INFO)
2303 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2304 "--RTS=|";
2305 -- /RUNTIME_SYSTEM=xxx
2307 -- Build against an alternate runtime system named xxx or RTS-xxx.
2309 S_GCC_SCO : aliased constant S := "/SCO_OUTPUT " &
2310 "-gnateS";
2311 -- /NOSCO_OUTPUT (D)
2312 -- /SCO_OUTPUT
2314 -- Controls the output of SCO (Source Coverage Obligation) information
2315 -- in the generated ALI file. This information is used by advanced source
2316 -- coverage tools. For a full description of the SCO format, see unit
2317 -- SCOs in the compiler sources (sco.ads/sco.adb).
2319 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2320 "-I*";
2321 -- /SEARCH=(directory[,...])
2323 -- When looking for source files also look in directories specified.
2325 S_GCC_Src_Info : aliased constant S := "/SRC_INFO=<" &
2326 "--source-info=>";
2327 -- /SRC_INFO=source-info-file
2329 -- Specify a source info file to be read or written by the Project
2330 -- Manager when project files are used.
2332 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2333 "ALL_BUILTIN " &
2334 "-gnatyy " &
2335 "0 " &
2336 "-gnaty0 " &
2337 "1 " &
2338 "-gnaty1 " &
2339 "2 " &
2340 "-gnaty2 " &
2341 "3 " &
2342 "-gnaty3 " &
2343 "4 " &
2344 "-gnaty4 " &
2345 "5 " &
2346 "-gnaty5 " &
2347 "6 " &
2348 "-gnaty6 " &
2349 "7 " &
2350 "-gnaty7 " &
2351 "8 " &
2352 "-gnaty8 " &
2353 "9 " &
2354 "-gnaty9 " &
2355 "ATTRIBUTE " &
2356 "-gnatya " &
2357 "NOATTRIBUTE " &
2358 "-gnaty-a " &
2359 "ARRAY_INDEXES " &
2360 "-gnatyA " &
2361 "NOARRAY_INDEXES " &
2362 "-gnaty-A " &
2363 "BLANKS " &
2364 "-gnatyb " &
2365 "NOBLANKS " &
2366 "-gnaty-b " &
2367 "BOOLEAN_OPERATORS " &
2368 "-gnatyB " &
2369 "NOBOOLEAN_OPERATORS " &
2370 "-gnaty-B " &
2371 "COMMENTS " &
2372 "-gnatyc " &
2373 "COMMENTS1 " &
2374 "-gnatyC " &
2375 "COMMENTS2 " &
2376 "-gnatyc " &
2377 "NOCOMMENTS " &
2378 "-gnaty-c " &
2379 "DOS_LINE_ENDINGS " &
2380 "-gnatyd " &
2381 "NODOS_LINE_ENDINGS " &
2382 "-gnaty-d " &
2383 "END " &
2384 "-gnatye " &
2385 "NOEND " &
2386 "-gnaty-e " &
2387 "VTABS " &
2388 "-gnatyf " &
2389 "NOVTABS " &
2390 "-gnaty-f " &
2391 "GNAT " &
2392 "-gnatyg " &
2393 "HTABS " &
2394 "-gnatyh " &
2395 "NOHTABS " &
2396 "-gnaty-h " &
2397 "IF_THEN " &
2398 "-gnatyi " &
2399 "NOIF_THEN " &
2400 "-gnaty-i " &
2401 "KEYWORD " &
2402 "-gnatyk " &
2403 "NOKEYWORD " &
2404 "-gnaty-k " &
2405 "LAYOUT " &
2406 "-gnatyl " &
2407 "NOLAYOUT " &
2408 "-gnaty-l " &
2409 "LINE_LENGTH " &
2410 "-gnatym " &
2411 "NOLINE_LENGTH " &
2412 "-gnaty-m " &
2413 "MODE_IN " &
2414 "-gnatyI " &
2415 "NOMODE_IN " &
2416 "-gnaty-I " &
2417 "NONE " &
2418 "-gnatyN " &
2419 "STANDARD_CASING " &
2420 "-gnatyn " &
2421 "NOSTANDARD_CASING " &
2422 "-gnaty-n " &
2423 "ORDERED_SUBPROGRAMS " &
2424 "-gnatyo " &
2425 "NOORDERED_SUBPROGRAMS " &
2426 "-gnaty-o " &
2427 "OVERRIDING_INDICATORS " &
2428 "-gnatyO " &
2429 "NOOVERRIDING_INDICATORS " &
2430 "-gnaty-O " &
2431 "PRAGMA " &
2432 "-gnatyp " &
2433 "NOPRAGMA " &
2434 "-gnaty-p " &
2435 "REFERENCES " &
2436 "-gnatyr " &
2437 "NOREFERENCES " &
2438 "-gnaty-r " &
2439 "SPECS " &
2440 "-gnatys " &
2441 "NOSPECS " &
2442 "-gnaty-s " &
2443 "STATEMENTS_AFTER_THEN_ELSE " &
2444 "-gnatyS " &
2445 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2446 "-gnaty-S " &
2447 "TOKEN " &
2448 "-gnatyt " &
2449 "NOTOKEN " &
2450 "-gnaty-t " &
2451 "UNNECESSARY_BLANK_LINES " &
2452 "-gnatyu " &
2453 "NOUNNECESSARY_BLANK_LINES " &
2454 "-gnaty-u " &
2455 "XTRA_PARENS " &
2456 "-gnaty-x " &
2457 "NOXTRA_PARENS " &
2458 "-gnaty-x ";
2459 -- /NOSTYLE_CHECKS (D)
2460 -- /STYLE_CHECKS[=(keyword,[...])]
2462 -- Normally, GNAT permits any code layout consistent with the reference
2463 -- manual requirements. This qualifier imposes style checking on the
2464 -- input source code. The following keywords are supported:
2466 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2467 -- 3, ATTRIBUTE, BLANKS, COMMENTS2, END, VTABS,
2468 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2469 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2471 -- 1 .. 9 Specify indentation level from 1 to 9.
2472 -- The general style of required indentation is as
2473 -- specified by the examples in the Ada Reference
2474 -- Manual. Full line comments must be aligned with
2475 -- the -- starting on a column that is a multiple
2476 -- of the alignment level.
2478 -- ATTRIBUTE Check attribute casing.
2479 -- Attribute names, including the case of keywords
2480 -- such as digits used as attributes names,
2481 -- must be written in mixed case, that is,
2482 -- the initial letter and any letter following an
2483 -- underscore must be uppercase.
2484 -- All other letters must be lowercase.
2486 -- ARRAY_INDEXES Check indexes of array attributes.
2487 -- For array attributes First, Last, Range,
2488 -- or Length, the index number must be omitted
2489 -- for one-dimensional arrays and is required
2490 -- for multi-dimensional arrays.
2492 -- BLANKS Blanks not allowed at statement end.
2493 -- Trailing blanks are not allowed at the end of
2494 -- statements. The purpose of this rule, together
2495 -- with option HTABS (no horizontal tabs), is to
2496 -- enforce a canonical format for the use of
2497 -- blanks to separate source tokens.
2499 -- COMMENTS2 Check comments.
2500 -- COMMENTS Comments must meet the following set of rules:
2502 -- * The "--" that starts the column must either
2503 -- start in column one, or else at least one
2504 -- blank must precede this sequence.
2506 -- * Comments that follow other tokens on a line
2507 -- must have at least one blank following the
2508 -- "--" at the start of the comment.
2510 -- * Full line comments must have two blanks
2511 -- following the "--" that starts the comment,
2512 -- with the following exceptions.
2514 -- * A line consisting only of the "--"
2515 -- characters, possibly preceded by blanks is
2516 -- permitted.
2518 -- * A comment starting with "--x" where x is
2519 -- a special character is permitted. This
2520 -- allows proper processing of the output
2521 -- generated by specialized tools including
2522 -- gnatprep (where --! is used) and the SPARK
2523 -- annotation language (where --# is used).
2524 -- For the purposes of this rule, a special
2525 -- character is defined as being in one of the
2526 -- ASCII ranges 16#21#..16#2F# or
2527 -- 16#3A#..16#3F#.
2529 -- * A line consisting entirely of minus signs,
2530 -- possibly preceded by blanks, is permitted.
2531 -- This allows the construction of box
2532 -- comments where lines of minus signs are
2533 -- used to form the top and bottom of the box.
2535 -- * If a comment starts and ends with "--" is
2536 -- permitted as long as at least one blank
2537 -- follows the initial "--". Together with
2538 -- the preceding rule, this allows the
2539 -- construction of box comments, as shown in
2540 -- the following example:
2542 -- ---------------------------
2543 -- -- This is a box comment --
2544 -- ---------------------------
2546 -- COMMENTS1 Check comments (single space).
2547 -- Like COMMENTS2, but the -- of a comment only
2548 -- requires one or more spaces following, instead
2549 -- of two or more spaces.
2551 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2552 -- All lines must be terminated by a single
2553 -- ASCII.LF character. In particular the DOS line
2554 -- terminator sequence CR / LF is not allowed).
2556 -- END Check end/exit labels.
2557 -- Optional labels on end statements ending
2558 -- subprograms and on exit statements exiting
2559 -- named loops, are required to be present.
2561 -- GNAT Enforces a set of style conventions that
2562 -- match the style used in the GNAT source code.
2563 -- This maybe useful when developing code that
2564 -- is eventually intended to be incorporated into
2565 -- GNAT. For further details, see GNAT sources.
2567 -- HTABS No horizontal tabs.
2568 -- Horizontal tab characters are not permitted in
2569 -- the source text. Together with the BLANKS
2570 -- (no blanks at end of line) option, this
2571 -- enforces a canonical form for the use of blanks
2572 -- to separate source tokens.
2574 -- IF_THEN Check if-then layout.
2575 -- The keyword then must appear either on the
2576 -- same line as the corresponding if, or on a line
2577 -- on its own, lined up under the if with at least
2578 -- one non-blank line in between containing all or
2579 -- part of the condition to be tested.
2581 -- KEYWORD Check keyword casing.
2582 -- All keywords must be in lower case (with the
2583 -- exception of keywords such as digits used as
2584 -- attribute names to which this check does not
2585 -- apply).
2587 -- LAYOUT Check layout.
2588 -- Layout of statement and declaration constructs
2589 -- must follow the recommendations in the Ada
2590 -- Reference Manual, as indicated by the form of
2591 -- the syntax rules. For example an else keyword
2592 -- must be lined up with the corresponding if
2593 -- keyword.
2595 -- There are two respects in which the style rule
2596 -- enforced by this check option are more liberal
2597 -- than those in the Ada Reference Manual.
2598 -- First in the case of record declarations,
2599 -- it is permissible to put the record keyword on
2600 -- the same line as the type keyword, and then
2601 -- the end in end record must line up under type.
2602 -- For example, either of the following two
2603 -- layouts is acceptable:
2605 -- type q is record
2606 -- a : integer;
2607 -- b : integer;
2608 -- end record;
2610 -- type q is
2611 -- record
2612 -- a : integer;
2613 -- b : integer;
2614 -- end record;
2616 -- Second, in the case of a block statement,
2617 -- a permitted alternative is to put the block
2618 -- label on the same line as the declare or begin
2619 -- keyword, and then line the end keyword up under
2620 -- the block label. For example both the following
2621 -- are permitted:
2625 -- Block : declare
2626 -- A : Integer := 3;
2627 -- begin
2628 -- Proc (A, A);
2629 -- end Block;
2631 -- Block :
2632 -- declare
2633 -- A : Integer := 3;
2634 -- begin
2635 -- Proc (A, A);
2636 -- end Block;
2638 -- The same alternative format is allowed for
2639 -- loops. For example, both of the following are
2640 -- permitted:
2644 -- Clear : while J < 10 loop
2645 -- A (J) := 0;
2646 -- end loop Clear;
2648 -- Clear :
2649 -- while J < 10 loop
2650 -- A (J) := 0;
2651 -- end loop Clear;
2655 -- LINE_LENGTH Check maximum line length.
2656 -- The length of source lines must not exceed 79
2657 -- characters, including any trailing blanks
2658 -- The value of 79 allows convenient display on
2659 -- an 80 character wide device or window, allowing
2660 -- for possible special treatment of 80 character
2661 -- lines.
2663 -- NONE Clear any previously set style checks.
2665 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2666 -- All subprogram bodies in a given scope (e.g.
2667 -- a package body) must be in alphabetical order.
2668 -- The ordering rule uses normal Ada rules for
2669 -- comparing strings, ignoring casing of letters,
2670 -- except that if there is a trailing numeric
2671 -- suffix, then the value of this suffix is used
2672 -- in the ordering (e.g. Junk2 comes before
2673 -- Junk10).
2675 -- OVERRIDING_INDICATORS Check that overriding subprograms are
2676 -- explicitly marked as such. The declaration of
2677 -- a primitive operation of a type extension that
2678 -- overrides an inherited operation must carry
2679 -- an overriding indicator.
2681 -- PRAGMA Check pragma casing.
2682 -- Pragma names must be written in mixed case,
2683 -- that is, the initial letter and any letter
2684 -- following an underscore must be uppercase.
2685 -- All other letters must be lowercase.
2687 -- REFERENCES Check references.
2688 -- All identifier references must be cased in the
2689 -- same way as the corresponding declaration.
2690 -- No specific casing style is imposed on
2691 -- identifiers. The only requirement is for
2692 -- consistency of references with declarations.
2694 -- SPECS Check separate specs.
2695 -- Separate declarations ("specs") are required
2696 -- for subprograms (a body is not allowed to serve
2697 -- as its own declaration). The only exception is
2698 -- that parameterless library level procedures are
2699 -- not required to have a separate declaration.
2700 -- This exception covers the most frequent form of
2701 -- main program procedures.
2703 -- STANDARD_CASING Check casing of entities in Standard.
2704 -- Any identifier from Standard must be cased to
2705 -- match the presentation in the Ada Reference
2706 -- Manual (for example, Integer and ASCII.NUL).
2708 -- TOKEN Check token spacing.
2709 -- The following token spacing rules are enforced:
2711 -- * The keywords abs and not must be followed
2712 -- by a space.
2714 -- * The token => must be surrounded by spaces.
2716 -- * The token <> must be preceded by a space or
2717 -- a left parenthesis.
2719 -- * Binary operators other than ** must be
2720 -- surrounded by spaces. There is no
2721 -- restriction on the layout of the ** binary
2722 -- operator.
2724 -- * Colon must be surrounded by spaces.
2726 -- * Colon-equal (assignment) must be surrounded
2727 -- by spaces.
2729 -- * Comma must be the first non-blank character
2730 -- on the line, or be immediately preceded by
2731 -- a non-blank character, and must be followed
2732 -- by a space.
2734 -- * If the token preceding a left paren ends
2735 -- with a letter or digit, then a space must
2736 -- separate the two tokens.
2738 -- * A right parenthesis must either be the
2739 -- first non-blank character on a line, or it
2740 -- must be preceded by a non-blank character.
2742 -- * A semicolon must not be preceded by
2743 -- a space, and must not be followed by
2744 -- a non-blank character.
2746 -- * A unary plus or minus may not be followed
2747 -- by a space.
2749 -- * A vertical bar must be surrounded by
2750 -- spaces.
2752 -- In the above rules, appearing in column one is
2753 -- always permitted, that is, counts as meeting
2754 -- either a requirement for a required preceding
2755 -- space, or as meeting a requirement for no
2756 -- preceding space.
2758 -- Appearing at the end of a line is also always
2759 -- permitted, that is, counts as meeting either
2760 -- a requirement for a following space,
2761 -- or as meeting a requirement for no following
2762 -- space.
2764 -- UNNECESSARY_BLANK_LINES
2765 -- Check for unnecessary blank lines.
2766 -- A blank line is considered unnecessary if it
2767 -- appears at the end of the file, or if more
2768 -- than one blank line occurs in sequence.
2770 -- VTABS No form feeds or vertical tabs.
2771 -- Form feeds or vertical tab characters are not
2772 -- permitted in the source text.
2774 -- XTRA_PARENS Check for the use of an unnecessary extra
2775 -- level of parentheses (C - style) around
2776 -- conditions in if statements, while statements
2777 -- and exit statements.
2779 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2780 "!-gnatg,!-gnaty*";
2781 -- NODOC (see /STYLE_CHECKS)
2783 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2784 "--subdirs=>";
2785 -- /SUBDIRS=dir
2787 -- The actual directories (object, exec, library, ...) are subdirectories
2788 -- of the directory specified in the project file. If the subdirectory
2789 -- does not exist, it is created automatically.
2791 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2792 "-gnateD" & '"';
2793 -- /SYMBOL_PREPROCESSING="symbol=value"
2795 -- Define or redefine a preprocessing symbol, associated with value.
2796 -- If "=value" is not specified, then the value of the symbol is True.
2797 -- A symbol is an identifier, following normal Ada (case-insensitive)
2798 -- rules for its syntax, and value is any sequence (including an empty
2799 -- sequence) of characters from the set (letters, digits, period,
2800 -- underline). Ada reserved words may be used as symbols, with the
2801 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2803 -- A symbol declared with this qualifier on the command line replaces
2804 -- a symbol with the same name either in a definition file or specified
2805 -- with a switch -D in the preprocessor data file.
2807 -- This qualifier is similar to qualifier /ASSOCIATE of
2808 -- GNAT PREPROCESSING.
2810 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2811 "-gnats";
2812 -- /NOSYNTAX_ONLY (D)
2813 -- /SYNTAX_ONLY
2815 -- Run GNAT in syntax checking only mode. You can check a series of
2816 -- files in a single command, and can use wild cards to specify such a
2817 -- group of files.
2819 -- You may use other qualifiers in conjunction with this qualifier. In
2820 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2821 -- format of any generated error messages.
2823 -- The output is simply the error messages, if any. No object file or ALI
2824 -- file is generated by a syntax-only compilation. Also, no units other
2825 -- than the one specified are accessed. For example, if a unit "X" with's
2826 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2827 -- access the source file containing unit "Y".
2829 -- Normally, GNAT allows only a single unit in a source file. However,
2830 -- this restriction does not apply in syntax-check-only mode, and it is
2831 -- possible to check a file containing multiple compilation units
2832 -- concatenated together. This is primarily used by the GNAT CHOP
2833 -- command.
2835 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2836 "-gnatT#";
2837 -- /TABLE_MULTIPLIER=nnn
2839 -- All compiler tables start at nnn times usual starting size.
2841 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2842 "-gnatdc";
2843 -- /TRACE_UNITS
2844 -- /NOTRACE_UNITS
2846 -- This switch that does for the frontend what /VERBOSE does for the
2847 -- backend. The system prints the name of each unit, either a compilation
2848 -- unit or nested unit, as it is being analyzed.
2850 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2851 "-gnatt";
2852 -- /TREE_OUTPUT
2853 -- /NOTREE_OUTPUT
2855 -- Cause GNAT to write the internal tree for a unit to a file (with the
2856 -- filetype ATB for a body or ATS for a spec). This is not normally
2857 -- required, but is used by separate analysis tools. Typically these
2858 -- tools do the necessary compilations automatically, so you should never
2859 -- have to specify this switch in normal operation.
2861 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2862 "-gnatq";
2863 -- /TRY_SEMANTICS
2864 -- /NOTRY_SEMANTICS
2866 -- In normal operation mode the compiler first parses the program and
2867 -- determines if there are any syntax errors. If there are, appropriate
2868 -- error messages are generated and compilation is immediately
2869 -- terminated. This qualifier tells GNAT to continue with semantic
2870 -- analysis even if syntax errors have been found. This may enable the
2871 -- detection of more errors in a single run. On the other hand, the
2872 -- semantic analyzer is more likely to encounter some internal fatal
2873 -- error when given a syntactically invalid tree.
2875 S_GCC_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
2876 "--unchecked-shared-lib-imports";
2877 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
2878 -- /UNCHECKED_SHARED_LIB_IMPORTS
2880 -- Allow shared library projects to import static library projects
2882 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2883 "-gnatu";
2884 -- /NOUNITS_LIST (D)
2885 -- /UNITS_LIST
2887 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2888 -- listing includes all units on which the unit being compiled depends
2889 -- either directly or indirectly.
2891 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2892 "-gnatU";
2893 -- /NOUNIQUE_ERROR_TAG (D)
2894 -- /UNIQUE_ERROR_TAG
2896 -- Tag compiler error messages with the string "error: ".
2898 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2899 "-gnatF";
2900 -- /NOUPPERCASE_EXTERNALS (D)
2901 -- /UPPERCASE_EXTERNALS
2903 -- Fold default and explicit external names in pragmas Import and Export
2904 -- to uppercase for compatibility with the default behavior of DEC C.
2906 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2907 "DEFAULT " &
2908 "-gnatVd " &
2909 "NODEFAULT " &
2910 "-gnatVD " &
2911 "COPIES " &
2912 "-gnatVc " &
2913 "NOCOPIES " &
2914 "-gnatVC " &
2915 "COMPONENTS " &
2916 "-gnatVe " &
2917 "NOCOMPONENTS " &
2918 "-gnatVE " &
2919 "FLOATS " &
2920 "-gnatVf " &
2921 "NOFLOATS " &
2922 "-gnatVF " &
2923 "IN_PARAMS " &
2924 "-gnatVi " &
2925 "NOIN_PARAMS " &
2926 "-gnatVI " &
2927 "MOD_PARAMS " &
2928 "-gnatVm " &
2929 "NOMOD_PARAMS " &
2930 "-gnatVM " &
2931 "OPERANDS " &
2932 "-gnatVo " &
2933 "NOOPERANDS " &
2934 "-gnatVO " &
2935 "PARAMETERS " &
2936 "-gnatVp " &
2937 "NOPARAMETERS " &
2938 "-gnatVP " &
2939 "RETURNS " &
2940 "-gnatVr " &
2941 "NORETURNS " &
2942 "-gnatVR " &
2943 "SUBSCRIPTS " &
2944 "-gnatVs " &
2945 "NOSUBSCRIPTS " &
2946 "-gnatVS " &
2947 "TESTS " &
2948 "-gnatVt " &
2949 "NOTESTS " &
2950 "-gnatVT " &
2951 "ALL " &
2952 "-gnatVa " &
2953 "NONE " &
2954 "-gnatVn";
2955 -- /VALIDITY_CHECKING[=(keyword,[...])]
2957 -- Control level of validity checking.
2959 -- DEFAULT (D) In this mode checks are made to prevent
2960 -- erroneous behavior in accordance with the RM.
2961 -- Notably extra checks may be needed for case
2962 -- statements and subscripted array assignments.
2964 -- NONE No special checks for invalid values are
2965 -- performed. This means that references to
2966 -- uninitialized variables can cause erroneous
2967 -- behavior from constructs like case statements
2968 -- and subscripted array assignments. In this
2969 -- mode, invalid values can lead to erroneous
2970 -- behavior.
2972 -- FULL Every assignment is checked for validity, so
2973 -- that it is impossible to assign invalid values.
2974 -- The RM specifically allows such assignments,
2975 -- but in this mode, invalid values can never be
2976 -- assigned, and an attempt to perform such an
2977 -- assignment immediately raises Constraint_Error.
2978 -- This behavior is allowed (but not required) by
2979 -- the RM. This mode is intended as a debugging aid,
2980 -- and may be useful in helping to track down
2981 -- uninitialized variables. It may be useful to
2982 -- use this in conjunction with the Normalize_Scalars
2983 -- pragma which attempts to initialize with invalid
2984 -- values where possible.
2986 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2987 "-v";
2988 -- /VERBOSE
2989 -- /NOVERBOSE
2991 -- Show commands generated by the GCC driver. Normally used only for
2992 -- debugging purposes or if you need to be sure what version of the
2993 -- compiler you are executing.
2995 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2996 "-S,-verbose_asm,!-c";
2997 -- /NOASM (D)
2998 -- /ASM
3000 -- Use to cause the assembler source file to be generated, using S as the
3001 -- filetype, instead of the object file. This may be useful if you need
3002 -- to examine the generated assembly code.
3004 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
3005 "DEFAULT " &
3006 "!-gnatws,!-gnatwe " &
3007 "ALL " &
3008 "-gnatwa " &
3009 "EVERY " &
3010 "-gnatw.e " &
3011 "OPTIONAL " &
3012 "-gnatwa " &
3013 "NOOPTIONAL " &
3014 "-gnatwA " &
3015 "NOALL " &
3016 "-gnatwA " &
3017 "ALL_GCC " &
3018 "-Wall " &
3019 "FAILING_ASSERTIONS " &
3020 "-gnatw.a " &
3021 "NO_FAILING_ASSERTIONS " &
3022 "-gnatw.A " &
3023 "BAD_FIXED_VALUES " &
3024 "-gnatwb " &
3025 "NO_BAD_FIXED_VALUES " &
3026 "-gnatwB " &
3027 "BIASED_REPRESENTATION " &
3028 "-gnatw.b " &
3029 "NO_BIASED_REPRESENTATION " &
3030 "-gnatw.B " &
3031 "CONDITIONALS " &
3032 "-gnatwc " &
3033 "NOCONDITIONALS " &
3034 "-gnatwC " &
3035 "MISSING_COMPONENT_CLAUSES " &
3036 "-gnatw.c " &
3037 "NOMISSING_COMPONENT_CLAUSES " &
3038 "-gnatw.C " &
3039 "IMPLICIT_DEREFERENCE " &
3040 "-gnatwd " &
3041 "NO_IMPLICIT_DEREFERENCE " &
3042 "-gnatwD " &
3043 "ERRORS " &
3044 "-gnatwe " &
3045 "UNREFERENCED_FORMALS " &
3046 "-gnatwf " &
3047 "NOUNREFERENCED_FORMALS " &
3048 "-gnatwF " &
3049 "UNRECOGNIZED_PRAGMAS " &
3050 "-gnatwg " &
3051 "NOUNRECOGNIZED_PRAGMAS " &
3052 "-gnatwG " &
3053 "HIDING " &
3054 "-gnatwh " &
3055 "NOHIDING " &
3056 "-gnatwH " &
3057 "AVOIDGAPS " &
3058 "-gnatw.h " &
3059 "NOAVOIDGAPS " &
3060 "-gnatw.H " &
3061 "IMPLEMENTATION " &
3062 "-gnatwi " &
3063 "NOIMPLEMENTATION " &
3064 "-gnatwI " &
3065 "OBSOLESCENT " &
3066 "-gnatwj " &
3067 "NOOBSOLESCENT " &
3068 "-gnatwJ " &
3069 "CONSTANT_VARIABLES " &
3070 "-gnatwk " &
3071 "NOCONSTANT_VARIABLES " &
3072 "-gnatwK " &
3073 "ELABORATION " &
3074 "-gnatwl " &
3075 "NOELABORATION " &
3076 "-gnatwL " &
3077 "MODIFIED_UNREF " &
3078 "-gnatwm " &
3079 "NOMODIFIED_UNREF " &
3080 "-gnatwM " &
3081 "SUSPICIOUS_MODULUS " &
3082 "-gnatw.m " &
3083 "NOSUSPICIOUS_MODULUS " &
3084 "-gnatw.M " &
3085 "NORMAL " &
3086 "-gnatwn " &
3087 "OVERLAYS " &
3088 "-gnatwo " &
3089 "NOOVERLAYS " &
3090 "-gnatwO " &
3091 "OUT_PARAM_UNREF " &
3092 "-gnatw.o " &
3093 "NOOUT_PARAM_UNREF " &
3094 "-gnatw.O " &
3095 "INEFFECTIVE_INLINE " &
3096 "-gnatwp " &
3097 "NOINEFFECTIVE_INLINE " &
3098 "-gnatwP " &
3099 "MISSING_PARENS " &
3100 "-gnatwq " &
3101 "PARAMETER_ORDER " &
3102 "-gnatw.p " &
3103 "NOPARAMETER_ORDER " &
3104 "-gnatw.P " &
3105 "NOMISSING_PARENS " &
3106 "-gnatwQ " &
3107 "REDUNDANT " &
3108 "-gnatwr " &
3109 "NOREDUNDANT " &
3110 "-gnatwR " &
3111 "OBJECT_RENAMES " &
3112 "-gnatw.r " &
3113 "NOOBJECT_RENAMES " &
3114 "-gnatw.R " &
3115 "SUPPRESS " &
3116 "-gnatws " &
3117 "OVERRIDING_SIZE " &
3118 "-gnatw.s " &
3119 "NOOVERRIDING_SIZE " &
3120 "-gnatw.S " &
3121 "DELETED_CODE " &
3122 "-gnatwt " &
3123 "NODELETED_CODE " &
3124 "-gnatwT " &
3125 "UNINITIALIZED " &
3126 "-Wuninitialized " &
3127 "UNUSED " &
3128 "-gnatwu " &
3129 "NOUNUSED " &
3130 "-gnatwU " &
3131 "UNORDERED_ENUMERATIONS " &
3132 "-gnatw.u " &
3133 "NOUNORDERED_ENUMERATIONS " &
3134 "-gnatw.U " &
3135 "VARIABLES_UNINITIALIZED " &
3136 "-gnatwv " &
3137 "NOVARIABLES_UNINITIALIZED " &
3138 "-gnatwV " &
3139 "REVERSE_BIT_ORDER " &
3140 "-gnatw.v " &
3141 "NOREVERSE_BIT_ORDER " &
3142 "-gnatw.V " &
3143 "LOWBOUND_ASSUMED " &
3144 "-gnatww " &
3145 "NOLOWBOUND_ASSUMED " &
3146 "-gnatwW " &
3147 "WARNINGS_OFF_PRAGMAS " &
3148 "-gnatw.w " &
3149 "NO_WARNINGS_OFF_PRAGMAS " &
3150 "-gnatw.W " &
3151 "IMPORT_EXPORT_PRAGMAS " &
3152 "-gnatwx " &
3153 "NOIMPORT_EXPORT_PRAGMAS " &
3154 "-gnatwX " &
3155 "LOCAL_RAISE_HANDLING " &
3156 "-gnatw.x " &
3157 "NOLOCAL_RAISE_HANDLING " &
3158 "-gnatw.X " &
3159 "ADA_2005_COMPATIBILITY " &
3160 "-gnatwy " &
3161 "NOADA_2005_COMPATIBILITY " &
3162 "-gnatwY " &
3163 "UNCHECKED_CONVERSIONS " &
3164 "-gnatwz " &
3165 "NOUNCHECKED_CONVERSIONS " &
3166 "-gnatwZ";
3167 -- /NOWARNINGS
3169 -- Suppress the output of all warning messages from the GNAT front end.
3170 -- Note that it does not suppress warnings from the gcc back end.
3172 -- /WARNINGS[=(keyword[,...])]
3174 -- In addition to error messages, corresponding to illegalities as
3175 -- defined in the reference manual, the compiler detects two kinds of
3176 -- warning situations. First, the compiler considers some constructs
3177 -- suspicious and generates a warning message to alert you to a possible
3178 -- error. Second, if the compiler detects a situation that is sure to
3179 -- raise an exception at runtime, it generates a warning message.
3181 -- You may specify the following keywords to change this behavior:
3183 -- DEFAULT (D) The default behavior above.
3185 -- ALL Activate all optional warnings.
3186 -- Activates most optional warning messages,
3187 -- see remaining list in this section for
3188 -- details on optional warning messages that
3189 -- can be individually controlled.
3190 -- The warnings that are not turned on by
3191 -- this option are BIASED_ROUNDING,
3192 -- IMPLICIT_DEREFERENCE, HIDING and
3193 -- ELABORATION. All other optional Ada
3194 -- warnings are turned on.
3196 -- EVERY Activate every optional warning.
3197 -- Activates all optional warnings, including
3198 -- those listed above as exceptions for ALL.
3200 -- NOALL Suppress all optional errors.
3201 -- Suppresses all optional warning messages
3202 -- that can be activated by option ALL.
3204 -- ALL_GCC Request additional messages from the GCC
3205 -- backend. Most of these are not relevant
3206 -- to Ada.
3208 -- CONDITIONALS Activate warnings for conditional
3209 -- Expressions used in tests that are known
3210 -- to be True or False at compile time. The
3211 -- default is that such warnings are not
3212 -- generated.
3214 -- NOCONDITIONALS Suppress warnings for conditional
3215 -- expressions used in tests that are known
3216 -- to be True or False at compile time.
3218 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
3219 -- The use of a prefix of an access type in an
3220 -- indexed component, slice, or selected component
3221 -- without an explicit .all will generate
3222 -- a warning. With this warning enabled, access
3223 -- checks occur only at points where an explicit
3224 -- .all appears in the source code (assuming no
3225 -- warnings are generated as a result of this
3226 -- option). The default is that such warnings are
3227 -- not generated. Note that /WARNINGS=ALL does not
3228 -- affect the setting of this warning option.
3230 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
3231 -- in indexed components, slices, and selected
3232 -- components.
3234 -- ELABORATION Activate warnings on missing pragma
3235 -- Elaborate_All statements. The default is
3236 -- that such warnings are not generated.
3238 -- NOELABORATION Suppress warnings on missing pragma
3239 -- Elaborate_All statements.
3241 -- ERRORS Warning messages are to be treated as errors.
3242 -- The warning string still appears, but the
3243 -- warning messages are counted as errors, and
3244 -- prevent the generation of an object file.
3246 -- HIDING Activate warnings on hiding declarations.
3247 -- A declaration is considered hiding if it is
3248 -- for a non-overloadable entity, and it declares
3249 -- an entity with the same name as some other
3250 -- entity that is directly or use-visible. The
3251 -- default is that such warnings are not
3252 -- generated.
3254 -- NOHIDING Suppress warnings on hiding declarations.
3256 -- IMPLEMENTATION Activate warnings for a with of an internal
3257 -- GNAT implementation unit, defined as any unit
3258 -- from the Ada, Interfaces, GNAT, DEC or
3259 -- System hierarchies that is not documented in
3260 -- either the Ada Reference Manual or the GNAT
3261 -- Programmer's Reference Manual. Such units are
3262 -- intended only for internal implementation
3263 -- purposes and should not be with'ed by user
3264 -- programs. The default is that such warnings
3265 -- are generated.
3267 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3268 -- GNAT implementation unit.
3270 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3271 -- Activates warnings for failure of front end
3272 -- inlining (activated by /INLINE=FULL) to inline
3273 -- a particular call. There are many reasons for
3274 -- not being able to inline a call, including most
3275 -- commonly that the call is too complex to
3276 -- inline. This warning can also be turned on
3277 -- using /INLINE=FULL.
3279 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3280 -- Suppresses warnings on ineffective pragma
3281 -- Inlines. If the inlining mechanism cannot
3282 -- inline a call, it will simply ignore the
3283 -- request silently.
3285 -- MISSING_COMPONENT_CLAUSES
3286 -- Activate warnings for cases when there are
3287 -- component clauses for a record type, but not
3288 -- for every component of the record.
3290 -- NOMISSING_COMPONENT_CLAUSES
3291 -- Suppress warnings for cases when there are
3292 -- missing component clauses for a record type.
3294 -- MISSING_PARENS
3295 -- Activate warnings for cases where parentheses
3296 -- are not used and the result is potential
3297 -- ambiguity from a reader's point of view.
3298 -- For example (not a > b) when a and b are
3299 -- modular means (not (a) > b) and very likely
3300 -- the programmer intended (not (a > b)).
3302 -- NOMISSING_PARENS
3303 -- Suppress warnings for cases where parentheses
3304 -- are not used and the result is potential
3305 -- ambiguity from a reader's point of view.
3307 -- MODIFIED_UNREF Activates warnings for variables that are
3308 -- assigned (using an initialization value or with
3309 -- one or more assignment statements) but whose
3310 -- value is never read. The warning is suppressed
3311 -- for volatile variables and also for variables
3312 -- that are renamings of other variables or for
3313 -- which an address clause is given. This warning
3314 -- can also be turned on using /WARNINGS/OPTIONAL.
3316 -- NOMODIFIED_UNREF Disables warnings for variables that are
3317 -- assigned or initialized, but never read.
3319 -- NORMAL Sets normal warning mode, in which enabled
3320 -- warnings are issued and treated as warnings
3321 -- rather than errors. This is the default mode.
3322 -- It can be used to cancel the effect of an
3323 -- explicit /WARNINGS=SUPPRESS or
3324 -- /WARNINGS=ERRORS. It also cancels the effect
3325 -- of the implicit /WARNINGS=ERRORS that is
3326 -- activated by the use of /STYLE=GNAT.
3328 -- OBSOLESCENT Activates warnings for calls to subprograms
3329 -- marked with pragma Obsolescent and for use of
3330 -- features in Annex J of the Ada Reference
3331 -- Manual. In the case of Annex J, not all
3332 -- features are flagged. In particular use of the
3333 -- renamed packages (like Text_IO), use of package
3334 -- ASCII and use of the attribute 'Constrained are
3335 -- not flagged, since these are very common and
3336 -- would generate many annoying positive warnings.
3337 -- The default is that such warnings are not
3338 -- generated.
3340 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3341 -- features.
3343 -- OBJECT_RENAME Activate warnings for non limited objects
3344 -- renaming parameterless functions.
3346 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3347 -- renaming parameterless functions.
3349 -- OPTIONAL Equivalent to ALL.
3351 -- NOOPTIONAL Equivalent to NOALL.
3353 -- OVERLAYS Activate warnings for possibly unintended
3354 -- initialization effects of defining address
3355 -- clauses that cause one variable to overlap
3356 -- another. The default is that such warnings
3357 -- are generated.
3359 -- NOOVERLAYS Suppress warnings on possibly unintended
3360 -- initialization effects of defining address
3361 -- clauses that cause one variable to overlap
3362 -- another.
3364 -- REDUNDANT Activate warnings for redundant constructs.
3365 -- In particular assignments of a variable to
3366 -- itself, and a type conversion that converts
3367 -- an object to its own type. The default
3368 -- is that such warnings are not generated.
3370 -- NOREDUNDANT Suppress warnings for redundant constructs.
3372 -- SUPPRESS Completely suppress the output of all warning
3373 -- messages. Same as /NOWARNINGS.
3375 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3376 -- Causes warnings to be generated for
3377 -- unchecked conversions when the two types are
3378 -- known at compile time to have different sizes.
3379 -- The default is that such warnings are
3380 -- generated.
3382 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3384 -- UNINITIALIZED Generate warnings for uninitialized variables.
3385 -- This is a GCC option, not an Ada option.
3386 -- You must also specify the /OPTIMIZE qualifier
3387 -- with a value other than NONE (in other words,
3388 -- this keyword works only if optimization is
3389 -- turned on).
3391 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3392 -- Causes a warning to be generated if a formal
3393 -- parameter is not referenced in the body of
3394 -- the subprogram. This warning can also be turned
3395 -- on using option ALL or UNUSED.
3397 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3398 -- Suppresses warnings for unreferenced formal
3399 -- parameters. Note that the combination UNUSED
3400 -- followed by NOUNREFERENCED_FORMALS has the
3401 -- effect of warning on unreferenced entities
3402 -- other than subprogram formals.
3404 -- UNUSED Activates warnings to be generated for entities
3405 -- that are defined but not referenced, and for
3406 -- units that are with'ed and not referenced. In
3407 -- the case of packages, a warning is also
3408 -- generated if no entities in the package are
3409 -- referenced. This means that if the package
3410 -- is referenced but the only references are in
3411 -- use clauses or renames declarations, a warning
3412 -- is still generated. A warning is also generated
3413 -- for a generic package that is with'ed but never
3414 -- instantiated. In the case where a package or
3415 -- subprogram body is compiled, and there is a
3416 -- with on the corresponding spec that is only
3417 -- referenced in the body, a warning is also
3418 -- generated, noting that the with can be moved
3419 -- to the body. The default is that such warnings
3420 -- are not generated.
3422 -- NOUNUSED Suppress warnings for unused entities and
3423 -- packages.
3425 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3426 -- Causes warnings to be generated when a variable
3427 -- is accessed which may not be properly
3428 -- uninitialized.
3429 -- The default is that such warnings are
3430 -- generated.
3432 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
3433 -- variables.
3435 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3436 "-gnatws";
3437 -- NODOC (see /WARNINGS)
3439 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3440 "-w";
3441 -- /NO_BACK_END_WARNINGS
3443 -- Inhibit all warning messages of the GCC back-end.
3445 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3446 "BRACKETS " &
3447 "-gnatWb " &
3448 "HEX " &
3449 "-gnatWh " &
3450 "UPPER " &
3451 "-gnatWu " &
3452 "SHIFT_JIS " &
3453 "-gnatWs " &
3454 "UTF8 " &
3455 "-gnatW8 " &
3456 "EUC " &
3457 "-gnatWe";
3458 -- /NOWIDE_CHARACTER_ENCODING (D)
3459 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3461 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3462 -- is one of the following:
3464 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3465 -- are four hexadecimal digits representing the coding
3466 -- ('Pos value) of the character in type
3467 -- Wide_Character. The hexadecimal digits may use upper
3468 -- or lower case letters.
3470 -- This notation can also be used for upper half
3471 -- Character values using the format ["xx"] where XX is
3472 -- two hexadecimal digits representing the coding ('Pos
3473 -- value) of the character in type Character (or
3474 -- Wide_Character). The hexadecimal digits may use upper
3475 -- of lower case.
3477 -- NONE No wide characters are allowed. Same
3478 -- as /NOWIDE_CHARACTER_ENCODING.
3480 -- HEX In this encoding, a wide character is represented by
3481 -- the following five character sequence: ESC a b c d
3482 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3483 -- characters (using uppercase letters) of the wide
3484 -- character code. For example, ESC A345 is used to
3485 -- represent the wide character with code 16#A345#. This
3486 -- scheme is compatible with use of the full
3487 -- Wide_Character set.
3489 -- UPPER The wide character with encoding 16#abcd# where the
3490 -- upper bit is on (in other words, "a" is in the range
3491 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3492 -- The second byte may never be a format control
3493 -- character, but is not required to be in the upper
3494 -- half. This method can be also used for shift-JIS or
3495 -- EUC, where the internal coding matches the external
3496 -- coding.
3498 -- SHIFT_JIS A wide character is represented by a two-character
3499 -- sequence, 16#ab# and 16#cd#, with the restrictions
3500 -- described for upper-half encoding as described above.
3501 -- The internal character code is the corresponding JIS
3502 -- character according to the standard algorithm for
3503 -- Shift-JIS conversion. Only characters defined in the
3504 -- JIS code set table can be used with this encoding
3505 -- method.
3507 -- UTF8 A wide character is represented using
3508 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3509 -- R of ISO 10646-1/Am.2. Depending on the character
3510 -- value, the representation is a one, two, or three byte
3511 -- sequence:
3513 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3514 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3515 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3517 -- where the xxx bits correspond to the left-padded bits
3518 -- of the 16-bit character value. Note that all lower
3519 -- half ASCII characters are represented as ASCII bytes
3520 -- and all upper half characters and other wide characters
3521 -- are represented as sequences of upper-half (The full
3522 -- UTF-8 scheme allows for encoding 31-bit characters as
3523 -- 6-byte sequences, but in this implementation, all UTF-8
3524 -- sequences of four or more bytes length will be treated
3525 -- as illegal).
3527 -- EUC A wide character is represented by a two-character
3528 -- sequence 16#ab# and 16#cd#, with both characters being
3529 -- in the upper half. The internal character code is the
3530 -- corresponding JIS character according to the EUC
3531 -- encoding algorithm. Only characters defined in the JIS
3532 -- code set table can be used with this encoding method.
3534 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3535 "-gnatWn";
3536 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3538 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3539 "-gnatD";
3540 -- /NOXDEBUG (D)
3541 -- /XDEBUG
3543 -- Output expanded source files for source level debugging.
3544 -- The expanded source (see /EXPAND_SOURCE) is written to files
3545 -- with names formed by appending "_DG" to the input file name,
3546 -- The debugging information generated by the /DEBUG qualifier will then
3547 -- refer to the generated file. This allows source level debugging using
3548 -- the generated code which is sometimes useful for complex code, for
3549 -- example to find out exactly which part of a complex construction
3550 -- raised an exception. The maximum line length for the output is 72.
3552 S_GCC_Lxdebug : aliased constant S := "/LXDEBUG=#" &
3553 "-gnatD=#";
3554 -- /LXDEBUG=nnn
3556 -- Output expanded source files for source level debugging.
3557 -- The expanded source (see /EXPAND_SOURCE) is written to files
3558 -- with names formed by appending "_DG" to the input file name,
3559 -- The debugging information generated by the /DEBUG qualifier will then
3560 -- refer to the generated file. This allows source level debugging using
3561 -- the generated code which is sometimes useful for complex code, for
3562 -- example to find out exactly which part of a complex construction
3563 -- raised an exception. The parameter is the maximum line length for
3564 -- the output.
3566 S_GCC_Xref : aliased constant S := "/XREF=" &
3567 "GENERATE " &
3568 "!-gnatx " &
3569 "SUPPRESS " &
3570 "-gnatx";
3571 -- /XREF[=keyword]
3573 -- Normally the compiler generates full cross-referencing information in
3574 -- the .ALI file. This information is used by a number of tools,
3575 -- including GNAT FIND and GNAT XREF.
3577 -- GENERATE (D) Generate cross-referencing information.
3579 -- SUPPRESS Suppress cross-referencing information.
3580 -- This saves some space and may slightly
3581 -- speed up compilation, but means that some
3582 -- tools cannot be used.
3584 GCC_Switches : aliased constant Switches :=
3585 (S_GCC_Ada_83 'Access,
3586 S_GCC_Ada_95 'Access,
3587 S_GCC_Ada_05 'Access,
3588 S_GCC_Ada_2005'Access,
3589 S_GCC_Ada_12 'Access,
3590 S_GCC_Ada_2012'Access,
3591 S_GCC_Add 'Access,
3592 S_GCC_Asm 'Access,
3593 S_GCC_AValid 'Access,
3594 S_GCC_CategW 'Access,
3595 S_GCC_Checks 'Access,
3596 S_GCC_ChecksX 'Access,
3597 S_GCC_Compres 'Access,
3598 S_GCC_Config 'Access,
3599 S_GCC_Current 'Access,
3600 S_GCC_Debug 'Access,
3601 S_GCC_DebugX 'Access,
3602 S_GCC_Data 'Access,
3603 S_GCC_Dist 'Access,
3604 S_GCC_DistX 'Access,
3605 S_GCC_Error 'Access,
3606 S_GCC_ErrorX 'Access,
3607 S_GCC_Expand 'Access,
3608 S_GCC_Lexpand 'Access,
3609 S_GCC_Except 'Access,
3610 S_GCC_Extend 'Access,
3611 S_GCC_Ext 'Access,
3612 S_GCC_File 'Access,
3613 S_GCC_Follow 'Access,
3614 S_GCC_Force 'Access,
3615 S_GCC_Full 'Access,
3616 S_GCC_Generate'Access,
3617 S_GCC_GNAT 'Access,
3618 S_GCC_Help 'Access,
3619 S_GCC_Ident 'Access,
3620 S_GCC_IdentX 'Access,
3621 S_GCC_Ignore 'Access,
3622 S_GCC_Immed 'Access,
3623 S_GCC_Inline 'Access,
3624 S_GCC_InlineX 'Access,
3625 S_GCC_Intsrc 'Access,
3626 S_GCC_Just 'Access,
3627 S_GCC_JustX 'Access,
3628 S_GCC_Length 'Access,
3629 S_GCC_List 'Access,
3630 S_GCC_Output 'Access,
3631 S_GCC_Machine 'Access,
3632 S_GCC_Mapping 'Access,
3633 S_GCC_MaxI 'Access,
3634 S_GCC_Multi 'Access,
3635 S_GCC_Mess 'Access,
3636 S_GCC_Nesting 'Access,
3637 S_GCC_Noadc 'Access,
3638 S_GCC_Noload 'Access,
3639 S_GCC_Nostinc 'Access,
3640 S_GCC_Nostlib 'Access,
3641 S_GCC_NoWarnP 'Access,
3642 S_GCC_Opt 'Access,
3643 S_GCC_OptX 'Access,
3644 S_GCC_Overflo 'Access,
3645 S_GCC_Pointer 'Access,
3646 S_GCC_Polling 'Access,
3647 S_GCC_Project 'Access,
3648 S_GCC_Psta 'Access,
3649 S_GCC_Report 'Access,
3650 S_GCC_ReportX 'Access,
3651 S_GCC_Repinfo 'Access,
3652 S_GCC_RepinfX 'Access,
3653 S_GCC_RTS 'Access,
3654 S_GCC_SCO 'Access,
3655 S_GCC_Search 'Access,
3656 S_GCC_Src_Info'Access,
3657 S_GCC_Style 'Access,
3658 S_GCC_StyleX 'Access,
3659 S_GCC_Subdirs 'Access,
3660 S_GCC_Symbol 'Access,
3661 S_GCC_Syntax 'Access,
3662 S_GCC_Table 'Access,
3663 S_GCC_Trace 'Access,
3664 S_GCC_Tree 'Access,
3665 S_GCC_Trys 'Access,
3666 S_GCC_USL 'Access,
3667 S_GCC_Units 'Access,
3668 S_GCC_Unique 'Access,
3669 S_GCC_Upcase 'Access,
3670 S_GCC_Valid 'Access,
3671 S_GCC_Verbose 'Access,
3672 S_GCC_Verb_Asm'Access,
3673 S_GCC_Warn 'Access,
3674 S_GCC_WarnX 'Access,
3675 S_GCC_Wide 'Access,
3676 S_GCC_WideX 'Access,
3677 S_GCC_No_Back 'Access,
3678 S_GCC_Xdebug 'Access,
3679 S_GCC_Lxdebug 'Access,
3680 S_GCC_Xref 'Access);
3682 ----------------------------
3683 -- Switches for GNAT ELIM --
3684 ----------------------------
3686 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3687 "-aP*";
3688 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3690 -- Add directories to the project search path.
3692 S_Elim_All : aliased constant S := "/ALL " &
3693 "-a";
3694 -- /NOALL (D)
3695 -- /ALL
3697 -- Also look for subprograms from the GNAT run time that can be
3698 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3699 -- the entire program must be recompiled with qualifier /ALL_FILES of
3700 -- GNAT MAKE.
3702 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3703 "-b>";
3704 -- /BIND_FILE=file_name
3706 -- Specifies file_name as the bind file to process. If this qualifier is
3707 -- not used, the name of the bind file is computed from the full expanded
3708 -- Ada name of a main subprogram.
3710 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3711 "--GCC=@";
3712 -- /COMPILER=path_name
3714 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3715 -- available on the path.
3717 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3718 "-C>";
3719 -- /CONFIGURATION_PRAGMAS=path_name
3721 -- Specifies a file that contains configuration pragmas.
3722 -- The file must be specified with absolute path.
3724 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3725 "!-I-";
3726 -- /CURRENT_DIRECTORY (D)
3727 -- /NOCURRENT_DIRECTORY
3729 -- Look for source files in the default directory.
3731 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3732 "-X" & '"';
3733 -- /EXTERNAL_REFERENCE="name=val"
3735 -- Specifies an external reference to the project manager. Useful only if
3736 -- /PROJECT_FILE is used.
3738 -- Example:
3739 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3741 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3742 "-eL";
3743 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3744 -- /FOLLOW_LINKS_FOR_FILES
3746 -- Follow links when parsing project files
3748 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3749 "--GNATMAKE=@";
3750 -- /GNATMAKE=path_name
3752 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3753 -- on the path.
3755 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3756 "DEFAULT " &
3757 "-vP0 " &
3758 "MEDIUM " &
3759 "-vP1 " &
3760 "HIGH " &
3761 "-vP2";
3762 -- /MESSAGES_PROJECT_FILE[=messages-option]
3764 -- Specifies the "verbosity" of the parsing of project files.
3765 -- messages-option may be one of the following:
3767 -- DEFAULT (D) No messages are output if there is no error or warning.
3769 -- MEDIUM A small number of messages are output.
3771 -- HIGH A great number of messages are output, most of them not
3772 -- being useful for the user.
3774 S_Elim_Nodisp : aliased constant S := "/NO_DISPATCH " &
3775 "--no-elim-dispatch";
3776 -- /NONO_DISPATCH (D)
3777 -- /NO_DISPATCH
3779 -- Do not generate pragmas for dispatching operations.
3781 S_Elim_Ignore : aliased constant S := "/IGNORE=@" &
3782 "--ignore=@";
3783 -- /IGNORE=filename
3785 -- Do not generate pragmas for subprograms declared in the sources
3786 -- listed in a specified file
3788 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3789 "-P>";
3790 -- /PROJECT_FILE=filename
3792 -- Specifies the main project file to be used. The project files rooted
3793 -- at the main project file will be parsed before the invocation of the
3794 -- gnatelim. The source directories to be searched will be communicated
3795 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3797 S_Elim_Quiet : aliased constant S := "/QUIET " &
3798 "-q";
3799 -- /NOQUIET (D)
3800 -- /QUIET
3802 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3803 -- the number of program units left to be processed. This option turns
3804 -- this trace off.
3806 S_Elim_Files : aliased constant S := "/FILES=@" &
3807 "-files=@";
3809 -- /FILES=filename
3811 -- Take as arguments the files that are listed in the specified
3812 -- text file.
3814 S_Elim_Log : aliased constant S := "/LOG " &
3815 "-l";
3816 -- /NOLOG (D)
3817 -- /LOG
3819 -- Duplicate all the output sent to Stderr into a default log file.
3821 S_Elim_Logfile : aliased constant S := "/LOGFILE=@" &
3822 "-l@";
3824 -- /LOGFILE=logfilename
3826 -- Duplicate all the output sent to Stderr into a specified log file.
3828 S_Elim_Main : aliased constant S := "/MAIN=@" &
3829 "-main=@";
3831 -- /MAIN=filename
3833 -- Specify the main subprogram of the partition to analyse.
3835 S_Elim_Out : aliased constant S := "/OUTPUT=@" &
3836 "-o@";
3837 -- /OUTPUT=filename
3839 -- Specify the name of the output file.
3841 S_Elim_Time : aliased constant S := "/TIME " &
3842 "-t";
3843 -- /NOTIME (D)
3844 -- /TIME
3846 -- Print out execution time
3848 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3849 "-I*";
3850 -- /SEARCH=(directory, ...)
3852 -- When looking for source files also look in the specified directories.
3854 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3855 "--subdirs=>";
3856 -- /SUBDIRS=dir
3858 -- The actual directories (object, exec, library, ...) are subdirectories
3859 -- of the directory specified in the project file. If the subdirectory
3860 -- does not exist, it is created automatically.
3862 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3863 "-v";
3864 -- /NOVERBOSE (D)
3865 -- /VERBOSE
3867 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3868 -- to the standard output stream. Also, in addition to the number of
3869 -- program units left, GNAT ELIM will output the name of the current unit
3870 -- being processed.
3872 S_Elim_Warn : aliased constant S := "/WARNINGS=" &
3873 "NORMAL " &
3874 "-wn " &
3875 "QUIET " &
3876 "-ws";
3878 -- /WARNINGS[=(keyword[,...])]
3880 -- The following keywords are supported:
3882 -- NORMAL (D) Print warning all the messages.
3883 -- QUIET Some warning messages are suppressed
3885 Elim_Switches : aliased constant Switches :=
3886 (S_Elim_Add 'Access,
3887 S_Elim_All 'Access,
3888 S_Elim_Bind 'Access,
3889 S_Elim_Comp 'Access,
3890 S_Elim_Config 'Access,
3891 S_Elim_Current 'Access,
3892 S_Elim_Ext 'Access,
3893 S_Elim_Files 'Access,
3894 S_Elim_Follow 'Access,
3895 S_Elim_GNATMAKE'Access,
3896 S_Elim_Log 'Access,
3897 S_Elim_Logfile 'Access,
3898 S_Elim_Main 'Access,
3899 S_Elim_Mess 'Access,
3900 S_Elim_Nodisp 'Access,
3901 S_Elim_Out 'Access,
3902 S_Elim_Project 'Access,
3903 S_Elim_Quiet 'Access,
3904 S_Elim_Search 'Access,
3905 S_Elim_Subdirs 'Access,
3906 S_Elim_Time 'Access,
3907 S_Elim_Verb 'Access,
3908 S_Elim_Warn 'Access);
3910 ----------------------------
3911 -- Switches for GNAT FIND --
3912 ----------------------------
3914 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3915 "-aP*";
3916 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3918 -- Add directories to the project search path.
3920 S_Find_All : aliased constant S := "/ALL_FILES " &
3921 "-a";
3922 -- /NOALL_FILES (D)
3923 -- /ALL_FILES
3925 -- If this switch is present, FIND and XREF will parse the read-only
3926 -- files found in the library search path. Otherwise, these files will
3927 -- be ignored. This option can be used to protect Gnat sources or your
3928 -- own libraries from being parsed, thus making FIND and XREF much
3929 -- faster, and their output much smaller.
3931 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3932 "-d";
3933 -- /NODERIVED_TYPE_INFORMATION (D)
3934 -- /DERIVED_TYPE_INFORMATION
3936 -- Output the parent type reference for each matching derived types.
3938 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3939 "-e";
3940 -- /NOEXPRESSIONS (D)
3941 -- /EXPRESSIONS
3943 -- By default, FIND accepts the simple regular expression set for pattern.
3944 -- If this switch is set, then the pattern will be considered as a full
3945 -- Unix-style regular expression.
3947 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3948 "-X" & '"';
3949 -- /EXTERNAL_REFERENCE="name=val"
3951 -- Specifies an external reference to the project manager. Useful only if
3952 -- /PROJECT_FILE is used.
3954 -- Example:
3955 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3957 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3958 "-eL";
3959 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3960 -- /FOLLOW_LINKS_FOR_FILES
3962 -- Follow links when parsing project files
3964 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3965 "-f";
3966 -- /NOFULL_PATHNAME (D)
3967 -- /FULL_PATHNAME
3969 -- If this switch is set, the output file names will be preceded by their
3970 -- directory (if the file was found in the search path). If this switch
3971 -- is not set, the directory will not be printed.
3973 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3974 "-g";
3975 -- /NOIGNORE_LOCALS (D)
3976 -- /IGNORE_LOCALS
3978 -- If this switch is set, information is output only for library-level
3979 -- entities, ignoring local entities. The use of this switch may
3980 -- accelerate FIND and XREF.
3982 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3983 "DEFAULT " &
3984 "-vP0 " &
3985 "MEDIUM " &
3986 "-vP1 " &
3987 "HIGH " &
3988 "-vP2";
3989 -- /MESSAGES_PROJECT_FILE[=messages-option]
3991 -- Specifies the "verbosity" of the parsing of project files.
3992 -- messages-option may be one of the following:
3994 -- DEFAULT (D) No messages are output if there is no error or warning.
3996 -- MEDIUM A small number of messages are output.
3998 -- HIGH A great number of messages are output, most of them not
3999 -- being useful for the user.
4001 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4002 "-nostdinc";
4003 -- /NOSTD_INCLUDES
4005 -- Do not look for sources in the system default directory.
4007 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4008 "-nostdlib";
4009 -- /NOSTD_LIBRARIES
4011 -- Do not look for library files in the system default directory.
4013 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4014 "-aO*";
4015 -- /OBJECT_SEARCH=(directory,...)
4017 -- When searching for library and object files, look in the specified
4018 -- directories. The order in which library files are searched is the same
4019 -- as for MAKE.
4021 S_Find_Print : aliased constant S := "/PRINT_LINES " &
4022 "-s";
4023 -- /NOPRINT_LINES (D)
4024 -- /PRINT_LINES
4026 -- Output the content of the Ada source file lines were the entity was
4027 -- found.
4029 S_Find_Project : aliased constant S := "/PROJECT=@" &
4030 "-p@";
4031 -- /PROJECT=file
4033 -- Specify a project file to use. By default, FIND and XREF will try to
4034 -- locate a project file in the current directory.
4036 -- If a project file is either specified or found by the tools, then the
4037 -- content of the source directory and object directory lines are added
4038 -- as if they had been specified respectively by /SOURCE_SEARCH and
4039 -- /OBJECT_SEARCH.
4041 -- This qualifier is not compatible with /PROJECT_FILE
4043 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
4044 "-P>";
4045 -- /PROJECT_FILE=filename
4047 -- Specifies the main project file to be used. The project files rooted
4048 -- at the main project file will be parsed before looking for sources.
4049 -- The source and object directories to be searched will be communicated
4050 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
4051 -- ADA_PRJ_OBJECTS_FILE.
4053 S_Find_Ref : aliased constant S := "/REFERENCES " &
4054 "-r";
4055 -- /NOREFERENCES (D)
4056 -- /REFERENCES
4058 -- By default, FIND will output only the information about the
4059 -- declaration, body or type completion of the entities. If this switch
4060 -- is set, the FIND will locate every reference to the entities in the
4061 -- files specified on the command line (or in every file in the search
4062 -- path if no file is given on the command line).
4064 S_Find_Search : aliased constant S := "/SEARCH=*" &
4065 "-I*";
4066 -- /SEARCH=(directory,...)
4068 -- Equivalent to:
4069 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
4071 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4072 "-aI*";
4073 -- /SOURCE_SEARCH=(directory,...)
4075 -- When looking for source files also look in the specified directories.
4076 -- The order in which source file search is undertaken is the same as for
4077 -- MAKE.
4079 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
4080 "--subdirs=>";
4081 -- /SUBDIRS=dir
4083 -- The actual directories (object, exec, library, ...) are subdirectories
4084 -- of the directory specified in the project file. If the subdirectory
4085 -- does not exist, it is created automatically.
4087 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
4088 "-t";
4089 -- /NOTYPE_HIERARCHY (D)
4090 -- /TYPE_HIERARCHY
4092 -- Output the type hierarchy for the specified type. It acts like the
4093 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
4094 -- to parent type. When this qualifier is specified it is not possible to
4095 -- specify more than one file.
4097 Find_Switches : aliased constant Switches :=
4098 (S_Find_Add 'Access,
4099 S_Find_All 'Access,
4100 S_Find_Deriv 'Access,
4101 S_Find_Expr 'Access,
4102 S_Find_Ext 'Access,
4103 S_Find_Follow 'Access,
4104 S_Find_Full 'Access,
4105 S_Find_Ignore 'Access,
4106 S_Find_Mess 'Access,
4107 S_Find_Nostinc 'Access,
4108 S_Find_Nostlib 'Access,
4109 S_Find_Object 'Access,
4110 S_Find_Print 'Access,
4111 S_Find_Project 'Access,
4112 S_Find_Prj 'Access,
4113 S_Find_Ref 'Access,
4114 S_Find_Search 'Access,
4115 S_Find_Source 'Access,
4116 S_Find_Subdirs 'Access,
4117 S_Find_Types 'Access);
4119 ------------------------------
4120 -- Switches for GNAT KRUNCH --
4121 ------------------------------
4123 S_Krunch_Count : aliased constant S := "/COUNT=#" &
4124 "`#";
4125 -- /COUNT=39 (D)
4126 -- /COUNT=nnn
4128 -- Limit file names to nnn characters (where nnn is a decimal
4129 -- integer). The maximum file name length is 39, but if you want to
4130 -- generate a set of files that would be usable if ported to a system
4131 -- with some different maximum file length, then a different value can
4132 -- be specified.
4134 Krunch_Switches : aliased constant Switches :=
4135 (1 .. 1 => S_Krunch_Count 'Access);
4137 ----------------------------
4138 -- Switches for GNAT LINK --
4139 ----------------------------
4141 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4142 "-aP*";
4143 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4145 -- Add directories to the project search path.
4147 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
4148 "ADA " &
4149 "-A " &
4150 "C " &
4151 "-C";
4152 -- /BIND_FILE=[bind-file-option]
4154 -- Specifies the language of the binder generated file.
4156 -- ADA (D) Binder file is Ada.
4158 -- C Binder file is 'C'.
4160 S_Link_Debug : aliased constant S := "/DEBUG=" &
4161 "ALL " &
4162 "-g3 " &
4163 "NONE " &
4164 "-g0 " &
4165 "TRACEBACK " &
4166 "-g1 " &
4167 "NOTRACEBACK " &
4168 "-g0";
4169 -- /NODEBUG (D)
4170 -- /DEBUG[=debug-option]
4172 -- Specifies the amount of debugging information included. 'debug-option'
4173 -- is one of the following:
4175 -- ALL (D) Include full debugging information.
4177 -- NONE Provide no debugging information. Same as /NODEBUG.
4179 -- TRACEBACK Provide sufficient debug information for a traceback.
4181 -- NOTRACEBACK Same as NONE.
4183 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
4184 "-g0";
4185 -- NODOC (see /DEBUG)
4187 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
4188 "-o@";
4189 -- /EXECUTABLE=exec-name
4191 -- 'exec-name' specifies an alternative name for the generated executable
4192 -- program. If this qualifier switch is omitted, the executable is called
4193 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
4194 -- executable called TRY.EXE.
4196 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4197 "-X" & '"';
4198 -- /EXTERNAL_REFERENCE="name=val"
4200 -- Specifies an external reference to the project manager. Useful only if
4201 -- /PROJECT_FILE is used.
4203 -- Example:
4204 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4206 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4207 "-eL";
4208 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4209 -- /FOLLOW_LINKS_FOR_FILES
4211 -- Follow links when parsing project files
4213 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
4214 "--for-linker=" & '"';
4215 -- /FOR_LINKER=<string>
4217 -- Transmit the option <string> to the underlying linker.
4219 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
4220 "-f";
4221 -- /NOFORCE_OBJECT_FILE_LIST (D)
4222 -- /FORCE_OBJECT_FILE_LIST
4224 -- Forces the generation of a file that contains commands for the linker.
4225 -- This is useful in some cases to deal with special situations where the
4226 -- command line length is exceeded.
4228 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
4229 "--for-linker=IDENT=" &
4230 '"';
4231 -- /IDENTIFICATION="<string>"
4233 -- "<string>" specifies the string to be stored in the image file ident-
4234 -- ification field in the image header. It overrides any pragma Ident
4235 -- specified string.
4237 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
4238 "-L*";
4239 -- /LIBDIR=(directory, ...)
4241 -- Look for libraries in the specified directories.
4243 S_Link_Library : aliased constant S := "/LIBRARY=|" &
4244 "-l|";
4245 -- /LIBRARY=xyz
4247 -- Link with library named "xyz".
4249 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4250 "DEFAULT " &
4251 "-vP0 " &
4252 "MEDIUM " &
4253 "-vP1 " &
4254 "HIGH " &
4255 "-vP2";
4256 -- /MESSAGES_PROJECT_FILE[=messages-option]
4258 -- Specifies the "verbosity" of the parsing of project files.
4259 -- messages-option may be one of the following:
4261 -- DEFAULT (D) No messages are output if there is no error or warning.
4263 -- MEDIUM A small number of messages are output.
4265 -- HIGH A great number of messages are output, most of them not
4266 -- being useful for the user.
4268 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
4269 "-n";
4270 -- /NOCOMPILE
4272 -- Do not compile the file generated by the binder.
4273 -- This may be used when a link is rerun with different options,
4274 -- but there is no need to recompile the binder generated file.
4276 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
4277 "--for-linker=--noinhibit-exec";
4278 -- /NOINHIBIT-EXEC
4280 -- Delete executable if there are errors or warnings.
4282 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
4283 "-nostartfiles";
4284 -- /NOSTART_FILES
4286 -- Link in default image initialization and startup functions.
4288 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
4289 "-P>";
4290 -- /PROJECT_FILE=filename
4292 -- Specifies the main project file to be used. The project files rooted
4293 -- at the main project file will be parsed before the invocation of the
4294 -- linker.
4295 -- The source and object directories to be searched will be communicated
4296 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
4297 -- ADA_PRJ_OBJECTS_FILE.
4299 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
4300 "POSIX " &
4301 "!-mvms-return-codes " &
4302 "VMS " &
4303 "-mvms-return-codes";
4304 -- /RETURN_CODES=POSIX (D)
4305 -- /RETURN_CODES=VMS
4307 -- Specifies the style of codes returned by
4308 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
4309 -- and match the Bind qualifier with the same name.
4311 -- POSIX (D) Return Posix compatible exit codes.
4313 -- VMS Return VMS compatible exit codes. The value returned
4314 -- is identically equal to the Set_Exit_Status parameter.
4316 S_Link_Static : aliased constant S := "/STATIC " &
4317 "--for-linker=-static";
4318 -- /NOSTATIC (D)
4319 -- /STATIC
4321 -- Indicate to the linker that the link is static.
4323 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
4324 "--subdirs=>";
4325 -- /SUBDIRS=dir
4327 -- The actual directories (object, exec, library, ...) are subdirectories
4328 -- of the directory specified in the project file. If the subdirectory
4329 -- does not exist, it is created automatically.
4331 S_Link_Verb : aliased constant S := "/VERBOSE " &
4332 "-v";
4333 -- /NOVERBOSE (D)
4334 -- /VERBOSE
4336 -- Causes additional information to be output, including a full list of
4337 -- the included object files. This switch option is most useful when you
4338 -- want to see what set of object files are being used in the link step.
4340 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4341 "--for-linker=";
4342 -- /<other>
4344 -- Any other switch that will be transmitted to the underlying linker.
4346 Link_Switches : aliased constant Switches :=
4347 (S_Link_Add 'Access,
4348 S_Link_Bind 'Access,
4349 S_Link_Debug 'Access,
4350 S_Link_Nodebug 'Access,
4351 S_Link_Execut 'Access,
4352 S_Link_Ext 'Access,
4353 S_Link_Follow 'Access,
4354 S_Link_Forlink 'Access,
4355 S_Link_Force 'Access,
4356 S_Link_Ident 'Access,
4357 S_Link_Libdir 'Access,
4358 S_Link_Library 'Access,
4359 S_Link_Mess 'Access,
4360 S_Link_Nocomp 'Access,
4361 S_Link_Nofiles 'Access,
4362 S_Link_Noinhib 'Access,
4363 S_Link_Project 'Access,
4364 S_Link_Return 'Access,
4365 S_Link_Static 'Access,
4366 S_Link_Subdirs 'Access,
4367 S_Link_Verb 'Access,
4368 S_Link_ZZZZZ 'Access);
4370 ----------------------------
4371 -- Switches for GNAT LIST --
4372 ----------------------------
4374 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4375 "-aP*";
4376 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4378 -- Add directories to the project search path.
4380 S_List_All : aliased constant S := "/ALL_UNITS " &
4381 "-a";
4382 -- /NOALL_UNITS (D)
4383 -- /ALL_UNITS
4385 -- Consider all units, including those of the predefined Ada library.
4386 -- Especially useful with /DEPENDENCIES.
4388 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4389 "-U";
4390 -- /NOALL_PROJECTS (D)
4391 -- /ALL_PROJECTS
4393 -- When used with a project file and no file specified, indicate
4394 -- that gnatls should be called for all sources of all projects in
4395 -- the project tree.
4397 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4398 "!-I-";
4399 -- /CURRENT_DIRECTORY (D)
4400 -- /NOCURRENT_DIRECTORY
4402 -- Look for source, library or object files in the default directory.
4404 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4405 "-d";
4406 -- /NODEPENDENCIES (D)
4407 -- /DEPENDENCIES
4409 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4410 "-X" & '"';
4411 -- /EXTERNAL_REFERENCE="name=val"
4413 -- Specifies an external reference to the project manager. Useful only if
4414 -- /PROJECT_FILE is used.
4416 -- Example:
4417 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4419 S_List_Files : aliased constant S := "/FILES=@" &
4420 "-files=@";
4421 -- /FILES=filename
4423 -- Take as arguments the files that are listed in the specified
4424 -- text file.
4426 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4427 "-eL";
4428 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4429 -- /FOLLOW_LINKS_FOR_FILES
4431 -- Follow links when parsing project files
4433 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4434 "DEFAULT " &
4435 "-vP0 " &
4436 "MEDIUM " &
4437 "-vP1 " &
4438 "HIGH " &
4439 "-vP2";
4440 -- /MESSAGES_PROJECT_FILE[=messages-option]
4442 -- Specifies the "verbosity" of the parsing of project files.
4443 -- messages-option may be one of the following:
4445 -- DEFAULT (D) No messages are output if there is no error or warning.
4447 -- MEDIUM A small number of messages are output.
4449 -- HIGH A great number of messages are output, most of them not
4450 -- being useful for the user.
4452 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4453 "-nostdinc";
4454 -- /NOSTD_INCLUDES
4456 -- Do not look for sources of the run time in the standard directory.
4458 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4459 "-aO*";
4460 -- /OBJECT_SEARCH=(directory,...)
4462 -- When looking for library and object files look also in the specified
4463 -- directories.
4465 S_List_Output : aliased constant S := "/OUTPUT=" &
4466 "SOURCES " &
4467 "-s " &
4468 "DEPEND " &
4469 "-d " &
4470 "OBJECTS " &
4471 "-o " &
4472 "UNITS " &
4473 "-u " &
4474 "OPTIONS " &
4475 "-h " &
4476 "VERBOSE " &
4477 "-v ";
4478 -- /OUTPUT=(option,option,...)
4480 -- SOURCES (D) Only output information about source files.
4482 -- DEPEND List sources from which specified units depend on.
4484 -- OBJECTS Only output information about object files.
4486 -- UNITS Only output information about compilation units.
4488 -- OPTIONS Output the list of options.
4490 -- VERBOSE Output the complete source and object paths.
4491 -- Do not use the default column layout but instead
4492 -- use long format giving as much as information
4493 -- possible on each requested units, including
4494 -- special characteristics.
4496 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4497 "-P>";
4498 -- /PROJECT_FILE=filename
4500 -- Specifies the main project file to be used. The project files rooted
4501 -- at the main project file will be parsed before doing any listing.
4502 -- The source and object directories to be searched will be communicated
4503 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4504 -- ADA_PRJ_OBJECTS_FILE.
4506 S_List_Search : aliased constant S := "/SEARCH=*" &
4507 "-I*";
4508 -- /SEARCH=(directory,...)
4510 -- Search the specified directories for both source and object files.
4512 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4513 "-aI*";
4514 -- /SOURCE_SEARCH=(directory,...)
4516 -- When looking for source files also look in the specified directories.
4518 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4519 "--subdirs=>";
4520 -- /SUBDIRS=dir
4522 -- The actual directories (object, exec, library, ...) are subdirectories
4523 -- of the directory specified in the project file. If the subdirectory
4524 -- does not exist, it is created automatically.
4526 List_Switches : aliased constant Switches :=
4527 (S_List_Add 'Access,
4528 S_List_All 'Access,
4529 S_List_Allproj 'Access,
4530 S_List_Current 'Access,
4531 S_List_Depend 'Access,
4532 S_List_Ext 'Access,
4533 S_List_Files 'Access,
4534 S_List_Follow 'Access,
4535 S_List_Mess 'Access,
4536 S_List_Nostinc 'Access,
4537 S_List_Object 'Access,
4538 S_List_Output 'Access,
4539 S_List_Project 'Access,
4540 S_List_Search 'Access,
4541 S_List_Source 'Access,
4542 S_List_Subdirs 'Access);
4544 ----------------------------
4545 -- Switches for GNAT MAKE --
4546 ----------------------------
4548 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4549 "COMPILE " &
4550 "-c " &
4551 "BIND " &
4552 "-b " &
4553 "LINK " &
4554 "-l ";
4555 -- /ACTIONS=(keyword[,...])
4557 -- GNAT MAKE default behavior is to check if the sources are up to date,
4558 -- compile those sources that are not up to date, bind the main source,
4559 -- then link the executable.
4561 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4562 -- two of these three steps:
4564 -- o Compile
4565 -- o Bind
4566 -- o Link
4569 -- You may specify one or more of the following keywords to the /ACTIONS
4570 -- qualifier:
4572 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4573 -- to do compilation and binding, but no linking.
4574 -- Can be combined with /ACTIONS=LINK to do binding and
4575 -- linking. When not combined with /ACTIONS=COMPILE,
4576 -- all the units in the closure of the main program must
4577 -- have been previously compiled and must be up to date.
4579 -- COMPILE Compile only. Do not perform binding, except when
4580 -- /ACTIONS=BIND is also specified. Do not perform
4581 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4582 -- are also specified.
4584 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4585 -- binding and linking. Linking will not be performed
4586 -- if combined with /ACTIONS=COMPILE but not with
4587 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4588 -- all the units in the closure of the main program must
4589 -- have been previously compiled and must be up to date,
4590 -- and the main program need to have been bound.
4592 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4593 "-aP*";
4594 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4596 -- Add directories to the project search path.
4598 S_Make_All : aliased constant S := "/ALL_FILES " &
4599 "-a";
4600 -- /NOALL_FILES (D)
4601 -- /ALL_FILES
4603 -- Consider all files in the make process, even the GNAT internal system
4604 -- files (for example, the predefined Ada library files). By default,
4605 -- GNAT MAKE does not check these files (however, if there is an
4606 -- installation problem, it will be caught when GNAT MAKE binds your
4607 -- program). You may have to specify this qualifier if you are working on
4608 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4609 -- specify this switch. All GNAT internal files with will be compiled
4610 -- with /STYLE_CHECK=GNAT.
4612 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4613 "-U";
4614 -- /NOALL_PROJECTS (D)
4615 -- /ALL_PROJECTS
4617 -- Implies /Unique.
4618 -- When used without project files, it is equivalent to /UNIQUE.
4619 -- When used with a project file with no main (neither on the command
4620 -- line nor in the attribute Main) check every source of every project,
4621 -- recompile all sources that are not up to date and rebuild libraries
4622 -- if necessary.
4624 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4625 "-bargs BIND";
4626 -- /BINDER_QUALIFIERS
4628 -- Any qualifiers specified after this qualifier other than
4629 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4630 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4632 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4633 "-B";
4634 -- /BND_LNK_FULL_PROJECT
4636 -- Bind and link all sources of a project, without any consideration
4637 -- to attribute Main, if there is one. This qualifier need to be
4638 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4639 -- be used with a main subprogram on the command line or for
4640 -- a library project file. As the binder is invoked with the option
4641 -- meaning "No Ada main subprogram", the user must ensure that the
4642 -- proper options are specified to the linker. This qualifier is
4643 -- normally used when the main subprogram is in a foreign language
4644 -- such as C.
4646 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4647 "-cargs COMPILE";
4648 -- /COMPILER_QUALIFIERS
4650 -- Any qualifiers specified after this qualifier other than
4651 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4652 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4654 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4655 "-A*";
4656 -- /CONDITIONAL_SOURCE_SEARCH=dir
4658 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4660 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4661 "-k";
4662 -- /NOCONTINUE_ON_ERROR (D)
4663 -- /CONTINUE_ON_ERROR
4665 -- Keep going. Continue as much as possible after a compilation error.
4666 -- To ease the programmer's task in case of compilation errors, the list
4667 -- of sources for which the compile fails is given when GNAT MAKE
4668 -- terminates.
4670 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4671 "!-I-";
4672 -- /CURRENT_DIRECTORY (D)
4673 -- /NOCURRENT_DIRECTORY
4675 -- Look for source, library or object files in the default directory.
4677 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4678 "-M";
4679 -- /NODEPENDENCIES_LIST (D)
4680 -- /DEPENDENCIES_LIST
4682 -- Check if all objects are up to date. If they are, output the object
4683 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4684 -- a Unix-style Makefile. By default, each source file is prefixed with
4685 -- its (relative or absolute) directory name. This name is whatever you
4686 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4687 -- you also specify the /QUIET qualifier, only the source file names,
4688 -- without relative paths, are output. If you just specify the
4689 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4690 -- files are omitted. This is typically what you want. If you also
4691 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4692 -- files are also listed. Note that dependencies of the objects in
4693 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4694 -- reported.
4696 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4697 "-D@";
4698 -- /DIRECTORY_OBJECTS=<file>
4700 -- Put all object files and .ALI files in <file>.
4701 -- This qualifier is not compatible with /PROJECT_FILE.
4703 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4704 "-d";
4705 -- /NOPLAY_PROGRESS (D)
4706 -- /DISPLAY_PROGRESS
4708 -- Display progress for each source, up to date or not, as a single line
4709 -- completed x out of y (zz%)
4710 -- If the file needs to be compiled this is displayed after the
4711 -- invocation of the compiler. These lines are displayed even in quiet
4712 -- output mode (/QUIET).
4714 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4715 "-n";
4716 -- /NODO_OBJECT_CHECK (D)
4717 -- /DO_OBJECT_CHECK
4719 -- Don't compile, bind, or link. Output a single command that will
4720 -- recompile an out of date unit, if any. Repeated use of this option,
4721 -- followed by carrying out the indicated compilation, will eventually
4722 -- result in recompiling all required units.
4724 -- If any ALI is missing during the process, GNAT MAKE halts and
4725 -- displays an error message.
4727 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4728 "-o@";
4729 -- /EXECUTABLE=exec-name
4731 -- The name of the final executable program will be 'exec_name'. If this
4732 -- qualifier is omitted the default name for the executable will be the
4733 -- name of the input file with an EXE filetype. You may prefix
4734 -- 'exec_name' with a relative or absolute directory path.
4736 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4737 "-X" & '"';
4738 -- /EXTERNAL_REFERENCE="name=val"
4740 -- Specifies an external reference to the project manager. Useful only if
4741 -- /PROJECT_FILE is used.
4743 -- Example:
4744 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4746 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4747 "-eL";
4748 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4749 -- /FOLLOW_LINKS_FOR_FILES
4751 -- Follow links when parsing project files
4753 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4754 "-f";
4755 -- /NOFORCE_COMPILE (D)
4756 -- /FORCE_COMPILE
4758 -- Force recompilations. Recompile all sources, even though some object
4759 -- files may be up to date, but don't recompile predefined or GNAT
4760 -- internal files unless the /ALL_FILES qualifier is also specified.
4762 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4763 "-F";
4764 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4765 -- /FULL_PATH_IN_BRIEF_MESSAGES
4767 -- When using project files, if some errors or warnings are detected
4768 -- during parsing and verbose mode is not in effect (no use of qualifier
4769 -- /VERBOSE), then error lines start with the full path name of the
4770 -- project file, rather than its simple file name.
4772 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4773 "-vh";
4774 -- /NOHIGH_VERBOSITY (D)
4775 -- /HIGH_VERBOSITY
4777 -- Displays the reason for all recompilations GNAT MAKE decides are
4778 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4780 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4781 "-i";
4782 -- /NOIN_PLACE (D)
4783 -- /IN_PLACE
4785 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4786 -- into the current directory. If the /IN_PLACE switch is used,
4787 -- then instead object files and ALI files that already exist are over-
4788 -- written in place. This means that once a large project is organized
4789 -- into separate directories in the desired manner, then GNAT MAKE will
4790 -- automatically maintain and update this organization. If no ALI files
4791 -- are found on the Ada object path, the new object and ALI files are
4792 -- created in the directory containing the source being compiled.
4794 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4795 "-eI#";
4796 -- /SOURCE_INDEX=nnn
4798 -- Specifies the index of the units in the source file
4799 -- By default, source files are mono-unit and there is no index
4800 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4801 -- on the command line.
4803 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4804 "-L*";
4805 -- /LIBRARY_SEARCH=(directory[,...])
4807 -- Add the specified directories to the list of directories in which the
4808 -- linker will search for libraries.
4810 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4811 "-largs LINK";
4812 -- /LINKER_QUALIFIERS
4814 -- Any qualifiers specified after this qualifier other than
4815 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4816 -- passed to any GNAT LINK commands generated by GNAT LINK.
4818 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4819 "-vl";
4820 -- /NOLOW_VERBOSITY (D)
4821 -- /LOW_VERBOSITY
4823 -- Displays the reason for all recompilations GNAT MAKE decides are
4824 -- necessary, in low verbosity, that is with less output than
4825 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4827 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4828 "-margs MAKE";
4829 -- /MAKE_QUALIFIERS
4831 -- Any qualifiers specified after this qualifier other than
4832 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4833 -- are for the benefit of GNAT MAKE itself.
4835 S_Make_Mapping : aliased constant S := "/MAPPING " &
4836 "-C";
4837 -- /NOMAPPING (D)
4838 -- /MAPPING
4840 -- Use a mapping file. A mapping file is a way to communicate to the
4841 -- compiler two mappings: from unit names to file names (without any
4842 -- directory information) and from file names to path names (with full
4843 -- directory information). These mappings are used by the compiler to
4844 -- short-circuit the path search. When GNAT MAKE is invoked with this
4845 -- qualifier, it will create a mapping file, initially populated by the
4846 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4847 -- Each invocation of the compiler will add the newly accessed sources to
4848 -- the mapping file. This will improve the source search during the next
4849 -- invocations of the compiler
4851 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4852 "-vm";
4853 -- /NOMEDIUM_VERBOSITY (D)
4854 -- /MEDIUM_VERBOSITY
4856 -- Displays the reason for all recompilations GNAT MAKE decides are
4857 -- necessary, in medium verbosity, that is with potentially less output
4858 -- than /HIGH_VERBOSITY or /VERBOSE.
4860 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4861 "DEFAULT " &
4862 "-vP0 " &
4863 "MEDIUM " &
4864 "-vP1 " &
4865 "HIGH " &
4866 "-vP2";
4867 -- /MESSAGES_PROJECT_FILE[=messages-option]
4869 -- Specifies the "verbosity" of the parsing of project files.
4870 -- messages-option may be one of the following:
4872 -- DEFAULT (D) No messages are output if there is no error or warning.
4874 -- MEDIUM A small number of messages are output.
4876 -- HIGH A great number of messages are output, most of them not
4877 -- being useful for the user.
4879 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4880 "-m";
4881 -- /NOMINIMAL_RECOMPILATION (D)
4882 -- /MINIMAL_RECOMPILATION
4884 -- Specifies that the minimum necessary amount of recompilation
4885 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4886 -- when the only modifications to a source file consist in
4887 -- adding/removing comments, empty lines, spaces or tabs.
4889 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4890 "-p";
4891 -- /NOCREATE_MISSING_DIRS (D)
4892 -- /CREATE_MISSING_DIRS
4894 -- When an object directory, a library directory or an exec directory
4895 -- in missing, attempt to create the directory.
4897 S_Make_Nolink : aliased constant S := "/NOLINK " &
4898 "-c";
4899 -- /NOLINK
4901 -- Compile only. Do not perform binding and linking. If the root unit is
4902 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4903 -- attempt binding and linking unless all objects are up to date and the
4904 -- executable is more recent than the objects.
4905 -- This is equivalent to /ACTIONS=COMPILE
4907 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4908 "-z";
4909 -- /NOMAIN
4911 -- No main subprogram. Bind and link the program even if the unit name
4912 -- given on the command line is a package name. The resulting executable
4913 -- will execute the elaboration routines of the package and its closure,
4914 -- then the finalization routines.
4916 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4917 "-x";
4918 -- /NON_PROJECT_UNIT_COMPILATION
4920 -- Normally, when using project files, a unit that is not part of any
4921 -- project file, cannot be compile. These units may be compile, when
4922 -- needed, if this qualifier is specified.
4924 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4925 "-nostdinc";
4926 -- /NOSTD_INCLUDES
4928 -- Do not look for sources the in the system default directory.
4930 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4931 "-nostdlib";
4932 -- /NOSTD_LIBRARIES
4934 -- Do not look for library files in the system default directory.
4936 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4937 "-aO*";
4938 -- /OBJECT_SEARCH=(directory[,...])
4940 -- When looking for library and object files look also in the specified
4941 -- directories.
4943 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4944 "-j#";
4945 -- /NOPROCESSES (D)
4946 -- /PROCESSES=NNN
4948 -- Use NNN processes to carry out the (re)compilations. If you have a
4949 -- multiprocessor machine, compilations will occur in parallel. In the
4950 -- event of compilation errors, messages from various compilations might
4951 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4952 -- failing compiles at the end). This can at times be annoying. To get a
4953 -- clean list of error messages don't use this qualifier.
4955 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4956 "-j1";
4957 -- NODOC (see /PROCESS)
4959 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4960 "-P>";
4961 -- /PROJECT_FILE=filename
4963 -- Specifies the main project file to be used. The project files rooted
4964 -- at the main project file will be parsed before any other processing to
4965 -- set the building environment.
4967 S_Make_Quiet : aliased constant S := "/QUIET " &
4968 "-q";
4969 -- /NOQUIET (D)
4970 -- /QUIET
4972 -- When this qualifiers is specified, the commands carried out by GNAT
4973 -- MAKE are not displayed.
4975 S_Make_Reason : aliased constant S := "/REASONS " &
4976 "-v";
4977 -- /NOREASONS (D)
4978 -- /REASONS
4980 -- Displays the reason for all recompilations GNAT MAKE decides are
4981 -- necessary.
4983 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4984 "--RTS=|";
4985 -- /RUNTIME_SYSTEM=xxx
4987 -- Build against an alternate runtime system named xxx or RTS-xxx.
4989 S_Make_Search : aliased constant S := "/SEARCH=*" &
4990 "-I*";
4991 -- /SEARCH=(directory[,...])
4993 -- Search the specified directories for both source and object files.
4995 S_Make_Single : aliased constant S := "/SINGLE_COMPILE_PER_OBJ_DIR " &
4996 "--single-compile-per-obj-dir";
4997 -- /NOSINGLE_COMPILE_PER_OBJ_DIR (D)
4998 -- /SINGLE_COMPILE_PER_OBJ_DIR
5000 -- When project files are used, do not allow simultaneous compilations
5001 -- for the same object directory.
5003 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
5004 "-aL*";
5005 -- /SKIP_MISSING=(directory[,...])
5007 -- Skip missing library sources if ALI in 'directory'.
5009 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
5010 "-aI*";
5011 -- /SOURCE_SEARCH=(directory[,...])
5013 -- When looking for source files also look in the specified directories.
5015 S_Make_Src_Info : aliased constant S := "/SRC_INFO=<" &
5016 "--source-info=>";
5017 -- /SRC_INFO=source-info-file
5019 -- Specify a source info file to be read or written by the Project
5020 -- Manager when project files are used.
5022 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
5023 "-eS";
5024 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
5025 -- /STANDARD_OUTPUT_FOR_COMMANDS
5027 -- Output the commands for the compiler, the binder and the linker
5028 -- on SYS$OUTPUT, instead of SYS$ERROR.
5030 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
5031 "--subdirs=>";
5032 -- /SUBDIRS=dir
5034 -- The actual directories (object, exec, library, ...) are subdirectories
5035 -- of the directory specified in the project file. If the subdirectory
5036 -- does not exist, it is created automatically.
5038 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
5039 "-s";
5040 -- /NOSWITCH_CHECK (D)
5041 -- /SWITCH_CHECK
5043 -- Recompile if compiler switches have changed since last compilation.
5044 -- All compiler switches but -I and -o are taken into account in the
5045 -- following way: orders between different "first letter" switches are
5046 -- ignored, but orders between same switches are taken into account.
5047 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
5048 -- to -O -g.
5050 S_Make_USL : aliased constant S := "/UNCHECKED_SHARED_LIB_IMPORTS " &
5051 "--unchecked-shared-lib-imports";
5052 -- /NOUNCHECKED_SHARED_LIB_IMPORTS (D)
5053 -- /UNCHECKED_SHARED_LIB_IMPORTS
5055 -- Allow shared library projects to import static library projects
5057 S_Make_Unique : aliased constant S := "/UNIQUE " &
5058 "-u";
5059 -- /NOUNIQUE (D)
5060 -- /UNIQUE
5062 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
5063 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
5064 -- directly.
5066 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
5067 "-C=@";
5068 -- /USE_MAPPING_FILE=file_name
5070 -- Use a specific mapping file. The file 'file_name', specified as a path
5071 -- name (absolute or relative) by this qualifier, should already exist,
5072 -- otherwise the qualifier is ineffective. The specified mapping file
5073 -- will be communicated to the compiler. This switch is not compatible
5074 -- with a project file (/PROJECT_FILE=) or with multiple compiling
5075 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
5077 S_Make_Verbose : aliased constant S := "/VERBOSE " &
5078 "-v";
5079 -- /NOVERBOSE (D)
5080 -- /VERBOSE
5082 -- Displays the reason for all recompilations GNAT MAKE decides are
5083 -- necessary.
5085 Make_Switches : aliased constant Switches :=
5086 (S_Make_Add 'Access,
5087 S_Make_Actions 'Access,
5088 S_Make_All 'Access,
5089 S_Make_Allproj 'Access,
5090 S_Make_Bind 'Access,
5091 S_Make_Comp 'Access,
5092 S_Make_Cond 'Access,
5093 S_Make_Cont 'Access,
5094 S_Make_Current 'Access,
5095 S_Make_Dep 'Access,
5096 S_Make_Dirobj 'Access,
5097 S_Make_Disprog 'Access,
5098 S_Make_Doobj 'Access,
5099 S_Make_Execut 'Access,
5100 S_Make_Ext 'Access,
5101 S_Make_Follow 'Access,
5102 S_Make_Force 'Access,
5103 S_Make_Full 'Access,
5104 S_Make_Hi_Verb 'Access,
5105 S_Make_Inplace 'Access,
5106 S_Make_Index 'Access,
5107 S_Make_Library 'Access,
5108 S_Make_Link 'Access,
5109 S_Make_Low_Verb'Access,
5110 S_Make_Make 'Access,
5111 S_Make_Mapping 'Access,
5112 S_Make_Med_Verb'Access,
5113 S_Make_Mess 'Access,
5114 S_Make_Minimal 'Access,
5115 S_Make_Missing 'Access,
5116 S_Make_Nolink 'Access,
5117 S_Make_Nomain 'Access,
5118 S_Make_Nonpro 'Access,
5119 S_Make_Nostinc 'Access,
5120 S_Make_Nostlib 'Access,
5121 S_Make_Object 'Access,
5122 S_Make_Proc 'Access,
5123 S_Make_Nojobs 'Access,
5124 S_Make_Project 'Access,
5125 S_Make_Quiet 'Access,
5126 S_Make_Reason 'Access,
5127 S_Make_RTS 'Access,
5128 S_Make_Search 'Access,
5129 S_Make_Single 'Access,
5130 S_Make_Skip 'Access,
5131 S_Make_Source 'Access,
5132 S_Make_Src_Info'Access,
5133 S_Make_Stand 'Access,
5134 S_Make_Subdirs 'Access,
5135 S_Make_Switch 'Access,
5136 S_Make_USL 'Access,
5137 S_Make_Unique 'Access,
5138 S_Make_Use_Map 'Access,
5139 S_Make_Verbose 'Access);
5141 ------------------------------
5142 -- Switches for GNAT METRIC --
5143 ------------------------------
5145 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5146 "-aP*";
5147 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5149 -- Add directories to the project search path.
5151 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5152 "-U";
5153 -- /NOALL_PROJECTS (D)
5154 -- /ALL_PROJECTS
5155 -- When GNAT METRIC is used with a Project File and no source is
5156 -- specified, the underlying tool gnatmetric is called for all the
5157 -- sources of all the Project Files in the project tree.
5159 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
5160 "-dv";
5161 -- /DEBUG_OUTPUT
5163 -- Generate the debug information
5165 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
5166 "-d=@";
5167 -- /DIRECTORY=pathname
5169 -- Put the files with detailed metric information into the specified
5170 -- directory
5172 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
5173 "ALL " &
5174 "!-ed,!-es,!-enl,!-eps," &
5175 "!-eas,!-ept,!-eat,!-enu," &
5176 "!-ec " &
5177 "DECLARATION_TOTAL " &
5178 "-ed " &
5179 "STATEMENT_TOTAL " &
5180 "-es " &
5181 "LOOP_NESTING_MAX " &
5182 "-enl " &
5183 "INT_SUBPROGRAMS " &
5184 "-eps " &
5185 "SUBPROGRAMS_ALL " &
5186 "-eas " &
5187 "INT_TYPES " &
5188 "-ept " &
5189 "TYPES_ALL " &
5190 "-eat " &
5191 "PROGRAM_NESTING_MAX " &
5192 "-enu " &
5193 "CONSTRUCT_NESTING_MAX " &
5194 "-ec";
5195 -- NODOC (see /SYNTAX_METRICS)
5197 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
5198 "ALL " &
5199 "--syntax-all " &
5200 "NONE " &
5201 "--no-syntax-all " &
5202 "DECLARATIONS " &
5203 "--declarations " &
5204 "NODECLARATIONS " &
5205 "--no-declarations " &
5206 "STATEMENTS " &
5207 "--statements " &
5208 "NOSTATEMENTS " &
5209 "--no-statements " &
5210 "PUBLIC_SUBPROGRAMS " &
5211 "--public-subprograms " &
5212 "NOPUBLIC_SUBPROGRAMS " &
5213 "--no-public-subprograms " &
5214 "ALL_SUBPROGRAMS " &
5215 "--all-subprograms " &
5216 "NOALL_SUBPROGRAMS " &
5217 "--no-all-subprograms " &
5218 "PUBLIC_TYPES " &
5219 "--public-types " &
5220 "NOPUBLIC_TYPES " &
5221 "--no-public-types " &
5222 "ALL_TYPES " &
5223 "--all-types " &
5224 "NOALL_TYPES " &
5225 "--no-all-types " &
5226 "UNIT_NESTING " &
5227 "--unit-nesting " &
5228 "NOUNIT_NESTING " &
5229 "--no-unit-nesting " &
5230 "CONSTRUCT_NESTING " &
5231 "--construct-nesting " &
5232 "NOCONSTRUCT_NESTING " &
5233 "--no-construct-nesting";
5234 -- /SYNTAX_METRICS(option, option ...)
5236 -- Specifies the syntax element metrics to be computed (if at least one
5237 -- positive syntax element metric, line metric, complexity or coupling
5238 -- metric is specified then only explicitly specified syntax element
5239 -- metrics are computed and reported)
5241 -- option may be one of the following:
5243 -- ALL (D) All the syntax element metrics are computed
5244 -- NONE None of syntax element metrics is computed
5245 -- DECLARATIONS Compute the total number of declarations
5246 -- NODECLARATIONS Do not compute the total number of declarations
5247 -- STATEMENTS Compute the total number of statements
5248 -- NOSTATEMENTS Do not compute the total number of statements
5249 -- PUBLIC_SUBPROGRAMS Compute the number of public subprograms
5250 -- NOPUBLIC_SUBPROGRAMS Do not compute the number of public subprograms
5251 -- ALL_SUBPROGRAMS Compute the number of all the subprograms
5252 -- NOALL_SUBPROGRAMS Do not compute the number of all the
5253 -- subprograms
5254 -- PUBLIC_TYPES Compute the number of public types
5255 -- NOPUBLIC_TYPES Do not compute the number of public types
5256 -- ALL_TYPES Compute the number of all the types
5257 -- NOALL_TYPES Do not compute the number of all the types
5258 -- UNIT_NESTING Compute the maximal program unit nesting
5259 -- level
5260 -- NOUNIT_NESTING Do not compute the maximal program unit
5261 -- nesting level
5262 -- CONSTRUCT_NESTING Compute the maximal construct nesting level
5263 -- NOCONSTRUCT_NESTING Do not compute the maximal construct nesting
5264 -- level
5266 -- All combinations of syntax element metrics options are allowed.
5268 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5269 "-X" & '"';
5270 -- /EXTERNAL_REFERENCE="name=val"
5272 -- Specifies an external reference to the project manager. Useful only if
5273 -- /PROJECT_FILE is used.
5275 -- Example:
5276 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5278 S_Metric_Files : aliased constant S := "/FILES=@" &
5279 "-files=@";
5280 -- /FILES=filename
5282 -- Take as arguments the files that are listed in the specified
5283 -- text file.
5285 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
5286 "DEFAULT " &
5287 "!-x,!-nt,!-sfn " &
5288 "XML " &
5289 "-x " &
5290 "XSD " &
5291 "-xs " &
5292 "NO_TEXT " &
5293 "-nt " &
5294 "SHORT_SOURCE_FILE_NAME " &
5295 "-sfn";
5296 -- /FORMAT_OUTPUT=(option, option ...)
5298 -- Specifies the details of the tool output
5300 -- option may be one of the following:
5302 -- DEFAULT (D) Generate the text output only, use full
5303 -- argument source names in global information
5304 -- XML Generate the output in XML format
5305 -- XSD Generate the output in XML format, and
5306 -- generate an XML schema file that describes
5307 -- the structure of XML metrics report
5308 -- NO_TEXT Do not generate the text output (implies XML)
5309 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
5311 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
5312 "-og@";
5313 -- /GLOBAL_OUTPUT=filename
5315 -- Put the textual global metric information into the specified file
5317 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
5318 "ALL " &
5319 "!-la,!-lcode,!-lcomm," &
5320 "!-leol,!-lb " &
5321 "LINES_ALL " &
5322 "-la " &
5323 "CODE_LINES " &
5324 "-lcode " &
5325 "COMENT_LINES " &
5326 "-lcomm " &
5327 "MIXED_CODE_COMMENTS " &
5328 "-leol " &
5329 "COMMENT_PERCENTAGE " &
5330 "-lratio " &
5331 "BLANK_LINES " &
5332 "-lb " &
5333 "AVERAGE_LINES_IN_BODIES " &
5334 "-lav ";
5335 -- NODOC (see /LINE_COUNT_METRICS)
5337 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
5338 "ALL " &
5339 "--lines-all " &
5340 "NONE " &
5341 "--no-lines-all " &
5342 "ALL_LINES " &
5343 "--lines " &
5344 "NOALL_LINES " &
5345 "--no-lines " &
5346 "CODE_LINES " &
5347 "--lines-code " &
5348 "NOCODE_LINES " &
5349 "--no-lines-code " &
5350 "COMMENT_LINES " &
5351 "--lines-comment " &
5352 "NOCOMMENT_LINES " &
5353 "--no-lines-comment " &
5354 "CODE_COMMENT_LINES " &
5355 "--lines-eol-comment " &
5356 "NOCODE_COMMENT_LINES " &
5357 "--no-lines-eol-comment " &
5358 "COMMENT_PERCENTAGE " &
5359 "--lines-ratio " &
5360 "NOCOMMENT_PERCENTAGE " &
5361 "--no-lines-ratio " &
5362 "BLANK_LINES " &
5363 "--lines-blank " &
5364 "NOBLANK_LINES " &
5365 "--no-lines-blank " &
5366 "AVERAGE_BODY_LINES " &
5367 "--lines-average " &
5368 "NOAVERAGE_BODY_LINES " &
5369 "--no-lines-average";
5370 -- /LINE_COUNT_METRICS=(option, option ...)
5372 -- Specifies the line metrics to be computed (if at least one positive
5373 -- syntax element metric, line metric, complexity or coupling metric is
5374 -- specified then only explicitly specified line metrics are computed
5375 -- and reported)
5377 -- option may be one of the following:
5379 -- ALL (D) All the line metrics are computed
5380 -- NONE None of line metrics is computed
5381 -- ALL_LINES All lines are computed
5382 -- NOALL_LINES All lines are not computed
5383 -- CODE_LINES Lines with Ada code are computed
5384 -- NOCODE_LINES Lines with Ada code are not computed
5385 -- COMMENT_LINES Comment lines are computed
5386 -- NOCOMMENT_LINES Comment lines are not computed
5387 -- CODE_COMMENT_LINES Lines containing both code and comment parts
5388 -- are computed
5389 -- NOCODE_COMMENT_LINES Lines containing both code and comment parts
5390 -- are not computed
5391 -- COMMENT_PERCENTAGE Ratio between comment lines and all the lines
5392 -- containing comments and program code is
5393 -- computed
5394 -- NOCOMMENT_PERCENTAGE Ratio between comment lines and all the lines
5395 -- containing comments and program code is not
5396 -- computed
5397 -- BLANK_LINES Blank lines are computed
5398 -- NOBLANK_LINES Blank lines are not computed
5399 -- AVERAGE_BODY_LINES Average number of code lines in subprogram,
5400 -- task and entry bodies and statement sequences
5401 -- of package bodies is computed
5402 -- NOAVERAGE_BODY_LINES Average number of code lines in subprogram,
5403 -- task and entry bodies and statement sequences
5404 -- of package bodies is not computed
5406 -- All combinations of line metrics options are allowed.
5408 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5409 "ALL " &
5410 "--complexity-all " &
5411 "NONE " &
5412 "--no-complexity-all " &
5413 "CYCLOMATIC " &
5414 "--complexity-cyclomatic " &
5415 "NOCYCLOMATIC " &
5416 "--no-complexity-cyclomatic "&
5417 "ESSENTIAL " &
5418 "--complexity-essential " &
5419 "NOESSENTIAL " &
5420 "--no-complexity-essential " &
5421 "LOOP_NESTING " &
5422 "--loop-nesting " &
5423 "NOLOOP_NESTING " &
5424 "--no-loop-nesting " &
5425 "AVERAGE_COMPLEXITY " &
5426 "--complexity-average " &
5427 "NOAVERAGE_COMPLEXITY " &
5428 "--no-complexity-average " &
5429 "EXTRA_EXIT_POINTS " &
5430 "--extra-exit-points " &
5431 "NOEXTRA_EXIT_POINTS " &
5432 "--no-extra-exit-points";
5433 -- /COMPLEXITY_METRICS=(option, option ...)
5435 -- Specifies the complexity metrics to be computed (if at least one
5436 -- positive syntax element metric, line metric, complexity or coupling
5437 -- metric is specified then only explicitly specified complexity metrics
5438 -- are computed and reported)
5440 -- option may be one of the following:
5442 -- ALL (D) All the complexity metrics are computed
5443 -- NONE None of complexity metrics is computed
5444 -- CYCLOMATIC Compute the McCabe Cyclomatic Complexity
5445 -- NOCYCLOMATIC Do not compute the McCabe Cyclomatic Complexity
5446 -- ESSENTIAL Compute the Essential Complexity
5447 -- NOESSENTIAL Do not compute the Essential Complexity
5448 -- LOOP_NESTING Compute the maximal loop nesting
5449 -- NOLOOP_NESTING Do not compute the maximal loop nesting
5450 -- AVERAGE_COMPLEXITY Compute the average complexity for executable
5451 -- bodies
5452 -- NOAVERAGE_COMPLEXITY Do not compute the average complexity for
5453 -- executable bodies
5454 -- EXTRA_EXIT_POINTS Compute extra exit points metric
5455 -- NOEXTRA_EXIT_POINTS Do not compute extra exit points metric
5457 -- All combinations of line metrics options are allowed.
5459 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5460 "ALL " &
5461 "--coupling-all " &
5462 "TAGGED_OUT " &
5463 "--tagged-coupling-out " &
5464 "TAGGED_IN " &
5465 "--tagged-coupling-in " &
5466 "HIERARCHY_OUT " &
5467 "--hierarchy-coupling-out " &
5468 "HIERARCHY_IN " &
5469 "--hierarchy-coupling-in " &
5470 "UNIT_OUT " &
5471 "--unit-coupling-out " &
5472 "UNIT_IN " &
5473 "--unit-coupling-in " &
5474 "CONTROL_OUT " &
5475 "--control-coupling-out " &
5476 "CONTROL_IN " &
5477 "--control-coupling-in";
5479 -- /COUPLING_METRICS=(option, option ...)
5481 -- Specifies the coupling metrics to be computed.
5483 -- option may be one of the following:
5485 -- ALL All the coupling metrics are computed
5486 -- NOALL (D) None of coupling metrics is computed
5487 -- TAGGED_OUT Compute tagged (class) far-out coupling
5488 -- TAGGED_IN Compute tagged (class) far-in coupling
5489 -- HIERARCHY_OUT Compute hieraqrchy (category) far-out coupling
5490 -- HIERARCHY_IN Compute hieraqrchy (category) far-in coupling
5491 -- UNIT_OUT Compute unit far-out coupling
5492 -- UNIT_IN Compute unit far-in coupling
5493 -- CONTROL_OUT Compute control far-out coupling
5494 -- CONTROL_IN Compute control far-in coupling
5497 -- All combinations of coupling metrics options are allowed.
5499 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5500 "-eL";
5501 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5502 -- /FOLLOW_LINKS_FOR_FILES
5504 -- Follow links when parsing project files
5506 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5507 "-nolocal";
5508 -- /LOCAL_DETAILS (D)
5509 -- /NO_LOCAL_DETAILS
5511 -- Do not compute the detailed metrics for local program units.
5513 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5514 "-ne";
5515 -- /EXITS_AS_GOTOS (D)
5516 -- /NO_EXITS_AS_GOTOS
5518 -- Do not count EXIT statements as GOTOs when computing the Essential
5519 -- Complexity.
5521 S_Metric_No_Static_Loop : aliased constant S := "/NO_STATIC_LOOP " &
5522 "--no-static-loop";
5523 -- /STATIC_LOOP (D)
5524 -- /NO_STATIC_LOOP
5526 -- Do not count static FOR loop statements when computing the Cyclomatic
5527 -- Complexity.
5529 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5530 "DEFAULT " &
5531 "-vP0 " &
5532 "MEDIUM " &
5533 "-vP1 " &
5534 "HIGH " &
5535 "-vP2";
5536 -- /MESSAGES_PROJECT_FILE[=messages-option]
5538 -- Specifies the "verbosity" of the parsing of project files.
5539 -- messages-option may be one of the following:
5541 -- DEFAULT (D) No messages are output if there is no error or warning.
5543 -- MEDIUM A small number of messages are output.
5545 -- HIGH A great number of messages are output, most of them not
5546 -- being useful for the user.
5548 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5549 "-P>";
5550 -- /PROJECT_FILE=filename
5552 -- Specifies the main project file to be used. The project files rooted
5553 -- at the main project file will be parsed before the invocation of the
5554 -- binder.
5556 S_Metric_Quiet : aliased constant S := "/QUIET " &
5557 "-q";
5558 -- /NOQUIET (D)
5559 -- /QUIET
5561 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5562 -- the number of program units left to be processed. This option turns
5563 -- this trace off.
5565 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5566 "--subdirs=>";
5567 -- /SUBDIRS=dir
5569 -- The actual directories (object, exec, library, ...) are subdirectories
5570 -- of the directory specified in the project file. If the subdirectory
5571 -- does not exist, it is created automatically.
5573 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5574 "-o" & '"';
5575 -- /SUFFIX_DETAILS=suffix
5577 -- Use the given suffix as the suffix for the name of the file to place
5578 -- the detailed metrics into.
5580 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5581 "NOTHING " &
5582 "!-nocc,!-noec,!-nonl," &
5583 "!-ne,!-nolocal " &
5584 "CYCLOMATIC_COMPLEXITY " &
5585 "-nocc " &
5586 "ESSENTIAL_COMPLEXITY " &
5587 "-noec " &
5588 "MAXIMAL_LOOP_NESTING " &
5589 "-nonl " &
5590 "EXITS_AS_GOTOS " &
5591 "-ne " &
5592 "LOCAL_DETAILS " &
5593 "-nolocal ";
5594 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5596 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5597 "-v";
5598 -- /NOVERBOSE (D)
5599 -- /VERBOSE
5601 -- Verbose mode.
5603 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5604 "-ox@";
5605 -- /XML_OUTPUT=filename
5607 -- Place the XML output into the specified file
5609 Metric_Switches : aliased constant Switches :=
5610 (S_Metric_Add 'Access,
5611 S_Metric_All_Prjs 'Access,
5612 S_Metric_Complexity 'Access,
5613 S_Metric_Coupling 'Access,
5614 S_Metric_Debug 'Access,
5615 S_Metric_Direct 'Access,
5616 S_Metric_Element 'Access,
5617 S_Metric_Ext 'Access,
5618 S_Metric_Files 'Access,
5619 S_Metric_Follow 'Access,
5620 S_Metric_Format 'Access,
5621 S_Metric_Globout 'Access,
5622 S_Metric_Line 'Access,
5623 S_Metric_Lines 'Access,
5624 S_Metric_Mess 'Access,
5625 S_Metric_No_Exits_As_Gotos'Access,
5626 S_Metric_No_Local 'Access,
5627 S_Metric_No_Static_Loop 'Access,
5628 S_Metric_Project 'Access,
5629 S_Metric_Quiet 'Access,
5630 S_Metric_Suffix 'Access,
5631 S_Metric_Subdirs 'Access,
5632 S_Metric_Syntax 'Access,
5633 S_Metric_Suppress 'Access,
5634 S_Metric_Verbose 'Access,
5635 S_Metric_XMLout 'Access);
5637 ----------------------------
5638 -- Switches for GNAT NAME --
5639 ----------------------------
5641 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5642 "-c>";
5643 -- /CONFIG_FILE=path_name
5645 -- Create a configuration pragmas file 'path_name' (instead of the default
5646 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5647 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5648 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5650 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5651 "-d*";
5652 -- /SOURCE_DIRS=(directory, ...)
5654 -- Look for source files in the specified directories. When this qualifier
5655 -- is specified, the current working directory will not be searched for
5656 -- source files, unless it is explicitly specified with a qualifier
5657 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5658 -- specified. If a directory is specified as a relative path, it is
5659 -- relative to the directory of the configuration pragmas file specified
5660 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5661 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5662 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5663 -- to the current working directory. The directories specified with
5664 -- qualifiers /SOURCE_DIRS must exist and be readable.
5666 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5667 "-D>";
5668 -- /DIRS_FILE=file_name
5670 -- Look for source files in all directories listed in text file
5671 -- 'file_name'. 'file_name' must be an existing, readable text file.
5672 -- Each non empty line in the specified file must be a directory.
5673 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5674 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5675 -- text file.
5677 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5678 "-eL";
5679 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5680 -- /FOLLOW_LINKS_FOR_FILES
5682 -- Follow links when parsing project files
5684 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5685 "-f" & '"';
5686 -- /FOREIGN_PATTERN=<string>
5688 -- Specify a foreign pattern.
5689 -- Using this qualifier, it is possible to add sources of languages other
5690 -- than Ada to the list of sources of a project file. It is only useful
5691 -- if a qualifier /PROJECT_FILE is used. For example,
5693 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5695 -- will look for Ada units in all files with the '.ADA' extension, and
5696 -- will add to the list of file for project PRJ.GPR the C files with
5697 -- extension ".C".
5699 S_Name_Help : aliased constant S := "/HELP " &
5700 "-h";
5701 -- /NOHELP (D)
5702 -- /HELP
5704 -- Output usage information to the standard output stream.
5706 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5707 "-P>";
5708 -- /PROJECT_FILE=file_name
5710 -- Create or update a project file. 'file_name' may include directory
5711 -- information. The specified file must be writable. There may be only
5712 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5713 -- specified, no qualifier /CONFIG_FILE may be specified.
5715 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5716 "--subdirs=>";
5717 -- /SUBDIRS=dir
5719 -- The actual directories (object, exec, library, ...) are subdirectories
5720 -- of the directory specified in the project file. If the subdirectory
5721 -- does not exist, it is created automatically.
5723 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5724 "-v";
5725 -- /NOVERBOSE (D)
5726 -- /VERBOSE
5728 -- Verbose mode. Output detailed explanation of behavior to the standard
5729 -- output stream. This includes name of the file written, the name of the
5730 -- directories to search and, for each file in those directories whose
5731 -- name matches at least one of the Naming Patterns, an indication of
5732 -- whether the file contains a unit, and if so the name of the unit.
5734 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5735 "-x" & '"';
5736 -- /EXCLUDED_PATTERN=<string>
5738 -- Specify an excluded pattern.
5739 -- Using this qualifier, it is possible to exclude some files that would
5740 -- match the Naming patterns. For example,
5742 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5744 -- will look for Ada units in all files with the '.ADA' extension, except
5745 -- those whose names end with '_NT.ADA'.
5747 Name_Switches : aliased constant Switches :=
5748 (S_Name_Conf 'Access,
5749 S_Name_Dirs 'Access,
5750 S_Name_Dfile 'Access,
5751 S_Name_Follow 'Access,
5752 S_Name_Frng 'Access,
5753 S_Name_Help 'Access,
5754 S_Name_Proj 'Access,
5755 S_Name_Subdirs 'Access,
5756 S_Name_Verbose 'Access,
5757 S_Name_Excl 'Access);
5759 ----------------------------------
5760 -- Switches for GNAT PREPROCESS --
5761 ----------------------------------
5763 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5764 "-D" & '"';
5765 -- /ASSOCIATE="name=val"
5767 -- Defines a new symbol, associated with value. If no value is given
5768 -- on the command line, then symbol is considered to be True.
5769 -- This qualifier can be used in place of a definition file.
5771 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5772 "-b";
5773 -- /NOBLANK_LINES (D)
5774 -- /BLANK_LINES
5776 -- Causes both preprocessor lines and the lines deleted by preprocessing
5777 -- to be replaced by blank lines in the output source file, thus
5778 -- preserving line numbers in the output file.
5780 S_Prep_Com : aliased constant S := "/COMMENTS " &
5781 "-c";
5782 -- /NOCOMMENTS (D)
5783 -- /COMMENTS
5785 -- /COMMENTS causes both preprocessor lines and the lines deleted
5786 -- by preprocessing to be retained in the output source as comments marked
5787 -- with the special string "--! ". This option will result in line numbers
5788 -- being preserved in the output file.
5790 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5791 -- preprocessing to be replaced by blank lines in the output source file,
5792 -- thus preserving line numbers in the output file.
5794 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5795 "-r";
5796 -- /NOREFERENCE (D)
5797 -- /REFERENCE
5799 -- Causes a "Source_Reference" pragma to be generated that references the
5800 -- original input file, so that error messages will use the file name of
5801 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5802 -- specified.
5804 S_Prep_Remove : aliased constant S := "/REMOVE " &
5805 "!-b,!-c";
5806 -- /REMOVE (D)
5807 -- /NOREMOVE
5809 -- Preprocessor lines and deleted lines are completely removed from the
5810 -- output.
5812 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5813 "-C";
5814 -- /NOREPLACE_IN_COMMENTS (D)
5815 -- /REPLACE_IN_COMMENTS
5817 -- Causes preprocessor to scan comments and perform replacements on
5818 -- any $symbol occurrences within the comment text.
5820 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5821 "-s";
5822 -- /NOSYMBOLS (D)
5823 -- /SYMBOLS
5825 -- Causes a sorted list of symbol names and values to be listed on
5826 -- SYS$OUTPUT.
5828 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5829 "-u";
5830 -- /NOUNDEFINED (D)
5831 -- /UNDEFINED
5833 Prep_Switches : aliased constant Switches :=
5834 (S_Prep_Assoc 'Access,
5835 S_Prep_Blank 'Access,
5836 S_Prep_Com 'Access,
5837 S_Prep_Ref 'Access,
5838 S_Prep_Remove 'Access,
5839 S_Prep_Replace 'Access,
5840 S_Prep_Symbols 'Access,
5841 S_Prep_Undef 'Access);
5843 ------------------------------
5844 -- Switches for GNAT PRETTY --
5845 ------------------------------
5847 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5848 "-aP*";
5849 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5851 -- Add directories to the project search path.
5853 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5854 "DEFAULT " &
5855 "-A12345 " &
5856 "OFF " &
5857 "-A0 " &
5858 "COLONS " &
5859 "-A1 " &
5860 "DECLARATIONS " &
5861 "-A2 " &
5862 "STATEMENTS " &
5863 "-A3 " &
5864 "ARROWS " &
5865 "-A4 " &
5866 "COMPONENT_CLAUSES " &
5867 "-A5";
5868 -- /ALIGN[=align-option, align-option, ...]
5870 -- Set alignments. By default, all alignments (colons in declarations,
5871 -- initialisations in declarations, assignments and arrow delimiters) are
5872 -- ON.
5874 -- align-option may be one of the following:
5876 -- OFF (D) Set all alignments to OFF
5877 -- COLONS Set alignments of colons in declarations to ON
5878 -- DECLARATIONS Set alignments of initialisations in declarations
5879 -- to ON
5880 -- STATEMENTS Set alignments of assignments statements to ON
5881 -- ARROWS Set alignments of arrow delimiters to ON.
5882 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5883 -- clauses ON
5885 -- Specifying one of the ON options without first specifying the OFF
5886 -- option has no effect, because by default all alignments are set to ON.
5888 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5889 "-U";
5890 -- /NOALL_PROJECTS (D)
5891 -- /ALL_PROJECTS
5892 -- When GNAT PRETTY is used with a Project File and no source is
5893 -- specified, the underlying tool gnatpp is called for all the
5894 -- sources of all the Project Files in the project tree.
5896 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5897 "MIXED_CASE " &
5898 "-aM " &
5899 "LOWER_CASE " &
5900 "-aL " &
5901 "UPPER_CASE " &
5902 "-aU";
5903 -- /ATTRIBUTE_CASING[=casing-option]
5905 -- Set the case of the attributes. By default the attributes are in mixed
5906 -- case.
5907 -- casing-option may be one of the following:
5909 -- MIXED_CASE (D)
5910 -- LOWER_CASE
5911 -- UPPER_CASE
5913 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5914 "UNTOUCHED " &
5915 "-c0 " &
5916 "DEFAULT " &
5917 "-c1 " &
5918 "STANDARD_INDENT " &
5919 "-c2 " &
5920 "GNAT_BEGINNING " &
5921 "-c3 " &
5922 "REFORMAT " &
5923 "-c4 " &
5924 "KEEP_SPECIAL " &
5925 "-c5";
5926 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5928 -- Set the comment layout. By default, comments use the GNAT style
5929 -- comment line indentation.
5931 -- layout-option may be one of the following:
5933 -- UNTOUCHED All the comments remain unchanged
5934 -- DEFAULT (D) GNAT style comment line indentation
5935 -- STANDARD_INDENT Standard comment line indentation
5936 -- GNAT_BEGINNING GNAT style comment beginning
5937 -- REFORMAT Reformat comment blocks
5938 -- KEEP_SPECIAL Keep unchanged special form comments
5940 -- All combinations of layout options are allowed, except for DEFAULT
5941 -- and STANDARD_INDENT which are mutually exclusive, and also if
5942 -- UNTOUCHED is specified, this must be the only option.
5944 -- The difference between "GNAT style comment line indentation" and
5945 -- "standard comment line indentation" is the following: for standard
5946 -- comment indentation, any comment line is indented as if it were
5947 -- a declaration or statement at the same place.
5948 -- For GNAT style comment indentation, comment lines which are
5949 -- immediately followed by if or case statement alternative, record
5950 -- variant or 'begin' keyword are indented as the keyword that follows
5951 -- them.:
5953 -- Standard indentation:
5955 -- if A then
5956 -- null;
5957 -- -- some comment
5958 -- else
5959 -- null;
5960 -- end if;
5962 -- GNAT style indentation:
5964 -- if A then
5965 -- null;
5966 -- -- some comment
5967 -- else
5968 -- null;
5969 -- end if;
5971 -- Option "GNAT style comment beginning" means that for each comment
5972 -- which is not considered as non-formattable separator (that is, the
5973 -- comment line contains only dashes, or a comment line ends with two
5974 -- dashes), there will be at least two spaces between starting "--" and
5975 -- the first non-blank character of the comment.
5977 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5978 "-gnatec>";
5979 -- /CONFIGURATION_PRAGMAS_FILE=file
5981 -- Specify a configuration pragmas file that need to be passed to the
5982 -- compiler.
5984 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5985 "GNAT " &
5986 "-l1 " &
5987 "COMPACT " &
5988 "-l2 " &
5989 "UNCOMPACT " &
5990 "-l3";
5991 -- /CONSTRUCT_LAYOUT[=construct-option]
5993 -- Set construct layout. Default is GNAT style layout.
5994 -- construct-option may be one of the following:
5996 -- GNAT (D)
5997 -- COMPACT
5998 -- UNCOMPACT
6000 -- The difference between GNAT style and Compact layout on one hand
6001 -- and Uncompact layout on the other hand can be illustrated by the
6002 -- following examples:
6004 -- GNAT style and Uncompact layout
6005 -- Compact layout
6007 -- type q is record type q is
6008 -- a : integer; record
6009 -- b : integer; a : integer;
6010 -- end record; b : integer;
6011 -- end record;
6014 -- Block : declare Block :
6015 -- A : Integer := 3; declare
6016 -- begin A : Integer := 3;
6017 -- Proc (A, A); begin
6018 -- end Block; Proc (A, A);
6019 -- end Block;
6021 -- Clear : for J in 1 .. 10 loop Clear :
6022 -- A (J) := 0; for J in 1 .. 10 loop
6023 -- end loop Clear; A (J) := 0;
6024 -- end loop Clear;
6027 -- A further difference between GNAT style layout and compact layout is
6028 -- that in GNAT style layout compound statements, return statements and
6029 -- bodies are always separated by empty lines.
6031 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
6032 "-cl#";
6033 -- /CONTINUATION_INDENT=nnn
6035 -- Indentation level for continuation lines, nnn from 1 .. 9.
6036 -- The default value is one less than the (normal) indentation level,
6037 -- unless the indentation is set to 1: in that case the default value for
6038 -- continuation line indentation is also 1.
6040 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
6041 "--no-separate-is";
6042 -- /NO_SEPARATE_IS
6044 -- Do not place the IS keyword on a separate line in a subprogram body in
6045 -- case if the specification occupies more than one line.
6047 S_Pretty_Sep_Label : aliased constant S := "/SEPARATE_LABEL " &
6048 "--separate-label";
6049 -- /SEPARATE_LABEL
6051 -- Place statement label(s) and the statement itself on separate lines.
6053 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
6054 "--separate-loop-then";
6055 -- /SEPARATE_LOOP_THEN
6057 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
6058 -- and while-loops on a separate line.
6060 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
6061 "--no-separate-loop-then";
6062 -- /NO_SEPARATE_LOOP_THEN
6064 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
6065 -- for- and while-loops on a separate line.
6067 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
6068 "--use-on-new-line";
6069 -- /USE_ON_NEW_LINE
6071 -- Start any USE clause that is a part of a context clause from a
6072 -- separate line.
6074 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
6075 "--separate-stmt-name";
6076 -- /STMT_NAME_ON_NEW_LINE
6078 -- For named block and loop statements use a separate line for the
6079 -- statement name, but do not use an extra indentation level for the
6080 -- statement itself.
6082 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
6083 "DOS " &
6084 "--eol=dos " &
6085 "UNIX " &
6086 "--eol=unix " &
6087 "CRLF " &
6088 "--eol=crlf " &
6089 "LF " &
6090 "--eol=lf";
6091 -- /END_OF_LINE=[option]
6093 -- Specifies the form of the line terminators in the produced source.
6094 -- By default, the form of the line terminator depends on the platforms.
6095 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
6096 -- It is a Carriage Return (CR) followed by a Line Feed.
6097 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
6098 -- also equivalent.
6100 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6101 "-X" & '"';
6102 -- /EXTERNAL_REFERENCE="name=val"
6104 -- Specifies an external reference to the project manager. Useful only if
6105 -- /PROJECT_FILE is used.
6107 -- Example:
6108 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6110 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6111 "!-I-";
6112 -- /CURRENT_DIRECTORY (D)
6114 -- Look for source files in the current working directory.
6116 -- /NOCURRENT_DIRECTORY
6117 -- Do not look for source files in the current working directory.
6119 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
6120 "-D*";
6121 -- /DICTIONARY=(file_name, ...)
6123 -- Use each specified file as a dictionary file that defines the casing
6124 -- for a set of specified names, thereby overriding the effect on these
6125 -- names by any explicit or implicit /NAME_CASING qualifier.
6127 -- GNAT PRETTY implicitly uses a default dictionary file to define the
6128 -- casing for the Ada predefined names and the names declared in the GNAT
6129 -- libraries.
6131 -- The structure of a dictionary file, and details on the conventions
6132 -- used in the default dictionary file, are defined in the GNAT User's
6133 -- Guide.
6135 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
6136 "BRACKETS " &
6137 "-Wb " &
6138 "HEX " &
6139 "-Wh " &
6140 "UPPER " &
6141 "-Wu " &
6142 "SHIFT_JIS " &
6143 "-Ws " &
6144 "EUC " &
6145 "-We " &
6146 "UTF8 " &
6147 "-W8";
6148 -- /RESULT_ENCODING[=encoding-type]
6150 -- Specify the wide character encoding method used when writing the
6151 -- reformatted code in the result file. 'encoding-type' is one of the
6152 -- following:
6154 -- BRACKETS (D) Brackets encoding.
6156 -- HEX Hex ESC encoding.
6158 -- UPPER Upper half encoding.
6160 -- SHIFT_JIS Shift-JIS encoding.
6162 -- EUC EUC Encoding.
6164 -- UTF8 UTF-8 encoding.
6166 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
6167 -- about the different character encoding methods.
6169 S_Pretty_Enums : aliased constant S := "/ENUM_CASING=" &
6170 "AS_DECLARED " &
6171 "-neD " &
6172 "LOWER_CASE " &
6173 "-neL " &
6174 "UPPER_CASE " &
6175 "-neU " &
6176 "MIXED_CASE " &
6177 "-neM";
6178 -- /ENUM_CASING=name-option
6180 -- Specify the casing of enumeration literals. If not specified, the
6181 -- casing of enumeration literals is defined by the NAME_CASING option.
6182 -- 'name-option' may be one of:
6184 -- AS_DECLARED Literals casing for defining occurrences are
6185 -- as they appear in the source file.
6187 -- LOWER_CASE Literals are in lower case.
6189 -- UPPER_CASE Literals are in upper case.
6191 -- MIXED_CASE Literals are in mixed case.
6193 S_Pretty_Files : aliased constant S := "/FILES=@" &
6194 "-files=@";
6195 -- /FILES=filename
6197 -- Take as arguments the files that are listed in the specified
6198 -- text file.
6200 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6201 "-eL";
6202 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6203 -- /FOLLOW_LINKS_FOR_FILES
6205 -- Follow links when parsing project files
6207 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
6208 "-of@";
6209 -- /FORCED_OUTPUT=file
6211 -- Write the output into the specified file, overriding any possibly
6212 -- existing file.
6214 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
6215 "-ff";
6216 -- /FORM_FEED_AFTER_PRAGMA_PAGE
6218 -- When there is a pragma Page in the source, insert a Form Feed
6219 -- character immediately after the semicolon that follows the pragma
6220 -- Page.
6222 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
6223 "-i#";
6224 -- /INDENTATION_LEVEL=nnn
6226 -- Specify the number of spaces to add for each indentation level.
6227 -- nnn must be between 1 and 9. The default is 3.
6229 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
6230 "LOWER_CASE " &
6231 "-kL " &
6232 "UPPER_CASE " &
6233 "-kU";
6234 -- /KEYWORD_CASING[=keyword-option]
6236 -- Specify the case of Ada keywords. The default is keywords in lower
6237 -- case.
6239 -- keyword-option may be one of the following:
6241 -- LOWER_CASE (D)
6242 -- UPPER_CASE
6244 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
6245 "-M#";
6246 -- /LINE_LENGTH_MAX=nnn
6248 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
6250 S_Pretty_Maxact : aliased constant S := "/MAX_ACT=#" &
6251 "--call_threshold=#";
6252 -- /MAX_ACT=nnn
6254 -- If the number of parameter associations is greater than nnn and if at
6255 -- least one association uses named notation, start each association from
6256 -- a new line
6258 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
6259 "-T#";
6260 -- /MAX_INDENT=nnn
6262 -- Do not use an additional indentation level for case alternatives
6263 -- and variants if their number is nnn or more. The default is 10.
6264 -- If nnn is zero, an additional indentation level is used for any
6265 -- number of case alternatives and variants.
6267 S_Pretty_Maxpar : aliased constant S := "/MAX_PAR=#" &
6268 "--par_threshold=#";
6269 -- /MAX_PAR=nnn
6271 -- If the number of parameter specifications is greater than nnn (or equal
6272 -- to nnn in case of a function), start each specification from a new line.
6273 -- The default value is 3.
6275 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6276 "DEFAULT " &
6277 "-vP0 " &
6278 "MEDIUM " &
6279 "-vP1 " &
6280 "HIGH " &
6281 "-vP2";
6282 -- /MESSAGES_PROJECT_FILE[=messages-option]
6284 -- Specifies the "verbosity" of the parsing of project files.
6285 -- messages-option may be one of the following:
6287 -- DEFAULT (D) No messages are output if there is no error or warning.
6289 -- MEDIUM A small number of messages are output.
6291 -- HIGH A great number of messages are output, most of them not
6292 -- being useful for the user.
6294 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
6295 "AS_DECLARED " &
6296 "-nD " &
6297 "LOWER_CASE " &
6298 "-nL " &
6299 "UPPER_CASE " &
6300 "-nU " &
6301 "MIXED_CASE " &
6302 "-nM";
6303 -- /NAME_CASING[=name-option]
6305 -- Specify the casing of names.
6306 -- 'name-option' may be one of:
6308 -- AS_DECLARED (D) Name casing for defining occurrences are as they
6309 -- appear in the source file.
6311 -- LOWER_CASE Names are in lower case.
6313 -- UPPER_CASE Names are in upper case.
6315 -- MIXED_CASE Names are in mixed case.
6317 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
6318 "-rnb";
6319 -- /REPLACE_NO_BACKUP
6321 -- Replace the argument source with the pretty-printed source without
6322 -- creating any backup copy of the argument source.
6324 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
6325 "-e";
6326 -- /NO_MISSED_LABELS
6328 -- Do not insert missing end/exit labels. The end label is the name of
6329 -- a construct that may optionally appear at the end of the construct.
6330 -- This includes the names of packages and subprograms.
6331 -- Similarly, the exit label is the name of a loop that may appear as the
6332 -- argument of an exit statement within the loop. By default, GNAT PRETTY
6333 -- inserts these end/exit labels when they are absent in the original
6334 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
6335 -- so that the formatted source reflects the original.
6337 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
6338 "-notabs";
6339 -- /NOTABS
6341 -- Replace all tabulations in comments with spaces.
6343 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
6344 "-o@";
6345 -- /OUTPUT=file
6347 -- Write the output to the specified file. If the file already exists,
6348 -- an error is reported.
6350 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
6351 "-rf";
6352 -- /NOOVERRIDING_REPLACE (D)
6353 -- /OVERRIDING_REPLACE
6355 -- Replace the argument source with the pretty-printed source and copy the
6356 -- argument source into filename.NPP, overriding any existing file if
6357 -- needed.
6359 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
6360 "MIXED_CASE " &
6361 "-pM " &
6362 "LOWER_CASE " &
6363 "-pL " &
6364 "UPPER_CASE " &
6365 "-pU";
6366 -- /PRAGMA_CASING[=pragma-option]
6368 -- Set the case of pragma identifiers. The default is Mixed case.
6369 -- pragma-option may be one of the following:
6371 -- MIXED_CASE (D)
6372 -- LOWER_CASE
6373 -- UPPER_CASE
6375 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
6376 "-P>";
6377 -- /PROJECT_FILE=filename
6379 -- Specifies the main project file to be used. The project files rooted
6380 -- at the main project file will be parsed before any other processing to
6381 -- set the building environment.
6383 S_Pretty_Replace : aliased constant S := "/REPLACE " &
6384 "-r";
6385 -- /NOREPLACE (D)
6386 -- /REPLACE
6388 -- Replace the argument source with the pretty-printed source and copy the
6389 -- argument source into filename.NPP. If filename.NPP already exists,
6390 -- report an error and exit.
6392 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
6393 "--RTS=|";
6394 -- /RUNTIME_SYSTEM=xxx
6396 -- Compile against an alternate runtime system named xxx or RTS-xxx.
6398 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
6399 "-I*";
6400 -- /SEARCH=(directory[,...])
6402 -- When looking for source files also look in directories specified.
6404 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
6405 "-D-";
6406 -- /SPECIFIC_CASING
6408 -- Do not use the default dictionary file; instead, use the casing
6409 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
6410 -- file specified by a qualifier /DICTIONARY.
6412 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
6413 "-pipe";
6414 -- /NOSTANDARD_OUTPUT (D)
6415 -- /STANDARD_OUTPUT
6417 -- Redirect the output to the standard output.
6419 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
6420 "--subdirs=>";
6421 -- /SUBDIRS=dir
6423 -- The actual directories (object, exec, library, ...) are subdirectories
6424 -- of the directory specified in the project file. If the subdirectory
6425 -- does not exist, it is created automatically.
6427 S_Pretty_Types : aliased constant S := "/TYPE_CASING=" &
6428 "AS_DECLARED " &
6429 "-ntD " &
6430 "LOWER_CASE " &
6431 "-ntL " &
6432 "UPPER_CASE " &
6433 "-ntU " &
6434 "MIXED_CASE " &
6435 "-ntM";
6436 -- /TYPE_CASING=name-option
6438 -- Specify the casing of subtype names (including first subtypes from
6439 -- type declarations). If not specified, the casing of these names is
6440 -- defined by the NAME_CASING option. 'name-option' is one of:
6442 -- AS_DECLARED Names are cased as they appear in the declaration
6443 -- in the source file.
6445 -- LOWER_CASE Names are in lower case.
6447 -- UPPER_CASE Names are in upper case.
6449 -- MIXED_CASE Names are in mixed case.
6451 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6452 "-v";
6453 -- /NOVERBOSE (D)
6454 -- /VERBOSE
6456 -- Verbose mode; GNAT PRETTY generates version information and then a
6457 -- trace of the actions it takes to produce or obtain the ASIS tree.
6459 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6460 "-w";
6461 -- /NOWARNINGS (D)
6462 -- /WARNINGS
6464 -- Issue a warning to the standard error stream if it is not possible
6465 -- to provide the required layout in the result source.
6466 -- By default such warnings are not activated.
6468 Pretty_Switches : aliased constant Switches :=
6469 (S_Pretty_Add 'Access,
6470 S_Pretty_Align 'Access,
6471 S_Pretty_All_Prjs 'Access,
6472 S_Pretty_Attrib 'Access,
6473 S_Pretty_Comments 'Access,
6474 S_Pretty_Compact_Is 'Access,
6475 S_Pretty_Config 'Access,
6476 S_Pretty_Constr 'Access,
6477 S_Pretty_Comind 'Access,
6478 S_Pretty_Current 'Access,
6479 S_Pretty_Dico 'Access,
6480 S_Pretty_Eol 'Access,
6481 S_Pretty_Ext 'Access,
6482 S_Pretty_Encoding 'Access,
6483 S_Pretty_Enums 'Access,
6484 S_Pretty_Files 'Access,
6485 S_Pretty_Follow 'Access,
6486 S_Pretty_Forced 'Access,
6487 S_Pretty_Formfeed 'Access,
6488 S_Pretty_Indent 'Access,
6489 S_Pretty_Keyword 'Access,
6490 S_Pretty_Maxlen 'Access,
6491 S_Pretty_Maxact 'Access,
6492 S_Pretty_Maxind 'Access,
6493 S_Pretty_Maxpar 'Access,
6494 S_Pretty_Mess 'Access,
6495 S_Pretty_Names 'Access,
6496 S_Pretty_No_Labels 'Access,
6497 S_Pretty_Notabs 'Access,
6498 S_Pretty_Output 'Access,
6499 S_Pretty_Override 'Access,
6500 S_Pretty_Pragma 'Access,
6501 S_Pretty_Replace 'Access,
6502 S_Pretty_Replace_No_Backup'Access,
6503 S_Pretty_Project 'Access,
6504 S_Pretty_RTS 'Access,
6505 S_Pretty_Search 'Access,
6506 S_Pretty_Sep_Label 'Access,
6507 S_Pretty_Sep_Loop_Then 'Access,
6508 S_Pretty_N_Sep_Loop_Then 'Access,
6509 S_Pretty_Subdirs 'Access,
6510 S_Pretty_Use_On_New_Line 'Access,
6511 S_Pretty_Stnm_On_Nw_Line 'Access,
6512 S_Pretty_Specific 'Access,
6513 S_Pretty_Standard 'Access,
6514 S_Pretty_Types 'Access,
6515 S_Pretty_Verbose 'Access,
6516 S_Pretty_Warnings 'Access);
6518 ------------------------------
6519 -- Switches for GNAT SHARED --
6520 ------------------------------
6522 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6523 "ALL " &
6524 "-g3 " &
6525 "NONE " &
6526 "-g0 " &
6527 "TRACEBACK " &
6528 "-g1 " &
6529 "NOTRACEBACK " &
6530 "-g0";
6531 -- /DEBUG[=debug-option]
6532 -- /NODEBUG
6534 -- Specifies the amount of debugging information included. 'debug-option'
6535 -- is one of the following:
6537 -- ALL (D) Include full debugging information.
6539 -- NONE Provide no debugging information. Same as /NODEBUG.
6541 -- TRACEBACK Provide sufficient debug information for a traceback.
6543 -- NOTRACEBACK Same as NONE.
6545 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6546 "-o@";
6547 -- /IMAGE=image-name
6549 -- 'image-name' specifies the name for the generated shared library.
6551 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6552 "--for-linker=IDENT=" &
6553 '"';
6554 -- /IDENTIFICATION="<string>"
6556 -- "<string>" specifies the string to be stored in the image file ident-
6557 -- ification field in the image header. It overrides any pragma Ident
6558 -- specified string.
6560 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6561 "-nostartfiles";
6562 -- /NOSTART_FILES
6564 -- Link in default image initialization and startup functions.
6566 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6567 "--for-linker=--noinhibit-exec";
6568 -- /NOINHIBIT-IMAGE
6570 -- Delete image if there are errors or warnings.
6572 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6573 "-v";
6574 -- /NOVERBOSE (D)
6575 -- /VERBOSE
6577 -- Causes additional information to be output, including a full list of
6578 -- the included object files. This switch option is most useful when you
6579 -- want to see what set of object files are being used in the link step.
6581 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6582 "--for-linker=";
6583 -- /<other>
6585 -- Any other switch transmitted to the underlying linker.
6587 Shared_Switches : aliased constant Switches :=
6588 (S_Shared_Debug 'Access,
6589 S_Shared_Image 'Access,
6590 S_Shared_Ident 'Access,
6591 S_Shared_Nofiles 'Access,
6592 S_Shared_Noinhib 'Access,
6593 S_Shared_Verb 'Access,
6594 S_Shared_ZZZZZ 'Access);
6596 -----------------------------
6597 -- Switches for GNAT STACK --
6598 -----------------------------
6600 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6601 "-aP*";
6602 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6604 -- Add directories to the project search path.
6606 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6607 "-a";
6608 -- /NOALL_SUBPROGRAMS (D)
6609 -- /ALL_SUBPROGRAMS
6611 -- Consider all subprograms as entry points.
6613 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6614 "-ca";
6615 -- /NOALL_CYCLES (D)
6616 -- /ALL_CYCLES
6618 -- Extract all possible cycles in the call graph.
6620 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6621 "-U";
6622 -- /NOALL_PROJECTS (D)
6623 -- /ALL_PROJECTS
6625 -- When GNAT STACK is used with a Project File and no source is
6626 -- specified, the underlying tool gnatstack is called for all the
6627 -- units of all the Project Files in the project tree.
6629 S_Stack_Debug : aliased constant S := "/DEBUG " &
6630 "-g";
6631 -- /NODEBUG (D)
6632 -- /DEBUG
6634 -- Generate internal debug information.
6636 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6637 "-aO*";
6638 -- /DIRECTORY=(direc[,...])
6640 -- When looking for .ci files look also in directories specified.
6642 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6643 "-e*";
6645 -- /ENTRY=(entry_point[,...])
6647 -- Name of symbol to be used as entry point for the analysis.
6649 S_Stack_Files : aliased constant S := "/FILES=@" &
6650 "-files=@";
6651 -- /FILES=filename
6653 -- Take as arguments the files that are listed in the specified
6654 -- text file.
6656 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6657 "-eL";
6658 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6659 -- /FOLLOW_LINKS_FOR_FILES
6661 -- Follow links when parsing project files
6663 S_Stack_Help : aliased constant S := "/HELP " &
6664 "-h";
6665 -- /NOHELP (D)
6666 -- /HELP
6668 -- Output a message explaining the usage of gnatstack.
6670 S_Stack_List : aliased constant S := "/LIST=#" &
6671 "-l#";
6672 -- /LIST=nnn
6674 -- Print the nnn subprograms requiring the biggest local stack usage. By
6675 -- default none will be displayed.
6677 S_Stack_Order : aliased constant S := "/ORDER=" &
6678 "STACK " &
6679 "-os " &
6680 "ALPHABETICAL " &
6681 "-oa";
6682 -- /ORDER[=order-option]
6684 -- Specifies the order for displaying the different call graphs.
6685 -- order-option may be one of the following:
6687 -- STACK (D) Select stack usage order
6689 -- ALPHABETICAL Select alphabetical order
6691 S_Stack_Path : aliased constant S := "/PATH " &
6692 "-p";
6693 -- /NOPATH (D)
6694 -- /PATH
6696 -- Print all the subprograms that make up the worst-case path for every
6697 -- entry point.
6699 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6700 "-P>";
6701 -- /PROJECT_FILE=filename
6703 -- Specifies the main project file to be used. The project files rooted
6704 -- at the main project file will be parsed before the invocation of
6705 -- gnatstack.
6707 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6708 "-f@";
6709 -- /OUTPUT=filename
6711 -- Name of the file containing the generated graph (VCG format).
6713 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6714 "-r|";
6716 -- /EXPRESSION=regular-expression
6718 -- Any symbol matching the regular expression will be considered as a
6719 -- potential entry point for the analysis.
6721 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6722 "--subdirs=>";
6723 -- /SUBDIRS=dir
6725 -- The actual directories (object, exec, library, ...) are subdirectories
6726 -- of the directory specified in the project file. If the subdirectory
6727 -- does not exist, it is created automatically.
6729 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6730 "-d#";
6731 -- /UNBOUNDED=nnn
6733 -- Default stack size to be used for unbounded (dynamic) frames.
6735 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6736 "-u#";
6737 -- /UNKNOWN=nnn
6739 -- Default stack size to be used for unknown (external) calls.
6741 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6742 "-v";
6743 -- /NOVERBOSE (D)
6744 -- /VERBOSE
6746 -- Specifies the amount of information to be displayed about the
6747 -- different subprograms. In verbose mode the full location of the
6748 -- subprogram will be part of the output, as well as detailed information
6749 -- about inaccurate data.
6751 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6752 "ALL " &
6753 "-Wa " &
6754 "CYCLES " &
6755 "-Wc " &
6756 "UNBOUNDED " &
6757 "-Wu " &
6758 "EXTERNAL " &
6759 "-We " &
6760 "INDIRECT " &
6761 "-Wi";
6762 -- /WARNINGS[=(keyword[,...])]
6764 -- The following keywords are supported:
6766 -- ALL Turn on all optional warnings
6768 -- CYCLES Turn on warnings for cycles
6770 -- UNBOUNDED Turn on warnings for unbounded frames
6772 -- EXTERNAL Turn on warnings for external calls
6774 -- INDIRECT Turn on warnings for indirect calls
6776 Stack_Switches : aliased constant Switches :=
6777 (S_Stack_Add 'Access,
6778 S_Stack_All 'Access,
6779 S_Stack_All_Cycles 'Access,
6780 S_Stack_All_Prjs 'Access,
6781 S_Stack_Debug 'Access,
6782 S_Stack_Directory 'Access,
6783 S_Stack_Entries 'Access,
6784 S_Stack_Files 'Access,
6785 S_Stack_Follow 'Access,
6786 S_Stack_Help 'Access,
6787 S_Stack_List 'Access,
6788 S_Stack_Order 'Access,
6789 S_Stack_Path 'Access,
6790 S_Stack_Project 'Access,
6791 S_Stack_Output 'Access,
6792 S_Stack_Regexp 'Access,
6793 S_Stack_Subdirs 'Access,
6794 S_Stack_Unbounded 'Access,
6795 S_Stack_Unknown 'Access,
6796 S_Stack_Verbose 'Access,
6797 S_Stack_Warnings 'Access);
6799 ----------------------------
6800 -- Switches for GNAT STUB --
6801 ----------------------------
6803 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6804 "-aP*";
6805 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6807 -- Add directories to the project search path.
6809 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6810 "-gnatec>";
6811 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6813 -- Specifies a configuration pragmas file that must be taken into account
6814 -- when compiling.
6816 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6817 "!-I-";
6818 -- /CURRENT_DIRECTORY (D)
6819 -- /NOCURRENT_DIRECTORY
6821 -- Look for source, library or object files in the default directory.
6823 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6824 "-X" & '"';
6825 -- /EXTERNAL_REFERENCE="name=val"
6827 -- Specifies an external reference to the project manager. Useful only if
6828 -- /PROJECT_FILE is used.
6830 -- Example:
6831 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6833 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6834 "-eL";
6835 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6836 -- /FOLLOW_LINKS_FOR_FILES
6838 -- Follow links when parsing project files
6840 S_Stub_Full : aliased constant S := "/FULL " &
6841 "-f";
6842 -- /NOFULL (D)
6843 -- /FULL
6845 -- If the destination directory already contains a file with the name of
6846 -- the body file for the argument file spec, replace it with the generated
6847 -- body stub. If /FULL is not used and there is already a body file, this
6848 -- existing body file is not replaced.
6850 S_Stub_Header : aliased constant S := "/HEADER=" &
6851 "GENERAL " &
6852 "-hg " &
6853 "SPEC " &
6854 "-hs";
6855 -- /HEADER[=header-option]
6857 -- Specifies the form of the comment header above the generated body stub.
6858 -- If no /HEADER qualifier is specified, there is no comment header.
6859 -- header-option is one of the following:
6862 -- GENERAL (D) Put a sample comment header into the body stub.
6864 -- SPEC Put the comment header (i.e., all the comments
6865 -- preceding the compilation unit) from the source of the
6866 -- library unit declaration into the body stub.
6868 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
6869 "--header-file=>";
6871 -- /FROM_HEADER_FILE==filename
6873 -- Use the content of the file as the comment header for a generated body
6874 -- stub.
6876 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
6877 "-i#";
6878 -- /INDENTATION=nnn
6880 -- (nnn is a non-negative integer). Set the indentation level in the
6881 -- generated body stub to nnn. nnn=0 means "no indentation".
6882 -- Default indentation is 3.
6884 S_Stub_Keep : aliased constant S := "/KEEP " &
6885 "-k";
6886 -- /NOKEEP (D)
6887 -- /KEEP
6889 -- Do not delete the tree file (i.e., the snapshot of the compiler
6890 -- internal structures used by gnatstub) after creating the body stub.
6892 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6893 "-l#";
6894 -- /LINE_LENGTH=nnn
6896 -- (n is a non-negative integer). Set the maximum line length in the body
6897 -- stub to nnn. Default is 78.
6899 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6900 "DEFAULT " &
6901 "-vP0 " &
6902 "MEDIUM " &
6903 "-vP1 " &
6904 "HIGH " &
6905 "-vP2";
6906 -- /MESSAGES_PROJECT_FILE[=messages-option]
6908 -- Specifies the "verbosity" of the parsing of project files.
6909 -- messages-option may be one of the following:
6911 -- DEFAULT (D) No messages are output if there is no error or warning.
6913 -- MEDIUM A small number of messages are output.
6915 -- HIGH A great number of messages are output, most of them not
6916 -- being useful for the user.
6918 S_Stub_No_Exc : aliased constant S := "/NO_EXCEPTION " &
6919 "--no-exception";
6920 -- /NONO_EXCEPTION (D)
6921 -- /NO_EXCEPTION
6923 -- Avoid raising PROGRAM_ERROR in the generated program unit stubs.
6925 S_Stub_No_Head : aliased constant S := "/NO_LOCAL_HEADER " &
6926 "--no-local-header";
6927 -- /NONO_LOCAL_HEADER (D)
6928 -- /NO_LOCAL_HEADER
6930 -- Do not put local comment header before body stub for local program unit.
6932 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6933 "-o@";
6934 -- /OUTPUT=filespec
6936 -- Body file name. This should be set if the argument file name does not
6937 -- follow the GNAT file naming conventions. If this switch is omitted,
6938 -- the default name for the body will be obtained from the argument file
6939 -- name according to the GNAT file naming conventions.
6941 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6942 "-P>";
6943 -- /PROJECT_FILE=filename
6945 -- Specifies the main project file to be used. The project files rooted
6946 -- at the main project file will be parsed before any other processing.
6947 -- The source and object directories to be searched will be communicated
6948 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6949 -- ADA_PRJ_OBJECTS_FILE.
6951 S_Stub_Quiet : aliased constant S := "/QUIET " &
6952 "-q";
6953 -- /NOQUIET (D)
6954 -- /QUIET
6956 -- Quiet mode: do not generate a confirmation when a body is successfully
6957 -- created, and do not generate a message when a body is not required for
6958 -- an argument unit.
6960 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6961 "-I*";
6962 -- /SEARCH=(directory[,...])
6964 -- When looking for source files also look in directories specified.
6966 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
6967 "--subdirs=>";
6968 -- /SUBDIRS=dir
6970 -- The actual directories (object, exec, library, ...) are subdirectories
6971 -- of the directory specified in the project file. If the subdirectory
6972 -- does not exist, it is created automatically.
6974 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6975 "OVERWRITE " &
6976 "-t " &
6977 "SAVE " &
6978 "-k " &
6979 "REUSE " &
6980 "-r";
6981 -- /TREE_FILE[=treefile-option]
6983 -- Specify what to do with the tree file.
6984 -- treefile-option is one of the following:
6986 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6987 -- directory already contains the file which, according
6988 -- to the GNAT file naming rules should be considered
6989 -- as a tree file for the argument source file, gnatstub
6990 -- will refuse to create the tree file needed to create
6991 -- a sample body unless this option is chosen.
6993 -- SAVE Do not remove the tree file (i.e., the snapshot
6994 -- of the compiler internal structures used by gnatstub)
6995 -- after creating the body stub.
6997 -- REUSE Reuse the tree file (if it exists) instead of
6998 -- creating it.
6999 -- Instead of creating the tree file for the library
7000 -- unit declaration, gnatstub tries to find it in the
7001 -- current directory and use it for creating a body.
7002 -- If the tree file is not found, no body is created.
7003 -- This option also implies `SAVE', whether or not the
7004 -- latter is set explicitly.
7006 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
7007 "-v";
7008 -- /NOVERBOSE (D)
7009 -- /VERBOSE
7011 -- Verbose mode: generate version information.
7013 Stub_Switches : aliased constant Switches :=
7014 (S_Stub_Add 'Access,
7015 S_Stub_Config 'Access,
7016 S_Stub_Current 'Access,
7017 S_Stub_Ext 'Access,
7018 S_Stub_Follow 'Access,
7019 S_Stub_Full 'Access,
7020 S_Stub_Header 'Access,
7021 S_Stub_Header_File'Access,
7022 S_Stub_Indent 'Access,
7023 S_Stub_Keep 'Access,
7024 S_Stub_Length 'Access,
7025 S_Stub_Mess 'Access,
7026 S_Stub_Output 'Access,
7027 S_Stub_Project 'Access,
7028 S_Stub_No_Exc 'Access,
7029 S_Stub_No_Head 'Access,
7030 S_Stub_Quiet 'Access,
7031 S_Stub_Search 'Access,
7032 S_Stub_Subdirs 'Access,
7033 S_Stub_Tree 'Access,
7034 S_Stub_Verbose 'Access);
7036 ----------------------------
7037 -- Switches for GNAT SYNC --
7038 ----------------------------
7040 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7041 "-aP*";
7042 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7044 -- Add directories to the project search path.
7046 S_Sync_All : aliased constant S := "/ALL " &
7047 "-a";
7048 -- /NOALL (D)
7049 -- /ALL
7051 -- Also check the components of the GNAT run time and process the needed
7052 -- components of the GNAT RTL when building and analyzing the global
7053 -- structure for checking the global rules.
7055 S_Sync_Allproj : aliased constant S := "/ALL_PROJECTS " &
7056 "-U";
7057 -- /NOALL_PROJECTS (D)
7058 -- /ALL_PROJECTS
7060 -- When GNAT SYNC is used with a Project File and no source is
7061 -- specified, the underlying tool gnatsync is called for all the
7062 -- sources of all the Project Files in the project tree.
7064 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7065 "-X" & '"';
7066 -- /EXTERNAL_REFERENCE="name=val"
7068 -- Specifies an external reference to the project manager. Useful only if
7069 -- /PROJECT_FILE is used.
7071 -- Example:
7072 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7074 S_Sync_Files : aliased constant S := "/FILES=@" &
7075 "-files=@";
7076 -- /FILES=filename
7078 -- Take as arguments the files that are listed in the specified
7079 -- text file.
7081 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7082 "-eL";
7083 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7084 -- /FOLLOW_LINKS_FOR_FILES
7086 -- Follow links when parsing project files
7088 S_Sync_Main : aliased constant S := "/MAIN_SUBPROGRAM=@" &
7089 "-main=@";
7090 -- /MAIN_SUBPROGRAM=filename
7092 -- Specify the name of the file containing the main subprogram
7094 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7095 "DEFAULT " &
7096 "-vP0 " &
7097 "MEDIUM " &
7098 "-vP1 " &
7099 "HIGH " &
7100 "-vP2";
7101 -- /MESSAGES_PROJECT_FILE[=messages-option]
7103 -- Specifies the "verbosity" of the parsing of project files.
7104 -- messages-option may be one of the following:
7106 -- DEFAULT (D) No messages are output if there is no error or warning.
7108 -- MEDIUM A small number of messages are output.
7110 -- HIGH A great number of messages are output, most of them not
7111 -- being useful for the user.
7113 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
7114 "-P>";
7115 -- /PROJECT_FILE=filename
7117 -- Specifies the main project file to be used. The project files rooted
7118 -- at the main project file will be parsed before the invocation of the
7119 -- gnatcheck. The source directories to be searched will be communicated
7120 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
7122 S_Sync_Quiet : aliased constant S := "/QUIET " &
7123 "-q";
7124 -- /NOQUIET (D)
7125 -- /QUIET
7127 -- Work quietly, only output warnings and errors.
7129 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
7130 "--subdirs=>";
7131 -- /SUBDIRS=dir
7133 -- The actual directories (object, exec, library, ...) are subdirectories
7134 -- of the directory specified in the project file. If the subdirectory
7135 -- does not exist, it is created automatically.
7137 S_Sync_Verb : aliased constant S := "/VERBOSE " &
7138 "-v";
7139 -- /NOVERBOSE (D)
7140 -- /VERBOSE
7142 -- The version number and copyright notice are output, as well as exact
7143 -- copies of the gnat1 commands spawned to obtain the chop control
7144 -- information.
7146 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
7147 "-t";
7148 -- /NOEXECUTION_TIME (D)
7149 -- /EXECUTION_TIME
7151 -- Output the execution time
7153 S_Sync_Details : aliased constant S := "/DETAILS=" &
7154 "MEDIUM " &
7155 "-om " &
7156 "SHORT " &
7157 "-os " &
7158 "FULL " &
7159 "-of";
7160 -- /DETAILS[=options]
7162 -- Specifies the details of the output.
7163 -- Options may be one of the following:
7165 -- MEDIUM (D)
7166 -- SHORT
7167 -- FULL
7169 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
7170 "-wq";
7172 -- /WARNINGS_OFF
7174 -- Turn warnings off
7176 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
7177 "-out_file=>";
7179 -- /OUTPUT_FILE=filename
7181 -- Redirect output to a text file
7183 Sync_Switches : aliased constant Switches :=
7184 (S_Sync_Add 'Access,
7185 S_Sync_All 'Access,
7186 S_Sync_Allproj 'Access,
7187 S_Sync_Ext 'Access,
7188 S_Sync_Follow 'Access,
7189 S_Sync_Files 'Access,
7190 S_Sync_Main 'Access,
7191 S_Sync_Mess 'Access,
7192 S_Sync_Project 'Access,
7193 S_Sync_Quiet 'Access,
7194 S_Sync_Subdirs 'Access,
7195 S_Sync_Verb 'Access,
7196 S_Sync_Exec 'Access,
7197 S_Sync_Details 'Access,
7198 S_Sync_Warnoff 'Access,
7199 S_Sync_Output 'Access);
7201 ----------------------------
7202 -- Switches for GNAT TEST --
7203 ----------------------------
7205 Test_Switches : aliased constant Switches :=
7206 (1 .. 0 => null);
7208 ----------------------------
7209 -- Switches for GNAT XREF --
7210 ----------------------------
7212 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
7213 "-aP*";
7214 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
7216 -- Add directories to the project search path.
7218 S_Xref_All : aliased constant S := "/ALL_FILES " &
7219 "-a";
7220 -- /NOALL_FILES (D)
7221 -- /ALL_FILES
7223 -- If this switch is present, FIND and XREF will parse the read-only
7224 -- files found in the library search path. Otherwise, these files will
7225 -- be ignored. This option can be used to protect Gnat sources or your
7226 -- own libraries from being parsed, thus making FIND and XREF much
7227 -- faster, and their output much smaller.
7229 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
7230 "-d";
7231 -- /NODERIVED_TYPES (D)
7232 -- /DERIVED_TYPES
7234 -- Output the parent type reference for each matching derived types.
7236 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
7237 "-X" & '"';
7238 -- /EXTERNAL_REFERENCE="name=val"
7240 -- Specifies an external reference to the project manager. Useful only if
7241 -- /PROJECT_FILE is used.
7243 -- Example:
7244 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
7246 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
7247 "-eL";
7248 -- /NOFOLLOW_LINKS_FOR_FILES (D)
7249 -- /FOLLOW_LINKS_FOR_FILES
7251 -- Follow links when parsing project files
7253 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
7254 "-f";
7255 -- /NOFULL_PATHNAME (D)
7256 -- /FULL_PATHNAME
7258 -- If this switch is set, the output file names will be preceded by their
7259 -- directory (if the file was found in the search path). If this switch
7260 -- is not set, the directory will not be printed.
7262 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
7263 "-g";
7264 -- /NOIGNORE_LOCALS (D)
7265 -- /IGNORE_LOCALS
7267 -- If this switch is set, information is output only for library-level
7268 -- entities, ignoring local entities. The use of this switch may
7269 -- accelerate FIND and XREF.
7271 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
7272 "DEFAULT " &
7273 "-vP0 " &
7274 "MEDIUM " &
7275 "-vP1 " &
7276 "HIGH " &
7277 "-vP2";
7278 -- /MESSAGES_PROJECT_FILE[=messages-option]
7280 -- Specifies the "verbosity" of the parsing of project files.
7281 -- messages-option may be one of the following:
7283 -- DEFAULT (D) No messages are output if there is no error or warning.
7285 -- MEDIUM A small number of messages are output.
7287 -- HIGH A great number of messages are output, most of them not
7288 -- being useful for the user.
7290 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
7291 "-nostdinc";
7292 -- /NOSTD_INCLUDES
7294 -- Do not look for sources in the system default directory.
7296 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
7297 "-nostdlib";
7298 -- /NOSTD_LIBRARIES
7300 -- Do not look for library files in the system default directory.
7302 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
7303 "-aO*";
7304 -- /OBJECT_SEARCH=(directory,...)
7306 -- When searching for library and object files, look in the specified
7307 -- directories. The order in which library files are searched is the same
7308 -- as for MAKE.
7310 S_Xref_Project : aliased constant S := "/PROJECT=@" &
7311 "-p@";
7312 -- /PROJECT=file
7314 -- Specify a project file to use. By default, FIND and XREF will try to
7315 -- locate a project file in the current directory.
7317 -- If a project file is either specified or found by the tools, then the
7318 -- content of the source directory and object directory lines are added
7319 -- as if they had been specified respectively by /SOURCE_SEARCH and
7320 -- /OBJECT_SEARCH.
7322 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
7323 "-P>";
7324 -- /PROJECT_FILE=filename
7326 -- Specifies the main project file to be used. The project files rooted
7327 -- at the main project file will be parsed before doing any processing.
7328 -- The source and object directories to be searched will be communicated
7329 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
7330 -- ADA_PRJ_OBJECTS_FILE.
7332 S_Xref_Search : aliased constant S := "/SEARCH=*" &
7333 "-I*";
7334 -- /SEARCH=(directory,...)
7336 -- Equivalent to:
7337 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
7339 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
7340 "-aI*";
7341 -- /SOURCE_SEARCH=(directory,...)
7343 -- When looking for source files also look in the specified directories.
7344 -- The order in which source file search is undertaken is the same as for
7345 -- MAKE.
7347 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
7348 "--subdirs=>";
7349 -- /SUBDIRS=dir
7351 -- The actual directories (object, exec, library, ...) are subdirectories
7352 -- of the directory specified in the project file. If the subdirectory
7353 -- does not exist, it is created automatically.
7355 S_Xref_Output : aliased constant S := "/UNUSED " &
7356 "-u";
7357 -- /SOURCE_SEARCH=(directory,...)
7359 -- When looking for source files also look in the specified directories.
7360 -- The order in which source file search is undertaken is the same as for
7361 -- MAKE.
7363 S_Xref_Tags : aliased constant S := "/TAGS " &
7364 "-v";
7365 -- /NOTAGS (D)
7366 -- /TAGS
7368 -- Print a 'tags' file for vi.
7370 Xref_Switches : aliased constant Switches :=
7371 (S_Xref_Add 'Access,
7372 S_Xref_All 'Access,
7373 S_Xref_Deriv 'Access,
7374 S_Xref_Ext 'Access,
7375 S_Xref_Follow 'Access,
7376 S_Xref_Full 'Access,
7377 S_Xref_Global 'Access,
7378 S_Xref_Mess 'Access,
7379 S_Xref_Nostinc 'Access,
7380 S_Xref_Nostlib 'Access,
7381 S_Xref_Object 'Access,
7382 S_Xref_Project 'Access,
7383 S_Xref_Prj 'Access,
7384 S_Xref_Search 'Access,
7385 S_Xref_Source 'Access,
7386 S_Xref_Subdirs 'Access,
7387 S_Xref_Output 'Access,
7388 S_Xref_Tags 'Access);
7390 end VMS_Data;