* gcc.dg/compat/struct-layout-1_generate.c (dg_options): New. Moved
[official-gcc.git] / gcc / ada / vms_data.ads
blob446f7cba8b9b4e4c305614fde0ed4481719aa9a1
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-2008, 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 999.
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_Bind : aliased constant S := "/BIND_FILE=" &
200 "ADA " &
201 "-A " &
202 "C " &
203 "-C";
204 -- /BIND_FILE[=bind-file-option]
206 -- Specifies the language of the binder generated file.
208 -- ADA (D) Binder file is Ada.
210 -- C Binder file is 'C'.
212 S_Bind_Build : aliased constant S := "/BUILD_LIBRARY=|" &
213 "-L|";
214 -- /BUILD_LIBRARY=xxx
216 -- Binds the units for library building. In this case the adainit and
217 -- adafinal procedures are rename to xxxinit and xxxfinal. Implies
218 -- /NOMAIN.
220 S_Bind_Current : aliased constant S := "/CURRENT_DIRECTORY " &
221 "!-I-";
222 -- /CURRENT_DIRECTORY (D)
223 -- /NOCURRENT_DIRECTORY
225 -- Look for source, library or object files in the default directory.
227 S_Bind_Debug : aliased constant S := "/DEBUG=" &
228 "TRACEBACK " &
229 "-g2 " &
230 "ALL " &
231 "-g3 " &
232 "NONE " &
233 "-g0 " &
234 "SYMBOLS " &
235 "-g1 " &
236 "NOSYMBOLS " &
237 "!-g1 " &
238 "LINK " &
239 "-g3 " &
240 "NOTRACEBACK " &
241 "!-g2";
242 -- /DEBUG[=debug-level]
243 -- /NODEBUG
245 -- Specify level of debugging information generated for the elaboration
246 -- routine. See corresponding qualifier for GNAT COMPILE.
248 S_Bind_DebugX : aliased constant S := "/NODEBUG " &
249 "!-g";
250 -- NODOC (see /DEBUG)
252 S_Bind_Elab : aliased constant S := "/ELABORATION_DEPENDENCIES " &
253 "-e";
254 -- /ELABORATION_DEPENDENCIES
255 -- /NOELABORATION_DEPENDENCIES (D)
257 -- Output complete list of elaboration-order dependencies, showing the
258 -- reason for each dependency. This output can be rather extensive but may
259 -- be useful in diagnosing problems with elaboration order. The output is
260 -- written to SYS$OUTPUT.
262 S_Bind_Error : aliased constant S := "/ERROR_LIMIT=#" &
263 "-m#";
264 -- /ERROR_LIMIT=nnn
266 -- Limit number of detected errors to nnn (1-999999).
268 S_Bind_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
269 "-X" & '"';
270 -- /EXTERNAL_REFERENCE="name=val"
272 -- Specifies an external reference to the project manager. Useful only if
273 -- /PROJECT_FILE is used.
275 -- Example:
276 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
278 S_Bind_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
279 "-eL";
280 -- /NOFOLLOW_LINKS_FOR_FILES (D)
281 -- /FOLLOW_LINKS_FOR_FILES
283 -- Follow links when parsing project files
285 S_Bind_Force : aliased constant S := "/FORCE_ELAB_FLAGS " &
286 "-F";
287 -- /NOFORCE_ELAB_FLAGS (D)
288 -- /FORCE_ELAB_FLAGS
290 -- Force checking of elaboration Flags
292 S_Bind_Help : aliased constant S := "/HELP " &
293 "-h";
294 -- /HELP
296 -- Output usage information.
298 S_Bind_Init : aliased constant S := "/INITIALIZE_SCALARS=" &
299 "INVALID " &
300 "-Sin " &
301 "LOW " &
302 "-Slo " &
303 "HIGH " &
304 "-Shi";
305 -- /INITIALIZE_SCALARS[=scalar-option]
307 -- Indicate how uninitialized scalar values for which a pragma
308 -- Initialize_Scalars applies should be initialized.
309 -- scalar-option may be one of the following:
311 -- INVALID (D) Initialize with an invalid value.
312 -- LOW Initialize with the lowest valid value of the subtype.
313 -- HIGH Initialize with the highest valid value of the subtype.
315 S_Bind_Leap : aliased constant S := "/ENABLE_LEAP_SECONDS " &
316 "-y";
317 -- /ENABLE_LEAP_SECONDS
318 -- /NOENABLE_LEAP_SECONDS (D)
320 -- Enable leap seconds support in Ada.Calendar and its children.
322 S_Bind_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
323 "-aO*";
324 -- /LIBRARY_SEARCH=(direc[,...])
326 -- When looking for library and object files look also in directories
327 -- specified.
329 S_Bind_Linker : aliased constant S := "/LINKER_OPTION_LIST " &
330 "-K";
331 -- /NOLINKER_OPTION_LIST (D)
332 -- /LINKER_OPTION_LIST
334 -- Output linker options to SYS$OUTPUT. Includes library search
335 -- paths, contents of pragmas Ident and Linker_Options, and
336 -- libraries added by GNAT BIND.
338 S_Bind_Main : aliased constant S := "/MAIN " &
339 "!-n";
340 -- /MAIN (D)
342 -- The main program is in Ada.
344 -- /NOMAIN
346 -- The main program is not in Ada.
348 S_Bind_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
349 "DEFAULT " &
350 "-vP0 " &
351 "MEDIUM " &
352 "-vP1 " &
353 "HIGH " &
354 "-vP2";
355 -- /MESSAGES_PROJECT_FILE[=messages-option]
357 -- Specifies the "verbosity" of the parsing of project files.
358 -- messages-option may be one of the following:
360 -- DEFAULT (D) No messages are output if there is no error or warning.
362 -- MEDIUM A small number of messages are output.
364 -- HIGH A great number of messages are output, most of them not
365 -- being useful for the user.
367 S_Bind_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
368 "-nostdinc";
369 -- /NOSTD_INCLUDES
371 -- Do not look for sources the in the system default directory.
373 S_Bind_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
374 "-nostdlib";
375 -- /NOSTD_LIBRARIES
377 -- Do not look for library files in the system default directory.
379 S_Bind_No_Time : aliased constant S := "/NO_TIME_STAMP_CHECK " &
380 "-t";
381 -- NODOC (see /TIME_STAMP_CHECK)
383 S_Bind_Object : aliased constant S := "/OBJECT_LIST " &
384 "-O";
385 -- /NOOBJECT_LIST (D)
386 -- /OBJECT_LIST
388 -- Output full names of all the object files that must be linker to
389 -- provide the Ada component of the program. The output is written to
390 -- SYS$OUTPUT.
392 S_Bind_Order : aliased constant S := "/ORDER_OF_ELABORATION " &
393 "-l";
394 -- /NOORDER_OF_ELABORATION (D)
395 -- /ORDER_OF_ELABORATION
397 -- Output chosen elaboration order. The output is written to SYS$OUTPUT.
399 S_Bind_Output : aliased constant S := "/OUTPUT=@" &
400 "-o@";
401 -- /OUTPUT=filename
403 -- File name to use for the program containing the elaboration code.
405 S_Bind_OutputX : aliased constant S := "/NOOUTPUT " &
406 "-c";
407 -- /NOOUTPUT
409 -- Check only. Do not generate the binder output file.
411 -- In this mode the binder performs all error checks but does not generate
412 -- an output file.
414 S_Bind_Pess : aliased constant S := "/PESSIMISTIC_ELABORATION " &
415 "-p";
416 -- /PESSIMISTIC_ELABORATION
418 -- Causes the binder to choose a "pessimistic" elaboration order, i.e. one
419 -- which is most likely to cause elaboration order problems. This can be
420 -- useful in testing portable code to make sure that there are no missing
421 -- elaborate pragmas.
423 S_Bind_Project : aliased constant S := "/PROJECT_FILE=<" &
424 "-P>";
425 -- /PROJECT_FILE=filename
427 -- Specifies the main project file to be used. The project files rooted
428 -- at the main project file will be parsed before the invocation of the
429 -- binder. The source and object directories to be searched will be
430 -- communicated to the binder through logical names ADA_PRJ_INCLUDE_FILE
431 -- and ADA_PRJ_OBJECTS_FILE.
433 S_Bind_Read : aliased constant S := "/READ_SOURCES=" &
434 "ALL " &
435 "-s " &
436 "NONE " &
437 "-x " &
438 "AVAILABLE " &
439 "!-x,!-s";
440 -- /READ_SOURCES[=(keyword[,...])]
441 -- /NOREAD_SOURCES
443 -- The following keyword are accepted:
445 -- ALL (D) Require source files to be present. In this mode, the
446 -- binder insists on being able to locate all source files
447 -- that are referenced and checks their consistency. In
448 -- normal mode, if a source file cannot be located it is
449 -- simply ignored. If you specify the ALL keyword, a
450 -- missing source file is an error.
452 -- NONE Exclude source files. In this mode, the binder only
453 -- checks that ALI files are consistent with one another.
454 -- source files are not accessed. The binder runs faster
455 -- in this mode, and there is still a guarantee that the
456 -- resulting program is self-consistent.
458 -- If a source file has been edited since it was last
459 -- compiled and you specify the NONE keyword, the binder
460 -- will not detect that the object file is out of date
461 -- with the source file.
463 -- This is the same as specifying /NOREAD_SOURCES.
465 -- AVAILABLE Check that object files are consistent with one
466 -- another and are consistent with any source files that
467 -- can be located.
469 S_Bind_ReadX : aliased constant S := "/NOREAD_SOURCES " &
470 "-x";
471 -- NODOC (see /READ_SOURCES)
473 S_Bind_Rename : aliased constant S := "/RENAME_MAIN=<" &
474 "-M>";
475 -- /RENAME_MAIN=xxx
477 -- Renames the generated main program from main to xxx.
478 -- This is useful in the case of some cross-building environments, where
479 -- the actual main program is separate from the one generated
480 -- by GNAT BIND.
482 S_Bind_Report : aliased constant S := "/REPORT_ERRORS=" &
483 "VERBOSE " &
484 "-v " &
485 "BRIEF " &
486 "-b " &
487 "DEFAULT " &
488 "!-b,!-v";
489 -- /REPORT_ERRORS[=(keyword[,...])]
490 -- VERBOSE (D)
491 -- BRIEF
492 -- DEFAULT
493 -- /NOREPORT_ERRORS
495 -- With the DEFAULT keyword (which is not the default when the binder is
496 -- run from GNAT BIND) or the /NOREPORT_ERRORS qualifier, brief error
497 -- messages are generated to SYS$ERROR. If the VERBOSE keyword is
498 -- present, a header is written to SYS$OUTPUT and any error messages are
499 -- directed to SYS$OUTPUT All that is written to SYS$ERROR is a brief
500 -- summary message.
502 -- If the BRIEF keyword is specified, the binder will generate brief error
503 -- messages to SYS$ERROR even if verbose mode is specified. This is
504 -- relevant only when used together with the VERBOSE keyword or /VERBOSE
505 -- qualifier.
507 S_Bind_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
508 "!-b,!-v";
509 -- NODOC (see /REPORT_ERRORS)
511 S_Bind_Restr : aliased constant S := "/RESTRICTION_LIST " &
512 "-r";
513 -- /NORESTRICTION_LIST (D)
514 -- /RESTRICTION_LIST
516 -- Generate list of pragma Restrictions that could be applied to the
517 -- current unit. This is useful for code audit purposes, and also may be
518 -- used to improve code generation in some cases.
520 S_Bind_Return : aliased constant S := "/RETURN_CODES=" &
521 "POSIX " &
522 "!-X1 " &
523 "VMS " &
524 "-X1";
525 -- /RETURN_CODES=POSIX (D)
526 -- /RETURN_CODES=VMS
528 -- Specifies the style of default exit code returned. Must be used in
529 -- conjunction with and match the Link qualifier with same name.
531 -- POSIX (D) Return Posix success (0) by default.
533 -- VMS Return VMS success (1) by default.
535 S_Bind_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
536 "--RTS=|";
537 -- /RUNTIME_SYSTEM=xxx
539 -- Binds against an alternate runtime system named xxx or RTS-xxx.
541 S_Bind_Search : aliased constant S := "/SEARCH=*" &
542 "-I*";
543 -- /SEARCH=(directory[,...])
545 -- When looking for source or object files also look in directories
546 -- specified.
548 -- This is the same as specifying both /LIBRARY_SEARCH and /SOURCE_SEARCH
549 -- for a directory.
551 S_Bind_Shared : aliased constant S := "/SHARED " &
552 "-shared,!-static";
553 -- /SHARED
554 -- /NOSHARED
556 -- Link against a shared GNAT run time when available.
558 S_Bind_Slice : aliased constant S := "/TIME_SLICE=#" &
559 "-T#";
560 -- /TIME_SLICE=nnn
562 -- Set the time slice value to nnn milliseconds. A value of zero means no
563 -- time slicing and also indicates to the tasking run time to match as
564 -- close as possible to the annex D requirements of the RM.
566 S_Bind_Source : aliased constant S := "/SOURCE_SEARCH=*" &
567 "-aI*";
568 -- /SOURCE_SEARCH=(directory[,...])
570 -- When looking for source files also look in directories specified.
572 S_Bind_Static : aliased constant S := "/STATIC " &
573 "-static,!-shared";
574 -- /STATIC
575 -- /NOSTATIC
577 -- Link against a static GNAT run time.
579 S_Bind_Store : aliased constant S := "/STORE_TRACEBACKS " &
580 "-E";
581 -- /STORE_TRACEBACKS (D)
582 -- /NOSTORE_TRACEBACKS
584 -- Store tracebacks in exception occurrences.
585 -- This is the default on VMS, with the zero-cost exception mechanism.
586 -- This qualifier has no impact, except when using the setjmp/longjmp
587 -- exception mechanism, with the GNAT COMPILE qualifier /LONGJMP_SETJMP.
589 S_Bind_Subdirs : aliased constant S := "/SUBDIRS=<" &
590 "--subdirs=>";
591 -- /SUBDIRS=dir
593 -- The actual directories (object, exec, library, ...) are subdirectories
594 -- of the directory specified in the project file. If the subdirectory
595 -- does not exist, it is created automatically.
597 S_Bind_Time : aliased constant S := "/TIME_STAMP_CHECK " &
598 "!-t";
599 -- /TIME_STAMP_CHECK (D)
601 -- Time stamp errors will be treated as errors.
603 -- /NOTIME_STAMP_CHECK
605 -- Ignore time stamp errors. Any time stamp error messages are treated as
606 -- warning messages. This switch essentially disconnects the normal
607 -- consistency checking, and the resulting program may have undefined
608 -- semantics if inconsistent units are present.
610 -- This means that /NOTIME_STAMP_CHECK should be used only in unusual
611 -- situations, with extreme care.
613 S_Bind_Verbose : aliased constant S := "/VERBOSE " &
614 "-v";
615 -- /VERBOSE (D)
616 -- /NOVERBOSE
618 -- Equivalent to /REPORT_ERRORS=VERBOSE.
620 S_Bind_Warn : aliased constant S := "/WARNINGS=" &
621 "NORMAL " &
622 "!-ws,!-we " &
623 "SUPPRESS " &
624 "-ws " &
625 "ERROR " &
626 "-we";
627 -- /WARNINGS[=(keyword[,...])]
628 -- /NOWARNINGS
630 -- The following keywords are supported:
632 -- NORMAL (D) Print warning messages and treat them as warning.
633 -- SUPPRESS Suppress all warning messages (same as /NOWARNINGS).
634 -- ERROR Treat any warning messages as fatal errors
636 S_Bind_WarnX : aliased constant S := "/NOWARNINGS " &
637 "-ws";
638 -- NODOC (see /WARNINGS)
640 S_Bind_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
641 "BRACKETS " &
642 "-gnatWb " &
643 "HEX " &
644 "-gnatWh " &
645 "UPPER " &
646 "-gnatWu " &
647 "SHIFT_JIS " &
648 "-gnatWs " &
649 "UTF8 " &
650 "-gnatW8 " &
651 "EUC " &
652 "-gnatWe";
653 -- /NOWIDE_CHARACTER_ENCODING (D)
654 -- /WIDE_CHARACTER_ENCODING[=encode-type]
656 -- Specifies the mechanism used to encode wide characters, overriding
657 -- the default as set by the /WIDE_CHARACTER_ENCODING option for the
658 -- compilation of the main program.
660 S_Bind_Zero : aliased constant S := "/ZERO_MAIN " &
661 "-z";
662 -- /NOZERO_MAIN (D)
663 -- /ZERO_MAIN
665 -- Normally the binder checks that the unit name given on the command line
666 -- corresponds to a suitable main subprogram. When /ZERO_MAIN is used,
667 -- a list of ALI files can be given, and the execution of the program
668 -- consists of elaboration of these units in an appropriate order.
670 Bind_Switches : aliased constant Switches :=
671 (S_Bind_Add 'Access,
672 S_Bind_Bind 'Access,
673 S_Bind_Build 'Access,
674 S_Bind_Current 'Access,
675 S_Bind_Debug 'Access,
676 S_Bind_DebugX 'Access,
677 S_Bind_Elab 'Access,
678 S_Bind_Error 'Access,
679 S_Bind_Ext 'Access,
680 S_Bind_Follow 'Access,
681 S_Bind_Force 'Access,
682 S_Bind_Help 'Access,
683 S_Bind_Init 'Access,
684 S_Bind_Leap 'Access,
685 S_Bind_Library 'Access,
686 S_Bind_Linker 'Access,
687 S_Bind_Main 'Access,
688 S_Bind_Mess 'Access,
689 S_Bind_Nostinc 'Access,
690 S_Bind_Nostlib 'Access,
691 S_Bind_No_Time 'Access,
692 S_Bind_Object 'Access,
693 S_Bind_Order 'Access,
694 S_Bind_Output 'Access,
695 S_Bind_OutputX 'Access,
696 S_Bind_Pess 'Access,
697 S_Bind_Project 'Access,
698 S_Bind_Read 'Access,
699 S_Bind_ReadX 'Access,
700 S_Bind_Rename 'Access,
701 S_Bind_Report 'Access,
702 S_Bind_ReportX 'Access,
703 S_Bind_Restr 'Access,
704 S_Bind_Return 'Access,
705 S_Bind_RTS 'Access,
706 S_Bind_Search 'Access,
707 S_Bind_Shared 'Access,
708 S_Bind_Slice 'Access,
709 S_Bind_Source 'Access,
710 S_Bind_Static 'Access,
711 S_Bind_Store 'Access,
712 S_Bind_Subdirs 'Access,
713 S_Bind_Time 'Access,
714 S_Bind_Verbose 'Access,
715 S_Bind_Warn 'Access,
716 S_Bind_WarnX 'Access,
717 S_Bind_Wide 'Access,
718 S_Bind_Zero 'Access);
720 -----------------------------
721 -- Switches for GNAT CHECK --
722 -----------------------------
724 S_Check_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
725 "-aP*";
726 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
728 -- Add directories to the project search path.
730 S_Check_All : aliased constant S := "/ALL " &
731 "-a";
732 -- /NOALL (D)
733 -- /ALL
735 -- Also check the components of the GNAT run time and process the needed
736 -- components of the GNAT RTL when building and analyzing the global
737 -- structure for checking the global rules.
739 S_Check_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
740 "-X" & '"';
741 -- /EXTERNAL_REFERENCE="name=val"
743 -- Specifies an external reference to the project manager. Useful only if
744 -- /PROJECT_FILE is used.
746 -- Example:
747 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
749 S_Check_Files : aliased constant S := "/FILES=@" &
750 "-files=@";
751 -- /FILES=filename
753 -- Take as arguments the files that are listed in the specified
754 -- text file.
756 S_Check_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
757 "-eL";
758 -- /NOFOLLOW_LINKS_FOR_FILES (D)
759 -- /FOLLOW_LINKS_FOR_FILES
761 -- Follow links when parsing project files
763 S_Check_Help : aliased constant S := "/HELP " &
764 "-h";
765 -- /NOHELP (D)
766 -- /HELP
768 -- Print information about currently implemented checks.
770 S_Check_Locs : aliased constant S := "/LOCS " &
771 "-l";
772 -- /NOLOCS (D)
773 -- /LOCS
775 -- Use full source locations references in the report file.
777 S_Diagnosis : aliased constant S := "/DIAGNOSIS_LIMIT=#" &
778 "-m#";
779 -- /DIAGNOSIS_LIMIT=500 (D)
780 -- /ERROR_LIMIT=nnn
782 -- NNN is a decimal integer in the range of 1 to 1000 and limits the
783 -- number of diagnostic messages to be generated into Stdout to that
784 -- number. Once that number has been reached, gnatcheck stops
785 -- to print out diagnoses into Stderr. If NNN is equal to 0, this means
786 -- that there is no limit on the number of diagnoses in Stdout
788 S_Check_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
789 "DEFAULT " &
790 "-vP0 " &
791 "MEDIUM " &
792 "-vP1 " &
793 "HIGH " &
794 "-vP2";
795 -- /MESSAGES_PROJECT_FILE[=messages-option]
797 -- Specifies the "verbosity" of the parsing of project files.
798 -- messages-option may be one of the following:
800 -- DEFAULT (D) No messages are output if there is no error or warning.
802 -- MEDIUM A small number of messages are output.
804 -- HIGH A great number of messages are output, most of them not
805 -- being useful for the user.
807 S_Check_Project : aliased constant S := "/PROJECT_FILE=<" &
808 "-P>";
809 -- /PROJECT_FILE=filename
811 -- Specifies the main project file to be used. The project files rooted
812 -- at the main project file will be parsed before the invocation of the
813 -- gnatcheck. The source directories to be searched will be communicated
814 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
816 S_Check_Quiet : aliased constant S := "/QUIET " &
817 "-q";
818 -- /NOQUIET (D)
819 -- /QUIET
821 -- Work quietly, only output warnings and errors.
823 S_Check_Sections : aliased constant S := "/SECTIONS=" &
824 "DEFAULT " &
825 "-s123 " &
826 "COMPILER_STYLE " &
827 "-s1 " &
828 "BY_RULES " &
829 "-s2 " &
830 "BY_FILES_BY_RULES " &
831 "-s3";
832 -- /SECTIONS[=section-option, section-option, ...]
834 -- Specify what sections should be included into the report file.
835 -- By default, all three section (diagnoses in the format corresponding
836 -- to compiler error and warning messages, diagnoses grouped by rules and
837 -- then - by files, diagnoses grouped by files and then - by rules) are
838 -- included in the report file.
840 -- section-option may be one of the following:
842 -- COMPILER_STYLE Include diagnostics in compile-style format
843 -- (diagnoses are grouped by files, for each file
844 -- they are ordered according to the references
845 -- into the source)
846 -- BY_RULES Include diagnostics grouped first by rules and
847 -- then by files
848 -- BY_FILES_BY_RULES Include diagnostics grouped first by files and
849 -- then by rules
851 -- If one of these options is specified, then the report file contains
852 -- only sections set by these options
854 S_Check_Short : aliased constant S := "/SHORT " &
855 "-s";
856 -- /NOSHORT (D)
857 -- /SHORT
859 -- Generate a short form of the report file.
861 S_Check_Subdirs : aliased constant S := "/SUBDIRS=<" &
862 "--subdirs=>";
863 -- /SUBDIRS=dir
865 -- The actual directories (object, exec, library, ...) are subdirectories
866 -- of the directory specified in the project file. If the subdirectory
867 -- does not exist, it is created automatically.
869 S_Check_Verb : aliased constant S := "/VERBOSE " &
870 "-v";
871 -- /NOVERBOSE (D)
872 -- /VERBOSE
874 -- The version number and copyright notice are output, as well as exact
875 -- copies of the gnat1 commands spawned to obtain the chop control
876 -- information.
878 Check_Switches : aliased constant Switches :=
879 (S_Check_Add 'Access,
880 S_Check_All 'Access,
881 S_Diagnosis 'Access,
882 S_Check_Ext 'Access,
883 S_Check_Files 'Access,
884 S_Check_Follow 'Access,
885 S_Check_Help 'Access,
886 S_Check_Locs 'Access,
887 S_Check_Mess 'Access,
888 S_Check_Project 'Access,
889 S_Check_Quiet 'Access,
890 S_Check_Sections 'Access,
891 S_Check_Short 'Access,
892 S_Check_Subdirs 'Access,
893 S_Check_Verb 'Access);
895 ----------------------------
896 -- Switches for GNAT CHOP --
897 ----------------------------
899 S_Chop_Comp : aliased constant S := "/COMPILATION " &
900 "-c";
901 -- /NOCOMPILATION (D)
902 -- /COMPILATION
904 -- Compilation mode, handle configuration pragmas strictly according to
905 -- RM rules.
907 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
908 "-k#";
909 -- /FILE_NAME_MAX_LENGTH[=nnn]
911 -- Limit generated file names to NNN (default of 8) characters. This is
912 -- useful if the resulting set of files is required to be interoperable
913 -- with systems like MS-DOS which limit the length of file names.
915 S_Chop_Help : aliased constant S := "/HELP " &
916 "-h";
917 -- /NOHELP (D)
918 -- /HELP
920 -- Print usage information.
922 S_Chop_Over : aliased constant S := "/OVERWRITE " &
923 "-w";
924 -- /NOOVERWRITE (D)
925 -- /OVERWRITE
927 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
928 -- fatal error situation if there is already a file with the same name as
929 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
930 -- this check, and any such existing files will be silently overwritten.
932 S_Chop_Pres : aliased constant S := "/PRESERVE " &
933 "-p";
934 -- /NOPRESERVE (D)
935 -- /PRESERVE
937 -- Causes the file modification time stamp of the input file to be
938 -- preserved and used for the time stamp of the output file(s). This may
939 -- be useful for preserving coherency of time stamps in an environment
940 -- where gnatchop is used as part of a standard build process.
942 S_Chop_Quiet : aliased constant S := "/QUIET " &
943 "-q";
944 -- /NOQUIET (D)
945 -- /QUIET
947 -- Work quietly, only output warnings and errors.
949 S_Chop_Ref : aliased constant S := "/REFERENCE " &
950 "-r";
951 -- /NOREFERENCE (D)
952 -- /REFERENCE
954 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
955 -- files are regarded as temporary and development is to be done in terms
956 -- of the original unchopped file. The /REFERENCE qualifier causes
957 -- "Source_Reference" pragmas to be inserted into each of the generated
958 -- files to refers back to the original file name and line number. The
959 -- result is that all error messages refer back to the original unchopped
960 -- file.
962 -- In addition, the debugging information placed into the object file
963 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
964 -- also refers back to this original file so that tools like profilers
965 -- and debuggers will give information in terms of the original unchopped
966 -- file.
968 S_Chop_Verb : aliased constant S := "/VERBOSE " &
969 "-v";
970 -- /NOVERBOSE (D)
971 -- /VERBOSE
973 -- The version number and copyright notice are output, as well as exact
974 -- copies of the gnat1 commands spawned to obtain the chop control
975 -- information.
977 Chop_Switches : aliased constant Switches :=
978 (S_Chop_Comp 'Access,
979 S_Chop_File 'Access,
980 S_Chop_Help 'Access,
981 S_Chop_Over 'Access,
982 S_Chop_Pres 'Access,
983 S_Chop_Quiet 'Access,
984 S_Chop_Ref 'Access,
985 S_Chop_Verb 'Access);
987 -----------------------------
988 -- Switches for GNAT CLEAN --
989 -----------------------------
991 S_Clean_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
992 "-aP*";
993 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
995 -- Add directories to the project search path.
997 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
998 "-c";
999 -- /NOCOMPILER_FILES_ONLY (D)
1000 -- /COMPILER_FILES_ONLY
1002 -- Only attempt to delete the files produced by the compiler, not those
1003 -- produced by the binder or the linker. The files that are not to be
1004 -- deleted are library files, interface copy files, binder generated files
1005 -- and executable files.
1007 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1008 "!-I-";
1009 -- /CURRENT_DIRECTORY (D)
1011 -- Look for ALI or object files in the directory where GNAT CLEAN was
1012 -- invoked.
1014 -- /NOCURRENT_DIRECTORY
1016 -- Do not look for ALI or object files in the directory where GNAT CLEAN
1017 -- was invoked.
1019 S_Clean_Delete : aliased constant S := "/DELETE " &
1020 "!-n";
1021 -- /DELETE (D)
1023 -- Delete the files that are not read-only.
1025 -- /NODELETE
1027 -- Informative-only mode. Do not delete any files. Output the list of the
1028 -- files that would have been deleted if this switch was not specified.
1030 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
1031 "-D@";
1032 -- /DIRECTORY_OBJECTS=<file>
1034 -- Find the object files and .ALI files in <file>.
1035 -- This qualifier is not compatible with /PROJECT_FILE.
1037 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1038 "-X" & '"';
1039 -- /EXTERNAL_REFERENCE="name=val"
1041 -- Specifies an external reference to the project manager. Useful only if
1042 -- /PROJECT_FILE is used.
1044 -- Example:
1045 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1047 S_Clean_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1048 "-eL";
1049 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1050 -- /FOLLOW_LINKS_FOR_FILES
1052 -- Follow links when parsing project files
1054 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1055 "-F";
1056 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1057 -- /FULL_PATH_IN_BRIEF_MESSAGES
1059 -- When using project files, if some errors or warnings are detected
1060 -- during parsing and verbose mode is not in effect (no use of qualifier
1061 -- /VERBOSE), then error lines start with the full path name of the
1062 -- project file, rather than its simple file name.
1064 S_Clean_Help : aliased constant S := "/HELP " &
1065 "-h";
1066 -- /NOHELP (D)
1067 -- /HELP
1069 -- Output a message explaining the usage of gnatclean.
1071 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
1072 "-i#";
1073 -- /SOURCE_INDEX=nnn
1075 -- Specifies the index of the units in the source file
1076 -- By default, source files are mono-unit and there is no index
1078 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1079 "DEFAULT " &
1080 "-vP0 " &
1081 "MEDIUM " &
1082 "-vP1 " &
1083 "HIGH " &
1084 "-vP2";
1085 -- /MESSAGES_PROJECT_FILE[=messages-option]
1087 -- Specifies the "verbosity" of the parsing of project files.
1088 -- messages-option may be one of the following:
1090 -- DEFAULT (D) No messages are output if there is no error or warning.
1092 -- MEDIUM A small number of messages are output.
1094 -- HIGH A great number of messages are output, most of them not
1095 -- being useful for the user.
1097 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
1098 "-aO*";
1099 -- /OBJECT_SEARCH=(directory,...)
1101 -- When searching for library and object files, look in the specified
1102 -- directories. The order in which library files are searched is the same
1103 -- as for MAKE.
1105 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1106 "-P>";
1107 -- /PROJECT_FILE=filename
1109 -- Specifies the main project file to be used. The project files rooted
1110 -- at the main project file will be parsed before the invocation of the
1111 -- compiler. The source and object directories to be searched will be
1112 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1113 -- and ADA_PRJ_OBJECTS_FILE.
1115 S_Clean_Quiet : aliased constant S := "/QUIET " &
1116 "-q";
1117 -- /NOQUIET (D)
1118 -- /QUIET
1120 -- Quiet output. If there are no error, do not output anything, except in
1121 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1122 -- (qualifier /NODELETE).
1124 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1125 "-r";
1126 -- /NORECURSIVE (D)
1127 -- /RECURSIVE
1129 -- When a project file is specified (using switch -P), clean all imported
1130 -- and extended project files, recursively. If this qualifier is not
1131 -- specified, only the files related to the main project file are to be
1132 -- deleted. This qualifier has no effect if no project file is specified.
1134 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1135 "-I*";
1136 -- /SEARCH=(directory,...)
1138 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1140 S_Clean_Subdirs : aliased constant S := "/SUBDIRS=<" &
1141 "--subdirs=>";
1142 -- /SUBDIRS=dir
1144 -- The actual directories (object, exec, library, ...) are subdirectories
1145 -- of the directory specified in the project file. If the subdirectory
1146 -- does not exist, it is created automatically.
1148 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1149 "-v";
1150 -- /NOVERBOSE (D)
1151 -- /VERBOSE
1153 -- Verbose mode.
1155 Clean_Switches : aliased constant Switches :=
1156 (S_Clean_Add 'Access,
1157 S_Clean_Compil 'Access,
1158 S_Clean_Current'Access,
1159 S_Clean_Delete 'Access,
1160 S_Clean_Dirobj 'Access,
1161 S_Clean_Ext 'Access,
1162 S_Clean_Follow 'Access,
1163 S_Clean_Full 'Access,
1164 S_Clean_Help 'Access,
1165 S_Clean_Index 'Access,
1166 S_Clean_Mess 'Access,
1167 S_Clean_Object 'Access,
1168 S_Clean_Project'Access,
1169 S_Clean_Quiet 'Access,
1170 S_Clean_Recurs 'Access,
1171 S_Clean_Search 'Access,
1172 S_Clean_Subdirs'Access,
1173 S_Clean_Verbose'Access);
1175 -------------------------------
1176 -- Switches for GNAT COMPILE --
1177 -------------------------------
1179 S_GCC_Ada_83 : aliased constant S := "/83 " &
1180 "-gnat83";
1181 -- /NO83 (D)
1182 -- /83
1184 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1185 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1186 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1187 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1188 -- a perfect job; for example, some subtle tests of pathological cases,
1189 -- such as are found in ACVC tests that have been removed from the ACVC
1190 -- suite for Ada 95, may not compile correctly. However for practical
1191 -- purposes, using this qualifier should ensure that programs that
1192 -- compile correctly under the /83 qualifier can be ported reasonably
1193 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1195 -- With few exceptions (most notably the need to use "<>" on
1196 -- unconstrained generic formal parameters), it is not necessary to use
1197 -- this qualifier switch when compiling Ada 83 programs, because, with
1198 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1199 -- 83. This means that a correct Ada 83 program is usually also a correct
1200 -- Ada 95 program.
1202 S_GCC_Ada_95 : aliased constant S := "/95 " &
1203 "-gnat95";
1204 -- /95 (D)
1206 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1207 -- This is the normal default for GNAT Pro.
1209 S_GCC_Ada_05 : aliased constant S := "/05 " &
1210 "-gnat05";
1211 -- /05 (D)
1213 -- Allows GNAT to recognize all implemented proposed Ada 2005
1214 -- extensions. See features file for list of implemented features.
1216 S_GCC_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
1217 "-aP*";
1218 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
1220 -- Add directories to the project search path.
1222 S_GCC_Asm : aliased constant S := "/ASM " &
1223 "-S,!-c";
1224 -- /NOASM (D)
1225 -- /ASM
1227 -- Use to cause the assembler source file to be generated, using S as the
1228 -- filetype, instead of the object file. This may be useful if you need
1229 -- to examine the generated assembly code.
1231 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1232 "FULL " &
1233 "-gnato,!-gnatE,!-gnatp " &
1234 "OVERFLOW " &
1235 "-gnato " &
1236 "ELABORATION " &
1237 "-gnatE " &
1238 "ASSERTIONS " &
1239 "-gnata " &
1240 "DEFAULT " &
1241 "!-gnato,!-gnatp " &
1242 "STACK " &
1243 "-fstack-check " &
1244 "SUPPRESS_ALL " &
1245 "-gnatp";
1246 -- /NOCHECKS
1247 -- /CHECKS[=(keyword[,...])]
1249 -- If you compile with the default options, GNAT will insert many runtime
1250 -- checks into the compiled code, including code that performs range
1251 -- checking against constraints, but not arithmetic overflow checking for
1252 -- integer operations (including division by zero) or checks for access
1253 -- before elaboration on subprogram calls. All other runtime checks, as
1254 -- required by the Ada 95 Reference Manual, are generated by default.
1256 -- You may specify one or more of the following keywords to the /CHECKS
1257 -- qualifier to modify this behavior:
1259 -- DEFAULT The behavior described above. This is the default
1260 -- if the /CHECKS qualifier is not present on the
1261 -- command line. Same as /NOCHECKS.
1263 -- OVERFLOW Enables overflow checking for integer operations and
1264 -- checks for access before elaboration on subprogram
1265 -- calls. This causes GNAT to generate slower and larger
1266 -- executable programs by adding code to check for both
1267 -- overflow and division by zero (resulting in raising
1268 -- "Constraint_Error" as required by Ada semantics).
1269 -- Similarly, GNAT does not generate elaboration check
1270 -- by default, and you must specify this keyword to
1271 -- enable them.
1273 -- Note that this keyword does not affect the code
1274 -- generated for any floating-point operations; it
1275 -- applies only to integer operations. For floating-point,
1276 -- GNAT has the "Machine_Overflows" attribute set to
1277 -- "False" and the normal mode of operation is to generate
1278 -- IEEE NaN and infinite values on overflow or invalid
1279 -- operations (such as dividing 0.0 by 0.0).
1281 -- ELABORATION Enables dynamic checks for access-before-elaboration
1282 -- on subprogram calls and generic instantiations.
1284 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1285 -- effect and are ignored. This keyword causes "Assert"
1286 -- and "Debug" pragmas to be activated, as well as
1287 -- "Check", "Precondition" and "Postcondition" pragmas.
1289 -- SUPPRESS_ALL Suppress all runtime checks as though you have "pragma
1290 -- Suppress (all_checks)" in your source. Use this switch
1291 -- to improve the performance of the code at the expense
1292 -- of safety in the presence of invalid data or program
1293 -- bugs.
1295 -- DEFAULT Suppress the effect of any option OVERFLOW or
1296 -- ASSERTIONS.
1298 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1299 -- option ELABORATION or SUPPRESS_ALL.
1301 -- These keywords only control the default setting of the checks. You
1302 -- may modify them using either "Suppress" (to remove checks) or
1303 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1304 -- source.
1306 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1307 "-gnatp,!-gnato,!-gnatE";
1308 -- NODOC (see /CHECKS)
1310 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1311 "-gnatC";
1312 -- /NOCOMPRESS_NAMES (D)
1313 -- /COMPRESS_NAMES
1315 -- Compress debug information and external symbol name table entries.
1316 -- In the generated debugging information, and also in the case of long
1317 -- external names, the compiler uses a compression mechanism if the name
1318 -- is very long. This compression method uses a checksum, and avoids
1319 -- trouble on some operating systems which have difficulty with very long
1320 -- names.
1322 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1323 "-gnatec>";
1324 -- /CONFIGURATION_PRAGMAS_FILE=file
1326 -- Specify a configuration pragmas file that need to be taken into account
1328 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1329 "!-I-";
1330 -- /CURRENT_DIRECTORY (D)
1331 -- /NOCURRENT_DIRECTORY
1333 -- Look for source files in the default directory.
1335 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1336 "-gnatep>";
1337 -- /DATA_PREPROCESSING=file_name
1339 -- This qualifier indicates to the compiler the file name (without
1340 -- directory information) of the preprocessor data file to use.
1341 -- The preprocessor data file should be found in the source directories.
1343 -- A preprocessing data file is a text file with significant lines
1344 -- indicating how should be preprocessed either a specific source or all
1345 -- sources not mentioned in other lines. A significant line is a non
1346 -- empty, non comment line. Comments are similar to Ada comments.
1348 -- Each significant line starts with either a literal string or the
1349 -- character '*'. A literal string is the file name (without directory
1350 -- information) of the source to preprocess. A character '*' indicates the
1351 -- preprocessing for all the sources that are not specified explicitly on
1352 -- other lines. It is an error to have two lines with the same file name
1353 -- or two lines starting with the character '*'.
1355 -- After the file name or the character '*', another optional literal
1356 -- string indicating the file name of the definition file to be used for
1357 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1358 -- are found by the compiler in one of the source directories. In some
1359 -- cases, when compiling a source in a directory other than the current
1360 -- directory, if the definition file is in the current directory, it may
1361 -- be necessary to add the current directory as a source directory through
1362 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1363 -- definition file.
1365 -- Then, optionally, switches similar to those of gnatprep may be found.
1366 -- Those switches are:
1368 -- -b Causes both preprocessor lines and the lines deleted by
1369 -- preprocessing to be replaced by blank lines, preserving
1370 -- the line number. This switch is always implied;
1371 -- however, if specified after `-c' it cancels the effect
1372 -- of `-c'.
1374 -- -c Causes both preprocessor lines and the lines deleted by
1375 -- preprocessing to be retained as comments marked with
1376 -- the special string "--! ".
1378 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1379 -- A symbol is an Ada identifier, or an Ada reserved word,
1380 -- with the exception of "if", "else", "elsif", "end",
1381 -- "and", "or" and "then". value is either a literal
1382 -- string, an Ada identifier or any Ada reserved word.
1383 -- A symbol declared with this switch replaces a symbol
1384 -- with the same name defined in a definition file.
1386 -- -s Causes a sorted list of symbol names and values to be
1387 -- listed on the standard output file.
1389 -- -u Causes undefined symbols to be treated as having the
1390 -- value FALSE in the context of a preprocessor test.
1391 -- In the absence of this option, an undefined symbol
1392 -- in a #if or #elsif test will be treated as an error.
1394 -- Examples of valid lines in a preprocessor data file:
1396 -- "toto.adb" "prep.def" -u
1397 -- -- preprocess "toto.adb", using definition file "prep.def",
1398 -- -- undefined symbol are False.
1400 -- * -c -DVERSION=V101
1401 -- -- preprocess all other sources without a definition file;
1402 -- -- suppressed lined are commented; symbol VERSION has the value
1403 -- -- V101.
1405 -- "titi.adb" "prep2.def" -s
1406 -- -- preprocess "titi.adb", using definition file "prep2.def";
1407 -- -- list all symbols with their values.
1409 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1410 "SYMBOLS " &
1411 "-g2 " &
1412 "NOSYMBOLS " &
1413 "!-g2 " &
1414 "TRACEBACK " &
1415 "-g1 " &
1416 "ALL " &
1417 "-g3 " &
1418 "NONE " &
1419 "-g0 " &
1420 "NOTRACEBACK " &
1421 "-g0";
1422 -- /DEBUG[=debug-level]
1423 -- /NODEBUG
1425 -- Specifies how much debugging information is to be included in
1426 -- the resulting object fie.
1428 -- 'debug-level' is one of the following:
1430 -- SYMBOLS (D) Include both debugger symbol records and traceback
1431 -- in the object file.
1433 -- ALL Include debugger symbol records, traceback plus
1434 -- extra debug information in the object file.
1436 -- NONE Excludes both debugger symbol records and traceback
1437 -- from the object file. Same as /NODEBUG.
1439 -- TRACEBACK Includes only traceback records in the object
1440 -- file. This is the default when /DEBUG is not used.
1442 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1443 "!-g";
1444 -- NODOC (see /Debug)
1446 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1447 "RECEIVER " &
1448 "-gnatzr " &
1449 "CALLER " &
1450 "-gnatzc";
1451 -- /NODISTRIBUTION_STUBS (D)
1452 -- /DISTRIBUTION_STUBS[=dist-opt]
1454 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1455 -- that stubs for use in distributed programs (see the Distributed
1456 -- Systems Annex of the Ada RM) should be generated.
1458 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1459 "!-gnatzr,!-gnatzc";
1460 -- NODOC (see /DISTRIBUTION_STUBS)
1462 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1463 "-gnatm#";
1464 -- /NOERROR_LIMIT (D)
1465 -- /ERROR_LIMIT=nnn
1467 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1468 -- number of error messages to be generated to that number. Once that
1469 -- number has been reached, the compilation is abandoned.
1470 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1472 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1473 "-gnatm999999";
1474 -- NODOC (see /ERROR_LIMIT)
1476 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1477 "-gnatG";
1478 -- /NOEXPAND_SOURCE (D)
1479 -- /EXPAND_SOURCE
1481 -- Produces a listing of the expanded code in Ada source form. For
1482 -- example, all tasking constructs are reduced to appropriate run-time
1483 -- library calls.
1485 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1486 "-gnatX";
1487 -- /NOEXTENSIONS_ALLOWED (D)
1488 -- /EXTENSIONS_ALLOWED
1490 -- GNAT specific language extensions allowed.
1492 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1493 "-X" & '"';
1494 -- /EXTERNAL_REFERENCE="name=val"
1496 -- Specifies an external reference to the project manager. Useful only if
1497 -- /PROJECT_FILE is used.
1499 -- Example:
1500 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1502 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1503 "-gnatk#";
1504 -- /FILE_NAME_MAX_LENGTH=nnn
1506 -- Activates file name "krunching". NNN, a decimal integer in the range
1507 -- 1-999, indicates the maximum allowable length of a file name (not
1508 -- including the ADS or ADB filetype. The default is not to enable file
1509 -- name krunching.
1511 S_GCC_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
1512 "-eL";
1513 -- /NOFOLLOW_LINKS_FOR_FILES (D)
1514 -- /FOLLOW_LINKS_FOR_FILES
1516 -- Follow links when parsing project files
1518 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1519 "-gnatQ";
1520 -- /NOFORCE_ALI (D)
1521 -- /FORCE_ALI
1523 -- In normal operation mode, the .ALI file is not generated if any
1524 -- illegalities are detected in the program. The use of this qualifier
1525 -- forces generation of the .ALI file. This file is marked as being
1526 -- in error, so it cannot be used for binding purposes, but it does
1527 -- contain reasonably complete cross-reference information, and thus may
1528 -- be useful for use by tools (e.g. semantic browsing tools or integrated
1529 -- development environments) that are driven from the .ALI file.
1531 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1532 "-gnatef";
1533 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1534 -- /FULL_PATH_IN_BRIEF_MESSAGES
1536 -- When using project files, if some errors or warnings are detected
1537 -- during parsing and verbose mode is not in effect (no use of qualifier
1538 -- /VERBOSE), then error lines start with the full path name of the
1539 -- project file, rather than its simple file name.
1541 S_GCC_Generate : aliased constant S := "/GENERATE_PROCESSED_SOURCE " &
1542 "-gnateG";
1543 -- /NOGENERATE_PROCESSED_SOURCE (D)
1544 -- /GENERATE_PROCESSED_SOURCE
1546 -- Generate a file <source>_prep if the integrated preprocessing
1547 -- is modifying the source text.
1549 S_GCC_GNAT : aliased constant S := "/GNAT_INTERNAL " &
1550 "-gnatg";
1551 -- /NOGNAT_INTERNAL (D)
1552 -- /GNAT_INTERNAL
1554 -- Internal GNAT implementation mode. This should not be used for
1555 -- applications programs, it is intended only for use by the compiler
1556 -- and its run-time library. For documentation, see the GNAT sources.
1557 -- Note that it implies /WARNINGS=ALL,ERRORS and /STYLE_CHECKS=GNAT
1558 -- so that all standard warnings and all standard style options are
1559 -- turned on. All warnings and style error messages are treated as
1560 -- errors.
1562 S_GCC_Help : aliased constant S := "/HELP " &
1563 "-gnath";
1564 -- /NOHELP (D)
1565 -- /HELP
1567 -- Output usage information.
1569 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1570 "DEFAULT " &
1571 "-gnati1 " &
1572 "1 " &
1573 "-gnati1 " &
1574 "2 " &
1575 "-gnati2 " &
1576 "3 " &
1577 "-gnati3 " &
1578 "4 " &
1579 "-gnati4 " &
1580 "5 " &
1581 "-gnati5 " &
1582 "PC " &
1583 "-gnatip " &
1584 "PC850 " &
1585 "-gnati8 " &
1586 "FULL_UPPER " &
1587 "-gnatif " &
1588 "NO_UPPER " &
1589 "-gnatin " &
1590 "WIDE " &
1591 "-gnatiw";
1592 -- /NOIDENTIFIER_CHARACTER_SET (D)
1593 -- /IDENTIFIER_CHARACTER_SET=char-set
1595 -- Normally GNAT recognizes the Latin-1 character set in source program
1596 -- identifiers, as described in the reference manual. This qualifier
1597 -- causes GNAT to recognize alternate character sets in identifiers.
1598 -- 'char-set' is one of the following strings indicating the character
1599 -- set:
1601 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1602 -- /NOIDENTIFIER_CHARACTER_SET.
1604 -- 1 The basic character set is Latin-1. This character
1605 -- set is defined by ISO standard 8859, part 1. The lower
1606 -- half (character codes 16#00# ... 16#7F#) is identical
1607 -- to standard ASCII coding, but the upper half is used
1608 -- to represent additional characters. This includes
1609 -- extended letters used by European languages, such as
1610 -- the umlaut used in German.
1612 -- You may use any of these extended characters freely
1613 -- in character or string literals. In addition, the
1614 -- extended characters that represent letters can be
1615 -- used in identifiers.
1617 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1618 -- and lowercase equivalence.
1620 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1621 -- and lower case equivalence.
1623 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1624 -- and lower case equivalence.
1626 -- PC IBM PC code page 437. This code page is the normal
1627 -- default for PCs in the U.S. It corresponds to the
1628 -- original IBM PC character set. This set has some, but
1629 -- not all, of the extended Latin-1 letters, but these
1630 -- letters do not have the same encoding as Latin-1. In
1631 -- this mode, these letters are allowed in identifiers
1632 -- with uppercase and lowercase equivalence.
1634 -- PC850 This code page (850) is a modification of 437 extended
1635 -- to include all the Latin-1 letters, but still not with
1636 -- the usual Latin-1 encoding. In this mode, all these
1637 -- letters are allowed in identifiers with uppercase and
1638 -- lower case equivalence.
1640 -- FULL_UPPER Any character in the range 80-FF allowed in
1641 -- identifiers, and all are considered distinct. In
1642 -- other words, there are no uppercase and lower case
1643 -- equivalences in this range.
1645 -- NO_UPPER No upper-half characters in the range 80-FF are
1646 -- allowed in identifiers. This gives Ada 95
1647 -- compatibility for identifier names.
1649 -- WIDE GNAT allows wide character codes to appear in
1650 -- character and string literals, and also optionally
1651 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1652 -- qualifier for information on encoding formats.
1654 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1655 "-gnati1";
1656 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1658 S_GCC_Ignore : aliased constant S := "/IGNORE_REP_CLAUSES " &
1659 "-gnatI";
1660 -- /IGNORE_REP_CLAUSES
1662 -- Causes all representation clauses to be ignored and treated as
1663 -- comments. Useful when compiling foreign code (for example when ASIS
1664 -- is used to analyze such code).
1666 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1667 "-gnatdO";
1668 -- /NOIMMEDIATE_ERRORS (D)
1669 -- /IMMEDIATE_ERRORS
1671 -- Causes errors to be displayed as soon as they are encountered, rather
1672 -- than after compilation is terminated. If GNAT terminates prematurely
1673 -- or goes into an infinite loop, the last error message displayed may
1674 -- help to pinpoint the culprit.
1676 S_GCC_Inline : aliased constant S := "/INLINE=" &
1677 "PRAGMA " &
1678 "-gnatn " &
1679 "FULL " &
1680 "-gnatN " &
1681 "SUPPRESS " &
1682 "-fno-inline";
1683 -- /NOINLINE (D)
1684 -- /INLINE[=keyword]
1686 -- Selects the level of inlining for your program. In the absence of this
1687 -- qualifier, GNAT does not attempt inlining across units and does not
1688 -- need to access the bodies of subprograms for which "pragma Inline" is
1689 -- specified if they are not in the current unit.
1691 -- The supported keywords are as follows:
1693 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1694 -- for the inlining to actually occur, optimization
1695 -- must be enabled. This enables inlining across unit
1696 -- boundaries, that is, inlining a call in one unit of
1697 -- a subprogram declared in a with'ed unit. The compiler
1698 -- will access these bodies, creating an extra source
1699 -- dependency for the resulting object file, and where
1700 -- possible, the call will be inlined.
1702 -- This qualifier also turns on full optimization and
1703 -- requests GNAT to try to attempt automatic inlining
1704 -- of small subprograms within a unit.
1706 -- Specifying /OPTIMIZE=NONE will disable the main effect
1707 -- of this qualifier, but you may specify other
1708 -- optimization options, to get either lower
1709 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1710 -- levels of optimization.
1712 -- FULL Front end inlining. The front end inlining activated
1713 -- by this switch is generally more extensive, and quite
1714 -- often more effective than the standard PRAGMA inlining
1715 -- mode. It will also generate additional dependencies.
1717 -- SUPPRESS Suppresses all inlining, even if other optimization
1718 -- or inlining switches are set.
1720 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1721 "!-gnatn,!-gnatN";
1722 -- NODOC (see /INLINE)
1724 S_GCC_Intsrc : aliased constant S := "/INTERSPERSE_SOURCE " &
1725 "-gnatL";
1727 -- /NO_INTERSPERSE_SOURCE (D)
1728 -- /INTERSPERSE_SOURCE
1730 -- Causes output from /XDEBUG or /EXPAND_SOURCE to be interspersed with
1731 -- lines from the original source file, output as comment lines with the
1732 -- associated line number.
1734 S_GCC_Just : aliased constant S := "/JUSTIFY_MESSAGES=#" &
1735 "-gnatj#";
1737 -- /NO_JUSTIFY_MESSAGES (D)
1738 -- /JUSTIFY_MESSAGES=nnn
1740 -- Causes error messages to be reformatted so that a message and all its
1741 -- continuation lines count as one warning or error in the statistics on
1742 -- total errors, and the message is broken down into lines (justified) so
1743 -- that no line is longer than nnn characters. The default message
1744 -- behavior (each message counted separately and not reformatted to fit
1745 -- a particular line length) can be obtained using /NO_JUSTIFY_MESSAGES.
1747 S_GCC_JustX : aliased constant S := "/NO_JUSTIFY_MESSAGES " &
1748 "-gnatj0";
1750 -- NODOC (see /JUSTIFY_MESSAGES)
1752 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1753 "-gnatyM#";
1754 -- /MAX_LINE_LENGTH=nnn
1756 -- Set maximum line length.
1757 -- The length of lines must not exceed the given value nnn.
1759 S_GCC_List : aliased constant S := "/LIST " &
1760 "-gnatl";
1761 -- /NOLIST (D)
1762 -- /LIST
1764 -- Cause a full listing of the file to be generated. In the case where
1765 -- a body is compiled, the corresponding spec is also listed, along
1766 -- with any subunits.
1768 S_GCC_Machine : aliased constant S := "/MACHINE_CODE_LISTING " &
1769 "-source-listing";
1770 -- /NOMACHINE_CODE_LISTING (D)
1771 -- /MACHINE_CODE_LISTING
1773 -- Cause a full machine code listing of the file to be generated to
1774 -- <filename>.lis. Interspersed source is included if the /DEBUG
1775 -- qualifier is also present.
1777 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1778 "-gnatem>";
1779 -- /MAPPING_FILE=file_name
1781 -- Use mapping file file_name
1783 -- A mapping file is a way to communicate to the compiler two mappings:
1784 -- from unit names to file names (without any directory information) and
1785 -- from file names to path names (with full directory information).
1786 -- These mappings are used by the compiler to short-circuit the path
1787 -- search.
1789 -- The use of mapping files is not required for correct operation of the
1790 -- compiler, but mapping files can improve efficiency, particularly when
1791 -- sources are read over a slow network connection. In normal operation,
1792 -- you need not be concerned with the format or use of mapping files,
1793 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1794 -- It is intended only for use by automatic tools such as GNAT MAKE
1795 -- running under the project file facility. The description here of the
1796 -- format of mapping files is provided for completeness and for possible
1797 -- use by other tools.
1799 -- A mapping file is a sequence of sets of three lines. In each set, the
1800 -- first line is the unit name, in lower case, with "%s" appended for
1801 -- specifications and "%b" appended for bodies; the second line is the
1802 -- file name; and the third line is the path name.
1804 -- Example:
1806 -- main%b
1807 -- main.2_ada
1808 -- /gnat/project1/sources/main.2_ada
1810 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1811 -- memory the two mappings from the specified file. If there is any
1812 -- problem (non existent file, truncated file or duplicate entries),
1813 -- no mapping will be created.
1815 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1816 -- last one on the command line will be taken into account.
1818 -- When using a project file, GNAT MAKE creates a temporary mapping file
1819 -- and communicates it to the compiler using this switch.
1821 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1822 "DEFAULT " &
1823 "-vP0 " &
1824 "MEDIUM " &
1825 "-vP1 " &
1826 "HIGH " &
1827 "-vP2";
1828 -- /MESSAGES_PROJECT_FILE[=messages-option]
1830 -- Specifies the "verbosity" of the parsing of project files.
1831 -- messages-option may be one of the following:
1833 -- DEFAULT (D) No messages are output if there is no error or warning.
1835 -- MEDIUM A small number of messages are output.
1837 -- HIGH A great number of messages are output, most of them not
1838 -- being useful for the user.
1840 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1841 "-gnatyL#";
1842 -- /MAX_NESTING=nnn
1844 -- Set maximum level of nesting of constructs (including subprograms,
1845 -- loops, blocks, packages, and conditionals).
1846 -- The level of nesting must not exceed the given value nnn.
1847 -- A value of zero disable this style check (not enabled by default).
1849 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1850 "-gnatA";
1851 -- /NO_GNAT_ADC
1853 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1854 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1855 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1857 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1858 "-gnatc";
1859 -- /NOLOAD
1861 -- Cause the compiler to operate in semantic check mode with full
1862 -- checking for all illegalities specified in the reference manual, but
1863 -- without generation of any source code (no object or ALI file
1864 -- generated).
1866 -- Since dependent files must be accessed, you must follow the GNAT
1867 -- semantic restrictions on file structuring to operate in this mode:
1869 -- o The needed source files must be accessible.
1870 -- o Each file must contain only one compilation unit.
1871 -- o The file name and unit name must match.
1873 -- The output consists of error messages as appropriate. No object file
1874 -- or ALI file is generated. The checking corresponds exactly to the
1875 -- notion of legality in the Ada reference manual.
1877 -- Any unit can be compiled in semantics-checking-only mode, including
1878 -- units that would not normally be compiled (generic library units,
1879 -- subunits, and specifications where a separate body is present).
1881 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
1882 "-nostdinc";
1883 -- /NOSTD_INCLUDES
1885 -- Do not look in the default directory for source files of the runtime.
1887 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
1888 "-nostdlib";
1889 -- /NOSTD_LIBRARIES
1891 -- Do not look for library files in the system default directory.
1893 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
1894 "ALL " &
1895 "-O2,!-O0,!-O1,!-O3 " &
1896 "NONE " &
1897 "-O0,!-O1,!-O2,!-O3 " &
1898 "SOME " &
1899 "-O1,!-O0,!-O2,!-O3 " &
1900 "SPACE " &
1901 "-Os,!-O0,!-O1,!-O2,!-O3 " &
1902 "DEVELOPMENT " &
1903 "-O1,!-O0,!-O2,!-O3 " &
1904 "UNROLL_LOOPS " &
1905 "-funroll-loops " &
1906 "NO_STRICT_ALIASING " &
1907 "-fno-strict-aliasing " &
1908 "INLINING " &
1909 "-O3,!-O0,!-O1,!-O2";
1910 -- /NOOPTIMIZE (D)
1911 -- /OPTIMIZE[=(keyword[,...])]
1913 -- Selects the level of optimization for your program. The supported
1914 -- keywords are as follows:
1916 -- ALL (D) Perform most optimizations, including those that
1917 -- may be expensive.
1919 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
1921 -- SOME Perform some optimizations, but omit ones that
1922 -- are costly in compilation time.
1924 -- SPACE Optimize space usage
1926 -- DEVELOPMENT Same as SOME.
1928 -- INLINING Full optimization, and also attempt automatic inlining
1929 -- of small subprograms within a unit
1931 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
1932 -- with any keyword above other than NONE. Loop
1933 -- unrolling usually, but not always, improves the
1934 -- performance of programs.
1936 -- NO_STRICT_ALIASING
1937 -- Suppress aliasing analysis. When optimization is
1938 -- enabled (ALL or SOME above), the compiler assumes
1939 -- that pointers do in fact point to legitimate values
1940 -- of the pointer type (allocated from the proper pool).
1941 -- If this assumption is violated, e.g. by the use of
1942 -- unchecked conversion, then it may be necessary to
1943 -- suppress this assumption using this keyword (which
1944 -- may be specified only in conjunction with any
1945 -- keyword above, other than NONE).
1947 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
1948 "-O0,!-O1,!-O2,!-O3";
1949 -- NODOC (see /OPTIMIZE)
1951 S_GCC_Output : aliased constant S := "/OUTPUT_FILE=<" &
1952 "-gnatl=>";
1953 -- /OUTPUT_FILE=fname
1955 -- This has the same effect as /LIST except that the output is written
1956 -- to a file instead of to standard output. If the given fname
1957 -- does not start with a period, then it is the full name of the file
1958 -- to be written. If fname starts with a period, the name of the file
1959 -- is the concatenation of to the name of the file being compiled with
1960 -- fname where the period is replace by an underline. For example, if
1961 -- file xyz.adb is compiled with -gnatl=.lst, then the output is written
1962 -- to file xyz.adb_lst.
1964 S_GCC_Pointer : aliased constant S := "/POINTER_SIZE=" &
1965 "64 " &
1966 "-mmalloc64 " &
1967 "LONG " &
1968 "-mmalloc64 " &
1969 "32 " &
1970 "-mno-malloc64 " &
1971 "SHORT " &
1972 "-mno-malloc64";
1973 -- /POINTER_SIZE=64 (D)
1974 -- /POINTER_SIZE[=(keyword[,...])]
1976 -- Change how pointers and descriptors are allocated. The following
1977 -- keywords are supported:
1979 -- 64 (D) Allocate heap pointers in 64bit space except as
1980 -- constrained by a 32bit size clause or by
1981 -- Convention_C and generate 64bit descriptors for
1982 -- Descriptor mechanisms for calling imported
1983 -- subprograms and accept both 64bit and 32bit
1984 -- descriptors for calls to exported subprograms.
1986 -- LONG Equivalent to option 64.
1988 -- 32 Allocate all heap pointers in 32bit space and
1989 -- generate 32bit descriptors for Descriptor
1990 -- mechanisms for calling imported subprograms.
1992 -- SHORT Equivalent to option 32.
1994 S_GCC_Polling : aliased constant S := "/POLLING " &
1995 "-gnatP";
1996 -- /NOPOLLING (D)
1997 -- /POLLING
1999 -- Enable polling. See the description of pragma Polling in the GNAT
2000 -- Reference Manual for full details.
2002 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
2003 "-P>";
2004 -- /PROJECT_FILE=filename
2006 -- Specifies the main project file to be used. The project files rooted
2007 -- at the main project file will be parsed before the invocation of the
2008 -- compiler. The source and object directories to be searched will be
2009 -- communicated to the compiler through logical names
2010 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
2012 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
2013 "-gnatS";
2014 -- /PRINT_STANDARD
2016 -- cause the compiler to output a representation of package Standard
2017 -- in a form very close to standard Ada. It is not quite possible to
2018 -- do this and remain entirely Standard (since new numeric base types
2019 -- cannot be created in standard Ada), but the output is easily
2020 -- readable to any Ada programmer, and is useful to determine the
2021 -- characteristics of target dependent types in package Standard.
2023 S_GCC_Reswarn : aliased constant S := "/TREAT_RESTRICTIONS_AS_WARNINGS " &
2024 "-gnatr";
2026 -- /NO_TREAT_RESTRICTIONS_AS_WARNINGS (D)
2027 -- /TREAT_RESTRICTIONS_AS_WARNINGS
2029 -- Causes all restrictions to be treated as warnings (pragma Restriction
2030 -- treated as Restriction_Warnings, pragma Profile as Profile_Warnings,
2031 -- and pragma Ravenscar sets restriction warnings instead of restrictions)
2033 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
2034 "VERBOSE " &
2035 "-gnatv " &
2036 "BRIEF " &
2037 "-gnatb " &
2038 "FULL " &
2039 "-gnatf " &
2040 "IMMEDIATE " &
2041 "-gnatdO " &
2042 "DEFAULT " &
2043 "!-gnatb,!-gnatv";
2044 -- /NOREPORT_ERRORS (D)
2045 -- /REPORT_ERRORS[=(keyword[,...])]
2047 -- Change the way errors are reported. The following keywords are
2048 -- supported:
2050 -- VERBOSE (D) Verbose mode. Full error output with source lines
2051 -- to SYS$OUTPUT.
2053 -- BRIEF Generate the brief format error messages to
2054 -- SYS$OUTPUT as well as the verbose format message or
2055 -- full listing.
2057 -- FULL Normally, the compiler suppresses error messages that
2058 -- are likely to be redundant. This keyword causes all
2059 -- error messages to be generated. One particular effect
2060 -- is for the case of references to undefined variables.
2061 -- If a given variable is referenced several times, the
2062 -- normal format of messages produces one error. With
2063 -- FULL, each undefined reference produces a separate
2064 -- error message.
2066 -- IMMEDIATE Normally, the compiler saves up error messages and
2067 -- generates them at the end of compilation in proper
2068 -- sequence. This keyword causes error messages to be
2069 -- generated as soon as they are detected. The use of
2070 -- IMMEDIATE usually causes error messages to be
2071 -- generated out of sequence. Use it when the compiler
2072 -- blows up due to an internal error. In this case, the
2073 -- error messages may be lost. Sometimes blowups are
2074 -- the result of mishandled error messages, so you may
2075 -- want to run with this keyword to determine whether
2076 -- any error messages were generated.
2078 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
2080 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
2081 "!-gnatb,!-gnatv";
2082 -- NODOC (see /REPORT_ERRORS)
2084 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
2085 "DEFAULT " &
2086 "-gnatR " &
2087 "NONE " &
2088 "-gnatR0 " &
2089 "ARRAYS " &
2090 "-gnatR1 " &
2091 "ARRAYS_FILE " &
2092 "-gnatR1s " &
2093 "OBJECTS " &
2094 "-gnatR2 " &
2095 "OBJECTS_FILE " &
2096 "-gnatR2s " &
2097 "SYMBOLIC " &
2098 "-gnatR3 " &
2099 "SYMBOLIC_FILE " &
2100 "-gnatR3s";
2101 -- /NOREPRESENTATION_INFO (D)
2102 -- /REPRESENTATION_INFO[=(keyword[,...])]
2104 -- This qualifier controls output from the compiler of a listing showing
2105 -- representation information for declared types and objects.
2107 -- ARRAYS (D) Size and alignment information is listed for
2108 -- declared array and record types.
2110 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
2111 -- with the name 'file_rep' where 'file' is the name
2112 -- of the corresponding source file.
2114 -- NONE no information is output (equivalent to omitting
2115 -- the /REPRESENTATION_INFO qualifiers).
2117 -- OBJECTS Size and alignment information is listed for all
2118 -- declared types and objects.
2120 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
2121 -- with the name 'file_rep' where 'file' is the name
2122 -- of the corresponding source file.
2124 -- SYMBOLIC Symbolic expression information for values that
2125 -- are computed at run time for variant records.
2127 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
2128 -- with the name 'file_rep' where 'file' is the name
2129 -- of the corresponding source file.
2131 -- DEFAULT Equivalent to ARRAYS.
2133 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
2134 "!-gnatR";
2135 -- NODOC (see /REPRESENTATION_INFO)
2137 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
2138 "--RTS=|";
2139 -- /RUNTIME_SYSTEM=xxx
2141 -- Build against an alternate runtime system named xxx or RTS-xxx.
2143 S_GCC_Search : aliased constant S := "/SEARCH=*" &
2144 "-I*";
2145 -- /SEARCH=(directory[,...])
2147 -- When looking for source files also look in directories specified.
2149 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
2150 "ALL_BUILTIN " &
2151 "-gnatyy " &
2152 "0 " &
2153 "-gnaty0 " &
2154 "1 " &
2155 "-gnaty1 " &
2156 "2 " &
2157 "-gnaty2 " &
2158 "3 " &
2159 "-gnaty3 " &
2160 "4 " &
2161 "-gnaty4 " &
2162 "5 " &
2163 "-gnaty5 " &
2164 "6 " &
2165 "-gnaty6 " &
2166 "7 " &
2167 "-gnaty7 " &
2168 "8 " &
2169 "-gnaty8 " &
2170 "9 " &
2171 "-gnaty9 " &
2172 "ATTRIBUTE " &
2173 "-gnatya " &
2174 "NOATTRIBUTE " &
2175 "-gnaty-a " &
2176 "ARRAY_INDEXES " &
2177 "-gnatyA " &
2178 "NOARRAY_INDEXES " &
2179 "-gnaty-A " &
2180 "BLANKS " &
2181 "-gnatyb " &
2182 "NOBLANKS " &
2183 "-gnaty-b " &
2184 "COMMENTS " &
2185 "-gnatyc " &
2186 "NOCOMMENTS " &
2187 "-gnaty-c " &
2188 "DOS_LINE_ENDINGS " &
2189 "-gnatyd " &
2190 "NODOS_LINE_ENDINGS " &
2191 "-gnaty-d " &
2192 "END " &
2193 "-gnatye " &
2194 "NOEND " &
2195 "-gnaty-e " &
2196 "VTABS " &
2197 "-gnatyf " &
2198 "NOVTABS " &
2199 "-gnaty-f " &
2200 "GNAT " &
2201 "-gnatyg " &
2202 "HTABS " &
2203 "-gnatyh " &
2204 "NOHTABS " &
2205 "-gnaty-h " &
2206 "IF_THEN " &
2207 "-gnatyi " &
2208 "NOIF_THEN " &
2209 "-gnaty-i " &
2210 "KEYWORD " &
2211 "-gnatyk " &
2212 "NOKEYWORD " &
2213 "-gnaty-k " &
2214 "LAYOUT " &
2215 "-gnatyl " &
2216 "NOLAYOUT " &
2217 "-gnaty-l " &
2218 "LINE_LENGTH " &
2219 "-gnatym " &
2220 "NOLINE_LENGTH " &
2221 "-gnaty-m " &
2222 "MODE_IN " &
2223 "-gnatyI " &
2224 "NOMODE_IN " &
2225 "-gnaty-I " &
2226 "NONE " &
2227 "-gnatyN " &
2228 "STANDARD_CASING " &
2229 "-gnatyn " &
2230 "NOSTANDARD_CASING " &
2231 "-gnaty-n " &
2232 "ORDERED_SUBPROGRAMS " &
2233 "-gnatyo " &
2234 "NOORDERED_SUBPROGRAMS " &
2235 "-gnaty-o " &
2236 "PRAGMA " &
2237 "-gnatyp " &
2238 "NOPRAGMA " &
2239 "-gnaty-p " &
2240 "REFERENCES " &
2241 "-gnatyr " &
2242 "NOREFERENCES " &
2243 "-gnaty-r " &
2244 "SPECS " &
2245 "-gnatys " &
2246 "NOSPECS " &
2247 "-gnaty-s " &
2248 "STATEMENTS_AFTER_THEN_ELSE " &
2249 "-gnatyS " &
2250 "NOSTATEMENTS_AFTER_THEN_ELSE " &
2251 "-gnaty-S " &
2252 "TOKEN " &
2253 "-gnatyt " &
2254 "NOTOKEN " &
2255 "-gnaty-t " &
2256 "UNNECESSARY_BLANK_LINES " &
2257 "-gnatyu " &
2258 "NOUNNECESSARY_BLANK_LINES " &
2259 "-gnaty-u " &
2260 "XTRA_PARENS " &
2261 "-gnaty-x " &
2262 "NOXTRA_PARENS " &
2263 "-gnaty-x ";
2264 -- /NOSTYLE_CHECKS (D)
2265 -- /STYLE_CHECKS[=(keyword,[...])]
2267 -- Normally, GNAT permits any code layout consistent with the reference
2268 -- manual requirements. This qualifier imposes style checking on the
2269 -- input source code. The following keywords are supported:
2271 -- ALL_BUILTIN (D) Equivalent to the following list of options:
2272 -- 3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
2273 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
2274 -- PRAGMA, REFERENCES, SPECS, TOKEN.
2276 -- 1 .. 9 Specify indentation level from 1 to 9.
2277 -- The general style of required indentation is as
2278 -- specified by the examples in the Ada Reference
2279 -- Manual. Full line comments must be aligned with
2280 -- the -- starting on a column that is a multiple
2281 -- of the alignment level.
2283 -- ATTRIBUTE Check attribute casing.
2284 -- Attribute names, including the case of keywords
2285 -- such as digits used as attributes names,
2286 -- must be written in mixed case, that is,
2287 -- the initial letter and any letter following an
2288 -- underscore must be uppercase.
2289 -- All other letters must be lowercase.
2291 -- ARRAY_INDEXES Check indexes of array attributes.
2292 -- For array attributes First, Last, Range,
2293 -- or Length, the index number must be omitted
2294 -- for one-dimensional arrays and is required
2295 -- for multi-dimensional arrays.
2297 -- BLANKS Blanks not allowed at statement end.
2298 -- Trailing blanks are not allowed at the end of
2299 -- statements. The purpose of this rule, together
2300 -- with option HTABS (no horizontal tabs), is to
2301 -- enforce a canonical format for the use of
2302 -- blanks to separate source tokens.
2304 -- COMMENTS Check comments.
2305 -- Comments must meet the following set of rules:
2307 -- * The "--" that starts the column must either
2308 -- start in column one, or else at least one
2309 -- blank must precede this sequence.
2311 -- * Comments that follow other tokens on a line
2312 -- must have at least one blank following the
2313 -- "--" at the start of the comment.
2315 -- * Full line comments must have two blanks
2316 -- following the "--" that starts the comment,
2317 -- with the following exceptions.
2319 -- * A line consisting only of the "--"
2320 -- characters, possibly preceded by blanks is
2321 -- permitted.
2323 -- * A comment starting with "--x" where x is
2324 -- a special character is permitted. This
2325 -- allows proper processing of the output
2326 -- generated by specialized tools including
2327 -- gnatprep (where --! is used) and the SPARK
2328 -- annotation language (where --# is used).
2329 -- For the purposes of this rule, a special
2330 -- character is defined as being in one of the
2331 -- ASCII ranges 16#21#..16#2F# or
2332 -- 16#3A#..16#3F#.
2334 -- * A line consisting entirely of minus signs,
2335 -- possibly preceded by blanks, is permitted.
2336 -- This allows the construction of box
2337 -- comments where lines of minus signs are
2338 -- used to form the top and bottom of the box.
2340 -- * If a comment starts and ends with "--" is
2341 -- permitted as long as at least one blank
2342 -- follows the initial "--". Together with
2343 -- the preceding rule, this allows the
2344 -- construction of box comments, as shown in
2345 -- the following example:
2347 -- ---------------------------
2348 -- -- This is a box comment --
2349 -- ---------------------------
2351 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2352 -- All lines must be terminated by a single
2353 -- ASCII.LF character. In particular the DOS line
2354 -- terminator sequence CR / LF is not allowed).
2356 -- END Check end/exit labels.
2357 -- Optional labels on end statements ending
2358 -- subprograms and on exit statements exiting
2359 -- named loops, are required to be present.
2361 -- GNAT Enforces a set of style conventions that
2362 -- match the style used in the GNAT source code.
2363 -- This maybe useful when developing code that
2364 -- is eventually intended to be incorporated into
2365 -- GNAT. For further details, see GNAT sources.
2367 -- HTABS No horizontal tabs.
2368 -- Horizontal tab characters are not permitted in
2369 -- the source text. Together with the BLANKS
2370 -- (no blanks at end of line) option, this
2371 -- enforces a canonical form for the use of blanks
2372 -- to separate source tokens.
2374 -- IF_THEN Check if-then layout.
2375 -- The keyword then must appear either on the
2376 -- same line as the corresponding if, or on a line
2377 -- on its own, lined up under the if with at least
2378 -- one non-blank line in between containing all or
2379 -- part of the condition to be tested.
2381 -- KEYWORD Check keyword casing.
2382 -- All keywords must be in lower case (with the
2383 -- exception of keywords such as digits used as
2384 -- attribute names to which this check does not
2385 -- apply).
2387 -- LAYOUT Check layout.
2388 -- Layout of statement and declaration constructs
2389 -- must follow the recommendations in the Ada
2390 -- Reference Manual, as indicated by the form of
2391 -- the syntax rules. For example an else keyword
2392 -- must be lined up with the corresponding if
2393 -- keyword.
2395 -- There are two respects in which the style rule
2396 -- enforced by this check option are more liberal
2397 -- than those in the Ada Reference Manual.
2398 -- First in the case of record declarations,
2399 -- it is permissible to put the record keyword on
2400 -- the same line as the type keyword, and then
2401 -- the end in end record must line up under type.
2402 -- For example, either of the following two
2403 -- layouts is acceptable:
2405 -- type q is record
2406 -- a : integer;
2407 -- b : integer;
2408 -- end record;
2410 -- type q is
2411 -- record
2412 -- a : integer;
2413 -- b : integer;
2414 -- end record;
2416 -- Second, in the case of a block statement,
2417 -- a permitted alternative is to put the block
2418 -- label on the same line as the declare or begin
2419 -- keyword, and then line the end keyword up under
2420 -- the block label. For example both the following
2421 -- are permitted:
2425 -- Block : declare
2426 -- A : Integer := 3;
2427 -- begin
2428 -- Proc (A, A);
2429 -- end Block;
2431 -- Block :
2432 -- declare
2433 -- A : Integer := 3;
2434 -- begin
2435 -- Proc (A, A);
2436 -- end Block;
2438 -- The same alternative format is allowed for
2439 -- loops. For example, both of the following are
2440 -- permitted:
2444 -- Clear : while J < 10 loop
2445 -- A (J) := 0;
2446 -- end loop Clear;
2448 -- Clear :
2449 -- while J < 10 loop
2450 -- A (J) := 0;
2451 -- end loop Clear;
2455 -- LINE_LENGTH Check maximum line length.
2456 -- The length of source lines must not exceed 79
2457 -- characters, including any trailing blanks
2458 -- The value of 79 allows convenient display on
2459 -- an 80 character wide device or window, allowing
2460 -- for possible special treatment of 80 character
2461 -- lines.
2463 -- NONE Clear any previously set style checks.
2465 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2466 -- All subprogram bodies in a given scope (e.g.
2467 -- a package body) must be in alphabetical order.
2468 -- The ordering rule uses normal Ada rules for
2469 -- comparing strings, ignoring casing of letters,
2470 -- except that if there is a trailing numeric
2471 -- suffix, then the value of this suffix is used
2472 -- in the ordering (e.g. Junk2 comes before
2473 -- Junk10).
2475 -- PRAGMA Check pragma casing.
2476 -- Pragma names must be written in mixed case,
2477 -- that is, the initial letter and any letter
2478 -- following an underscore must be uppercase.
2479 -- All other letters must be lowercase.
2481 -- REFERENCES Check references.
2482 -- All identifier references must be cased in the
2483 -- same way as the corresponding declaration.
2484 -- No specific casing style is imposed on
2485 -- identifiers. The only requirement is for
2486 -- consistency of references with declarations.
2488 -- SPECS Check separate specs.
2489 -- Separate declarations ("specs") are required
2490 -- for subprograms (a body is not allowed to serve
2491 -- as its own declaration). The only exception is
2492 -- that parameterless library level procedures are
2493 -- not required to have a separate declaration.
2494 -- This exception covers the most frequent form of
2495 -- main program procedures.
2497 -- STANDARD_CASING Check casing of entities in Standard.
2498 -- Any identifier from Standard must be cased to
2499 -- match the presentation in the Ada Reference
2500 -- Manual (for example, Integer and ASCII.NUL).
2502 -- TOKEN Check token spacing.
2503 -- The following token spacing rules are enforced:
2505 -- * The keywords abs and not must be followed
2506 -- by a space.
2508 -- * The token => must be surrounded by spaces.
2510 -- * The token <> must be preceded by a space or
2511 -- a left parenthesis.
2513 -- * Binary operators other than ** must be
2514 -- surrounded by spaces. There is no
2515 -- restriction on the layout of the ** binary
2516 -- operator.
2518 -- * Colon must be surrounded by spaces.
2520 -- * Colon-equal (assignment) must be surrounded
2521 -- by spaces.
2523 -- * Comma must be the first non-blank character
2524 -- on the line, or be immediately preceded by
2525 -- a non-blank character, and must be followed
2526 -- by a space.
2528 -- * If the token preceding a left paren ends
2529 -- with a letter or digit, then a space must
2530 -- separate the two tokens.
2532 -- * A right parenthesis must either be the
2533 -- first non-blank character on a line, or it
2534 -- must be preceded by a non-blank character.
2536 -- * A semicolon must not be preceded by
2537 -- a space, and must not be followed by
2538 -- a non-blank character.
2540 -- * A unary plus or minus may not be followed
2541 -- by a space.
2543 -- * A vertical bar must be surrounded by
2544 -- spaces.
2546 -- In the above rules, appearing in column one is
2547 -- always permitted, that is, counts as meeting
2548 -- either a requirement for a required preceding
2549 -- space, or as meeting a requirement for no
2550 -- preceding space.
2552 -- Appearing at the end of a line is also always
2553 -- permitted, that is, counts as meeting either
2554 -- a requirement for a following space,
2555 -- or as meeting a requirement for no following
2556 -- space.
2558 -- UNNECESSARY_BLANK_LINES
2559 -- Check for unnecessary blank lines.
2560 -- A blank line is considered unnecessary if it
2561 -- appears at the end of the file, or if more
2562 -- than one blank line occurs in sequence.
2564 -- VTABS No form feeds or vertical tabs.
2565 -- Form feeds or vertical tab characters are not
2566 -- permitted in the source text.
2568 -- XTRA_PARENS Check for the use of an unnecessary extra
2569 -- level of parentheses (C - style) around
2570 -- conditions in if statements, while statements
2571 -- and exit statements.
2573 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2574 "!-gnatg,!-gnaty*";
2575 -- NODOC (see /STYLE_CHECKS)
2577 S_GCC_Subdirs : aliased constant S := "/SUBDIRS=<" &
2578 "--subdirs=>";
2579 -- /SUBDIRS=dir
2581 -- The actual directories (object, exec, library, ...) are subdirectories
2582 -- of the directory specified in the project file. If the subdirectory
2583 -- does not exist, it is created automatically.
2585 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2586 "-gnateD" & '"';
2587 -- /SYMBOL_PREPROCESSING="symbol=value"
2589 -- Define or redefine a preprocessing symbol, associated with value.
2590 -- If "=value" is not specified, then the value of the symbol is True.
2591 -- A symbol is an identifier, following normal Ada (case-insensitive)
2592 -- rules for its syntax, and value is any sequence (including an empty
2593 -- sequence) of characters from the set (letters, digits, period,
2594 -- underline). Ada reserved words may be used as symbols, with the
2595 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2597 -- A symbol declared with this qualifier on the command line replaces
2598 -- a symbol with the same name either in a definition file or specified
2599 -- with a switch -D in the preprocessor data file.
2601 -- This qualifier is similar to qualifier /ASSOCIATE of
2602 -- GNAT PREPROCESSING.
2604 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2605 "-gnats";
2606 -- /NOSYNTAX_ONLY (D)
2607 -- /SYNTAX_ONLY
2609 -- Run GNAT in syntax checking only mode. You can check a series of
2610 -- files in a single command, and can use wild cards to specify such a
2611 -- group of files.
2613 -- You may use other qualifiers in conjunction with this qualifier. In
2614 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2615 -- format of any generated error messages.
2617 -- The output is simply the error messages, if any. No object file or ALI
2618 -- file is generated by a syntax-only compilation. Also, no units other
2619 -- than the one specified are accessed. For example, if a unit "X" with's
2620 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2621 -- access the source file containing unit "Y".
2623 -- Normally, GNAT allows only a single unit in a source file. However,
2624 -- this restriction does not apply in syntax-check-only mode, and it is
2625 -- possible to check a file containing multiple compilation units
2626 -- concatenated together. This is primarily used by the GNAT CHOP
2627 -- command.
2629 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2630 "-gnatT#";
2631 -- /TABLE_MULTIPLIER=nnn
2633 -- All compiler tables start at nnn times usual starting size.
2635 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2636 "-gnatdc";
2637 -- /TRACE_UNITS
2638 -- /NOTRACE_UNITS
2640 -- This switch that does for the frontend what /VERBOSE does for the
2641 -- backend. The system prints the name of each unit, either a compilation
2642 -- unit or nested unit, as it is being analyzed.
2644 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2645 "-gnatt";
2646 -- /TREE_OUTPUT
2647 -- /NOTREE_OUTPUT
2649 -- Cause GNAT to write the internal tree for a unit to a file (with the
2650 -- filetype ATB for a body or ATS for a spec). This is not normally
2651 -- required, but is used by separate analysis tools. Typically these
2652 -- tools do the necessary compilations automatically, so you should never
2653 -- have to specify this switch in normal operation.
2655 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2656 "-gnatq";
2657 -- /TRY_SEMANTICS
2658 -- /NOTRY_SEMANTICS
2660 -- In normal operation mode the compiler first parses the program and
2661 -- determines if there are any syntax errors. If there are, appropriate
2662 -- error messages are generated and compilation is immediately
2663 -- terminated. This qualifier tells GNAT to continue with semantic
2664 -- analysis even if syntax errors have been found. This may enable the
2665 -- detection of more errors in a single run. On the other hand, the
2666 -- semantic analyzer is more likely to encounter some internal fatal
2667 -- error when given a syntactically invalid tree.
2669 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2670 "-gnatu";
2671 -- /NOUNITS_LIST (D)
2672 -- /UNITS_LIST
2674 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2675 -- listing includes all units on which the unit being compiled depends
2676 -- either directly or indirectly.
2678 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2679 "-gnatU";
2680 -- /NOUNIQUE_ERROR_TAG (D)
2681 -- /UNIQUE_ERROR_TAG
2683 -- Tag compiler error messages with the string "error: ".
2685 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2686 "-gnatF";
2687 -- /NOUPPERCASE_EXTERNALS (D)
2688 -- /UPPERCASE_EXTERNALS
2690 -- Fold default and explicit external names in pragmas Import and Export
2691 -- to uppercase for compatibility with the default behavior of DEC C.
2693 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2694 "DEFAULT " &
2695 "-gnatVd " &
2696 "NODEFAULT " &
2697 "-gnatVD " &
2698 "COPIES " &
2699 "-gnatVc " &
2700 "NOCOPIES " &
2701 "-gnatVC " &
2702 "COMPONENTS " &
2703 "-gnatVe " &
2704 "NOCOMPONENTS " &
2705 "-gnatVE " &
2706 "FLOATS " &
2707 "-gnatVf " &
2708 "NOFLOATS " &
2709 "-gnatVF " &
2710 "IN_PARAMS " &
2711 "-gnatVi " &
2712 "NOIN_PARAMS " &
2713 "-gnatVI " &
2714 "MOD_PARAMS " &
2715 "-gnatVm " &
2716 "NOMOD_PARAMS " &
2717 "-gnatVM " &
2718 "OPERANDS " &
2719 "-gnatVo " &
2720 "NOOPERANDS " &
2721 "-gnatVO " &
2722 "PARAMETERS " &
2723 "-gnatVp " &
2724 "NOPARAMETERS " &
2725 "-gnatVP " &
2726 "RETURNS " &
2727 "-gnatVr " &
2728 "NORETURNS " &
2729 "-gnatVR " &
2730 "SUBSCRIPTS " &
2731 "-gnatVs " &
2732 "NOSUBSCRIPTS " &
2733 "-gnatVS " &
2734 "TESTS " &
2735 "-gnatVt " &
2736 "NOTESTS " &
2737 "-gnatVT " &
2738 "ALL " &
2739 "-gnatVa " &
2740 "NONE " &
2741 "-gnatVn";
2742 -- /VALIDITY_CHECKING[=(keyword,[...])]
2744 -- Control level of validity checking.
2746 -- DEFAULT (D) In this mode checks are made to prevent
2747 -- erroneous behavior in accordance with the RM.
2748 -- Notably extra checks may be needed for case
2749 -- statements and subscripted array assignments.
2751 -- NONE No special checks for invalid values are
2752 -- performed. This means that references to
2753 -- uninitialized variables can cause erroneous
2754 -- behavior from constructs like case statements
2755 -- and subscripted array assignments. In this
2756 -- mode, invalid values can lead to erroneous
2757 -- behavior.
2759 -- FULL Every assignment is checked for validity, so
2760 -- that it is impossible to assign invalid values.
2761 -- The RM specifically allows such assignments,
2762 -- but in this mode, invalid values can never be
2763 -- assigned, and an attempt to perform such an
2764 -- assignment immediately raises Constraint_Error.
2765 -- This behavior is allowed (but not required) by
2766 -- the RM. This mode is intended as a debugging aid,
2767 -- and may be useful in helping to track down
2768 -- uninitialized variables. It may be useful to
2769 -- use this in conjunction with the Normalize_Scalars
2770 -- pragma which attempts to initialize with invalid
2771 -- values where possible.
2773 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2774 "-v";
2775 -- /VERBOSE
2776 -- /NOVERBOSE
2778 -- Show commands generated by the GCC driver. Normally used only for
2779 -- debugging purposes or if you need to be sure what version of the
2780 -- compiler you are executing.
2782 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2783 "-S,-verbose_asm,!-c";
2784 -- /NOASM (D)
2785 -- /ASM
2787 -- Use to cause the assembler source file to be generated, using S as the
2788 -- filetype, instead of the object file. This may be useful if you need
2789 -- to examine the generated assembly code.
2791 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2792 "DEFAULT " &
2793 "!-gnatws,!-gnatwe " &
2794 "ALL " &
2795 "-gnatwa " &
2796 "EVERY " &
2797 "-gnatw.e " &
2798 "OPTIONAL " &
2799 "-gnatwa " &
2800 "NOOPTIONAL " &
2801 "-gnatwA " &
2802 "NOALL " &
2803 "-gnatwA " &
2804 "ALL_GCC " &
2805 "-Wall " &
2806 "FAILING_ASSERTIONS " &
2807 "-gnatw.a " &
2808 "NO_FAILING_ASSERTIONS " &
2809 "-gnatw.A " &
2810 "BAD_FIXED_VALUES " &
2811 "-gnatwb " &
2812 "NO_BAD_FIXED_VALUES " &
2813 "-gnatwB " &
2814 "BIASED_REPRESENTATION " &
2815 "-gnatw.b " &
2816 "NO_BIASED_REPRESENTATION " &
2817 "-gnatw.B " &
2818 "CONDITIONALS " &
2819 "-gnatwc " &
2820 "NOCONDITIONALS " &
2821 "-gnatwC " &
2822 "MISSING_COMPONENT_CLAUSES " &
2823 "-gnatw.c " &
2824 "NOMISSING_COMPONENT_CLAUSES " &
2825 "-gnatw.C " &
2826 "IMPLICIT_DEREFERENCE " &
2827 "-gnatwd " &
2828 "NO_IMPLICIT_DEREFERENCE " &
2829 "-gnatwD " &
2830 "ERRORS " &
2831 "-gnatwe " &
2832 "UNREFERENCED_FORMALS " &
2833 "-gnatwf " &
2834 "NOUNREFERENCED_FORMALS " &
2835 "-gnatwF " &
2836 "UNRECOGNIZED_PRAGMAS " &
2837 "-gnatwg " &
2838 "NOUNRECOGNIZED_PRAGMAS " &
2839 "-gnatwG " &
2840 "HIDING " &
2841 "-gnatwh " &
2842 "NOHIDING " &
2843 "-gnatwH " &
2844 "IMPLEMENTATION " &
2845 "-gnatwi " &
2846 "NOIMPLEMENTATION " &
2847 "-gnatwI " &
2848 "OBSOLESCENT " &
2849 "-gnatwj " &
2850 "NOOBSOLESCENT " &
2851 "-gnatwJ " &
2852 "CONSTANT_VARIABLES " &
2853 "-gnatwk " &
2854 "NOCONSTANT_VARIABLES " &
2855 "-gnatwK " &
2856 "ELABORATION " &
2857 "-gnatwl " &
2858 "NOELABORATION " &
2859 "-gnatwL " &
2860 "MODIFIED_UNREF " &
2861 "-gnatwm " &
2862 "NOMODIFIED_UNREF " &
2863 "-gnatwM " &
2864 "NORMAL " &
2865 "-gnatwn " &
2866 "OVERLAYS " &
2867 "-gnatwo " &
2868 "NOOVERLAYS " &
2869 "-gnatwO " &
2870 "OUT_PARAM_UNREF " &
2871 "-gnatw.o " &
2872 "NOOUT_PARAM_UNREF " &
2873 "-gnatw.O " &
2874 "INEFFECTIVE_INLINE " &
2875 "-gnatwp " &
2876 "NOINEFFECTIVE_INLINE " &
2877 "-gnatwP " &
2878 "MISSING_PARENS " &
2879 "-gnatwq " &
2880 "PARAMETER_ORDER " &
2881 "-gnatw.p " &
2882 "NOPARAMETER_ORDER " &
2883 "-gnatw.P " &
2884 "NOMISSING_PARENS " &
2885 "-gnatwQ " &
2886 "REDUNDANT " &
2887 "-gnatwr " &
2888 "NOREDUNDANT " &
2889 "-gnatwR " &
2890 "OBJECT_RENAMES " &
2891 "-gnatw.r " &
2892 "NOOBJECT_RENAMES " &
2893 "-gnatw.R " &
2894 "SUPPRESS " &
2895 "-gnatws " &
2896 "DELETED_CODE " &
2897 "-gnatwt " &
2898 "NODELETED_CODE " &
2899 "-gnatwT " &
2900 "UNINITIALIZED " &
2901 "-Wuninitialized " &
2902 "UNUSED " &
2903 "-gnatwu " &
2904 "NOUNUSED " &
2905 "-gnatwU " &
2906 "VARIABLES_UNINITIALIZED " &
2907 "-gnatwv " &
2908 "NOVARIABLES_UNINITIALIZED " &
2909 "-gnatwV " &
2910 "LOWBOUND_ASSUMED " &
2911 "-gnatww " &
2912 "NOLOWBOUND_ASSUMED " &
2913 "-gnatwW " &
2914 "WARNINGS_OFF_PRAGMAS " &
2915 "-gnatw.w " &
2916 "NO_WARNINGS_OFF_PRAGMAS " &
2917 "-gnatw.W " &
2918 "IMPORT_EXPORT_PRAGMAS " &
2919 "-gnatwx " &
2920 "NOIMPORT_EXPORT_PRAGMAS " &
2921 "-gnatwX " &
2922 "LOCAL_RAISE_HANDLING " &
2923 "-gnatw.x " &
2924 "NOLOCAL_RAISE_HANDLING " &
2925 "-gnatw.X " &
2926 "ADA_2005_COMPATIBILITY " &
2927 "-gnatwy " &
2928 "NOADA_2005_COMPATIBILITY " &
2929 "-gnatwY " &
2930 "UNCHECKED_CONVERSIONS " &
2931 "-gnatwz " &
2932 "NOUNCHECKED_CONVERSIONS " &
2933 "-gnatwZ";
2934 -- /NOWARNINGS
2936 -- Suppress the output of all warning messages from the GNAT front end.
2937 -- Note that it does not suppress warnings from the gcc back end.
2939 -- /WARNINGS[=(keyword[,...])]
2941 -- In addition to error messages, corresponding to illegalities as
2942 -- defined in the reference manual, the compiler detects two kinds of
2943 -- warning situations. First, the compiler considers some constructs
2944 -- suspicious and generates a warning message to alert you to a possible
2945 -- error. Second, if the compiler detects a situation that is sure to
2946 -- raise an exception at runtime, it generates a warning message.
2948 -- You may specify the following keywords to change this behavior:
2950 -- DEFAULT (D) The default behavior above.
2952 -- ALL Activate all optional warnings.
2953 -- Activates most optional warning messages,
2954 -- see remaining list in this section for
2955 -- details on optional warning messages that
2956 -- can be individually controlled.
2957 -- The warnings that are not turned on by
2958 -- this option are BIASED_ROUNDING,
2959 -- IMPLICIT_DEREFERENCE, HIDING and
2960 -- ELABORATION. All other optional Ada
2961 -- warnings are turned on.
2963 -- EVERY Activate every optional warning.
2964 -- Activates all optional warnings, including
2965 -- those listed above as exceptions for ALL.
2967 -- NOALL Suppress all optional errors.
2968 -- Suppresses all optional warning messages
2969 -- that can be activated by option ALL.
2971 -- ALL_GCC Request additional messages from the GCC
2972 -- backend. Most of these are not relevant
2973 -- to Ada.
2975 -- CONDITIONALS Activate warnings for conditional
2976 -- Expressions used in tests that are known
2977 -- to be True or False at compile time. The
2978 -- default is that such warnings are not
2979 -- generated.
2981 -- NOCONDITIONALS Suppress warnings for conditional
2982 -- expressions used in tests that are known
2983 -- to be True or False at compile time.
2985 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
2986 -- The use of a prefix of an access type in an
2987 -- indexed component, slice, or selected component
2988 -- without an explicit .all will generate
2989 -- a warning. With this warning enabled, access
2990 -- checks occur only at points where an explicit
2991 -- .all appears in the source code (assuming no
2992 -- warnings are generated as a result of this
2993 -- option). The default is that such warnings are
2994 -- not generated. Note that /WARNINGS=ALL does not
2995 -- affect the setting of this warning option.
2997 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
2998 -- in indexed components, slices, and selected
2999 -- components.
3001 -- ELABORATION Activate warnings on missing pragma
3002 -- Elaborate_All statements. The default is
3003 -- that such warnings are not generated.
3005 -- NOELABORATION Suppress warnings on missing pragma
3006 -- Elaborate_All statements.
3008 -- ERRORS Warning messages are to be treated as errors.
3009 -- The warning string still appears, but the
3010 -- warning messages are counted as errors, and
3011 -- prevent the generation of an object file.
3013 -- HIDING Activate warnings on hiding declarations.
3014 -- A declaration is considered hiding if it is
3015 -- for a non-overloadable entity, and it declares
3016 -- an entity with the same name as some other
3017 -- entity that is directly or use-visible. The
3018 -- default is that such warnings are not
3019 -- generated.
3021 -- NOHIDING Suppress warnings on hiding declarations.
3023 -- IMPLEMENTATION Activate warnings for a with of an internal
3024 -- GNAT implementation unit, defined as any unit
3025 -- from the Ada, Interfaces, GNAT, DEC or
3026 -- System hierarchies that is not documented in
3027 -- either the Ada Reference Manual or the GNAT
3028 -- Programmer's Reference Manual. Such units are
3029 -- intended only for internal implementation
3030 -- purposes and should not be with'ed by user
3031 -- programs. The default is that such warnings
3032 -- are generated.
3034 -- NOIMPLEMENTATION Disables warnings for a with of an internal
3035 -- GNAT implementation unit.
3037 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
3038 -- Activates warnings for failure of front end
3039 -- inlining (activated by /INLINE=FULL) to inline
3040 -- a particular call. There are many reasons for
3041 -- not being able to inline a call, including most
3042 -- commonly that the call is too complex to
3043 -- inline. This warning can also be turned on
3044 -- using /INLINE=FULL.
3046 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
3047 -- Suppresses warnings on ineffective pragma
3048 -- Inlines. If the inlining mechanism cannot
3049 -- inline a call, it will simply ignore the
3050 -- request silently.
3052 -- MISSING_COMPONENT_CLAUSES
3053 -- Activate warnings for cases when there are
3054 -- component clauses for a record type, but not
3055 -- for every component of the record.
3057 -- NOMISSING_COMPONENT_CLAUSES
3058 -- Suppress warnings for cases when there are
3059 -- missing component clauses for a record type.
3061 -- MISSING_PARENS
3062 -- Activate warnings for cases where parentheses
3063 -- are not used and the result is potential
3064 -- ambiguity from a reader's point of view.
3065 -- For example (not a > b) when a and b are
3066 -- modular means (not (a) > b) and very likely
3067 -- the programmer intended (not (a > b)).
3069 -- NOMISSING_PARENS
3070 -- Suppress warnings for cases where parentheses
3071 -- are not used and the result is potential
3072 -- ambiguity from a reader's point of view.
3074 -- MODIFIED_UNREF Activates warnings for variables that are
3075 -- assigned (using an initialization value or with
3076 -- one or more assignment statements) but whose
3077 -- value is never read. The warning is suppressed
3078 -- for volatile variables and also for variables
3079 -- that are renamings of other variables or for
3080 -- which an address clause is given. This warning
3081 -- can also be turned on using /WARNINGS/OPTIONAL.
3083 -- NOMODIFIED_UNREF Disables warnings for variables that are
3084 -- assigned or initialized, but never read.
3086 -- NORMAL Sets normal warning mode, in which enabled
3087 -- warnings are issued and treated as warnings
3088 -- rather than errors. This is the default mode.
3089 -- It can be used to cancel the effect of an
3090 -- explicit /WARNINGS=SUPPRESS or
3091 -- /WARNINGS=ERRORS. It also cancels the effect
3092 -- of the implicit /WARNINGS=ERRORS that is
3093 -- activated by the use of /STYLE=GNAT.
3095 -- OBSOLESCENT Activates warnings for calls to subprograms
3096 -- marked with pragma Obsolescent and for use of
3097 -- features in Annex J of the Ada Reference
3098 -- Manual. In the case of Annex J, not all
3099 -- features are flagged. In particular use of the
3100 -- renamed packages (like Text_IO), use of package
3101 -- ASCII and use of the attribute 'Constrained are
3102 -- not flagged, since these are very common and
3103 -- would generate many annoying positive warnings.
3104 -- The default is that such warnings are not
3105 -- generated.
3107 -- NOOBSOLESCENT Disables warnings on use of obsolescent
3108 -- features.
3110 -- OBJECT_RENAME Activate warnings for non limited objects
3111 -- renaming parameterless functions.
3113 -- NOOBJECT_RENAME Suppress warnings for non limited objects
3114 -- renaming parameterless functions.
3116 -- OPTIONAL Equivalent to ALL.
3118 -- NOOPTIONAL Equivalent to NOALL.
3120 -- OVERLAYS Activate warnings for possibly unintended
3121 -- initialization effects of defining address
3122 -- clauses that cause one variable to overlap
3123 -- another. The default is that such warnings
3124 -- are generated.
3126 -- NOOVERLAYS Suppress warnings on possibly unintended
3127 -- initialization effects of defining address
3128 -- clauses that cause one variable to overlap
3129 -- another.
3131 -- REDUNDANT Activate warnings for redundant constructs.
3132 -- In particular assignments of a variable to
3133 -- itself, and a type conversion that converts
3134 -- an object to its own type. The default
3135 -- is that such warnings are not generated.
3137 -- NOREDUNDANT Suppress warnings for redundant constructs.
3139 -- SUPPRESS Completely suppress the output of all warning
3140 -- messages. Same as /NOWARNINGS.
3142 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
3143 -- Causes warnings to be generated for
3144 -- unchecked conversions when the two types are
3145 -- known at compile time to have different sizes.
3146 -- The default is that such warnings are
3147 -- generated.
3149 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
3151 -- UNINITIALIZED Generate warnings for uninitialized variables.
3152 -- This is a GCC option, not an Ada option.
3153 -- You must also specify the /OPTIMIZE qualifier
3154 -- with a value other than NONE (in other words,
3155 -- this keyword works only if optimization is
3156 -- turned on).
3158 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
3159 -- Causes a warning to be generated if a formal
3160 -- parameter is not referenced in the body of
3161 -- the subprogram. This warning can also be turned
3162 -- on using option ALL or UNUSED.
3164 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
3165 -- Suppresses warnings for unreferenced formal
3166 -- parameters. Note that the combination UNUSED
3167 -- followed by NOUNREFERENCED_FORMALS has the
3168 -- effect of warning on unreferenced entities
3169 -- other than subprogram formals.
3171 -- UNUSED Activates warnings to be generated for entities
3172 -- that are defined but not referenced, and for
3173 -- units that are with'ed and not referenced. In
3174 -- the case of packages, a warning is also
3175 -- generated if no entities in the package are
3176 -- referenced. This means that if the package
3177 -- is referenced but the only references are in
3178 -- use clauses or renames declarations, a warning
3179 -- is still generated. A warning is also generated
3180 -- for a generic package that is with'ed but never
3181 -- instantiated. In the case where a package or
3182 -- subprogram body is compiled, and there is a
3183 -- with on the corresponding spec that is only
3184 -- referenced in the body, a warning is also
3185 -- generated, noting that the with can be moved
3186 -- to the body. The default is that such warnings
3187 -- are not generated.
3189 -- NOUNUSED Suppress warnings for unused entities and
3190 -- packages.
3192 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
3193 -- Causes warnings to be generated when a variable
3194 -- is accessed which may not be properly
3195 -- uninitialized.
3196 -- The default is that such warnings are
3197 -- generated.
3199 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
3200 -- variables.
3202 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
3203 "-gnatws";
3204 -- NODOC (see /WARNINGS)
3206 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
3207 "-w";
3208 -- /NO_BACK_END_WARNINGS
3210 -- Inhibit all warning messages of the GCC back-end.
3212 S_GCC_All_Back : aliased constant S := "/ALL_BACK_END_WARNINGS " &
3213 "-Wall";
3214 -- /ALL_BACK_END_WARNINGS
3216 -- Activate all warning messages of the GCC back-end.
3218 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
3219 "BRACKETS " &
3220 "-gnatWb " &
3221 "HEX " &
3222 "-gnatWh " &
3223 "UPPER " &
3224 "-gnatWu " &
3225 "SHIFT_JIS " &
3226 "-gnatWs " &
3227 "UTF8 " &
3228 "-gnatW8 " &
3229 "EUC " &
3230 "-gnatWe";
3231 -- /NOWIDE_CHARACTER_ENCODING (D)
3232 -- /WIDE_CHARACTER_ENCODING[=encode-type]
3234 -- Specifies the mechanism used to encode wide characters. 'encode-type'
3235 -- is one of the following:
3237 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
3238 -- are four hexadecimal digits representing the coding
3239 -- ('Pos value) of the character in type
3240 -- Wide_Character. The hexadecimal digits may use upper
3241 -- or lower case letters.
3243 -- This notation can also be used for upper half
3244 -- Character values using the format ["xx"] where XX is
3245 -- two hexadecimal digits representing the coding ('Pos
3246 -- value) of the character in type Character (or
3247 -- Wide_Character). The hexadecimal digits may use upper
3248 -- of lower case.
3250 -- NONE No wide characters are allowed. Same
3251 -- as /NOWIDE_CHARACTER_ENCODING.
3253 -- HEX In this encoding, a wide character is represented by
3254 -- the following five character sequence: ESC a b c d
3255 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
3256 -- characters (using uppercase letters) of the wide
3257 -- character code. For example, ESC A345 is used to
3258 -- represent the wide character with code 16#A345#. This
3259 -- scheme is compatible with use of the full
3260 -- Wide_Character set.
3262 -- UPPER The wide character with encoding 16#abcd# where the
3263 -- upper bit is on (in other words, "a" is in the range
3264 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
3265 -- The second byte may never be a format control
3266 -- character, but is not required to be in the upper
3267 -- half. This method can be also used for shift-JIS or
3268 -- EUC, where the internal coding matches the external
3269 -- coding.
3271 -- SHIFT_JIS A wide character is represented by a two-character
3272 -- sequence, 16#ab# and 16#cd#, with the restrictions
3273 -- described for upper-half encoding as described above.
3274 -- The internal character code is the corresponding JIS
3275 -- character according to the standard algorithm for
3276 -- Shift-JIS conversion. Only characters defined in the
3277 -- JIS code set table can be used with this encoding
3278 -- method.
3280 -- UTF8 A wide character is represented using
3281 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
3282 -- R of ISO 10646-1/Am.2. Depending on the character
3283 -- value, the representation is a one, two, or three byte
3284 -- sequence:
3286 -- 16#0000#-16#007f#: 2#0xxxxxxx#
3287 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
3288 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
3290 -- where the xxx bits correspond to the left-padded bits
3291 -- of the 16-bit character value. Note that all lower
3292 -- half ASCII characters are represented as ASCII bytes
3293 -- and all upper half characters and other wide characters
3294 -- are represented as sequences of upper-half (The full
3295 -- UTF-8 scheme allows for encoding 31-bit characters as
3296 -- 6-byte sequences, but in this implementation, all UTF-8
3297 -- sequences of four or more bytes length will be treated
3298 -- as illegal).
3300 -- EUC A wide character is represented by a two-character
3301 -- sequence 16#ab# and 16#cd#, with both characters being
3302 -- in the upper half. The internal character code is the
3303 -- corresponding JIS character according to the EUC
3304 -- encoding algorithm. Only characters defined in the JIS
3305 -- code set table can be used with this encoding method.
3307 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
3308 "-gnatWn";
3309 -- NODOC (see /WIDE_CHARACTER_ENCODING)
3311 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
3312 "-gnatD";
3313 -- /NOXDEBUG (D)
3314 -- /XDEBUG
3316 -- Output expanded source files for source level debugging.
3317 -- The expanded source (see /EXPAND_SOURCE) is written to files
3318 -- with names formed by appending "_DG" to the input file name,
3319 -- The debugging information generated by the /DEBUG qualifier will then
3320 -- refer to the generated file. This allows source level debugging using
3321 -- the generated code which is sometimes useful for complex code, for
3322 -- example to find out exactly which part of a complex construction
3323 -- raised an exception.
3325 S_GCC_Xref : aliased constant S := "/XREF=" &
3326 "GENERATE " &
3327 "!-gnatx " &
3328 "SUPPRESS " &
3329 "-gnatx";
3330 -- /XREF[=keyword]
3332 -- Normally the compiler generates full cross-referencing information in
3333 -- the .ALI file. This information is used by a number of tools,
3334 -- including GNAT FIND and GNAT XREF.
3336 -- GENERATE (D) Generate cross-referencing information.
3338 -- SUPPRESS Suppress cross-referencing information.
3339 -- This saves some space and may slightly
3340 -- speed up compilation, but means that some
3341 -- tools cannot be used.
3343 GCC_Switches : aliased constant Switches :=
3344 (S_GCC_Ada_83 'Access,
3345 S_GCC_Ada_95 'Access,
3346 S_GCC_Ada_05 'Access,
3347 S_GCC_Add 'Access,
3348 S_GCC_Asm 'Access,
3349 S_GCC_Checks 'Access,
3350 S_GCC_ChecksX 'Access,
3351 S_GCC_Compres 'Access,
3352 S_GCC_Config 'Access,
3353 S_GCC_Current 'Access,
3354 S_GCC_Debug 'Access,
3355 S_GCC_DebugX 'Access,
3356 S_GCC_Data 'Access,
3357 S_GCC_Dist 'Access,
3358 S_GCC_DistX 'Access,
3359 S_GCC_Error 'Access,
3360 S_GCC_ErrorX 'Access,
3361 S_GCC_Expand 'Access,
3362 S_GCC_Extend 'Access,
3363 S_GCC_Ext 'Access,
3364 S_GCC_File 'Access,
3365 S_GCC_Follow 'Access,
3366 S_GCC_Force 'Access,
3367 S_GCC_Full 'Access,
3368 S_GCC_Generate'Access,
3369 S_GCC_GNAT 'Access,
3370 S_GCC_Help 'Access,
3371 S_GCC_Ident 'Access,
3372 S_GCC_IdentX 'Access,
3373 S_GCC_Ignore 'Access,
3374 S_GCC_Immed 'Access,
3375 S_GCC_Inline 'Access,
3376 S_GCC_InlineX 'Access,
3377 S_GCC_Intsrc 'Access,
3378 S_GCC_Just 'Access,
3379 S_GCC_JustX 'Access,
3380 S_GCC_Length 'Access,
3381 S_GCC_List 'Access,
3382 S_GCC_Output 'Access,
3383 S_GCC_Machine 'Access,
3384 S_GCC_Mapping 'Access,
3385 S_GCC_Mess 'Access,
3386 S_GCC_Nesting 'Access,
3387 S_GCC_Noadc 'Access,
3388 S_GCC_Noload 'Access,
3389 S_GCC_Nostinc 'Access,
3390 S_GCC_Nostlib 'Access,
3391 S_GCC_Opt 'Access,
3392 S_GCC_OptX 'Access,
3393 S_GCC_Pointer 'Access,
3394 S_GCC_Polling 'Access,
3395 S_GCC_Project 'Access,
3396 S_GCC_Psta 'Access,
3397 S_GCC_Report 'Access,
3398 S_GCC_ReportX 'Access,
3399 S_GCC_Repinfo 'Access,
3400 S_GCC_RepinfX 'Access,
3401 S_GCC_RTS 'Access,
3402 S_GCC_Search 'Access,
3403 S_GCC_Style 'Access,
3404 S_GCC_StyleX 'Access,
3405 S_GCC_Subdirs 'Access,
3406 S_GCC_Symbol 'Access,
3407 S_GCC_Syntax 'Access,
3408 S_GCC_Table 'Access,
3409 S_GCC_Trace 'Access,
3410 S_GCC_Tree 'Access,
3411 S_GCC_Trys 'Access,
3412 S_GCC_Units 'Access,
3413 S_GCC_Unique 'Access,
3414 S_GCC_Upcase 'Access,
3415 S_GCC_Valid 'Access,
3416 S_GCC_Verbose 'Access,
3417 S_GCC_Verb_Asm'Access,
3418 S_GCC_Warn 'Access,
3419 S_GCC_WarnX 'Access,
3420 S_GCC_Wide 'Access,
3421 S_GCC_WideX 'Access,
3422 S_GCC_No_Back 'Access,
3423 S_GCC_All_Back'Access,
3424 S_GCC_Xdebug 'Access,
3425 S_GCC_Xref 'Access);
3427 ----------------------------
3428 -- Switches for GNAT ELIM --
3429 ----------------------------
3431 S_Elim_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3432 "-aP*";
3433 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3435 -- Add directories to the project search path.
3437 S_Elim_All : aliased constant S := "/ALL " &
3438 "-a";
3439 -- /NOALL (D)
3440 -- /ALL
3442 -- Also look for subprograms from the GNAT run time that can be
3443 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3444 -- the entire program must be recompiled with qualifier /ALL_FILES of
3445 -- GNAT MAKE.
3447 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3448 "-b>";
3449 -- /BIND_FILE=file_name
3451 -- Specifies file_name as the bind file to process. If this qualifier is
3452 -- not used, the name of the bind file is computed from the full expanded
3453 -- Ada name of a main subprogram.
3455 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3456 "--GCC=@";
3457 -- /COMPILER=path_name
3459 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3460 -- available on the path.
3462 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3463 "-C>";
3464 -- /CONFIGURATION_PRAGMAS=path_name
3466 -- Specifies a file that contains configuration pragmas.
3467 -- The file must be specified with absolute path.
3469 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3470 "!-I-";
3471 -- /CURRENT_DIRECTORY (D)
3472 -- /NOCURRENT_DIRECTORY
3474 -- Look for source files in the default directory.
3476 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3477 "-X" & '"';
3478 -- /EXTERNAL_REFERENCE="name=val"
3480 -- Specifies an external reference to the project manager. Useful only if
3481 -- /PROJECT_FILE is used.
3483 -- Example:
3484 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3486 S_Elim_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3487 "-eL";
3488 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3489 -- /FOLLOW_LINKS_FOR_FILES
3491 -- Follow links when parsing project files
3493 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3494 "--GNATMAKE=@";
3495 -- /GNATMAKE=path_name
3497 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3498 -- on the path.
3500 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3501 "DEFAULT " &
3502 "-vP0 " &
3503 "MEDIUM " &
3504 "-vP1 " &
3505 "HIGH " &
3506 "-vP2";
3507 -- /MESSAGES_PROJECT_FILE[=messages-option]
3509 -- Specifies the "verbosity" of the parsing of project files.
3510 -- messages-option may be one of the following:
3512 -- DEFAULT (D) No messages are output if there is no error or warning.
3514 -- MEDIUM A small number of messages are output.
3516 -- HIGH A great number of messages are output, most of them not
3517 -- being useful for the user.
3519 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3520 "-P>";
3521 -- /PROJECT_FILE=filename
3523 -- Specifies the main project file to be used. The project files rooted
3524 -- at the main project file will be parsed before the invocation of the
3525 -- gnatelim. The source directories to be searched will be communicated
3526 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3528 S_Elim_Quiet : aliased constant S := "/QUIET " &
3529 "-q";
3530 -- /NOQUIET (D)
3531 -- /QUIET
3533 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3534 -- the number of program units left to be processed. This option turns
3535 -- this trace off.
3537 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3538 "-I*";
3539 -- /SEARCH=(directory, ...)
3541 -- When looking for source files also look in the specified directories.
3543 S_Elim_Subdirs : aliased constant S := "/SUBDIRS=<" &
3544 "--subdirs=>";
3545 -- /SUBDIRS=dir
3547 -- The actual directories (object, exec, library, ...) are subdirectories
3548 -- of the directory specified in the project file. If the subdirectory
3549 -- does not exist, it is created automatically.
3551 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3552 "-v";
3553 -- /NOVERBOSE (D)
3554 -- /VERBOSE
3556 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3557 -- to the standard output stream. Also, in addition to the number of
3558 -- program units left, GNAT ELIM will output the name of the current unit
3559 -- being processed.
3561 Elim_Switches : aliased constant Switches :=
3562 (S_Elim_Add 'Access,
3563 S_Elim_All 'Access,
3564 S_Elim_Bind 'Access,
3565 S_Elim_Comp 'Access,
3566 S_Elim_Config 'Access,
3567 S_Elim_Current 'Access,
3568 S_Elim_Ext 'Access,
3569 S_Elim_Follow 'Access,
3570 S_Elim_GNATMAKE'Access,
3571 S_Elim_Mess 'Access,
3572 S_Elim_Project 'Access,
3573 S_Elim_Quiet 'Access,
3574 S_Elim_Search 'Access,
3575 S_Elim_Subdirs 'Access,
3576 S_Elim_Verb 'Access);
3578 ----------------------------
3579 -- Switches for GNAT FIND --
3580 ----------------------------
3582 S_Find_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3583 "-aP*";
3584 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3586 -- Add directories to the project search path.
3588 S_Find_All : aliased constant S := "/ALL_FILES " &
3589 "-a";
3590 -- /NOALL_FILES (D)
3591 -- /ALL_FILES
3593 -- If this switch is present, FIND and XREF will parse the read-only
3594 -- files found in the library search path. Otherwise, these files will
3595 -- be ignored. This option can be used to protect Gnat sources or your
3596 -- own libraries from being parsed, thus making FIND and XREF much
3597 -- faster, and their output much smaller.
3599 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3600 "-d";
3601 -- /NODERIVED_TYPE_INFORMATION (D)
3602 -- /DERIVED_TYPE_INFORMATION
3604 -- Output the parent type reference for each matching derived types.
3606 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3607 "-e";
3608 -- /NOEXPRESSIONS (D)
3609 -- /EXPRESSIONS
3611 -- By default, FIND accepts the simple regular expression set for pattern.
3612 -- If this switch is set, then the pattern will be considered as a full
3613 -- Unix-style regular expression.
3615 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3616 "-X" & '"';
3617 -- /EXTERNAL_REFERENCE="name=val"
3619 -- Specifies an external reference to the project manager. Useful only if
3620 -- /PROJECT_FILE is used.
3622 -- Example:
3623 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3625 S_Find_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3626 "-eL";
3627 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3628 -- /FOLLOW_LINKS_FOR_FILES
3630 -- Follow links when parsing project files
3632 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3633 "-f";
3634 -- /NOFULL_PATHNAME (D)
3635 -- /FULL_PATHNAME
3637 -- If this switch is set, the output file names will be preceded by their
3638 -- directory (if the file was found in the search path). If this switch
3639 -- is not set, the directory will not be printed.
3641 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3642 "-g";
3643 -- /NOIGNORE_LOCALS (D)
3644 -- /IGNORE_LOCALS
3646 -- If this switch is set, information is output only for library-level
3647 -- entities, ignoring local entities. The use of this switch may
3648 -- accelerate FIND and XREF.
3650 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3651 "DEFAULT " &
3652 "-vP0 " &
3653 "MEDIUM " &
3654 "-vP1 " &
3655 "HIGH " &
3656 "-vP2";
3657 -- /MESSAGES_PROJECT_FILE[=messages-option]
3659 -- Specifies the "verbosity" of the parsing of project files.
3660 -- messages-option may be one of the following:
3662 -- DEFAULT (D) No messages are output if there is no error or warning.
3664 -- MEDIUM A small number of messages are output.
3666 -- HIGH A great number of messages are output, most of them not
3667 -- being useful for the user.
3669 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3670 "-nostdinc";
3671 -- /NOSTD_INCLUDES
3673 -- Do not look for sources in the system default directory.
3675 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3676 "-nostdlib";
3677 -- /NOSTD_LIBRARIES
3679 -- Do not look for library files in the system default directory.
3681 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3682 "-aO*";
3683 -- /OBJECT_SEARCH=(directory,...)
3685 -- When searching for library and object files, look in the specified
3686 -- directories. The order in which library files are searched is the same
3687 -- as for MAKE.
3689 S_Find_Print : aliased constant S := "/PRINT_LINES " &
3690 "-s";
3691 -- /NOPRINT_LINES (D)
3692 -- /PRINT_LINES
3694 -- Output the content of the Ada source file lines were the entity was
3695 -- found.
3697 S_Find_Project : aliased constant S := "/PROJECT=@" &
3698 "-p@";
3699 -- /PROJECT=file
3701 -- Specify a project file to use. By default, FIND and XREF will try to
3702 -- locate a project file in the current directory.
3704 -- If a project file is either specified or found by the tools, then the
3705 -- content of the source directory and object directory lines are added
3706 -- as if they had been specified respectively by /SOURCE_SEARCH and
3707 -- /OBJECT_SEARCH.
3709 -- This qualifier is not compatible with /PROJECT_FILE
3711 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
3712 "-P>";
3713 -- /PROJECT_FILE=filename
3715 -- Specifies the main project file to be used. The project files rooted
3716 -- at the main project file will be parsed before looking for sources.
3717 -- The source and object directories to be searched will be communicated
3718 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
3719 -- ADA_PRJ_OBJECTS_FILE.
3721 S_Find_Ref : aliased constant S := "/REFERENCES " &
3722 "-r";
3723 -- /NOREFERENCES (D)
3724 -- /REFERENCES
3726 -- By default, FIND will output only the information about the
3727 -- declaration, body or type completion of the entities. If this switch
3728 -- is set, the FIND will locate every reference to the entities in the
3729 -- files specified on the command line (or in every file in the search
3730 -- path if no file is given on the command line).
3732 S_Find_Search : aliased constant S := "/SEARCH=*" &
3733 "-I*";
3734 -- /SEARCH=(directory,...)
3736 -- Equivalent to:
3737 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3739 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3740 "-aI*";
3741 -- /SOURCE_SEARCH=(directory,...)
3743 -- When looking for source files also look in the specified directories.
3744 -- The order in which source file search is undertaken is the same as for
3745 -- MAKE.
3747 S_Find_Subdirs : aliased constant S := "/SUBDIRS=<" &
3748 "--subdirs=>";
3749 -- /SUBDIRS=dir
3751 -- The actual directories (object, exec, library, ...) are subdirectories
3752 -- of the directory specified in the project file. If the subdirectory
3753 -- does not exist, it is created automatically.
3755 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
3756 "-t";
3757 -- /NOTYPE_HIERARCHY (D)
3758 -- /TYPE_HIERARCHY
3760 -- Output the type hierarchy for the specified type. It acts like the
3761 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3762 -- to parent type. When this qualifier is specified it is not possible to
3763 -- specify more than one file.
3765 Find_Switches : aliased constant Switches :=
3766 (S_Find_Add 'Access,
3767 S_Find_All 'Access,
3768 S_Find_Deriv 'Access,
3769 S_Find_Expr 'Access,
3770 S_Find_Ext 'Access,
3771 S_Find_Follow 'Access,
3772 S_Find_Full 'Access,
3773 S_Find_Ignore 'Access,
3774 S_Find_Mess 'Access,
3775 S_Find_Nostinc 'Access,
3776 S_Find_Nostlib 'Access,
3777 S_Find_Object 'Access,
3778 S_Find_Print 'Access,
3779 S_Find_Project 'Access,
3780 S_Find_Prj 'Access,
3781 S_Find_Ref 'Access,
3782 S_Find_Search 'Access,
3783 S_Find_Source 'Access,
3784 S_Find_Subdirs 'Access,
3785 S_Find_Types 'Access);
3787 ------------------------------
3788 -- Switches for GNAT KRUNCH --
3789 ------------------------------
3791 S_Krunch_Count : aliased constant S := "/COUNT=#" &
3792 "`#";
3793 -- /COUNT=39 (D)
3794 -- /COUNT=nnn
3796 -- Limit file names to nnn characters (where nnn is a decimal
3797 -- integer). The maximum file name length is 39, but if you want to
3798 -- generate a set of files that would be usable if ported to a system
3799 -- with some different maximum file length, then a different value can
3800 -- be specified.
3802 Krunch_Switches : aliased constant Switches :=
3803 (1 .. 1 => S_Krunch_Count 'Access);
3805 ----------------------------
3806 -- Switches for GNAT LINK --
3807 ----------------------------
3809 S_Link_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
3810 "-aP*";
3811 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
3813 -- Add directories to the project search path.
3815 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
3816 "ADA " &
3817 "-A " &
3818 "C " &
3819 "-C";
3820 -- /BIND_FILE=[bind-file-option]
3822 -- Specifies the language of the binder generated file.
3824 -- ADA (D) Binder file is Ada.
3826 -- C Binder file is 'C'.
3828 S_Link_Debug : aliased constant S := "/DEBUG=" &
3829 "ALL " &
3830 "-g3 " &
3831 "NONE " &
3832 "-g0 " &
3833 "TRACEBACK " &
3834 "-g1 " &
3835 "NOTRACEBACK " &
3836 "-g0";
3837 -- /NODEBUG (D)
3838 -- /DEBUG[=debug-option]
3840 -- Specifies the amount of debugging information included. 'debug-option'
3841 -- is one of the following:
3843 -- ALL (D) Include full debugging information.
3845 -- NONE Provide no debugging information. Same as /NODEBUG.
3847 -- TRACEBACK Provide sufficient debug information for a traceback.
3849 -- NOTRACEBACK Same as NONE.
3851 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
3852 "-g0";
3853 -- NODOC (see /DEBUG)
3855 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
3856 "-o@";
3857 -- /EXECUTABLE=exec-name
3859 -- 'exec-name' specifies an alternative name for the generated executable
3860 -- program. If this qualifier switch is omitted, the executable is called
3861 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3862 -- executable called TRY.EXE.
3864 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3865 "-X" & '"';
3866 -- /EXTERNAL_REFERENCE="name=val"
3868 -- Specifies an external reference to the project manager. Useful only if
3869 -- /PROJECT_FILE is used.
3871 -- Example:
3872 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3874 S_Link_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
3875 "-eL";
3876 -- /NOFOLLOW_LINKS_FOR_FILES (D)
3877 -- /FOLLOW_LINKS_FOR_FILES
3879 -- Follow links when parsing project files
3881 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
3882 "--for-linker=" & '"';
3883 -- /FOR_LINKER=<string>
3885 -- Transmit the option <string> to the underlying linker.
3887 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
3888 "-f";
3889 -- /NOFORCE_OBJECT_FILE_LIST (D)
3890 -- /FORCE_OBJECT_FILE_LIST
3892 -- Forces the generation of a file that contains commands for the linker.
3893 -- This is useful in some cases to deal with special situations where the
3894 -- command line length is exceeded.
3896 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
3897 "--for-linker=IDENT=" &
3898 '"';
3899 -- /IDENTIFICATION="<string>"
3901 -- "<string>" specifies the string to be stored in the image file ident-
3902 -- ification field in the image header. It overrides any pragma Ident
3903 -- specified string.
3905 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
3906 "-L*";
3907 -- /LIBDIR=(directory, ...)
3909 -- Look for libraries in the specified directories.
3911 S_Link_Library : aliased constant S := "/LIBRARY=|" &
3912 "-l|";
3913 -- /LIBRARY=xyz
3915 -- Link with library named "xyz".
3917 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3918 "DEFAULT " &
3919 "-vP0 " &
3920 "MEDIUM " &
3921 "-vP1 " &
3922 "HIGH " &
3923 "-vP2";
3924 -- /MESSAGES_PROJECT_FILE[=messages-option]
3926 -- Specifies the "verbosity" of the parsing of project files.
3927 -- messages-option may be one of the following:
3929 -- DEFAULT (D) No messages are output if there is no error or warning.
3931 -- MEDIUM A small number of messages are output.
3933 -- HIGH A great number of messages are output, most of them not
3934 -- being useful for the user.
3936 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
3937 "-n";
3938 -- /NOCOMPILE
3940 -- Do not compile the file generated by the binder.
3941 -- This may be used when a link is rerun with different options,
3942 -- but there is no need to recompile the binder generated file.
3944 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
3945 "--for-linker=--noinhibit-exec";
3946 -- /NOINHIBIT-EXEC
3948 -- Delete executable if there are errors or warnings.
3950 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
3951 "-nostartfiles";
3952 -- /NOSTART_FILES
3954 -- Link in default image initialization and startup functions.
3956 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
3957 "-P>";
3958 -- /PROJECT_FILE=filename
3960 -- Specifies the main project file to be used. The project files rooted
3961 -- at the main project file will be parsed before the invocation of the
3962 -- linker.
3963 -- The source and object directories to be searched will be communicated
3964 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
3965 -- ADA_PRJ_OBJECTS_FILE.
3967 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
3968 "POSIX " &
3969 "!-mvms-return-codes " &
3970 "VMS " &
3971 "-mvms-return-codes";
3972 -- /RETURN_CODES=POSIX (D)
3973 -- /RETURN_CODES=VMS
3975 -- Specifies the style of codes returned by
3976 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
3977 -- and match the Bind qualifier with the same name.
3979 -- POSIX (D) Return Posix compatible exit codes.
3981 -- VMS Return VMS compatible exit codes. The value returned
3982 -- is identically equal to the Set_Exit_Status parameter.
3984 S_Link_Static : aliased constant S := "/STATIC " &
3985 "--for-linker=-static";
3986 -- /NOSTATIC (D)
3987 -- /STATIC
3989 -- Indicate to the linker that the link is static.
3991 S_Link_Subdirs : aliased constant S := "/SUBDIRS=<" &
3992 "--subdirs=>";
3993 -- /SUBDIRS=dir
3995 -- The actual directories (object, exec, library, ...) are subdirectories
3996 -- of the directory specified in the project file. If the subdirectory
3997 -- does not exist, it is created automatically.
3999 S_Link_Verb : aliased constant S := "/VERBOSE " &
4000 "-v";
4001 -- /NOVERBOSE (D)
4002 -- /VERBOSE
4004 -- Causes additional information to be output, including a full list of
4005 -- the included object files. This switch option is most useful when you
4006 -- want to see what set of object files are being used in the link step.
4008 S_Link_ZZZZZ : aliased constant S := "/<other> " &
4009 "--for-linker=";
4010 -- /<other>
4012 -- Any other switch that will be transmitted to the underlying linker.
4014 Link_Switches : aliased constant Switches :=
4015 (S_Link_Add 'Access,
4016 S_Link_Bind 'Access,
4017 S_Link_Debug 'Access,
4018 S_Link_Nodebug 'Access,
4019 S_Link_Execut 'Access,
4020 S_Link_Ext 'Access,
4021 S_Link_Follow 'Access,
4022 S_Link_Forlink 'Access,
4023 S_Link_Force 'Access,
4024 S_Link_Ident 'Access,
4025 S_Link_Libdir 'Access,
4026 S_Link_Library 'Access,
4027 S_Link_Mess 'Access,
4028 S_Link_Nocomp 'Access,
4029 S_Link_Nofiles 'Access,
4030 S_Link_Noinhib 'Access,
4031 S_Link_Project 'Access,
4032 S_Link_Return 'Access,
4033 S_Link_Static 'Access,
4034 S_Link_Subdirs 'Access,
4035 S_Link_Verb 'Access,
4036 S_Link_ZZZZZ 'Access);
4038 ----------------------------
4039 -- Switches for GNAT LIST --
4040 ----------------------------
4042 S_List_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4043 "-aP*";
4044 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4046 -- Add directories to the project search path.
4048 S_List_All : aliased constant S := "/ALL_UNITS " &
4049 "-a";
4050 -- /NOALL_UNITS (D)
4051 -- /ALL_UNITS
4053 -- Consider all units, including those of the predefined Ada library.
4054 -- Especially useful with /DEPENDENCIES.
4056 S_List_Allproj : aliased constant S := "/ALL_PROJECTS " &
4057 "-U";
4058 -- /NOALL_PROJECTS (D)
4059 -- /ALL_PROJECTS
4061 -- When used with a project file and no file specified, indicate
4062 -- that gnatls should be called for all sources of all projects in
4063 -- the project tree.
4065 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4066 "!-I-";
4067 -- /CURRENT_DIRECTORY (D)
4068 -- /NOCURRENT_DIRECTORY
4070 -- Look for source, library or object files in the default directory.
4072 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
4073 "-d";
4074 -- /NODEPENDENCIES (D)
4075 -- /DEPENDENCIES
4077 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4078 "-X" & '"';
4079 -- /EXTERNAL_REFERENCE="name=val"
4081 -- Specifies an external reference to the project manager. Useful only if
4082 -- /PROJECT_FILE is used.
4084 -- Example:
4085 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4087 S_List_Files : aliased constant S := "/FILES=@" &
4088 "-files=@";
4089 -- /FILES=filename
4091 -- Take as arguments the files that are listed in the specified
4092 -- text file.
4094 S_List_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4095 "-eL";
4096 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4097 -- /FOLLOW_LINKS_FOR_FILES
4099 -- Follow links when parsing project files
4101 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4102 "DEFAULT " &
4103 "-vP0 " &
4104 "MEDIUM " &
4105 "-vP1 " &
4106 "HIGH " &
4107 "-vP2";
4108 -- /MESSAGES_PROJECT_FILE[=messages-option]
4110 -- Specifies the "verbosity" of the parsing of project files.
4111 -- messages-option may be one of the following:
4113 -- DEFAULT (D) No messages are output if there is no error or warning.
4115 -- MEDIUM A small number of messages are output.
4117 -- HIGH A great number of messages are output, most of them not
4118 -- being useful for the user.
4120 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4121 "-nostdinc";
4122 -- /NOSTD_INCLUDES
4124 -- Do not look for sources of the run time in the standard directory.
4126 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4127 "-aO*";
4128 -- /OBJECT_SEARCH=(directory,...)
4130 -- When looking for library and object files look also in the specified
4131 -- directories.
4133 S_List_Output : aliased constant S := "/OUTPUT=" &
4134 "SOURCES " &
4135 "-s " &
4136 "DEPEND " &
4137 "-d " &
4138 "OBJECTS " &
4139 "-o " &
4140 "UNITS " &
4141 "-u " &
4142 "OPTIONS " &
4143 "-h " &
4144 "VERBOSE " &
4145 "-v ";
4146 -- /OUTPUT=(option,option,...)
4148 -- SOURCES (D) Only output information about source files.
4150 -- DEPEND List sources from which specified units depend on.
4152 -- OBJECTS Only output information about object files.
4154 -- UNITS Only output information about compilation units.
4156 -- OPTIONS Output the list of options.
4158 -- VERBOSE Output the complete source and object paths.
4159 -- Do not use the default column layout but instead
4160 -- use long format giving as much as information
4161 -- possible on each requested units, including
4162 -- special characteristics.
4164 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
4165 "-P>";
4166 -- /PROJECT_FILE=filename
4168 -- Specifies the main project file to be used. The project files rooted
4169 -- at the main project file will be parsed before doing any listing.
4170 -- The source and object directories to be searched will be communicated
4171 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
4172 -- ADA_PRJ_OBJECTS_FILE.
4174 S_List_Search : aliased constant S := "/SEARCH=*" &
4175 "-I*";
4176 -- /SEARCH=(directory,...)
4178 -- Search the specified directories for both source and object files.
4180 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4181 "-aI*";
4182 -- /SOURCE_SEARCH=(directory,...)
4184 -- When looking for source files also look in the specified directories.
4186 S_List_Subdirs : aliased constant S := "/SUBDIRS=<" &
4187 "--subdirs=>";
4188 -- /SUBDIRS=dir
4190 -- The actual directories (object, exec, library, ...) are subdirectories
4191 -- of the directory specified in the project file. If the subdirectory
4192 -- does not exist, it is created automatically.
4194 List_Switches : aliased constant Switches :=
4195 (S_List_Add 'Access,
4196 S_List_All 'Access,
4197 S_List_Allproj 'Access,
4198 S_List_Current 'Access,
4199 S_List_Depend 'Access,
4200 S_List_Ext 'Access,
4201 S_List_Files 'Access,
4202 S_List_Follow 'Access,
4203 S_List_Mess 'Access,
4204 S_List_Nostinc 'Access,
4205 S_List_Object 'Access,
4206 S_List_Output 'Access,
4207 S_List_Project 'Access,
4208 S_List_Search 'Access,
4209 S_List_Source 'Access,
4210 S_List_Subdirs 'Access);
4212 ----------------------------
4213 -- Switches for GNAT MAKE --
4214 ----------------------------
4216 S_Make_Actions : aliased constant S := "/ACTIONS=" &
4217 "COMPILE " &
4218 "-c " &
4219 "BIND " &
4220 "-b " &
4221 "LINK " &
4222 "-l ";
4223 -- /ACTIONS=(keyword[,...])
4225 -- GNAT MAKE default behavior is to check if the sources are up to date,
4226 -- compile those sources that are not up to date, bind the main source,
4227 -- then link the executable.
4229 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
4230 -- two of these three steps:
4232 -- o Compile
4233 -- o Bind
4234 -- o Link
4237 -- You may specify one or more of the following keywords to the /ACTIONS
4238 -- qualifier:
4240 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
4241 -- to do compilation and binding, but no linking.
4242 -- Can be combined with /ACTIONS=LINK to do binding and
4243 -- linking. When not combined with /ACTIONS=COMPILE,
4244 -- all the units in the closure of the main program must
4245 -- have been previously compiled and must be up to date.
4247 -- COMPILE Compile only. Do not perform binding, except when
4248 -- /ACTIONS=BIND is also specified. Do not perform
4249 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
4250 -- are also specified.
4252 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
4253 -- binding and linking. Linking will not be performed
4254 -- if combined with /ACTIONS=COMPILE but not with
4255 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
4256 -- all the units in the closure of the main program must
4257 -- have been previously compiled and must be up to date,
4258 -- and the main program need to have been bound.
4260 S_Make_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4261 "-aP*";
4262 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4264 -- Add directories to the project search path.
4266 S_Make_All : aliased constant S := "/ALL_FILES " &
4267 "-a";
4268 -- /NOALL_FILES (D)
4269 -- /ALL_FILES
4271 -- Consider all files in the make process, even the GNAT internal system
4272 -- files (for example, the predefined Ada library files). By default,
4273 -- GNAT MAKE does not check these files (however, if there is an
4274 -- installation problem, it will be caught when GNAT MAKE binds your
4275 -- program). You may have to specify this qualifier if you are working on
4276 -- GNAT itself. The vast majority of GNAT MAKE users never need to
4277 -- specify this switch. All GNAT internal files with will be compiled
4278 -- with /STYLE_CHECK=GNAT.
4280 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
4281 "-U";
4282 -- /NOALL_PROJECTS (D)
4283 -- /ALL_PROJECTS
4285 -- Implies /Unique.
4286 -- When used without project files, it is equivalent to /UNIQUE.
4287 -- When used with a project file with no main (neither on the command
4288 -- line nor in the attribute Main) check every source of every project,
4289 -- recompile all sources that are not up to date and rebuild libraries
4290 -- if necessary.
4292 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
4293 "-bargs BIND";
4294 -- /BINDER_QUALIFIERS
4296 -- Any qualifiers specified after this qualifier other than
4297 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4298 -- passed to any GNAT BIND commands generated by GNAT MAKE.
4300 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
4301 "-B";
4302 -- /BND_LNK_FULL_PROJECT
4304 -- Bind and link all sources of a project, without any consideration
4305 -- to attribute Main, if there is one. This qualifier need to be
4306 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
4307 -- be used with a main subprogram on the command line or for
4308 -- a library project file. As the binder is invoked with the option
4309 -- meaning "No Ada main subprogram", the user must ensure that the
4310 -- proper options are specified to the linker. This qualifier is
4311 -- normally used when the main subprogram is in a foreign language
4312 -- such as C.
4314 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
4315 "-cargs COMPILE";
4316 -- /COMPILER_QUALIFIERS
4318 -- Any qualifiers specified after this qualifier other than
4319 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
4320 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
4322 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
4323 "-A*";
4324 -- /CONDITIONAL_SOURCE_SEARCH=dir
4326 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
4328 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
4329 "-k";
4330 -- /NOCONTINUE_ON_ERROR (D)
4331 -- /CONTINUE_ON_ERROR
4333 -- Keep going. Continue as much as possible after a compilation error.
4334 -- To ease the programmer's task in case of compilation errors, the list
4335 -- of sources for which the compile fails is given when GNAT MAKE
4336 -- terminates.
4338 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4339 "!-I-";
4340 -- /CURRENT_DIRECTORY (D)
4341 -- /NOCURRENT_DIRECTORY
4343 -- Look for source, library or object files in the default directory.
4345 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
4346 "-M";
4347 -- /NODEPENDENCIES_LIST (D)
4348 -- /DEPENDENCIES_LIST
4350 -- Check if all objects are up to date. If they are, output the object
4351 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
4352 -- a Unix-style Makefile. By default, each source file is prefixed with
4353 -- its (relative or absolute) directory name. This name is whatever you
4354 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
4355 -- you also specify the /QUIET qualifier, only the source file names,
4356 -- without relative paths, are output. If you just specify the
4357 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
4358 -- files are omitted. This is typically what you want. If you also
4359 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
4360 -- files are also listed. Note that dependencies of the objects in
4361 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
4362 -- reported.
4364 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
4365 "-D@";
4366 -- /DIRECTORY_OBJECTS=<file>
4368 -- Put all object files and .ALI files in <file>.
4369 -- This qualifier is not compatible with /PROJECT_FILE.
4371 S_Make_Disprog : aliased constant S := "/DISPLAY_PROGRESS " &
4372 "-d";
4373 -- /NOPLAY_PROGRESS (D)
4374 -- /DISPLAY_PROGRESS
4376 -- Display progress for each source, up to date or not, as a single line
4377 -- completed x out of y (zz%)
4378 -- If the file needs to be compiled this is displayed after the
4379 -- invocation of the compiler. These lines are displayed even in quiet
4380 -- output mode (/QUIET).
4382 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
4383 "-n";
4384 -- /NODO_OBJECT_CHECK (D)
4385 -- /DO_OBJECT_CHECK
4387 -- Don't compile, bind, or link. Output a single command that will
4388 -- recompile an out of date unit, if any. Repeated use of this option,
4389 -- followed by carrying out the indicated compilation, will eventually
4390 -- result in recompiling all required units.
4392 -- If any ALI is missing during the process, GNAT MAKE halts and
4393 -- displays an error message.
4395 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
4396 "-o@";
4397 -- /EXECUTABLE=exec-name
4399 -- The name of the final executable program will be 'exec_name'. If this
4400 -- qualifier is omitted the default name for the executable will be the
4401 -- name of the input file with an EXE filetype. You may prefix
4402 -- 'exec_name' with a relative or absolute directory path.
4404 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4405 "-X" & '"';
4406 -- /EXTERNAL_REFERENCE="name=val"
4408 -- Specifies an external reference to the project manager. Useful only if
4409 -- /PROJECT_FILE is used.
4411 -- Example:
4412 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4414 S_Make_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
4415 "-eL";
4416 -- /NOFOLLOW_LINKS_FOR_FILES (D)
4417 -- /FOLLOW_LINKS_FOR_FILES
4419 -- Follow links when parsing project files
4421 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
4422 "-f";
4423 -- /NOFORCE_COMPILE (D)
4424 -- /FORCE_COMPILE
4426 -- Force recompilations. Recompile all sources, even though some object
4427 -- files may be up to date, but don't recompile predefined or GNAT
4428 -- internal files unless the /ALL_FILES qualifier is also specified.
4430 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
4431 "-F";
4432 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
4433 -- /FULL_PATH_IN_BRIEF_MESSAGES
4435 -- When using project files, if some errors or warnings are detected
4436 -- during parsing and verbose mode is not in effect (no use of qualifier
4437 -- /VERBOSE), then error lines start with the full path name of the
4438 -- project file, rather than its simple file name.
4440 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
4441 "-vh";
4442 -- /NOHIGH_VERBOSITY (D)
4443 -- /HIGH_VERBOSITY
4445 -- Displays the reason for all recompilations GNAT MAKE decides are
4446 -- necessary, in high verbosity. Equivalent to /VERBOSE.
4448 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
4449 "-i";
4450 -- /NOIN_PLACE (D)
4451 -- /IN_PLACE
4453 -- In normal mode, GNAT MAKE compiles all object files and ALI files
4454 -- into the current directory. If the /IN_PLACE switch is used,
4455 -- then instead object files and ALI files that already exist are over-
4456 -- written in place. This means that once a large project is organized
4457 -- into separate directories in the desired manner, then GNAT MAKE will
4458 -- automatically maintain and update this organization. If no ALI files
4459 -- are found on the Ada object path, the new object and ALI files are
4460 -- created in the directory containing the source being compiled.
4462 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
4463 "-eI#";
4464 -- /SOURCE_INDEX=nnn
4466 -- Specifies the index of the units in the source file
4467 -- By default, source files are mono-unit and there is no index
4468 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
4469 -- on the command line.
4471 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
4472 "-L*";
4473 -- /LIBRARY_SEARCH=(directory[,...])
4475 -- Add the specified directories to the list of directories in which the
4476 -- linker will search for libraries.
4478 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
4479 "-largs LINK";
4480 -- /LINKER_QUALIFIERS
4482 -- Any qualifiers specified after this qualifier other than
4483 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
4484 -- passed to any GNAT LINK commands generated by GNAT LINK.
4486 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
4487 "-vl";
4488 -- /NOLOW_VERBOSITY (D)
4489 -- /LOW_VERBOSITY
4491 -- Displays the reason for all recompilations GNAT MAKE decides are
4492 -- necessary, in low verbosity, that is with less output than
4493 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
4495 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
4496 "-margs MAKE";
4497 -- /MAKE_QUALIFIERS
4499 -- Any qualifiers specified after this qualifier other than
4500 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4501 -- are for the benefit of GNAT MAKE itself.
4503 S_Make_Mapping : aliased constant S := "/MAPPING " &
4504 "-C";
4505 -- /NOMAPPING (D)
4506 -- /MAPPING
4508 -- Use a mapping file. A mapping file is a way to communicate to the
4509 -- compiler two mappings: from unit names to file names (without any
4510 -- directory information) and from file names to path names (with full
4511 -- directory information). These mappings are used by the compiler to
4512 -- short-circuit the path search. When GNAT MAKE is invoked with this
4513 -- qualifier, it will create a mapping file, initially populated by the
4514 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4515 -- Each invocation of the compiler will add the newly accessed sources to
4516 -- the mapping file. This will improve the source search during the next
4517 -- invocations of the compiler
4519 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4520 "-vm";
4521 -- /NOMEDIUM_VERBOSITY (D)
4522 -- /MEDIUM_VERBOSITY
4524 -- Displays the reason for all recompilations GNAT MAKE decides are
4525 -- necessary, in medium verbosity, that is with potentially less output
4526 -- than /HIGH_VERBOSITY or /VERBOSE.
4528 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4529 "DEFAULT " &
4530 "-vP0 " &
4531 "MEDIUM " &
4532 "-vP1 " &
4533 "HIGH " &
4534 "-vP2";
4535 -- /MESSAGES_PROJECT_FILE[=messages-option]
4537 -- Specifies the "verbosity" of the parsing of project files.
4538 -- messages-option may be one of the following:
4540 -- DEFAULT (D) No messages are output if there is no error or warning.
4542 -- MEDIUM A small number of messages are output.
4544 -- HIGH A great number of messages are output, most of them not
4545 -- being useful for the user.
4547 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4548 "-m";
4549 -- /NOMINIMAL_RECOMPILATION (D)
4550 -- /MINIMAL_RECOMPILATION
4552 -- Specifies that the minimum necessary amount of recompilation
4553 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4554 -- when the only modifications to a source file consist in
4555 -- adding/removing comments, empty lines, spaces or tabs.
4557 S_Make_Missing : aliased constant S := "/CREATE_MISSING_DIRS " &
4558 "-p";
4559 -- /NOCREATE_MISSING_DIRS (D)
4560 -- /CREATE_MISSING_DIRS
4562 -- When an object directory, a library directory or an exec directory
4563 -- in missing, attempt to create the directory.
4565 S_Make_Nolink : aliased constant S := "/NOLINK " &
4566 "-c";
4567 -- /NOLINK
4569 -- Compile only. Do not perform binding and linking. If the root unit is
4570 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4571 -- attempt binding and linking unless all objects are up to date and the
4572 -- executable is more recent than the objects.
4573 -- This is equivalent to /ACTIONS=COMPILE
4575 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4576 "-z";
4577 -- /NOMAIN
4579 -- No main subprogram. Bind and link the program even if the unit name
4580 -- given on the command line is a package name. The resulting executable
4581 -- will execute the elaboration routines of the package and its closure,
4582 -- then the finalization routines.
4584 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4585 "-x";
4586 -- /NON_PROJECT_UNIT_COMPILATION
4588 -- Normally, when using project files, a unit that is not part of any
4589 -- project file, cannot be compile. These units may be compile, when
4590 -- needed, if this qualifier is specified.
4592 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4593 "-nostdinc";
4594 -- /NOSTD_INCLUDES
4596 -- Do not look for sources the in the system default directory.
4598 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4599 "-nostdlib";
4600 -- /NOSTD_LIBRARIES
4602 -- Do not look for library files in the system default directory.
4604 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4605 "-aO*";
4606 -- /OBJECT_SEARCH=(directory[,...])
4608 -- When looking for library and object files look also in the specified
4609 -- directories.
4611 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4612 "-j#";
4613 -- /NOPROCESSES (D)
4614 -- /PROCESSES=NNN
4616 -- Use NNN processes to carry out the (re)compilations. If you have a
4617 -- multiprocessor machine, compilations will occur in parallel. In the
4618 -- event of compilation errors, messages from various compilations might
4619 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4620 -- failing compiles at the end). This can at times be annoying. To get a
4621 -- clean list of error messages don't use this qualifier.
4623 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4624 "-j1";
4625 -- NODOC (see /PROCESS)
4627 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4628 "-P>";
4629 -- /PROJECT_FILE=filename
4631 -- Specifies the main project file to be used. The project files rooted
4632 -- at the main project file will be parsed before any other processing to
4633 -- set the building environment.
4635 S_Make_Quiet : aliased constant S := "/QUIET " &
4636 "-q";
4637 -- /NOQUIET (D)
4638 -- /QUIET
4640 -- When this qualifiers is specified, the commands carried out by GNAT
4641 -- MAKE are not displayed.
4643 S_Make_Reason : aliased constant S := "/REASONS " &
4644 "-v";
4645 -- /NOREASONS (D)
4646 -- /REASONS
4648 -- Displays the reason for all recompilations GNAT MAKE decides are
4649 -- necessary.
4651 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4652 "--RTS=|";
4653 -- /RUNTIME_SYSTEM=xxx
4655 -- Build against an alternate runtime system named xxx or RTS-xxx.
4657 S_Make_Search : aliased constant S := "/SEARCH=*" &
4658 "-I*";
4659 -- /SEARCH=(directory[,...])
4661 -- Search the specified directories for both source and object files.
4663 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4664 "-aL*";
4665 -- /SKIP_MISSING=(directory[,...])
4667 -- Skip missing library sources if ALI in 'directory'.
4669 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4670 "-aI*";
4671 -- /SOURCE_SEARCH=(directory[,...])
4673 -- When looking for source files also look in the specified directories.
4675 S_Make_Stand : aliased constant S := "/STANDARD_OUTPUT_FOR_COMMANDS " &
4676 "-eS";
4677 -- /NOSTANDARD_OUTPUT_FOR_COMMANDS (D)
4678 -- /STANDARD_OUTPUT_FOR_COMMANDS
4680 -- Output the commands for the compiler, the binder and the linker
4681 -- on SYS$OUTPUT, instead of SYS$ERROR.
4683 S_Make_Subdirs : aliased constant S := "/SUBDIRS=<" &
4684 "--subdirs=>";
4685 -- /SUBDIRS=dir
4687 -- The actual directories (object, exec, library, ...) are subdirectories
4688 -- of the directory specified in the project file. If the subdirectory
4689 -- does not exist, it is created automatically.
4691 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
4692 "-s";
4693 -- /NOSWITCH_CHECK (D)
4694 -- /SWITCH_CHECK
4696 -- Recompile if compiler switches have changed since last compilation.
4697 -- All compiler switches but -I and -o are taken into account in the
4698 -- following way: orders between different "first letter" switches are
4699 -- ignored, but orders between same switches are taken into account.
4700 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4701 -- to -O -g.
4703 S_Make_Unique : aliased constant S := "/UNIQUE " &
4704 "-u";
4705 -- /NOUNIQUE (D)
4706 -- /UNIQUE
4708 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
4709 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4710 -- directly.
4712 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
4713 "-C=@";
4714 -- /USE_MAPPING_FILE=file_name
4716 -- Use a specific mapping file. The file 'file_name', specified as a path
4717 -- name (absolute or relative) by this qualifier, should already exist,
4718 -- otherwise the qualifier is ineffective. The specified mapping file
4719 -- will be communicated to the compiler. This switch is not compatible
4720 -- with a project file (/PROJECT_FILE=) or with multiple compiling
4721 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
4723 S_Make_Verbose : aliased constant S := "/VERBOSE " &
4724 "-v";
4725 -- /NOVERBOSE (D)
4726 -- /VERBOSE
4728 -- Displays the reason for all recompilations GNAT MAKE decides are
4729 -- necessary.
4731 Make_Switches : aliased constant Switches :=
4732 (S_Make_Add 'Access,
4733 S_Make_Actions 'Access,
4734 S_Make_All 'Access,
4735 S_Make_Allproj 'Access,
4736 S_Make_Bind 'Access,
4737 S_Make_Comp 'Access,
4738 S_Make_Cond 'Access,
4739 S_Make_Cont 'Access,
4740 S_Make_Current 'Access,
4741 S_Make_Dep 'Access,
4742 S_Make_Dirobj 'Access,
4743 S_Make_Disprog 'Access,
4744 S_Make_Doobj 'Access,
4745 S_Make_Execut 'Access,
4746 S_Make_Ext 'Access,
4747 S_Make_Follow 'Access,
4748 S_Make_Force 'Access,
4749 S_Make_Full 'Access,
4750 S_Make_Hi_Verb 'Access,
4751 S_Make_Inplace 'Access,
4752 S_Make_Index 'Access,
4753 S_Make_Library 'Access,
4754 S_Make_Link 'Access,
4755 S_Make_Low_Verb'Access,
4756 S_Make_Make 'Access,
4757 S_Make_Mapping 'Access,
4758 S_Make_Med_Verb'Access,
4759 S_Make_Mess 'Access,
4760 S_Make_Minimal 'Access,
4761 S_Make_Missing 'Access,
4762 S_Make_Nolink 'Access,
4763 S_Make_Nomain 'Access,
4764 S_Make_Nonpro 'Access,
4765 S_Make_Nostinc 'Access,
4766 S_Make_Nostlib 'Access,
4767 S_Make_Object 'Access,
4768 S_Make_Proc 'Access,
4769 S_Make_Nojobs 'Access,
4770 S_Make_Project 'Access,
4771 S_Make_Quiet 'Access,
4772 S_Make_Reason 'Access,
4773 S_Make_RTS 'Access,
4774 S_Make_Search 'Access,
4775 S_Make_Skip 'Access,
4776 S_Make_Source 'Access,
4777 S_Make_Stand 'Access,
4778 S_Make_Subdirs 'Access,
4779 S_Make_Switch 'Access,
4780 S_Make_Unique 'Access,
4781 S_Make_Use_Map 'Access,
4782 S_Make_Verbose 'Access);
4784 ------------------------------
4785 -- Switches for GNAT METRIC --
4786 ------------------------------
4788 S_Metric_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
4789 "-aP*";
4790 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
4792 -- Add directories to the project search path.
4794 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4795 "-U";
4796 -- /NOALL_PROJECTS (D)
4797 -- /ALL_PROJECTS
4798 -- When GNAT METRIC is used with a Project File and no source is
4799 -- specified, the underlying tool gnatmetric is called for all the
4800 -- sources of all the Project Files in the project tree.
4802 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
4803 "-dv";
4804 -- /DEBUG_OUTPUT
4806 -- Generate the debug information
4808 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
4809 "-d=@";
4810 -- /DIRECTORY=pathname
4812 -- Put the files with detailed metric information into the specified
4813 -- directory
4815 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
4816 "ALL " &
4817 "!-ed,!-es,!-enl,!-eps," &
4818 "!-eas,!-ept,!-eat,!-enu," &
4819 "!-ec " &
4820 "DECLARATION_TOTAL " &
4821 "-ed " &
4822 "STATEMENT_TOTAL " &
4823 "-es " &
4824 "LOOP_NESTING_MAX " &
4825 "-enl " &
4826 "INT_SUBPROGRAMS " &
4827 "-eps " &
4828 "SUBPROGRAMS_ALL " &
4829 "-eas " &
4830 "INT_TYPES " &
4831 "-ept " &
4832 "TYPES_ALL " &
4833 "-eat " &
4834 "PROGRAM_NESTING_MAX " &
4835 "-enu " &
4836 "CONSTRUCT_NESTING_MAX " &
4837 "-ec";
4838 -- NODOC (see /SYNTAX_METRICS)
4840 S_Metric_Syntax : aliased constant S := "/SYNTAX_METRICS=" &
4841 "ALL_ON " &
4842 "--syntax-all " &
4843 "ALL_OFF " &
4844 "--no-syntax-all " &
4845 "DECLARATIONS_ON " &
4846 "--declarations " &
4847 "DECLARATIONS_OFF " &
4848 "--no-declarations " &
4849 "STATEMENTS_ON " &
4850 "--statements " &
4851 "STATEMENTS_OFF " &
4852 "--no-statements " &
4853 "PUBLIC_SUBPROGRAMS_ON " &
4854 "--public-subprograms " &
4855 "PUBLIC_SUBPROGRAMS_OFF " &
4856 "--no-public-subprograms " &
4857 "ALL_SUBPROGRAMS_ON " &
4858 "--all-subprograms " &
4859 "ALL_SUBPROGRAMS_OFF " &
4860 "--no-all-subprograms " &
4861 "PUBLIC_TYPES_ON " &
4862 "--public-types " &
4863 "PUBLIC_TYPES_OFF " &
4864 "--no-public-types " &
4865 "ALL_TYPES_ON " &
4866 "--all-types " &
4867 "ALL_TYPES_OFF " &
4868 "--no-all-types " &
4869 "UNIT_NESTING_ON " &
4870 "--unit-nesting " &
4871 "UNIT_NESTING_OFF " &
4872 "--no-unit-nesting " &
4873 "CONSTRUCT_NESTING_ON " &
4874 "--construct-nesting " &
4875 "CONSTRUCT_NESTING_OFF " &
4876 "--no-construct-nesting";
4877 -- /SYNTAX_METRICS(option, option ...)
4879 -- Specifies the syntax element metrics to be computed (if at least one
4880 -- positive syntax element metric, line metric, complexity or coupling
4881 -- metric is specified then only explicitly specified syntax element
4882 -- metrics are computed and reported)
4884 -- option may be one of the following:
4886 -- ALL_ON (D) All the syntax element metrics are computed
4887 -- ALL_OFF None of syntax element metrics is computed
4888 -- DECLARATIONS_ON Compute the total number of declarations
4889 -- DECLARATIONS_OFF Do not compute the total number of
4890 -- declarations
4891 -- STATEMENTS_ON Compute the total number of statements
4892 -- STATEMENTS_OFF Do not compute the total number of
4893 -- statements
4894 -- PUBLIC_SUBPROGRAMS_ON Compute the number of public subprograms
4895 -- PUBLIC_SUBPROGRAMS_OFF Do not compute the number of public
4896 -- subprograms
4897 -- ALL_SUBPROGRAMS_ON Compute the number of all the subprograms
4898 -- ALL_SUBPROGRAMS_OFF Do not compute the number of all the
4899 -- subprograms
4900 -- PUBLIC_TYPES_ON Compute the number of public types
4901 -- PUBLIC_TYPES_OFF Do not compute the number of public types
4902 -- ALL_TYPES_ON Compute the number of all the types
4903 -- ALL_TYPES_OFF Do not compute the number of all the types
4904 -- UNIT_NESTING_ON Compute the maximal program unit nesting
4905 -- level
4906 -- UNIT_NESTING_OFF Do not compute the maximal program unit
4907 -- nesting level
4908 -- CONSTRUCT_NESTING_ON Compute the maximal construct nesting level
4909 -- CONSTRUCT_NESTING_OFF Do not compute the maximal construct nesting
4910 -- level
4912 -- All combinations of syntax element metrics options are allowed.
4914 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4915 "-X" & '"';
4916 -- /EXTERNAL_REFERENCE="name=val"
4918 -- Specifies an external reference to the project manager. Useful only if
4919 -- /PROJECT_FILE is used.
4921 -- Example:
4922 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4924 S_Metric_Files : aliased constant S := "/FILES=@" &
4925 "-files=@";
4926 -- /FILES=filename
4928 -- Take as arguments the files that are listed in the specified
4929 -- text file.
4931 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
4932 "DEFAULT " &
4933 "!-x,!-nt,!-sfn " &
4934 "XML " &
4935 "-x " &
4936 "NO_TEXT " &
4937 "-nt " &
4938 "SHORT_SOURCE_FILE_NAME " &
4939 "-sfn";
4940 -- /FORMAT_OUTPUT=(option, option ...)
4942 -- Specifies the details of the tool output
4944 -- option may be one of the following:
4946 -- DEFAULT (D) Generate the text output only, use full
4947 -- argument source names in global information
4948 -- XML Generate the output in XML format
4949 -- NO_TEXT Do not generate the text output (implies XML)
4950 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
4952 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
4953 "-og@";
4954 -- /GLOBAL_OUTPUT=filename
4956 -- Put the textual global metric information into the specified file
4958 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
4959 "ALL " &
4960 "!-la,!-lcode,!-lcomm," &
4961 "!-leol,!-lb " &
4962 "LINES_ALL " &
4963 "-la " &
4964 "CODE_LINES " &
4965 "-lcode " &
4966 "COMENT_LINES " &
4967 "-lcomm " &
4968 "MIXED_CODE_COMMENTS " &
4969 "-leol " &
4970 "COMMENT_PERCENTAGE " &
4971 "-lratio " &
4972 "BLANK_LINES " &
4973 "-lb " &
4974 "AVERAGE_LINES_IN_BODIES " &
4975 "-lav ";
4976 -- NODOC (see /LINE_COUNT_METRICS)
4978 S_Metric_Lines : aliased constant S := "/LINE_COUNT_METRICS=" &
4979 "ALL_ON " &
4980 "--lines-all " &
4981 "ALL_OFF " &
4982 "--no-lines-all " &
4983 "ALL_LINES_ON " &
4984 "--lines " &
4985 "ALL_LINES_OFF " &
4986 "--no-lines " &
4987 "CODE_LINES_ON " &
4988 "--lines-code " &
4989 "CODE_LINES_OFF " &
4990 "--no-lines-code " &
4991 "COMMENT_LINES_ON " &
4992 "--lines-comment " &
4993 "COMMENT_LINES_OFF " &
4994 "--no-lines-comment " &
4995 "CODE_COMMENT_LINES_ON " &
4996 "--lines-eol-comment " &
4997 "CODE_COMMENT_LINES_OFF " &
4998 "--no-lines-eol-comment " &
4999 "COMMENT_PERCENTAGE_ON " &
5000 "--lines-ratio " &
5001 "COMMENT_PERCENTAGE_OFF " &
5002 "--no-lines-ratio " &
5003 "BLANK_LINES_ON " &
5004 "--lines-blank " &
5005 "BLANK_LINES_OFF " &
5006 "--no-lines-blank " &
5007 "AVERAGE_BODY_LINES_ON " &
5008 "--lines-average " &
5009 "AVERAGE_BODY_LINES_OFF " &
5010 "--no-lines-average";
5011 -- /LINE_COUNT_METRICS=(option, option ...)
5013 -- Specifies the line metrics to be computed (if at least one positive
5014 -- syntax element metric, line metric, complexity or coupling metric is
5015 -- specified then only explicitly specified line metrics are computed
5016 -- and reported)
5018 -- option may be one of the following:
5020 -- ALL_ON (D) All the line metrics are computed
5021 -- ALL_OFF None of line metrics is computed
5022 -- ALL_LINES_ON All lines are computed
5023 -- ALL_LINES_OFF All lines are not computed
5024 -- CODE_LINES_ON Lines with Ada code are computed
5025 -- CODE_LINES_OFF Lines with Ada code are not computed
5026 -- COMMENT_LINES_ON Comment lines are computed
5027 -- COMMENT_LINES_OFF Comment lines are not computed
5028 -- COMMENT_PERCENTAGE_ON Ratio between comment lines and all the
5029 -- lines containing comments and program code
5030 -- is computed
5031 -- COMMENT_PERCENTAGE_OFF Ratio between comment lines and all the
5032 -- lines containing comments and program code
5033 -- is not computed
5034 -- BLANK_LINES_ON Blank lines are computed
5035 -- BLANK_LINES_OFF Blank lines are not computed
5036 -- AVERAGE_BODY_LINES_ON Average number of code lines in subprogram,
5037 -- task and entry bodies and statement
5038 -- sequences of package bodies is computed
5039 -- AVERAGE_BODY_LINES_OFF Average number of code lines in subprogram,
5040 -- task and entry bodies and statement
5041 -- sequences of package bodies is not computed
5043 -- All combinations of line metrics options are allowed.
5045 S_Metric_Complexity : aliased constant S := "/COMPLEXITY_METRICS=" &
5046 "ALL_ON " &
5047 "--complexity-all " &
5048 "ALL_OFF " &
5049 "--no-complexity-all " &
5050 "CYCLOMATIC_ON " &
5051 "--complexity-cyclomatic " &
5052 "CYCLOMATIC_OFF " &
5053 "--no-complexity-cyclomatic "&
5054 "ESSENTIAL_ON " &
5055 "--complexity-essential " &
5056 "ESSENTIAL_OFF " &
5057 "--no-complexity-essential " &
5058 "LOOP_NESTING_ON " &
5059 "--loop-nesting " &
5060 "LOOP_NESTING_OFF " &
5061 "--no-loop-nesting " &
5062 "AVERAGE_COMPLEXITY_ON " &
5063 "--complexity-average " &
5064 "AVERAGE_COMPLEXITY_OFF " &
5065 "--no-complexity-average";
5066 -- /COMPLEXITY_METRICS=(option, option ...)
5068 -- Specifies the complexity metrics to be computed (if at least one
5069 -- positive syntax element metric, line metric, complexity or coupling
5070 -- metric is specified then only explicitly specified complexity metrics
5071 -- are computed and reported)
5073 -- option may be one of the following:
5075 -- ALL_ON (D) All the complexity metrics are computed
5076 -- ALL_OFF None of complexity metrics is computed
5077 -- CYCLOMATIC_ON Compute the McCabe Cyclomatic Complexity
5078 -- CYCLOMATIC_OFF Do not compute the McCabe Cyclomatic
5079 -- Complexity
5080 -- ESSENTIAL_ON Compute the Essential Complexity
5081 -- ESSENTIAL_OFF Do not compute the Essential Complexity
5082 -- LOOP_NESTIMG_ON Compute the maximal loop nesting
5083 -- LOOP_NESTIMG_OFF Do not compute the maximal loop nesting
5084 -- AVERAGE_COMPLEXITY_ON Compute the average complexity for
5085 -- executable bodies
5086 -- AVERAGE_COMPLEXITY_OFF Do not compute the average complexity for
5087 -- executable bodies
5089 -- All combinations of line metrics options are allowed.
5091 S_Metric_Coupling : aliased constant S := "/COUPLING_METRICS=" &
5092 "ALL_ON " &
5093 "--coupling-all " &
5094 "ALL_OFF " &
5095 "--no-coupling-all " &
5096 "PACKAGE_EFFERENT_ON " &
5097 "--package-efferent-coupling " &
5098 "PACKAGE_EFFERENT_OFF " &
5099 "--no-package-efferent-coupling " &
5100 "PACKAGE_AFFERENT_ON " &
5101 "--package-afferent-coupling " &
5102 "PACKAGE_AFFERENT_OFF " &
5103 "--no-package-afferent-coupling " &
5104 "CATEGORY_EFFERENT_ON " &
5105 "--category-efferent-coupling " &
5106 "CATEGORY_EFFERENT_OFF " &
5107 "--no-category-efferent-coupling " &
5108 "CATEGORY_AFFERENT_ON " &
5109 "--category-afferent-coupling " &
5110 "CATEGORY_AFFERENT_OFF " &
5111 "--no-category-afferent-coupling";
5113 -- /COUPLING_METRICS=(option, option ...)
5115 -- Specifies the coupling metrics to be computed.
5117 -- option may be one of the following:
5119 -- ALL_ON All the coupling metrics are computed
5120 -- ALL_OFF (D) None of coupling metrics is computed
5121 -- PACKAGE_EFFERENT_ON Compute package efferent coupling
5122 -- PACKAGE_EFFERENT_OFF Do not compute package efferent coupling
5123 -- PACKAGE_AFFERENT_ON Compute package afferent coupling
5124 -- PACKAGE_AFFERENT_OFF Do not compute package afferent coupling
5125 -- CATEGORY_EFFERENT_ON Compute category efferent coupling
5126 -- CATEGORY_EFFERENT_OFF Do not compute category efferent coupling
5127 -- CATEGORY_AFFERENT_ON Compute category afferent coupling
5128 -- CATEGORY_AFFERENT_OFF Do not compute category afferent coupling
5130 -- All combinations of coupling metrics options are allowed.
5132 S_Metric_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5133 "-eL";
5134 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5135 -- /FOLLOW_LINKS_FOR_FILES
5137 -- Follow links when parsing project files
5139 S_Metric_No_Local : aliased constant S := "/NO_LOCAL_DETAILS " &
5140 "-nolocal";
5141 -- /LOCAL_DETAILS (D)
5142 -- /NO_LOCAL_DETAILS
5144 -- Do not compute the detailed metrics for local program units.
5146 S_Metric_No_Exits_As_Gotos : aliased constant S := "/NO_EXITS_AS_GOTOS " &
5147 "-ne";
5148 -- /EXITS_AS_GOTOS (D)
5149 -- /NO_EXITS_AS_GOTOS
5151 -- Do not count EXIT statements as GOTOs when computing the Essential
5152 -- Complexity.
5154 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5155 "DEFAULT " &
5156 "-vP0 " &
5157 "MEDIUM " &
5158 "-vP1 " &
5159 "HIGH " &
5160 "-vP2";
5161 -- /MESSAGES_PROJECT_FILE[=messages-option]
5163 -- Specifies the "verbosity" of the parsing of project files.
5164 -- messages-option may be one of the following:
5166 -- DEFAULT (D) No messages are output if there is no error or warning.
5168 -- MEDIUM A small number of messages are output.
5170 -- HIGH A great number of messages are output, most of them not
5171 -- being useful for the user.
5173 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
5174 "-P>";
5175 -- /PROJECT_FILE=filename
5177 -- Specifies the main project file to be used. The project files rooted
5178 -- at the main project file will be parsed before the invocation of the
5179 -- binder.
5181 S_Metric_Quiet : aliased constant S := "/QUIET " &
5182 "-q";
5183 -- /NOQUIET (D)
5184 -- /QUIET
5186 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
5187 -- the number of program units left to be processed. This option turns
5188 -- this trace off.
5190 S_Metric_Subdirs : aliased constant S := "/SUBDIRS=<" &
5191 "--subdirs=>";
5192 -- /SUBDIRS=dir
5194 -- The actual directories (object, exec, library, ...) are subdirectories
5195 -- of the directory specified in the project file. If the subdirectory
5196 -- does not exist, it is created automatically.
5198 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
5199 "-o" & '"';
5200 -- /SUFFIX_DETAILS=suffix
5202 -- Use the given suffix as the suffix for the name of the file to place
5203 -- the detailed metrics into.
5205 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
5206 "NOTHING " &
5207 "!-nocc,!-noec,!-nonl," &
5208 "!-ne,!-nolocal " &
5209 "CYCLOMATIC_COMPLEXITY " &
5210 "-nocc " &
5211 "ESSENTIAL_COMPLEXITY " &
5212 "-noec " &
5213 "MAXIMAL_LOOP_NESTING " &
5214 "-nonl " &
5215 "EXITS_AS_GOTOS " &
5216 "-ne " &
5217 "LOCAL_DETAILS " &
5218 "-nolocal ";
5219 -- NODOC (see /COMPLEXITY_METRICS /NO_LOCAL_DETAILS /NO_EXITS_AS_GOTOS)
5221 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
5222 "-v";
5223 -- /NOVERBOSE (D)
5224 -- /VERBOSE
5226 -- Verbose mode.
5228 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
5229 "-ox@";
5230 -- /XML_OUTPUT=filename
5232 -- Place the XML output into the specified file
5234 Metric_Switches : aliased constant Switches :=
5235 (S_Metric_Add 'Access,
5236 S_Metric_All_Prjs 'Access,
5237 S_Metric_Complexity 'Access,
5238 S_Metric_Coupling 'Access,
5239 S_Metric_Debug 'Access,
5240 S_Metric_Direct 'Access,
5241 S_Metric_Element 'Access,
5242 S_Metric_Ext 'Access,
5243 S_Metric_Files 'Access,
5244 S_Metric_Follow 'Access,
5245 S_Metric_Format 'Access,
5246 S_Metric_Globout 'Access,
5247 S_Metric_Line 'Access,
5248 S_Metric_Lines 'Access,
5249 S_Metric_Mess 'Access,
5250 S_Metric_No_Exits_As_Gotos'Access,
5251 S_Metric_No_Local 'Access,
5252 S_Metric_Project 'Access,
5253 S_Metric_Quiet 'Access,
5254 S_Metric_Suffix 'Access,
5255 S_Metric_Subdirs 'Access,
5256 S_Metric_Syntax 'Access,
5257 S_Metric_Suppress 'Access,
5258 S_Metric_Verbose 'Access,
5259 S_Metric_XMLout 'Access);
5261 ----------------------------
5262 -- Switches for GNAT NAME --
5263 ----------------------------
5265 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
5266 "-c>";
5267 -- /CONFIG_FILE=path_name
5269 -- Create a configuration pragmas file 'path_name' (instead of the default
5270 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
5271 -- must be writable. There may be only one qualifier /CONFIG_FILE.
5272 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
5274 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
5275 "-d*";
5276 -- /SOURCE_DIRS=(directory, ...)
5278 -- Look for source files in the specified directories. When this qualifier
5279 -- is specified, the current working directory will not be searched for
5280 -- source files, unless it is explicitly specified with a qualifier
5281 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
5282 -- specified. If a directory is specified as a relative path, it is
5283 -- relative to the directory of the configuration pragmas file specified
5284 -- with qualifier /CONFIG_FILE, or to the directory of the project file
5285 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
5286 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
5287 -- to the current working directory. The directories specified with
5288 -- qualifiers /SOURCE_DIRS must exist and be readable.
5290 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
5291 "-D>";
5292 -- /DIRS_FILE=file_name
5294 -- Look for source files in all directories listed in text file
5295 -- 'file_name'. 'file_name' must be an existing, readable text file.
5296 -- Each non empty line in the specified file must be a directory.
5297 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
5298 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
5299 -- text file.
5301 S_Name_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5302 "-eL";
5303 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5304 -- /FOLLOW_LINKS_FOR_FILES
5306 -- Follow links when parsing project files
5308 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
5309 "-f" & '"';
5310 -- /FOREIGN_PATTERN=<string>
5312 -- Specify a foreign pattern.
5313 -- Using this qualifier, it is possible to add sources of languages other
5314 -- than Ada to the list of sources of a project file. It is only useful
5315 -- if a qualifier /PROJECT_FILE is used. For example,
5317 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
5319 -- will look for Ada units in all files with the '.ADA' extension, and
5320 -- will add to the list of file for project PRJ.GPR the C files with
5321 -- extension ".C".
5323 S_Name_Help : aliased constant S := "/HELP " &
5324 "-h";
5325 -- /NOHELP (D)
5326 -- /HELP
5328 -- Output usage information to the standard output stream.
5330 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
5331 "-P>";
5332 -- /PROJECT_FILE=file_name
5334 -- Create or update a project file. 'file_name' may include directory
5335 -- information. The specified file must be writable. There may be only
5336 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_FILE is
5337 -- specified, no qualifier /CONFIG_FILE may be specified.
5339 S_Name_Subdirs : aliased constant S := "/SUBDIRS=<" &
5340 "--subdirs=>";
5341 -- /SUBDIRS=dir
5343 -- The actual directories (object, exec, library, ...) are subdirectories
5344 -- of the directory specified in the project file. If the subdirectory
5345 -- does not exist, it is created automatically.
5347 S_Name_Verbose : aliased constant S := "/VERBOSE " &
5348 "-v";
5349 -- /NOVERBOSE (D)
5350 -- /VERBOSE
5352 -- Verbose mode. Output detailed explanation of behavior to the standard
5353 -- output stream. This includes name of the file written, the name of the
5354 -- directories to search and, for each file in those directories whose
5355 -- name matches at least one of the Naming Patterns, an indication of
5356 -- whether the file contains a unit, and if so the name of the unit.
5358 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
5359 "-x" & '"';
5360 -- /EXCLUDED_PATTERN=<string>
5362 -- Specify an excluded pattern.
5363 -- Using this qualifier, it is possible to exclude some files that would
5364 -- match the Naming patterns. For example,
5366 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
5368 -- will look for Ada units in all files with the '.ADA' extension, except
5369 -- those whose names end with '_NT.ADA'.
5371 Name_Switches : aliased constant Switches :=
5372 (S_Name_Conf 'Access,
5373 S_Name_Dirs 'Access,
5374 S_Name_Dfile 'Access,
5375 S_Name_Follow 'Access,
5376 S_Name_Frng 'Access,
5377 S_Name_Help 'Access,
5378 S_Name_Proj 'Access,
5379 S_Name_Subdirs 'Access,
5380 S_Name_Verbose 'Access,
5381 S_Name_Excl 'Access);
5383 ----------------------------------
5384 -- Switches for GNAT PREPROCESS --
5385 ----------------------------------
5387 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
5388 "-D" & '"';
5389 -- /ASSOCIATE="name=val"
5391 -- Defines a new symbol, associated with value. If no value is given
5392 -- on the command line, then symbol is considered to be True.
5393 -- This qualifier can be used in place of a definition file.
5395 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
5396 "-b";
5397 -- /NOBLANK_LINES (D)
5398 -- /BLANK_LINES
5400 -- Causes both preprocessor lines and the lines deleted by preprocessing
5401 -- to be replaced by blank lines in the output source file, thus
5402 -- preserving line numbers in the output file.
5404 S_Prep_Com : aliased constant S := "/COMMENTS " &
5405 "-c";
5406 -- /NOCOMMENTS (D)
5407 -- /COMMENTS
5409 -- /COMMENTS causes both preprocessor lines and the lines deleted
5410 -- by preprocessing to be retained in the output source as comments marked
5411 -- with the special string "--! ". This option will result in line numbers
5412 -- being preserved in the output file.
5414 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
5415 -- preprocessing to be replaced by blank lines in the output source file,
5416 -- thus preserving line numbers in the output file.
5418 S_Prep_Ref : aliased constant S := "/REFERENCE " &
5419 "-r";
5420 -- /NOREFERENCE (D)
5421 -- /REFERENCE
5423 -- Causes a "Source_Reference" pragma to be generated that references the
5424 -- original input file, so that error messages will use the file name of
5425 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
5426 -- specified.
5428 S_Prep_Remove : aliased constant S := "/REMOVE " &
5429 "!-b,!-c";
5430 -- /REMOVE (D)
5431 -- /NOREMOVE
5433 -- Preprocessor lines and deleted lines are completely removed from the
5434 -- output.
5436 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
5437 "-C";
5438 -- /NOREPLACE_IN_COMMENTS (D)
5439 -- /REPLACE_IN_COMMENTS
5441 -- Causes preprocessor to scan comments and perform replacements on
5442 -- any $symbol occurrences within the comment text.
5444 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
5445 "-s";
5446 -- /NOSYMBOLS (D)
5447 -- /SYMBOLS
5449 -- Causes a sorted list of symbol names and values to be listed on
5450 -- SYS$OUTPUT.
5452 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
5453 "-u";
5454 -- /NOUNDEFINED (D)
5455 -- /UNDEFINED
5457 Prep_Switches : aliased constant Switches :=
5458 (S_Prep_Assoc 'Access,
5459 S_Prep_Blank 'Access,
5460 S_Prep_Com 'Access,
5461 S_Prep_Ref 'Access,
5462 S_Prep_Remove 'Access,
5463 S_Prep_Replace 'Access,
5464 S_Prep_Symbols 'Access,
5465 S_Prep_Undef 'Access);
5467 ------------------------------
5468 -- Switches for GNAT PRETTY --
5469 ------------------------------
5471 S_Pretty_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
5472 "-aP*";
5473 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
5475 -- Add directories to the project search path.
5477 S_Pretty_Align : aliased constant S := "/ALIGN=" &
5478 "DEFAULT " &
5479 "-A12345 " &
5480 "OFF " &
5481 "-A0 " &
5482 "COLONS " &
5483 "-A1 " &
5484 "DECLARATIONS " &
5485 "-A2 " &
5486 "STATEMENTS " &
5487 "-A3 " &
5488 "ARROWS " &
5489 "-A4 " &
5490 "COMPONENT_CLAUSES " &
5491 "-A5";
5492 -- /ALIGN[=align-option, align-option, ...]
5494 -- Set alignments. By default, all alignments (colons in declarations,
5495 -- initialisations in declarations, assignments and arrow delimiters) are
5496 -- ON.
5498 -- align-option may be one of the following:
5500 -- OFF (D) Set all alignments to OFF
5501 -- COLONS Set alignments of colons in declarations to ON
5502 -- DECLARATIONS Set alignments of initialisations in declarations
5503 -- to ON
5504 -- STATEMENTS Set alignments of assignments statements to ON
5505 -- ARROWS Set alignments of arrow delimiters to ON.
5506 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
5507 -- clauses ON
5509 -- Specifying one of the ON options without first specifying the OFF
5510 -- option has no effect, because by default all alignments are set to ON.
5512 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
5513 "-U";
5514 -- /NOALL_PROJECTS (D)
5515 -- /ALL_PROJECTS
5516 -- When GNAT PRETTY is used with a Project File and no source is
5517 -- specified, the underlying tool gnatpp is called for all the
5518 -- sources of all the Project Files in the project tree.
5520 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
5521 "MIXED_CASE " &
5522 "-aM " &
5523 "LOWER_CASE " &
5524 "-aL " &
5525 "UPPER_CASE " &
5526 "-aU";
5527 -- /ATTRIBUTE_CASING[=casing-option]
5529 -- Set the case of the attributes. By default the attributes are in mixed
5530 -- case.
5531 -- casing-option may be one of the following:
5533 -- MIXED_CASE (D)
5534 -- LOWER_CASE
5535 -- UPPER_CASE
5537 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
5538 "UNTOUCHED " &
5539 "-c0 " &
5540 "DEFAULT " &
5541 "-c1 " &
5542 "STANDARD_INDENT " &
5543 "-c2 " &
5544 "GNAT_BEGINNING " &
5545 "-c3 " &
5546 "REFORMAT " &
5547 "-c4 " &
5548 "KEEP_SPECIAL " &
5549 "-c5";
5550 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
5552 -- Set the comment layout. By default, comments use the GNAT style
5553 -- comment line indentation.
5555 -- layout-option may be one of the following:
5557 -- UNTOUCHED All the comments remain unchanged
5558 -- DEFAULT (D) GNAT style comment line indentation
5559 -- STANDARD_INDENT Standard comment line indentation
5560 -- GNAT_BEGINNING GNAT style comment beginning
5561 -- REFORMAT Reformat comment blocks
5562 -- KEEP_SPECIAL Keep unchanged special form comments
5564 -- All combinations of layout options are allowed, except for DEFAULT
5565 -- and STANDARD_INDENT which are mutually exclusive, and also if
5566 -- UNTOUCHED is specified, this must be the only option.
5568 -- The difference between "GNAT style comment line indentation" and
5569 -- "standard comment line indentation" is the following: for standard
5570 -- comment indentation, any comment line is indented as if it were
5571 -- a declaration or statement at the same place.
5572 -- For GNAT style comment indentation, comment lines which are
5573 -- immediately followed by if or case statement alternative, record
5574 -- variant or 'begin' keyword are indented as the keyword that follows
5575 -- them.:
5577 -- Standard indentation:
5579 -- if A then
5580 -- null;
5581 -- -- some comment
5582 -- else
5583 -- null;
5584 -- end if;
5586 -- GNAT style indentation:
5588 -- if A then
5589 -- null;
5590 -- -- some comment
5591 -- else
5592 -- null;
5593 -- end if;
5595 -- Option "GNAT style comment beginning" means that for each comment
5596 -- which is not considered as non-formattable separator (that is, the
5597 -- comment line contains only dashes, or a comment line ends with two
5598 -- dashes), there will be at least two spaces between starting "--" and
5599 -- the first non-blank character of the comment.
5601 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5602 "-gnatec>";
5603 -- /CONFIGURATION_PRAGMAS_FILE=file
5605 -- Specify a configuration pragmas file that need to be passed to the
5606 -- compiler.
5608 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
5609 "GNAT " &
5610 "-l1 " &
5611 "COMPACT " &
5612 "-l2 " &
5613 "UNCOMPACT " &
5614 "-l3";
5615 -- /CONSTRUCT_LAYOUT[=construct-option]
5617 -- Set construct layout. Default is GNAT style layout.
5618 -- construct-option may be one of the following:
5620 -- GNAT (D)
5621 -- COMPACT
5622 -- UNCOMPACT
5624 -- The difference between GNAT style and Compact layout on one hand
5625 -- and Uncompact layout on the other hand can be illustrated by the
5626 -- following examples:
5628 -- GNAT style and Uncompact layout
5629 -- Compact layout
5631 -- type q is record type q is
5632 -- a : integer; record
5633 -- b : integer; a : integer;
5634 -- end record; b : integer;
5635 -- end record;
5638 -- Block : declare Block :
5639 -- A : Integer := 3; declare
5640 -- begin A : Integer := 3;
5641 -- Proc (A, A); begin
5642 -- end Block; Proc (A, A);
5643 -- end Block;
5645 -- Clear : for J in 1 .. 10 loop Clear :
5646 -- A (J) := 0; for J in 1 .. 10 loop
5647 -- end loop Clear; A (J) := 0;
5648 -- end loop Clear;
5651 -- A further difference between GNAT style layout and compact layout is
5652 -- that in GNAT style layout compound statements, return statements and
5653 -- bodies are always separated by empty lines.
5655 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
5656 "-cl#";
5657 -- /CONTINUATION_INDENT=nnn
5659 -- Indentation level for continuation lines, nnn from 1 .. 9.
5660 -- The default value is one less then the (normal) indentation level,
5661 -- unless the indentation is set to 1: in that case the default value for
5662 -- continuation line indentation is also 1.
5664 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
5665 "--no-separate-is";
5666 -- /NO_SEPARATE_IS
5668 -- Do not place the IS keyword on a separate line in a subprogram body in
5669 -- case if the specification occupies more then one line.
5671 S_Pretty_Sep_Loop_Then : aliased constant S := "/SEPARATE_LOOP_THEN " &
5672 "--separate-loop-then";
5673 -- /SEPARATE_LOOP_THEN
5675 -- Place the THEN keyword in IF statement and the LOOP keyword in for-
5676 -- and while-loops on a separate line.
5678 S_Pretty_N_Sep_Loop_Then : aliased constant S := "/NO_SEPARATE_LOOP_THEN " &
5679 "--no-separate-loop-then";
5680 -- /NO_SEPARATE_LOOP_THEN
5682 -- Do not place the THEN keyword in IF statement and the LOOP keyword in
5683 -- for- and while-loops on a separate line.
5685 S_Pretty_Use_On_New_Line : aliased constant S := "/USE_ON_NEW_LINE " &
5686 "--use-on-new-line";
5687 -- /USE_ON_NEW_LINE
5689 -- Start any USE clause that is a part of a context clause from a
5690 -- separate line.
5692 S_Pretty_Stnm_On_Nw_Line : aliased constant S := "/STMT_NAME_ON_NEW_LINE " &
5693 "--separate-stmt-name";
5694 -- /STMT_NAME_ON_NEW_LINE
5696 -- For named block and loop statements use a separate line for the
5697 -- statement name, but do not use an extra indentation level for the
5698 -- statement itself.
5700 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
5701 "DOS " &
5702 "--eol=dos " &
5703 "UNIX " &
5704 "--eol=unix " &
5705 "CRLF " &
5706 "--eol=crlf " &
5707 "LF " &
5708 "--eol=lf";
5709 -- /END_OF_LINE=[option]
5711 -- Specifies the form of the line terminators in the produced source.
5712 -- By default, the form of the line terminator depends on the platforms.
5713 -- On Unix and VMS, it is a Line Feed (LF) character. On Windows (DOS),
5714 -- It is a Carriage Return (CR) followed by a Line Feed.
5715 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
5716 -- also equivalent.
5718 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5719 "-X" & '"';
5720 -- /EXTERNAL_REFERENCE="name=val"
5722 -- Specifies an external reference to the project manager. Useful only if
5723 -- /PROJECT_FILE is used.
5725 -- Example:
5726 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5728 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5729 "!-I-";
5730 -- /CURRENT_DIRECTORY (D)
5732 -- Look for source files in the current working directory.
5734 -- /NOCURRENT_DIRECTORY
5735 -- Do not look for source files in the current working directory.
5737 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
5738 "-D*";
5739 -- /DICTIONARY=(file_name, ...)
5741 -- Use each specified file as a dictionary file that defines the casing
5742 -- for a set of specified names, thereby overriding the effect on these
5743 -- names by any explicit or implicit /NAME_CASING qualifier.
5745 -- GNAT PRETTY implicitly uses a default dictionary file to define the
5746 -- casing for the Ada predefined names and the names declared in the GNAT
5747 -- libraries.
5749 -- The structure of a dictionary file, and details on the conventions
5750 -- used in the default dictionary file, are defined in the GNAT User's
5751 -- Guide.
5753 S_Pretty_Encoding : aliased constant S := "/RESULT_ENCODING=" &
5754 "BRACKETS " &
5755 "-Wb " &
5756 "HEX " &
5757 "-Wh " &
5758 "UPPER " &
5759 "-Wu " &
5760 "SHIFT_JIS " &
5761 "-Ws " &
5762 "EUC " &
5763 "-We " &
5764 "UTF8 " &
5765 "-W8";
5766 -- /RESULT_ENCODING[=encoding-type]
5768 -- Specify the wide character encoding method used when writing the
5769 -- reformatted code in the result file. 'encoding-type' is one of the
5770 -- following:
5772 -- BRACKETS (D) Brackets encoding.
5774 -- HEX Hex ESC encoding.
5776 -- UPPER Upper half encoding.
5778 -- SHIFT_JIS Shift-JIS encoding.
5780 -- EUC EUC Encoding.
5782 -- UTF8 UTF-8 encoding.
5784 -- See 'HELP GNAT COMPILE /WIDE_CHARACTER_ENCODING' for an explanation
5785 -- about the different character encoding methods.
5787 S_Pretty_Files : aliased constant S := "/FILES=@" &
5788 "-files=@";
5789 -- /FILES=filename
5791 -- Take as arguments the files that are listed in the specified
5792 -- text file.
5794 S_Pretty_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
5795 "-eL";
5796 -- /NOFOLLOW_LINKS_FOR_FILES (D)
5797 -- /FOLLOW_LINKS_FOR_FILES
5799 -- Follow links when parsing project files
5801 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
5802 "-of@";
5803 -- /FORCED_OUTPUT=file
5805 -- Write the output into the specified file, overriding any possibly
5806 -- existing file.
5808 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
5809 "-ff";
5810 -- /FORM_FEED_AFTER_PRAGMA_PAGE
5812 -- When there is a pragma Page in the source, insert a Form Feed
5813 -- character immediately after the semicolon that follows the pragma
5814 -- Page.
5816 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
5817 "-i#";
5818 -- /INDENTATION_LEVEL=nnn
5820 -- Specify the number of spaces to add for each indentation level.
5821 -- nnn must be between 1 and 9. The default is 3.
5823 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
5824 "LOWER_CASE " &
5825 "-kL " &
5826 "UPPER_CASE " &
5827 "-kU";
5828 -- /KEYWORD_CASING[=keyword-option]
5830 -- Specify the case of Ada keywords. The default is keywords in lower
5831 -- case.
5832 -- keyword-option may be one of the following:
5834 -- LOWER_CASE (D)
5835 -- UPPER_CASE
5837 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
5838 "-M#";
5839 -- /LINE_LENGTH_MAX=nnn
5841 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
5843 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
5844 "-T#";
5845 -- /MAX_INDENT=nnn
5847 -- Do not use an additional indentation level for case alternatives
5848 -- and variants if their number is nnn or more. The default is 10.
5849 -- If nnn is zero, an additional indentation level is used for any number
5850 -- of case alternatives and variants.
5852 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5853 "DEFAULT " &
5854 "-vP0 " &
5855 "MEDIUM " &
5856 "-vP1 " &
5857 "HIGH " &
5858 "-vP2";
5859 -- /MESSAGES_PROJECT_FILE[=messages-option]
5861 -- Specifies the "verbosity" of the parsing of project files.
5862 -- messages-option may be one of the following:
5864 -- DEFAULT (D) No messages are output if there is no error or warning.
5866 -- MEDIUM A small number of messages are output.
5868 -- HIGH A great number of messages are output, most of them not
5869 -- being useful for the user.
5871 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
5872 "AS_DECLARED " &
5873 "-nD " &
5874 "LOWER_CASE " &
5875 "-nL " &
5876 "UPPER_CASE " &
5877 "-nU " &
5878 "MIXED_CASE " &
5879 "-nM";
5880 -- /NAME_CASING[=name-option]
5882 -- Specify the casing of names.
5883 -- 'name-option' may be one of:
5885 -- AS_DECLARED (D) Name casing for defining occurrences are as they
5886 -- appear in the source file.
5888 -- LOWER_CASE Names are in lower case.
5890 -- UPPER_CASE Names are in upper case.
5892 -- MIXED_CASE Names are in mixed case.
5894 S_Pretty_Replace_No_Backup : aliased constant S := "/REPLACE_NO_BACKUP " &
5895 "-rnb";
5896 -- /REPLACE_NO_BACKUP
5898 -- Replace the argument source with the pretty-printed source without
5899 -- creating any backup copy of the argument source.
5901 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
5902 "-e";
5903 -- /NO_MISSED_LABELS
5905 -- Do not insert missing end/exit labels. The end label is the name of
5906 -- a construct that may optionally appear at the end of the construct.
5907 -- This includes the names of packages and subprograms.
5908 -- Similarly, the exit label is the name of a loop that may appear as the
5909 -- argument of an exit statement within the loop. By default, GNAT PRETTY
5910 -- inserts these end/exit labels when they are absent in the original
5911 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
5912 -- so that the formatted source reflects the original.
5914 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
5915 "-notabs";
5916 -- /NOTABS
5918 -- Replace all tabulations in comments with spaces.
5920 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
5921 "-o@";
5922 -- /OUTPUT=file
5924 -- Write the output to the specified file. If the file already exists,
5925 -- an error is reported.
5927 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
5928 "-rf";
5929 -- /NOOVERRIDING_REPLACE (D)
5930 -- /OVERRIDING_REPLACE
5932 -- Replace the argument source with the pretty-printed source and copy the
5933 -- argument source into filename.NPP, overriding any existing file if
5934 -- needed.
5936 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
5937 "MIXED_CASE " &
5938 "-pM " &
5939 "LOWER_CASE " &
5940 "-pL " &
5941 "UPPER_CASE " &
5942 "-pU";
5943 -- /PRAGMA_CASING[=pragma-option]
5945 -- Set the case of pragma identifiers. The default is Mixed case.
5946 -- pragma-option may be one of the following:
5948 -- MIXED_CASE (D)
5949 -- LOWER_CASE
5950 -- UPPER_CASE
5952 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
5953 "-P>";
5954 -- /PROJECT_FILE=filename
5956 -- Specifies the main project file to be used. The project files rooted
5957 -- at the main project file will be parsed before any other processing to
5958 -- set the building environment.
5960 S_Pretty_Replace : aliased constant S := "/REPLACE " &
5961 "-r";
5962 -- /NOREPLACE (D)
5963 -- /REPLACE
5965 -- Replace the argument source with the pretty-printed source and copy the
5966 -- argument source into filename.NPP. If filename.NPP already exists,
5967 -- report an error and exit.
5969 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
5970 "--RTS=|";
5971 -- /RUNTIME_SYSTEM=xxx
5973 -- Compile against an alternate runtime system named xxx or RTS-xxx.
5975 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
5976 "-I*";
5977 -- /SEARCH=(directory[,...])
5979 -- When looking for source files also look in directories specified.
5981 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
5982 "-D-";
5983 -- /SPECIFIC_CASING
5985 -- Do not use the default dictionary file; instead, use the casing
5986 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
5987 -- file specified by a qualifier /DICTIONARY.
5989 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
5990 "-pipe";
5991 -- /NOSTANDARD_OUTPUT (D)
5992 -- /STANDARD_OUTPUT
5994 -- Redirect the output to the standard output.
5996 S_Pretty_Subdirs : aliased constant S := "/SUBDIRS=<" &
5997 "--subdirs=>";
5998 -- /SUBDIRS=dir
6000 -- The actual directories (object, exec, library, ...) are subdirectories
6001 -- of the directory specified in the project file. If the subdirectory
6002 -- does not exist, it is created automatically.
6004 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
6005 "-v";
6006 -- /NOVERBOSE (D)
6007 -- /VERBOSE
6009 -- Verbose mode; GNAT PRETTY generates version information and then a
6010 -- trace of the actions it takes to produce or obtain the ASIS tree.
6012 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
6013 "-w";
6014 -- /NOWARNINGS (D)
6015 -- /WARNINGS
6017 -- Issue a warning to the standard error stream if it is not possible
6018 -- to provide the required layout in the result source.
6019 -- By default such warnings are not activated.
6021 Pretty_Switches : aliased constant Switches :=
6022 (S_Pretty_Add 'Access,
6023 S_Pretty_Align 'Access,
6024 S_Pretty_All_Prjs 'Access,
6025 S_Pretty_Attrib 'Access,
6026 S_Pretty_Comments 'Access,
6027 S_Pretty_Compact_Is 'Access,
6028 S_Pretty_Config 'Access,
6029 S_Pretty_Constr 'Access,
6030 S_Pretty_Comind 'Access,
6031 S_Pretty_Current 'Access,
6032 S_Pretty_Dico 'Access,
6033 S_Pretty_Eol 'Access,
6034 S_Pretty_Ext 'Access,
6035 S_Pretty_Encoding 'Access,
6036 S_Pretty_Files 'Access,
6037 S_Pretty_Follow 'Access,
6038 S_Pretty_Forced 'Access,
6039 S_Pretty_Formfeed 'Access,
6040 S_Pretty_Indent 'Access,
6041 S_Pretty_Keyword 'Access,
6042 S_Pretty_Maxlen 'Access,
6043 S_Pretty_Maxind 'Access,
6044 S_Pretty_Mess 'Access,
6045 S_Pretty_Names 'Access,
6046 S_Pretty_No_Labels 'Access,
6047 S_Pretty_Notabs 'Access,
6048 S_Pretty_Output 'Access,
6049 S_Pretty_Override 'Access,
6050 S_Pretty_Pragma 'Access,
6051 S_Pretty_Replace 'Access,
6052 S_Pretty_Replace_No_Backup'Access,
6053 S_Pretty_Project 'Access,
6054 S_Pretty_RTS 'Access,
6055 S_Pretty_Search 'Access,
6056 S_Pretty_Sep_Loop_Then 'Access,
6057 S_Pretty_N_Sep_Loop_Then 'Access,
6058 S_Pretty_Subdirs 'Access,
6059 S_Pretty_Use_On_New_Line 'Access,
6060 S_Pretty_Stnm_On_Nw_Line 'Access,
6061 S_Pretty_Specific 'Access,
6062 S_Pretty_Standard 'Access,
6063 S_Pretty_Verbose 'Access,
6064 S_Pretty_Warnings 'Access);
6066 ------------------------------
6067 -- Switches for GNAT SHARED --
6068 ------------------------------
6070 S_Shared_Debug : aliased constant S := "/DEBUG=" &
6071 "ALL " &
6072 "-g3 " &
6073 "NONE " &
6074 "-g0 " &
6075 "TRACEBACK " &
6076 "-g1 " &
6077 "NOTRACEBACK " &
6078 "-g0";
6079 -- /DEBUG[=debug-option]
6080 -- /NODEBUG
6082 -- Specifies the amount of debugging information included. 'debug-option'
6083 -- is one of the following:
6085 -- ALL (D) Include full debugging information.
6087 -- NONE Provide no debugging information. Same as /NODEBUG.
6089 -- TRACEBACK Provide sufficient debug information for a traceback.
6091 -- NOTRACEBACK Same as NONE.
6093 S_Shared_Image : aliased constant S := "/IMAGE=@" &
6094 "-o@";
6095 -- /IMAGE=image-name
6097 -- 'image-name' specifies the name for the generated shared library.
6099 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
6100 "--for-linker=IDENT=" &
6101 '"';
6102 -- /IDENTIFICATION="<string>"
6104 -- "<string>" specifies the string to be stored in the image file ident-
6105 -- ification field in the image header. It overrides any pragma Ident
6106 -- specified string.
6108 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
6109 "-nostartfiles";
6110 -- /NOSTART_FILES
6112 -- Link in default image initialization and startup functions.
6114 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
6115 "--for-linker=--noinhibit-exec";
6116 -- /NOINHIBIT-IMAGE
6118 -- Delete image if there are errors or warnings.
6120 S_Shared_Verb : aliased constant S := "/VERBOSE " &
6121 "-v";
6122 -- /NOVERBOSE (D)
6123 -- /VERBOSE
6125 -- Causes additional information to be output, including a full list of
6126 -- the included object files. This switch option is most useful when you
6127 -- want to see what set of object files are being used in the link step.
6129 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
6130 "--for-linker=";
6131 -- /<other>
6133 -- Any other switch transmitted to the underlying linker.
6135 Shared_Switches : aliased constant Switches :=
6136 (S_Shared_Debug 'Access,
6137 S_Shared_Image 'Access,
6138 S_Shared_Ident 'Access,
6139 S_Shared_Nofiles 'Access,
6140 S_Shared_Noinhib 'Access,
6141 S_Shared_Verb 'Access,
6142 S_Shared_ZZZZZ 'Access);
6144 -----------------------------
6145 -- Switches for GNAT STACK --
6146 -----------------------------
6148 S_Stack_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6149 "-aP*";
6150 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6152 -- Add directories to the project search path.
6154 S_Stack_All : aliased constant S := "/ALL_SUBPROGRAMS " &
6155 "-a";
6156 -- /NOALL_SUBPROGRAMS (D)
6157 -- /ALL_SUBPROGRAMS
6159 -- Consider all subprograms as entry points.
6161 S_Stack_All_Cycles : aliased constant S := "/ALL_CYCLES " &
6162 "-ca";
6163 -- /NOALL_CYCLES (D)
6164 -- /ALL_CYCLES
6166 -- Extract all possible cycles in the call graph.
6168 S_Stack_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
6169 "-U";
6170 -- /NOALL_PROJECTS (D)
6171 -- /ALL_PROJECTS
6173 -- When GNAT STACK is used with a Project File and no source is
6174 -- specified, the underlying tool gnatstack is called for all the
6175 -- units of all the Project Files in the project tree.
6177 S_Stack_Debug : aliased constant S := "/DEBUG " &
6178 "-g";
6179 -- /NODEBUG (D)
6180 -- /DEBUG
6182 -- Generate internal debug information.
6184 S_Stack_Directory : aliased constant S := "/DIRECTORY=*" &
6185 "-aO*";
6186 -- /DIRECTORY=(direc[,...])
6188 -- When looking for .ci files look also in directories specified.
6190 S_Stack_Entries : aliased constant S := "/ENTRIES=*" &
6191 "-e*";
6193 -- /ENTRY=(entry_point[,...])
6195 -- Name of symbol to be used as entry point for the analysis.
6197 S_Stack_Files : aliased constant S := "/FILES=@" &
6198 "-files=@";
6199 -- /FILES=filename
6201 -- Take as arguments the files that are listed in the specified
6202 -- text file.
6204 S_Stack_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6205 "-eL";
6206 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6207 -- /FOLLOW_LINKS_FOR_FILES
6209 -- Follow links when parsing project files
6211 S_Stack_Help : aliased constant S := "/HELP " &
6212 "-h";
6213 -- /NOHELP (D)
6214 -- /HELP
6216 -- Output a message explaining the usage of gnatstack.
6218 S_Stack_List : aliased constant S := "/LIST=#" &
6219 "-l#";
6220 -- /LIST=nnn
6222 -- Print the nnn subprograms requiring the biggest local stack usage. By
6223 -- default none will be displayed.
6225 S_Stack_Order : aliased constant S := "/ORDER=" &
6226 "STACK " &
6227 "-os " &
6228 "ALPHABETICAL " &
6229 "-oa";
6230 -- /ORDER[=order-option]
6232 -- Specifies the order for displaying the different call graphs.
6233 -- order-option may be one of the following:
6235 -- STACK (D) Select stack usage order
6237 -- ALPHABETICAL Select alphabetical order
6239 S_Stack_Path : aliased constant S := "/PATH " &
6240 "-p";
6241 -- /NOPATH (D)
6242 -- /PATH
6244 -- Print all the subprograms that make up the worst-case path for every
6245 -- entry point.
6247 S_Stack_Project : aliased constant S := "/PROJECT_FILE=<" &
6248 "-P>";
6249 -- /PROJECT_FILE=filename
6251 -- Specifies the main project file to be used. The project files rooted
6252 -- at the main project file will be parsed before the invocation of
6253 -- gnatstack.
6255 S_Stack_Output : aliased constant S := "/OUTPUT=@" &
6256 "-f@";
6257 -- /OUTPUT=filename
6259 -- Name of the file containing the generated graph (VCG format).
6261 S_Stack_Regexp : aliased constant S := "/EXPRESSION=|" &
6262 "-r|";
6264 -- /EXPRESSION=regular-expression
6266 -- Any symbol matching the regular expression will be considered as a
6267 -- potential entry point for the analysis.
6269 S_Stack_Subdirs : aliased constant S := "/SUBDIRS=<" &
6270 "--subdirs=>";
6271 -- /SUBDIRS=dir
6273 -- The actual directories (object, exec, library, ...) are subdirectories
6274 -- of the directory specified in the project file. If the subdirectory
6275 -- does not exist, it is created automatically.
6277 S_Stack_Unbounded : aliased constant S := "/UNBOUNDED=#" &
6278 "-d#";
6279 -- /UNBOUNDED=nnn
6281 -- Default stack size to be used for unbounded (dynamic) frames.
6283 S_Stack_Unknown : aliased constant S := "/UNKNOWN=#" &
6284 "-u#";
6285 -- /UNKNOWN=nnn
6287 -- Default stack size to be used for unknown (external) calls.
6289 S_Stack_Verbose : aliased constant S := "/VERBOSE " &
6290 "-v";
6291 -- /NOVERBOSE (D)
6292 -- /VERBOSE
6294 -- Specifies the amount of information to be displayed about the
6295 -- different subprograms. In verbose mode the full location of the
6296 -- subprogram will be part of the output, as well as detailed information
6297 -- about inaccurate data.
6299 S_Stack_Warnings : aliased constant S := "/WARNINGS=" &
6300 "ALL " &
6301 "-Wa " &
6302 "CYCLES " &
6303 "-Wc " &
6304 "UNBOUNDED " &
6305 "-Wu " &
6306 "EXTERNAL " &
6307 "-We " &
6308 "INDIRECT " &
6309 "-Wi";
6310 -- /WARNINGS[=(keyword[,...])]
6312 -- The following keywords are supported:
6314 -- ALL Turn on all optional warnings
6316 -- CYCLES Turn on warnings for cycles
6318 -- UNBOUNDED Turn on warnings for unbounded frames
6320 -- EXTERNAL Turn on warnings for external calls
6322 -- INDIRECT Turn on warnings for indirect calls
6324 Stack_Switches : aliased constant Switches :=
6325 (S_Stack_Add 'Access,
6326 S_Stack_All 'Access,
6327 S_Stack_All_Cycles 'Access,
6328 S_Stack_All_Prjs 'Access,
6329 S_Stack_Debug 'Access,
6330 S_Stack_Directory 'Access,
6331 S_Stack_Entries 'Access,
6332 S_Stack_Files 'Access,
6333 S_Stack_Follow 'Access,
6334 S_Stack_Help 'Access,
6335 S_Stack_List 'Access,
6336 S_Stack_Order 'Access,
6337 S_Stack_Path 'Access,
6338 S_Stack_Project 'Access,
6339 S_Stack_Output 'Access,
6340 S_Stack_Regexp 'Access,
6341 S_Stack_Subdirs 'Access,
6342 S_Stack_Unbounded 'Access,
6343 S_Stack_Unknown 'Access,
6344 S_Stack_Verbose 'Access,
6345 S_Stack_Warnings 'Access);
6347 ----------------------------
6348 -- Switches for GNAT STUB --
6349 ----------------------------
6351 S_Stub_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6352 "-aP*";
6353 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6355 -- Add directories to the project search path.
6357 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
6358 "-gnatec>";
6359 -- /CONFIGURATION_PRAGMAS_FILE=filespec
6361 -- Specifies a configuration pragmas file that must be taken into account
6362 -- when compiling.
6364 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
6365 "!-I-";
6366 -- /CURRENT_DIRECTORY (D)
6367 -- /NOCURRENT_DIRECTORY
6369 -- Look for source, library or object files in the default directory.
6371 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6372 "-X" & '"';
6373 -- /EXTERNAL_REFERENCE="name=val"
6375 -- Specifies an external reference to the project manager. Useful only if
6376 -- /PROJECT_FILE is used.
6378 -- Example:
6379 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6381 S_Stub_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6382 "-eL";
6383 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6384 -- /FOLLOW_LINKS_FOR_FILES
6386 -- Follow links when parsing project files
6388 S_Stub_Full : aliased constant S := "/FULL " &
6389 "-f";
6390 -- /NOFULL (D)
6391 -- /FULL
6393 -- If the destination directory already contains a file with the name of
6394 -- the body file for the argument file spec, replace it with the generated
6395 -- body stub. If /FULL is not used and there is already a body file, this
6396 -- existing body file is not replaced.
6398 S_Stub_Header : aliased constant S := "/HEADER=" &
6399 "GENERAL " &
6400 "-hg " &
6401 "SPEC " &
6402 "-hs";
6403 -- /HEADER[=header-option]
6405 -- Specifies the form of the comment header above the generated body stub.
6406 -- If no /HEADER qualifier is specified, there is no comment header.
6407 -- header-option is one of the following:
6410 -- GENERAL (D) Put a sample comment header into the body stub.
6412 -- SPEC Put the comment header (i.e., all the comments
6413 -- preceding the compilation unit) from the source of the
6414 -- library unit declaration into the body stub.
6416 S_Stub_Header_File : aliased constant S := "/FROM_HEADER_FILE=<" &
6417 "--header-file=>";
6419 -- /FROM_HEADER_FILE==filename
6421 -- Use the content of the file as the comment header for a generated body
6422 -- stub.
6424 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
6425 "-i#";
6426 -- /INDENTATION=nnn
6428 -- (nnn is a non-negative integer). Set the indentation level in the
6429 -- generated body stub to nnn. nnn=0 means "no indentation".
6430 -- Default indentation is 3.
6432 S_Stub_Keep : aliased constant S := "/KEEP " &
6433 "-k";
6434 -- /NOKEEP (D)
6435 -- /KEEP
6437 -- Do not delete the tree file (i.e., the snapshot of the compiler
6438 -- internal structures used by gnatstub) after creating the body stub.
6440 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
6441 "-l#";
6442 -- /LINE_LENGTH=nnn
6444 -- (n is a non-negative integer). Set the maximum line length in the body
6445 -- stub to nnn. Default is 78.
6447 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6448 "DEFAULT " &
6449 "-vP0 " &
6450 "MEDIUM " &
6451 "-vP1 " &
6452 "HIGH " &
6453 "-vP2";
6454 -- /MESSAGES_PROJECT_FILE[=messages-option]
6456 -- Specifies the "verbosity" of the parsing of project files.
6457 -- messages-option may be one of the following:
6459 -- DEFAULT (D) No messages are output if there is no error or warning.
6461 -- MEDIUM A small number of messages are output.
6463 -- HIGH A great number of messages are output, most of them not
6464 -- being useful for the user.
6466 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
6467 "-o@";
6468 -- /OUTPUT=filespec
6470 -- Body file name. This should be set if the argument file name does not
6471 -- follow the GNAT file naming conventions. If this switch is omitted,
6472 -- the default name for the body will be obtained from the argument file
6473 -- name according to the GNAT file naming conventions.
6475 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
6476 "-P>";
6477 -- /PROJECT_FILE=filename
6479 -- Specifies the main project file to be used. The project files rooted
6480 -- at the main project file will be parsed before any other processing.
6481 -- The source and object directories to be searched will be communicated
6482 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
6483 -- ADA_PRJ_OBJECTS_FILE.
6485 S_Stub_Quiet : aliased constant S := "/QUIET " &
6486 "-q";
6487 -- /NOQUIET (D)
6488 -- /QUIET
6490 -- Quiet mode: do not generate a confirmation when a body is successfully
6491 -- created, and do not generate a message when a body is not required for
6492 -- an argument unit.
6494 S_Stub_Search : aliased constant S := "/SEARCH=*" &
6495 "-I*";
6496 -- /SEARCH=(directory[,...])
6498 -- When looking for source files also look in directories specified.
6500 S_Stub_Subdirs : aliased constant S := "/SUBDIRS=<" &
6501 "--subdirs=>";
6502 -- /SUBDIRS=dir
6504 -- The actual directories (object, exec, library, ...) are subdirectories
6505 -- of the directory specified in the project file. If the subdirectory
6506 -- does not exist, it is created automatically.
6508 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
6509 "OVERWRITE " &
6510 "-t " &
6511 "SAVE " &
6512 "-k " &
6513 "REUSE " &
6514 "-r";
6515 -- /TREE_FILE[=treefile-option]
6517 -- Specify what to do with the tree file.
6518 -- treefile-option is one of the following:
6520 -- OVERWRITE (D) Overwrite the existing tree file. If the current
6521 -- directory already contains the file which, according
6522 -- to the GNAT file naming rules should be considered
6523 -- as a tree file for the argument source file,
6524 -- gnatstub will refuse to create the tree file needed
6525 -- to create a sample body unless this option is chosen.
6527 -- SAVE Do not remove the tree file (i.e., the snapshot
6528 -- of the compiler internal structures used by gnatstub)
6529 -- after creating the body stub.
6531 -- REUSE Reuse the tree file (if it exists) instead of
6532 -- creating it.
6533 -- Instead of creating the tree file for the library
6534 -- unit declaration, gnatstub tries to find it in the
6535 -- current directory and use it for creating a body.
6536 -- If the tree file is not found, no body is created.
6537 -- This option also implies `SAVE', whether or not the
6538 -- latter is set explicitly.
6540 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
6541 "-v";
6542 -- /NOVERBOSE (D)
6543 -- /VERBOSE
6545 -- Verbose mode: generate version information.
6547 Stub_Switches : aliased constant Switches :=
6548 (S_Stub_Add 'Access,
6549 S_Stub_Config 'Access,
6550 S_Stub_Current 'Access,
6551 S_Stub_Ext 'Access,
6552 S_Stub_Follow 'Access,
6553 S_Stub_Full 'Access,
6554 S_Stub_Header 'Access,
6555 S_Stub_Header_File'Access,
6556 S_Stub_Indent 'Access,
6557 S_Stub_Keep 'Access,
6558 S_Stub_Length 'Access,
6559 S_Stub_Mess 'Access,
6560 S_Stub_Output 'Access,
6561 S_Stub_Project 'Access,
6562 S_Stub_Quiet 'Access,
6563 S_Stub_Search 'Access,
6564 S_Stub_Subdirs 'Access,
6565 S_Stub_Tree 'Access,
6566 S_Stub_Verbose 'Access);
6568 ----------------------------
6569 -- Switches for GNAT SYNC --
6570 ----------------------------
6572 S_Sync_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6573 "-aP*";
6574 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6576 -- Add directories to the project search path.
6578 S_Sync_All : aliased constant S := "/ALL " &
6579 "-a";
6580 -- /NOALL (D)
6581 -- /ALL
6583 -- Also check the components of the GNAT run time and process the needed
6584 -- components of the GNAT RTL when building and analyzing the global
6585 -- structure for checking the global rules.
6587 S_Sync_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6588 "-X" & '"';
6589 -- /EXTERNAL_REFERENCE="name=val"
6591 -- Specifies an external reference to the project manager. Useful only if
6592 -- /PROJECT_FILE is used.
6594 -- Example:
6595 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6597 S_Sync_Files : aliased constant S := "/FILES=@" &
6598 "-files=@";
6599 -- /FILES=filename
6601 -- Take as arguments the files that are listed in the specified
6602 -- text file.
6604 S_Sync_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6605 "-eL";
6606 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6607 -- /FOLLOW_LINKS_FOR_FILES
6609 -- Follow links when parsing project files
6611 S_Sync_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6612 "DEFAULT " &
6613 "-vP0 " &
6614 "MEDIUM " &
6615 "-vP1 " &
6616 "HIGH " &
6617 "-vP2";
6618 -- /MESSAGES_PROJECT_FILE[=messages-option]
6620 -- Specifies the "verbosity" of the parsing of project files.
6621 -- messages-option may be one of the following:
6623 -- DEFAULT (D) No messages are output if there is no error or warning.
6625 -- MEDIUM A small number of messages are output.
6627 -- HIGH A great number of messages are output, most of them not
6628 -- being useful for the user.
6630 S_Sync_Project : aliased constant S := "/PROJECT_FILE=<" &
6631 "-P>";
6632 -- /PROJECT_FILE=filename
6634 -- Specifies the main project file to be used. The project files rooted
6635 -- at the main project file will be parsed before the invocation of the
6636 -- gnatcheck. The source directories to be searched will be communicated
6637 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
6639 S_Sync_Quiet : aliased constant S := "/QUIET " &
6640 "-q";
6641 -- /NOQUIET (D)
6642 -- /QUIET
6644 -- Work quietly, only output warnings and errors.
6646 S_Sync_Subdirs : aliased constant S := "/SUBDIRS=<" &
6647 "--subdirs=>";
6648 -- /SUBDIRS=dir
6650 -- The actual directories (object, exec, library, ...) are subdirectories
6651 -- of the directory specified in the project file. If the subdirectory
6652 -- does not exist, it is created automatically.
6654 S_Sync_Verb : aliased constant S := "/VERBOSE " &
6655 "-v";
6656 -- /NOVERBOSE (D)
6657 -- /VERBOSE
6659 -- The version number and copyright notice are output, as well as exact
6660 -- copies of the gnat1 commands spawned to obtain the chop control
6661 -- information.
6663 S_Sync_Exec : aliased constant S := "/EXECUTION_TIME " &
6664 "-t";
6665 -- /NOEXECUTION_TIME (D)
6666 -- /EXECUTION_TIME
6668 -- Output the execution time
6670 S_Sync_Details : aliased constant S := "/DETAILS=" &
6671 "MEDIUM " &
6672 "-om " &
6673 "SHORT " &
6674 "-os " &
6675 "FULL " &
6676 "-of";
6677 -- /DETAILS[=options]
6679 -- Specifies the details of the output.
6680 -- Options may be one of the following:
6682 -- MEDIUM (D)
6683 -- SHORT
6684 -- FULL
6686 S_Sync_Warnoff : aliased constant S := "/WARNINGS_OFF " &
6687 "-wq";
6689 -- /WARNINGS_OFF
6691 -- Turn warnings off
6693 S_Sync_Output : aliased constant S := "/OUTPUT_FILE=<" &
6694 "-out_file=>";
6696 -- /OUTPUT_FILE=filename
6698 -- Redirect output to a text file
6700 Sync_Switches : aliased constant Switches :=
6701 (S_Sync_Add 'Access,
6702 S_Sync_All 'Access,
6703 S_Sync_Ext 'Access,
6704 S_Sync_Follow 'Access,
6705 S_Sync_Files 'Access,
6706 S_Sync_Mess 'Access,
6707 S_Sync_Project 'Access,
6708 S_Sync_Quiet 'Access,
6709 S_Sync_Subdirs 'Access,
6710 S_Sync_Verb 'Access,
6711 S_Sync_Exec 'Access,
6712 S_Sync_Details 'Access,
6713 S_Sync_Warnoff 'Access,
6714 S_Sync_Output 'Access);
6716 ----------------------------
6717 -- Switches for GNAT XREF --
6718 ----------------------------
6720 S_Xref_Add : aliased constant S := "/ADD_PROJECT_SEARCH_DIR=*" &
6721 "-aP*";
6722 -- /ADD_PROJECT_SEARCH_PATH=(directory[,...])
6724 -- Add directories to the project search path.
6726 S_Xref_All : aliased constant S := "/ALL_FILES " &
6727 "-a";
6728 -- /NOALL_FILES (D)
6729 -- /ALL_FILES
6731 -- If this switch is present, FIND and XREF will parse the read-only
6732 -- files found in the library search path. Otherwise, these files will
6733 -- be ignored. This option can be used to protect Gnat sources or your
6734 -- own libraries from being parsed, thus making FIND and XREF much
6735 -- faster, and their output much smaller.
6737 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
6738 "-d";
6739 -- /NODERIVED_TYPES (D)
6740 -- /DERIVED_TYPES
6742 -- Output the parent type reference for each matching derived types.
6744 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
6745 "-X" & '"';
6746 -- /EXTERNAL_REFERENCE="name=val"
6748 -- Specifies an external reference to the project manager. Useful only if
6749 -- /PROJECT_FILE is used.
6751 -- Example:
6752 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
6754 S_Xref_Follow : aliased constant S := "/FOLLOW_LINKS_FOR_FILES " &
6755 "-eL";
6756 -- /NOFOLLOW_LINKS_FOR_FILES (D)
6757 -- /FOLLOW_LINKS_FOR_FILES
6759 -- Follow links when parsing project files
6761 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
6762 "-f";
6763 -- /NOFULL_PATHNAME (D)
6764 -- /FULL_PATHNAME
6766 -- If this switch is set, the output file names will be preceded by their
6767 -- directory (if the file was found in the search path). If this switch
6768 -- is not set, the directory will not be printed.
6770 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
6771 "-g";
6772 -- /NOIGNORE_LOCALS (D)
6773 -- /IGNORE_LOCALS
6775 -- If this switch is set, information is output only for library-level
6776 -- entities, ignoring local entities. The use of this switch may
6777 -- accelerate FIND and XREF.
6779 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
6780 "DEFAULT " &
6781 "-vP0 " &
6782 "MEDIUM " &
6783 "-vP1 " &
6784 "HIGH " &
6785 "-vP2";
6786 -- /MESSAGES_PROJECT_FILE[=messages-option]
6788 -- Specifies the "verbosity" of the parsing of project files.
6789 -- messages-option may be one of the following:
6791 -- DEFAULT (D) No messages are output if there is no error or warning.
6793 -- MEDIUM A small number of messages are output.
6795 -- HIGH A great number of messages are output, most of them not
6796 -- being useful for the user.
6798 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
6799 "-nostdinc";
6800 -- /NOSTD_INCLUDES
6802 -- Do not look for sources in the system default directory.
6804 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
6805 "-nostdlib";
6806 -- /NOSTD_LIBRARIES
6808 -- Do not look for library files in the system default directory.
6810 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
6811 "-aO*";
6812 -- /OBJECT_SEARCH=(directory,...)
6814 -- When searching for library and object files, look in the specified
6815 -- directories. The order in which library files are searched is the same
6816 -- as for MAKE.
6818 S_Xref_Project : aliased constant S := "/PROJECT=@" &
6819 "-p@";
6820 -- /PROJECT=file
6822 -- Specify a project file to use. By default, FIND and XREF will try to
6823 -- locate a project file in the current directory.
6825 -- If a project file is either specified or found by the tools, then the
6826 -- content of the source directory and object directory lines are added
6827 -- as if they had been specified respectively by /SOURCE_SEARCH and
6828 -- /OBJECT_SEARCH.
6830 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
6831 "-P>";
6832 -- /PROJECT_FILE=filename
6834 -- Specifies the main project file to be used. The project files rooted
6835 -- at the main project file will be parsed before doing any processing.
6836 -- The source and object directories to be searched will be communicated
6837 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
6838 -- ADA_PRJ_OBJECTS_FILE.
6840 S_Xref_Search : aliased constant S := "/SEARCH=*" &
6841 "-I*";
6842 -- /SEARCH=(directory,...)
6844 -- Equivalent to:
6845 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
6847 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
6848 "-aI*";
6849 -- /SOURCE_SEARCH=(directory,...)
6851 -- When looking for source files also look in the specified directories.
6852 -- The order in which source file search is undertaken is the same as for
6853 -- MAKE.
6855 S_Xref_Subdirs : aliased constant S := "/SUBDIRS=<" &
6856 "--subdirs=>";
6857 -- /SUBDIRS=dir
6859 -- The actual directories (object, exec, library, ...) are subdirectories
6860 -- of the directory specified in the project file. If the subdirectory
6861 -- does not exist, it is created automatically.
6863 S_Xref_Output : aliased constant S := "/UNUSED " &
6864 "-u";
6865 -- /SOURCE_SEARCH=(directory,...)
6867 -- When looking for source files also look in the specified directories.
6868 -- The order in which source file search is undertaken is the same as for
6869 -- MAKE.
6871 S_Xref_Tags : aliased constant S := "/TAGS " &
6872 "-v";
6873 -- /NOTAGS (D)
6874 -- /TAGS
6876 -- Print a 'tags' file for vi.
6878 Xref_Switches : aliased constant Switches :=
6879 (S_Xref_Add 'Access,
6880 S_Xref_All 'Access,
6881 S_Xref_Deriv 'Access,
6882 S_Xref_Ext 'Access,
6883 S_Xref_Follow 'Access,
6884 S_Xref_Full 'Access,
6885 S_Xref_Global 'Access,
6886 S_Xref_Mess 'Access,
6887 S_Xref_Nostinc 'Access,
6888 S_Xref_Nostlib 'Access,
6889 S_Xref_Object 'Access,
6890 S_Xref_Project 'Access,
6891 S_Xref_Prj 'Access,
6892 S_Xref_Search 'Access,
6893 S_Xref_Source 'Access,
6894 S_Xref_Subdirs 'Access,
6895 S_Xref_Output 'Access,
6896 S_Xref_Tags 'Access);
6898 end VMS_Data;