Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / ada / vms_data.ads
blobd9d4015f59b1c9c3c8f135bbc77a233c1469646d
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-2005, 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 2, 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 COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
21 -- --
22 -- GNAT was originally developed by the GNAT team at New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 -- --
25 ------------------------------------------------------------------------------
27 -- This package contains, for each of the command of the GNAT driver, one
28 -- constant array; each component of this array is a string that defines,
29 -- in coded form as explained below, the conversion of a VMS qualifier of the
30 -- command to the corresponding switch of the GNAT tool corresponding to the
31 -- command.
33 -- This package is used by the GNAT driver to invokes the GNAT tools with the
34 -- switches corresponding to the VMS qualifier and by the Project Manager to
35 -- convert VMS qualifiers in project files to their corresponding switch
36 -- values.
38 -- This package is also an input to the tool that generates the VMS GNAT
39 -- help information automatically.
41 -- NOTE: the format of this package must follow the following rules, so that
42 -- the VMS GNAT help tool works properly:
44 -- - Each command zone (where the eventual qualifiers are declared must
45 -- begin with a boxed comment of the form:
47 -- ---------------------------------
48 -- -- Switches for GNAT <COMMAND> --
49 -- ---------------------------------
51 -- where <COMMAND> is the name of a GNAT command in capital letters, for
52 -- example BIND, COMPILE, XREF, ...
54 -- - each qualifier declaration must be followed either by
55 -- - a comment starting with "-- NODOC", to indicate that there is
56 -- no documentation for this qualifier, or
57 -- - a contiguous sequence of comments that constitute the
58 -- documentation of the qualifier.
60 -- - each command zone ends with the declaration of the contant array
61 -- for the command, of the form:
63 -- <Command>__Switches : aliased constant Switches :=
65 package VMS_Data is
67 ----------------
68 -- QUALIFIERS --
69 ----------------
71 -- The syntax of a qualifier delaration is as follows:
73 -- SWITCH_STRING ::= "/ command-qualifier-name TRANSLATION"
75 -- TRANSLATION ::=
76 -- DIRECT_TRANSLATION
77 -- | DIRECTORIES_TRANSLATION
78 -- | FILE_TRANSLATION
79 -- | NO_SPACE_FILE_TRANSL
80 -- | NUMERIC_TRANSLATION
81 -- | STRING_TRANSLATION
82 -- | OPTIONS_TRANSLATION
83 -- | COMMANDS_TRANSLATION
84 -- | ALPHANUMPLUS_TRANSLATION
85 -- | OTHER_TRANSLATION
87 -- DIRECT_TRANSLATION ::= space UNIX_SWITCHES
88 -- DIRECTORIES_TRANSLATION ::= =* UNIX_SWITCH *
89 -- DIRECTORY_TRANSLATION ::= =% UNIX_SWITCH %
90 -- FILE_TRANSLATION ::= =@ UNIX_SWITCH @
91 -- NO_SPACE_FILE_TRANSL ::= =< UNIX_SWITCH >
92 -- NUMERIC_TRANSLATION ::= =# UNIX_SWITCH # | # number #
93 -- STRING_TRANSLATION ::= =" UNIX_SWITCH "
94 -- OPTIONS_TRANSLATION ::= =OPTION {space OPTION}
95 -- COMMANDS_TRANSLATION ::= =? ARGS space command-name
96 -- ALPHANUMPLUS_TRANSLATION ::= =| UNIX_SWITCH |
98 -- UNIX_SWITCHES ::= UNIX_SWITCH {, UNIX_SWITCH}
100 -- UNIX_SWITCH ::= unix-switch-string | !unix-switch-string | `string'
102 -- OPTION ::= option-name space UNIX_SWITCHES
104 -- ARGS ::= -cargs | -bargs | -largs
106 -- Here command-qual is the name of the switch recognized by the GNATCmd.
107 -- This is always given in upper case in the templates, although in the
108 -- actual commands, either upper or lower case is allowed.
110 -- The unix-switch-string always starts with a minus, and has no commas
111 -- or spaces in it. Case is significant in the unix switch string. If a
112 -- unix switch string is preceded by the not sign (!) it means that the
113 -- effect of the corresponding command qualifer is to remove any previous
114 -- occurrence of the given switch in the command line.
116 -- The DIRECTORIES_TRANSLATION format is used where a list of directories
117 -- is given. This possible corresponding formats recognized by GNATCmd are
118 -- as shown by the following example for the case of PATH
120 -- PATH=direc
121 -- PATH=(direc,direc,direc,direc)
123 -- When more than one directory is present for the DIRECTORIES case, then
124 -- multiple instances of the corresponding unix switch are generated,
125 -- with the file name being substituted for the occurrence of *.
127 -- The FILE_TRANSLATION format is similar except that only a single
128 -- file is allowed, not a list of files, and only one unix switch is
129 -- generated as a result.
131 -- the NO_SPACE_FILE_TRANSL is similar to FILE_TRANSLATION, except that
132 -- no space is inserted between the switch and the file name.
134 -- The NUMERIC_TRANSLATION format is similar to the FILE_TRANSLATION case
135 -- except that the parameter is a decimal integer in the range 0 to 999.
137 -- For the OPTIONS_TRANSLATION case, GNATCmd similarly permits one or
138 -- more options to appear (although only in some cases does the use of
139 -- multiple options make logical sense). For example, taking the
140 -- case of ERRORS for GCC, the following are all allowed:
142 -- /ERRORS=BRIEF
143 -- /ERRORS=(FULL,VERBOSE)
144 -- /ERRORS=(BRIEF IMMEDIATE)
146 -- If no option is provided (e.g. just /ERRORS is written), then the
147 -- first option in the list is the default option. For /ERRORS this
148 -- is NORMAL, so /ERRORS with no option is equivalent to /ERRORS=NORMAL.
150 -- The COMMANDS_TRANSLATION case is only used for gnatmake, to correspond
151 -- to the use of -cargs, -bargs and -largs (the ARGS string as indicated
152 -- is one of these three possibilities). The name given by COMMAND is the
153 -- corresponding command name to be used to interprete the switches to be
154 -- passed on. Switches of this type set modes, e.g. /COMPILER_QUALIFIERS
155 -- sets the mode so that all subsequent switches, up to another switch
156 -- with COMMANDS_TRANSLATION apply to the corresponding commands issued
157 -- by the make utility. For example
159 -- /COMPILER_QUALIFIERS /LIST /BINDER_QUALIFIERS /MAIN
160 -- /COMPILER_QUALIFIERS /NOLIST /COMPILE_CHECKS=SYNTAX
162 -- Clearly these switches must come at the end of the list of switches
163 -- since all subsequent switches apply to an issued command.
165 -- For the DIRECT_TRANSLATION case, an implicit additional qualifier
166 -- declaration is created by prepending NO to the name of the qualifer,
167 -- and then inverting the sense of the UNIX_SWITCHES string. For example,
168 -- given the qualifier definition:
170 -- "/LIST -gnatl"
172 -- An implicit qualifier definition is created:
174 -- "/NOLIST !-gnatl"
176 -- In the case where, a ! is already present, inverting the sense of the
177 -- switch means removing it.
179 subtype S is String;
180 -- A synonym to shorten the table
182 type String_Ptr is access constant String;
183 -- String pointer type used throughout
185 type Switches is array (Natural range <>) of String_Ptr;
186 -- Type used for array of swtiches
188 type Switches_Ptr is access constant Switches;
190 ----------------------------
191 -- Switches for GNAT BIND --
192 ----------------------------
194 S_Bind_Bind : aliased constant S := "/BIND_FILE=" &
195 "ADA " &
196 "-A " &
197 "C " &
198 "-C";
199 -- /BIND_FILE[=bind-file-option]
201 -- Specifies the language of the binder generated file.
203 -- ADA (D) Binder file is Ada.
205 -- C Binder file is 'C'.
207 S_Bind_Build : aliased constant S := "/BUILD_LIBRARY=|" &
208 "-L|";
209 -- /BUILD_LIBRARY=xxx
211 -- Binds the units for library building. In this case the adainit and
212 -- adafinal procedures are rename to xxxinit and xxxfinal. Implies
213 -- /NOMAIN.
215 S_Bind_Current : aliased constant S := "/CURRENT_DIRECTORY " &
216 "!-I-";
217 -- /CURRENT_DIRECTORY (D)
218 -- /NOCURRENT_DIRECTORY
220 -- Look for source, library or object files in the default directory.
222 S_Bind_Debug : aliased constant S := "/DEBUG=" &
223 "TRACEBACK " &
224 "-g2 " &
225 "ALL " &
226 "-g3 " &
227 "NONE " &
228 "-g0 " &
229 "SYMBOLS " &
230 "-g1 " &
231 "NOSYMBOLS " &
232 "!-g1 " &
233 "LINK " &
234 "-g3 " &
235 "NOTRACEBACK " &
236 "!-g2";
237 -- /DEBUG[=debug-level]
238 -- /NODEBUG
240 -- Specify level of debugging information generated for the elaboration
241 -- routine. See corresponding qualifier for GNAT COMPILE.
243 S_Bind_DebugX : aliased constant S := "/NODEBUG " &
244 "!-g";
245 -- NODOC (see /DEBUG)
247 S_Bind_Elab : aliased constant S := "/ELABORATION_DEPENDENCIES " &
248 "-e";
249 -- /ELABORATION_DEPENDENCIES
250 -- /NOELABORATION_DEPENDENCIES (D)
252 -- Output complete list of elaboration-order dependencies, showing the
253 -- reason for each dependency. This output can be rather extensive but may
254 -- be useful in diagnosing problems with elaboration order. The output is
255 -- written to SYS$OUTPUT.
257 S_Bind_Error : aliased constant S := "/ERROR_LIMIT=#" &
258 "-m#";
259 -- /ERROR_LIMIT=nnn
261 -- Limit number of detected errors to nnn (1-999999).
263 S_Bind_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
264 "-X" & '"';
265 -- /EXTERNAL_REFERENCE="name=val"
267 -- Specifies an external reference to the project manager. Useful only if
268 -- /PROJECT_FILE is used.
270 -- Example:
271 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
273 S_Bind_Force : aliased constant S := "/FORCE_ELAB_FLAGS " &
274 "-F";
275 -- /NOFORCE_ELAB_FLAGS (D)
276 -- /FORCE_ELAB_FLAGS
278 -- Force checking of elaboration Flags
280 S_Bind_Help : aliased constant S := "/HELP " &
281 "-h";
282 -- /HELP
284 -- Output usage information.
286 S_Bind_Init : aliased constant S := "/INITIALIZE_SCALARS=" &
287 "INVALID " &
288 "-Sin " &
289 "LOW " &
290 "-Slo " &
291 "HIGH " &
292 "-Shi";
293 -- /INITIALIZE_SCALARS[=scalar-option]
295 -- Indicate how uninitialized scalar values for which a pragma
296 -- Initialize_Scalars applies should be initialized.
297 -- scalar-option may be one of the following:
299 -- INVALID (D) Initialize with an invalid value.
300 -- LOW Initialize with the lowest valid value of the subtype.
301 -- HIGH Initialize with the highest valid value of the subtype.
303 S_Bind_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
304 "-aO*";
305 -- /LIBRARY_SEARCH=(direc[,...])
307 -- When looking for library and object files look also in directories
308 -- specified.
310 S_Bind_Linker : aliased constant S := "/LINKER_OPTION_LIST " &
311 "-K";
312 -- /NOLINKER_OPTION_LIST (D)
313 -- /LINKER_OPTION_LIST
315 -- Output linker options to SYS$OUTPUT. Includes library search
316 -- paths, contents of pragmas Ident and Linker_Options, and
317 -- libraries added by GNAT BIND.
319 S_Bind_Main : aliased constant S := "/MAIN " &
320 "!-n";
321 -- /MAIN (D)
323 -- The main program is in Ada.
325 -- /NOMAIN
327 -- The main program is not in Ada.
329 S_Bind_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
330 "DEFAULT " &
331 "-vP0 " &
332 "MEDIUM " &
333 "-vP1 " &
334 "HIGH " &
335 "-vP2";
336 -- /MESSAGES_PROJECT_FILE[=messages-option]
338 -- Specifies the "verbosity" of the parsing of project files.
339 -- messages-option may be one of the following:
341 -- DEFAULT (D) No messages are output if there is no error or warning.
343 -- MEDIUM A small number of messages are output.
345 -- HIGH A great number of messages are output, most of them not
346 -- being useful for the user.
348 S_Bind_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
349 "-nostdinc";
350 -- /NOSTD_INCLUDES
352 -- Do not look for sources the in the system default directory.
354 S_Bind_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
355 "-nostdlib";
356 -- /NOSTD_LIBRARIES
358 -- Do not look for library files in the system default directory.
360 S_Bind_No_Time : aliased constant S := "/NO_TIME_STAMP_CHECK " &
361 "-t";
362 -- NODOC (see /TIME_STAMP_CHECK)
364 S_Bind_Object : aliased constant S := "/OBJECT_LIST " &
365 "-O";
366 -- /NOOBJECT_LIST (D)
367 -- /OBJECT_LIST
369 -- Output full names of all the object files that must be linker to
370 -- provide the Ada component of the program. The output is written to
371 -- SYS$OUTPUT.
373 S_Bind_Order : aliased constant S := "/ORDER_OF_ELABORATION " &
374 "-l";
375 -- /NOORDER_OF_ELABORATION (D)
376 -- /ORDER_OF_ELABORATION
378 -- Output chosen elaboration order. The output is written to SYS$OUTPUT.
380 S_Bind_Output : aliased constant S := "/OUTPUT=@" &
381 "-o@";
382 -- /OUTPUT=filename
384 -- File name to use for the program containing the elaboration code.
386 S_Bind_OutputX : aliased constant S := "/NOOUTPUT " &
387 "-c";
388 -- /NOOUTPUT
390 -- Check only. Do not generate the binder output file.
392 -- In this mode the binder performs all error checks but does not generate
393 -- an output file.
395 S_Bind_Pess : aliased constant S := "/PESSIMISTIC_ELABORATION " &
396 "-p";
397 -- /PESSIMISTIC_ELABORATION
399 -- Causes the binder to choose a "pessimistic" elaboration order, i.e. one
400 -- which is most likely to cause elaboration order problems. This can be
401 -- useful in testing portable code to make sure that there are no missing
402 -- elaborate pragmas.
404 S_Bind_Project : aliased constant S := "/PROJECT_FILE=<" &
405 "-P>";
406 -- /PROJECT_FILE=filename
408 -- Specifies the main project file to be used. The project files rooted
409 -- at the main project file will be parsed before the invocation of the
410 -- binder. The source and object directories to be searched will be
411 -- communicated to the binder through logical names ADA_PRJ_INCLUDE_FILE
412 -- and ADA_PRJ_OBJECTS_FILE.
414 S_Bind_Read : aliased constant S := "/READ_SOURCES=" &
415 "ALL " &
416 "-s " &
417 "NONE " &
418 "-x " &
419 "AVAILABLE " &
420 "!-x,!-s";
421 -- /READ_SOURCES[=(keyword[,...])]
422 -- /NOREAD_SOURCES
424 -- The following keyword are accepted:
426 -- ALL (D) Require source files to be present. In this mode, the
427 -- binder insists on being able to locate all source files
428 -- that are referenced and checks their consistency. In
429 -- normal mode, if a source file cannot be located it is
430 -- simply ignored. If you specify the ALL keyword, a
431 -- missing source file is an error.
433 -- NONE Exclude source files. In this mode, the binder only
434 -- checks that ALI files are consistent with one another.
435 -- source files are not accessed. The binder runs faster
436 -- in this mode, and there is still a guarantee that the
437 -- resulting program is self-consistent.
439 -- If a source file has been edited since it was last
440 -- compiled and you specify the NONE keyword, the binder
441 -- will not detect that the object file is out of date
442 -- with the source file.
444 -- This is the same as specifying /NOREAD_SOURCES.
446 -- AVAILABLE Check that object files are consistent with one
447 -- another and are consistent with any source files that
448 -- can be located.
450 S_Bind_ReadX : aliased constant S := "/NOREAD_SOURCES " &
451 "-x";
452 -- NODOC (see /READ_SOURCES)
454 S_Bind_Rename : aliased constant S := "/RENAME_MAIN=<" &
455 "-M>";
456 -- /RENAME_MAIN=xxx
458 -- Renames the generated main program from main to xxx.
459 -- This is useful in the case of some cross-building environments, where
460 -- the actual main program is separate from the one generated
461 -- by GNAT BIND.
463 S_Bind_Report : aliased constant S := "/REPORT_ERRORS=" &
464 "VERBOSE " &
465 "-v " &
466 "BRIEF " &
467 "-b " &
468 "DEFAULT " &
469 "!-b,!-v";
470 -- /REPORT_ERRORS[=(keyword[,...])]
471 -- VERBOSE (D)
472 -- BRIEF
473 -- DEFAULT
474 -- /NOREPORT_ERRORS
476 -- With the DEFAULT keyword (which is not the default when the binder is
477 -- run from GNAT BIND) or the /NOREPORT_ERRORS qualifier, brief error
478 -- messages are generated to SYS$ERROR. If the VERBOSE keyword is
479 -- present, a header is written to SYS$OUTPUT and any error messages are
480 -- directed to SYS$OUTPUT All that is written to SYS$ERROR is a brief
481 -- summary message.
483 -- If the BRIEF keyword is specified, the binder will generate brief error
484 -- messages to SYS$ERROR even if verbose mode is specified. This is
485 -- relevant only when used together with the VERBOSE keyword or /VERBOSE
486 -- qualifier.
488 S_Bind_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
489 "!-b,!-v";
490 -- NODOC (see /REPORT_ERRORS)
492 S_Bind_Restr : aliased constant S := "/RESTRICTION_LIST " &
493 "-r";
494 -- /NORESTRICTION_LIST (D)
495 -- /RESTRICTION_LIST
497 -- Generate list of pragma Rerstrictions that could be applied to the
498 -- current unit. This is useful for code audit purposes, and also may be
499 -- used to improve code generation in some cases.
501 S_Bind_Return : aliased constant S := "/RETURN_CODES=" &
502 "POSIX " &
503 "!-X1 " &
504 "VMS " &
505 "-X1";
506 -- /RETURN_CODES=POSIX (D)
507 -- /RETURN_CODES=VMS
509 -- Specifies the style of default exit code returned. Must be used in
510 -- conjunction with and match the Link qualifer with same name.
512 -- POSIX (D) Return Posix success (0) by default.
514 -- VMS Return VMS success (1) by default.
516 S_Bind_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
517 "--RTS=|";
518 -- /RUNTIME_SYSTEM=xxx
520 -- Binds against an alternate runtime system named xxx or RTS-xxx.
522 S_Bind_Search : aliased constant S := "/SEARCH=*" &
523 "-I*";
524 -- /SEARCH=(directory[,...])
526 -- When looking for source or object files also look in directories
527 -- specified.
529 -- This is the same as specifying both /LIBRARY_SEARCH and /SOURCE_SEARCH
530 -- for a directory.
532 S_Bind_Shared : aliased constant S := "/SHARED " &
533 "-shared,!-static";
534 -- /SHARED
535 -- /NOSHARED
537 -- Link against a shared GNAT run time when available.
539 S_Bind_Slice : aliased constant S := "/TIME_SLICE=#" &
540 "-T#";
541 -- /TIME_SLICE=nnn
543 -- Set the time slice value to nnn milliseconds. A value of zero means no
544 -- time slicing and also indicates to the tasking run time to match as
545 -- close as possible to the annex D requirements of the RM.
547 S_Bind_Source : aliased constant S := "/SOURCE_SEARCH=*" &
548 "-aI*";
549 -- /SOURCE_SEARCH=(directory[,...])
551 -- When looking for source files also look in directories specified.
553 S_Bind_Static : aliased constant S := "/STATIC " &
554 "-static,!-shared";
555 -- /STATIC
556 -- /NOSTATIC
558 -- Link against a static GNAT run time.
560 S_Bind_Store : aliased constant S := "/STORE_TRACEBACKS " &
561 "-E";
562 -- /STORE_TRACEBACKS (D)
563 -- /NOSTORE_TRACEBACKS
565 -- Store tracebacks in exception occurrences.
566 -- This is the default on VMS, with the zero-cost exception mechanism.
567 -- This qualifier has no impact, except when using the setjmp/longjmp
568 -- exception mechanism, with the GNAT COMPILE qualifier /LONGJMP_SETJMP.
570 S_Bind_Time : aliased constant S := "/TIME_STAMP_CHECK " &
571 "!-t";
572 -- /TIME_STAMP_CHECK (D)
574 -- Time stamp errors will be treated as errors.
576 -- /NOTIME_STAMP_CHECK
578 -- Ignore time stamp errors. Any time stamp error messages are treated as
579 -- warning messages. This switch essentially disconnects the normal
580 -- consistency checking, and the resulting program may have undefined
581 -- semantics if inconsistent units are present.
583 -- This means that /NOTIME_STAMP_CHECK should be used only in unusual
584 -- situations, with extreme care.
586 S_Bind_Verbose : aliased constant S := "/VERBOSE " &
587 "-v";
588 -- /VERBOSE (D)
589 -- /NOVERBOSE
591 -- Equivalent to /REPORT_ERRORS=VERBOSE.
593 S_Bind_Warn : aliased constant S := "/WARNINGS=" &
594 "NORMAL " &
595 "!-ws,!-we " &
596 "SUPPRESS " &
597 "-ws " &
598 "ERROR " &
599 "-we";
600 -- /WARNINGS[=(keyword[,...])]
601 -- /NOWARNINGS
603 -- The following keywords are supported:
605 -- NORMAL (D) Print warning messages and treat them as warning.
606 -- SUPPRESS Suppress all warning messages (same as /NOWARNINGS).
607 -- ERROR Treat any warning messages as fatal errors
609 S_Bind_WarnX : aliased constant S := "/NOWARNINGS " &
610 "-ws";
611 -- NODOC (see /WARNINGS)
613 S_Bind_Zero : aliased constant S := "/ZERO_MAIN " &
614 "-z";
615 -- /NOZERO_MAIN (D)
616 -- /ZERO_MAIN
618 -- Normally the binder checks that the unit name given on the command line
619 -- corresponds to a suitable main subprogram. When /ZERO_MAIN is used,
620 -- a list of ALI files can be given, and the execution of the program
621 -- consists of elaboration of these units in an appropriate order.
623 Bind_Switches : aliased constant Switches :=
624 (S_Bind_Bind 'Access,
625 S_Bind_Build 'Access,
626 S_Bind_Current 'Access,
627 S_Bind_Debug 'Access,
628 S_Bind_DebugX 'Access,
629 S_Bind_Elab 'Access,
630 S_Bind_Error 'Access,
631 S_Bind_Ext 'Access,
632 S_Bind_Force 'Access,
633 S_Bind_Help 'Access,
634 S_Bind_Init 'Access,
635 S_Bind_Library 'Access,
636 S_Bind_Linker 'Access,
637 S_Bind_Main 'Access,
638 S_Bind_Mess 'Access,
639 S_Bind_Nostinc 'Access,
640 S_Bind_Nostlib 'Access,
641 S_Bind_No_Time 'Access,
642 S_Bind_Object 'Access,
643 S_Bind_Order 'Access,
644 S_Bind_Output 'Access,
645 S_Bind_OutputX 'Access,
646 S_Bind_Pess 'Access,
647 S_Bind_Project 'Access,
648 S_Bind_Read 'Access,
649 S_Bind_ReadX 'Access,
650 S_Bind_Rename 'Access,
651 S_Bind_Report 'Access,
652 S_Bind_ReportX 'Access,
653 S_Bind_Restr 'Access,
654 S_Bind_Return 'Access,
655 S_Bind_RTS 'Access,
656 S_Bind_Search 'Access,
657 S_Bind_Shared 'Access,
658 S_Bind_Slice 'Access,
659 S_Bind_Source 'Access,
660 S_Bind_Static 'Access,
661 S_Bind_Store 'Access,
662 S_Bind_Time 'Access,
663 S_Bind_Verbose 'Access,
664 S_Bind_Warn 'Access,
665 S_Bind_WarnX 'Access,
666 S_Bind_Zero 'Access);
668 -----------------------------
669 -- Switches for GNAT CHECK --
670 -----------------------------
672 S_Check_All : aliased constant S := "/ALL " &
673 "-a";
674 -- /NOALL (D)
675 -- /ALL
677 -- Also check the components of the GNAT run time and process the needed
678 -- components of the GNAT RTL when building and analyzing the global
679 -- structure for checking the global rules.
681 S_Check_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
682 "-X" & '"';
683 -- /EXTERNAL_REFERENCE="name=val"
685 -- Specifies an external reference to the project manager. Useful only if
686 -- /PROJECT_FILE is used.
688 -- Example:
689 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
691 S_Check_Files : aliased constant S := "/FILES=@" &
692 "-files=@";
693 -- /FILES=filename
695 -- Take as arguments the files that are listed in the specified
696 -- text file.
698 S_Check_Help : aliased constant S := "/HELP " &
699 "-h";
700 -- /NOHELP (D)
701 -- /HELP
703 -- Print information about currently implemented checks.
705 S_Check_Locs : aliased constant S := "/LOCS " &
706 "-l";
707 -- /NOLOCS (D)
708 -- /LOCS
710 -- Use full source locations referebces in the report file.
712 S_Check_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
713 "DEFAULT " &
714 "-vP0 " &
715 "MEDIUM " &
716 "-vP1 " &
717 "HIGH " &
718 "-vP2";
719 -- /MESSAGES_PROJECT_FILE[=messages-option]
721 -- Specifies the "verbosity" of the parsing of project files.
722 -- messages-option may be one of the following:
724 -- DEFAULT (D) No messages are output if there is no error or warning.
726 -- MEDIUM A small number of messages are output.
728 -- HIGH A great number of messages are output, most of them not
729 -- being useful for the user.
731 S_Check_Project : aliased constant S := "/PROJECT_FILE=<" &
732 "-P>";
733 -- /PROJECT_FILE=filename
735 -- Specifies the main project file to be used. The project files rooted
736 -- at the main project file will be parsed before the invocation of the
737 -- gnatcheck. The source directories to be searched will be communicated
738 -- to gnatcheck through logical name ADA_PRJ_INCLUDE_FILE.
740 S_Check_Quiet : aliased constant S := "/QUIET " &
741 "-q";
742 -- /NOQUIET (D)
743 -- /QUIET
745 -- Work quietly, only output warnings and errors.
747 S_Check_Sections : aliased constant S := "/SECTIONS= " &
748 "DEFAULT " &
749 "-s123 " &
750 "COMPILER_STYLE " &
751 "-s1 " &
752 "BY_RULES " &
753 "-s2 " &
754 "BY_FILES_BY_RULES " &
755 "-s3 ";
756 -- /SECTIONS[=section-option, section-option, ...]
758 -- Specify what sections should be included into the report file.
759 -- By default, all three section (diagnises in the format correcponding
760 -- to compiler error and warning messages, diagnoses grouped by rules and
761 -- then - by files, diagnoses grouped by files and then - by rules) are
762 -- included in the report file.
764 -- section-option may be one of the following:
766 -- COMPILER_STYLE Include diagnoses in compile-style format
767 -- (diagoses are grouped by files, for each file
768 -- they are ordered according to the references
769 -- into the source)
770 -- BY_RULES Include diagnoses grouped first by rules and
771 -- then by files
772 -- BY_FILES_BY_RULES Include diagnoses grouped first by files and
773 -- then by rules
775 -- If one of these options is specified, then the report file contains
776 -- only sections set by these options
778 S_Check_Short : aliased constant S := "/SHORT " &
779 "-s";
780 -- /NOSHORT (D)
781 -- /SHORT
783 -- Generate a short form of the report file.
785 S_Check_Verb : aliased constant S := "/VERBOSE " &
786 "-v";
787 -- /NOVERBOSE (D)
788 -- /VERBOSE
790 -- The version number and copyright notice are output, as well as exact
791 -- copies of the gnat1 commands spawned to obtain the chop control
792 -- information.
794 Check_Switches : aliased constant Switches :=
795 (S_Check_All 'Access,
796 S_Check_Ext 'Access,
797 S_Check_Files 'Access,
798 S_Check_Help 'Access,
799 S_Check_Locs 'Access,
800 S_Check_Mess 'Access,
801 S_Check_Project 'Access,
802 S_Check_Quiet 'Access,
803 S_Check_Sections 'Access,
804 S_Check_Short 'Access,
805 S_Check_Verb 'Access);
807 ----------------------------
808 -- Switches for GNAT CHOP --
809 ----------------------------
811 S_Chop_Comp : aliased constant S := "/COMPILATION " &
812 "-c";
813 -- /NOCOMPILATION (D)
814 -- /COMPILATION
816 -- Compilation mode, handle configuration pragmas strictly according to
817 -- RM rules.
819 S_Chop_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
820 "-k#";
821 -- /FILE_NAME_MAX_LENGTH[=nnn]
823 -- Limit generated file names to NNN (default of 8) characters. This is
824 -- useful if the resulting set of files is required to be interoperable
825 -- with systems like MS-DOS which limit the length of file names.
827 S_Chop_Help : aliased constant S := "/HELP " &
828 "-h";
829 -- /NOHELP (D)
830 -- /HELP
832 -- Print usage information.
834 S_Chop_Over : aliased constant S := "/OVERWRITE " &
835 "-w";
836 -- /NOOVERWRITE (D)
837 -- /OVERWRITE
839 -- Overwrite existing file names. Normally GNAT CHOP regards it as a
840 -- fatal error situation if there is already a file with the same name as
841 -- a file it would otherwise output. The /OVERWRITE qualifier bypasses
842 -- this check, and any such existing files will be silently overwritten.
844 S_Chop_Pres : aliased constant S := "/PRESERVE " &
845 "-p";
846 -- /NOPRESERVE (D)
847 -- /PRESERVE
849 -- Causes the file modification time stamp of the input file to be
850 -- preserved and used for the time stamp of the output file(s). This may
851 -- be useful for preserving coherency of time stamps in an enviroment
852 -- where gnatchop is used as part of a standard build process.
854 S_Chop_Quiet : aliased constant S := "/QUIET " &
855 "-q";
856 -- /NOQUIET (D)
857 -- /QUIET
859 -- Work quietly, only output warnings and errors.
861 S_Chop_Ref : aliased constant S := "/REFERENCE " &
862 "-r";
863 -- /NOREFERENCE (D)
864 -- /REFERENCE
866 -- Generate "Source_Reference" pragmas. Use this qualifier if the output
867 -- files are regarded as temporary and development is to be done in terms
868 -- of the original unchopped file. The /REFERENCE qualifier causes
869 -- "Source_Reference" pragmas to be inserted into each of the generated
870 -- files to refers back to the original file name and line number. The
871 -- result is that all error messages refer back to the original unchopped
872 -- file.
874 -- In addition, the debugging information placed into the object file
875 -- (when the /DEBUG qualifier of GNAT COMPILE or GNAT MAKE is specified)
876 -- also refers back to this original file so that tools like profilers
877 -- and debuggers will give information in terms of the original unchopped
878 -- file.
880 S_Chop_Verb : aliased constant S := "/VERBOSE " &
881 "-v";
882 -- /NOVERBOSE (D)
883 -- /VERBOSE
885 -- The version number and copyright notice are output, as well as exact
886 -- copies of the gnat1 commands spawned to obtain the chop control
887 -- information.
889 Chop_Switches : aliased constant Switches :=
890 (S_Chop_Comp 'Access,
891 S_Chop_File 'Access,
892 S_Chop_Help 'Access,
893 S_Chop_Over 'Access,
894 S_Chop_Pres 'Access,
895 S_Chop_Quiet 'Access,
896 S_Chop_Ref 'Access,
897 S_Chop_Verb 'Access);
899 -----------------------------
900 -- Switches for GNAT CLEAN --
901 -----------------------------
903 S_Clean_Compil : aliased constant S := "/COMPILER_FILES_ONLY " &
904 "-c";
905 -- /NOCOMPILER_FILES_ONLY (D)
906 -- /COMPILER_FILES_ONLY
908 -- Only attempt to delete the files produced by the compiler, not those
909 -- produced by the binder or the linker. The files that are not to be
910 -- deleted are library files, interface copy files, binder generated files
911 -- and executable files.
913 S_Clean_Current : aliased constant S := "/CURRENT_DIRECTORY " &
914 "!-I-";
915 -- /CURRENT_DIRECTORY (D)
917 -- Look for ALI or object files in the directory where GNAT CLEAN was
918 -- invoked.
920 -- /NOCURRENT_DIRECTORY
922 -- Do not look for ALI or object files in the directory where GNAT CLEAN
923 -- was invoked.
925 S_Clean_Delete : aliased constant S := "/DELETE " &
926 "!-n";
927 -- /DELETE (D)
929 -- Delete the files that are not read-only.
931 -- /NODELETE
933 -- Informative-only mode. Do not delete any files. Output the list of the
934 -- files that would have been deleted if this switch was not specified.
936 S_Clean_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
937 "-D@";
938 -- /DIRECTORY_OBJECTS=<file>
940 -- Find the object files and .ALI files in <file>.
941 -- This qualifier is not compatible with /PROJECT_FILE.
943 S_Clean_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
944 "-X" & '"';
945 -- /EXTERNAL_REFERENCE="name=val"
947 -- Specifies an external reference to the project manager. Useful only if
948 -- /PROJECT_FILE is used.
950 -- Example:
951 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
953 S_Clean_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
954 "-F";
955 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
956 -- /FULL_PATH_IN_BRIEF_MESSAGES
958 -- When using project files, if some errors or warnings are detected
959 -- during parsing and verbose mode is not in effect (no use of qualifier
960 -- /VERBOSE), then error lines start with the full path name of the
961 -- project file, rather than its simple file name.
963 S_Clean_Help : aliased constant S := "/HELP " &
964 "-h";
965 -- /NOHELP (D)
966 -- /HELP
968 -- Output a message explaining the usage of gnatclean.
970 S_Clean_Index : aliased constant S := "/SOURCE_INDEX=#" &
971 "-i#";
972 -- /SOURCE_INDEX=nnn
974 -- Specifies the index of the units in the source file
975 -- By default, source files are mono-unit and there is no index
977 S_Clean_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
978 "DEFAULT " &
979 "-vP0 " &
980 "MEDIUM " &
981 "-vP1 " &
982 "HIGH " &
983 "-vP2";
984 -- /MESSAGES_PROJECT_FILE[=messages-option]
986 -- Specifies the "verbosity" of the parsing of project files.
987 -- messages-option may be one of the following:
989 -- DEFAULT (D) No messages are output if there is no error or warning.
991 -- MEDIUM A small number of messages are output.
993 -- HIGH A great number of messages are output, most of them not
994 -- being useful for the user.
996 S_Clean_Object : aliased constant S := "/OBJECT_SEARCH=*" &
997 "-aO*";
998 -- /OBJECT_SEARCH=(directory,...)
1000 -- When searching for library and object files, look in the specified
1001 -- directories. The order in which library files are searched is the same
1002 -- as for MAKE.
1004 S_Clean_Project : aliased constant S := "/PROJECT_FILE=<" &
1005 "-P>";
1006 -- /PROJECT_FILE=filename
1008 -- Specifies the main project file to be used. The project files rooted
1009 -- at the main project file will be parsed before the invocation of the
1010 -- compiler. The source and object directories to be searched will be
1011 -- communicated to gnatclean through logical names ADA_PRJ_INCLUDE_FILE
1012 -- and ADA_PRJ_OBJECTS_FILE.
1014 S_Clean_Quiet : aliased constant S := "/QUIET " &
1015 "-q";
1016 -- /NOQUIET (D)
1017 -- /QUIET
1019 -- Quiet output. If there are no error, do not ouuput anything, except in
1020 -- verbose mode (qualifier /VERBOSE) or in informative-only mode
1021 -- (qualifier /NODELETE).
1023 S_Clean_Recurs : aliased constant S := "/RECURSIVE " &
1024 "-r";
1025 -- /NORECURSIVE (D)
1026 -- /RECURSIVE
1028 -- When a project file is specified (using switch -P), clean all imported
1029 -- and extended project files, recursively. If this qualifier is not
1030 -- specified, only the files related to the main project file are to be
1031 -- deleted. This qualifier has no effect if no project file is specified.
1033 S_Clean_Search : aliased constant S := "/SEARCH=*" &
1034 "-I*";
1035 -- /SEARCH=(directory,...)
1037 -- Equivalent to /OBJECT_SEARCH=(directory,...).
1039 S_Clean_Verbose : aliased constant S := "/VERBOSE " &
1040 "-v";
1041 -- /NOVERBOSE (D)
1042 -- /VERBOSE
1044 -- Verbose mode.
1046 Clean_Switches : aliased constant Switches :=
1047 (S_Clean_Compil 'Access,
1048 S_Clean_Current'Access,
1049 S_Clean_Delete 'Access,
1050 S_Clean_Dirobj 'Access,
1051 S_Clean_Ext 'Access,
1052 S_Clean_Full 'Access,
1053 S_Clean_Help 'Access,
1054 S_Clean_Index 'Access,
1055 S_Clean_Mess 'Access,
1056 S_Clean_Object 'Access,
1057 S_Clean_Project'Access,
1058 S_Clean_Quiet 'Access,
1059 S_Clean_Recurs 'Access,
1060 S_Clean_Search 'Access,
1061 S_Clean_Verbose'Access);
1063 -------------------------------
1064 -- Switches for GNAT COMPILE --
1065 -------------------------------
1067 S_GCC_Ada_83 : aliased constant S := "/83 " &
1068 "-gnat83";
1069 -- /NO83 (D)
1070 -- /83
1072 -- Although GNAT is primarily an Ada 95 compiler, it accepts this
1073 -- qualifier to specify that an Ada 83 mode program is being compiled. If
1074 -- you specify this qualifier, GNAT rejects Ada 95 extensions and applies
1075 -- Ada 83 semantics. It is not possible to guarantee this qualifier does
1076 -- a perfect job; for example, some subtle tests of pathological cases,
1077 -- such as are found in ACVC tests that have been removed from the ACVC
1078 -- suite for Ada 95, may not compile correctly. However for practical
1079 -- purposes, using this qualifier should ensure that programs that
1080 -- compile correctly under the /83 qualifier can be ported reasonably
1081 -- easily to an Ada 83 compiler. This is the main use of this qualifier.
1083 -- With few exceptions (most notably the need to use "<>" on
1084 -- unconstrained generic formal parameters), it is not necessary to use
1085 -- this qualifier switch when compiling Ada 83 programs, because, with
1086 -- rare and obscure exceptions, Ada 95 is upwardly compatible with Ada
1087 -- 83. This means that a correct Ada 83 program is usually also a correct
1088 -- Ada 95 program.
1090 S_GCC_Ada_95 : aliased constant S := "/95 " &
1091 "-gnat95";
1092 -- /95 (D)
1094 -- Allows GNAT to recognize the full range of Ada 95 constructs.
1095 -- This is the normal default for GNAT Pro.
1097 S_GCC_Ada_05 : aliased constant S := "/05 " &
1098 "-gnat05";
1099 -- /05 (D)
1101 -- Allows GNAT to recognize all implemented proposed Ada 2005
1102 -- extensions. See features file for list of implemented features.
1104 S_GCC_Asm : aliased constant S := "/ASM " &
1105 "-S,!-c";
1106 -- /NOASM (D)
1107 -- /ASM
1109 -- Use to cause the assembler source file to be generated, using S as the
1110 -- filetype, instead of the object file. This may be useful if you need
1111 -- to examine the generated assembly code.
1113 S_GCC_Checks : aliased constant S := "/CHECKS=" &
1114 "FULL " &
1115 "-gnato,!-gnatE,!-gnatp " &
1116 "OVERFLOW " &
1117 "-gnato " &
1118 "ELABORATION " &
1119 "-gnatE " &
1120 "ASSERTIONS " &
1121 "-gnata " &
1122 "DEFAULT " &
1123 "!-gnato,!-gnatp " &
1124 "STACK " &
1125 "-fstack-check " &
1126 "SUPPRESS_ALL " &
1127 "-gnatp";
1128 -- /NOCHECKS
1129 -- /CHECKS[=(keyword[,...])]
1131 -- If you compile with the default options, GNAT will insert many runtime
1132 -- checks into the compiled code, including code that performs range
1133 -- checking against constraints, but not arithmetic overflow checking for
1134 -- integer operations (including division by zero) or checks for access
1135 -- before elaboration on subprogram calls. All other runtime checks, as
1136 -- required by the Ada 95 Reference Manual, are generated by default.
1138 -- You may specify one or more of the following keywords to the /CHECKS
1139 -- qualifier to modify this behavior:
1141 -- DEFAULT The behavior described above. This is the default
1142 -- if the /CHECKS qualifier is not present on the
1143 -- command line. Same as /NOCHECKS.
1145 -- OVERFLOW Enables overflow checking for integer operations and
1146 -- checks for access before elaboration on subprogram
1147 -- calls. This causes GNAT to generate slower and larger
1148 -- executable programs by adding code to check for both
1149 -- overflow and division by zero (resulting in raising
1150 -- "Constraint_Error" as required by Ada semantics).
1151 -- Similarly, GNAT does not generate elaboration check
1152 -- by default, and you must specify this keyword to
1153 -- enable them.
1155 -- Note that this keyword does not affect the code
1156 -- generated for any floating-point operations; it
1157 -- applies only to integer operations. For floating-point,
1158 -- GNAT has the "Machine_Overflows" attribute set to
1159 -- "False" and the normal mode of operation is to generate
1160 -- IEEE NaN and infinite values on overflow or invalid
1161 -- operations (such as dividing 0.0 by 0.0).
1163 -- ELABORATION Enables dynamic checks for access-before-elaboration
1164 -- on subprogram calls and generic instantiations.
1166 -- ASSERTIONS The pragmas "Assert" and "Debug" normally have no
1167 -- effect and are ignored. This keyword causes "Assert"
1168 -- and "Debug" pragmas to be activated.
1170 -- SUPPRESS_ALL Suppress all runtime checks as though you have "pragma
1171 -- Suppress (all_checks)" in your source. Use this switch
1172 -- to improve the performance of the code at the expense
1173 -- of safety in the presence of invalid data or program
1174 -- bugs.
1176 -- DEFAULT Suppress the effect of any option OVERFLOW or
1177 -- ASSERTIONS.
1179 -- FULL (D) Similar to OVERFLOW, but suppress the effect of any
1180 -- option ELABORATION or SUPPRESS_ALL.
1182 -- These keywords only control the default setting of the checks. You
1183 -- may modify them using either "Suppress" (to remove checks) or
1184 -- "Unsuppress" (to add back suppressed checks) pragmas in your program
1185 -- source.
1187 S_GCC_ChecksX : aliased constant S := "/NOCHECKS " &
1188 "-gnatp,!-gnato,!-gnatE";
1189 -- NODOC (see /CHECKS)
1191 S_GCC_Compres : aliased constant S := "/COMPRESS_NAMES " &
1192 "-gnatC";
1193 -- /NOCOMPRESS_NAMES (D)
1194 -- /COMPRESS_NAMES
1196 -- Compress debug information and external symbol name table entries.
1197 -- In the generated debugging information, and also in the case of long
1198 -- external names, the compiler uses a compression mechanism if the name
1199 -- is very long. This compression method uses a checksum, and avoids
1200 -- trouble on some operating systems which have difficulty with very long
1201 -- names.
1203 S_GCC_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
1204 "-gnatec>";
1205 -- /CONFIGURATION_PRAGMAS_FILE=file
1207 -- Specify a configuration pragmas file that need to be taken into account
1209 S_GCC_Current : aliased constant S := "/CURRENT_DIRECTORY " &
1210 "!-I-";
1211 -- /CURRENT_DIRECTORY (D)
1212 -- /NOCURRENT_DIRECTORY
1214 -- Look for source files in the default directory.
1216 S_GCC_Data : aliased constant S := "/DATA_PREPROCESSING=<" &
1217 "-gnatep>";
1218 -- /DATA_PREPROCESSING=file_name
1220 -- This qualifier indicates to the compiler the file name (without
1221 -- directory information) of the preprocessor data file to use.
1222 -- The preprocessor data file should be found in the source directories.
1224 -- A preprocessing data file is a text file with significant lines
1225 -- indicating how should be preprocessed either a specific source or all
1226 -- sources not mentioned in other lines. A significant line is a non
1227 -- empty, non comment line. Comments are similar to Ada comments.
1229 -- Each significant line starts with either a literal string or the
1230 -- character '*'. A literal string is the file name (without directory
1231 -- information) of the source to preprocess. A character '*' indicates the
1232 -- preprocessing for all the sources that are not specified explicitly on
1233 -- other lines. It is an error to have two lines with the same file name
1234 -- or two lines starting with the character '*'.
1236 -- After the file name or the character '*', another optional literal
1237 -- string indicating the file name of the definition file to be used for
1238 -- preprocessing. (see 15.3 Form of Definitions File. The definition files
1239 -- are found by the compiler in one of the source directories. In some
1240 -- cases, when compiling a source in a directory other than the current
1241 -- directory, if the definition file is in the current directory, it may
1242 -- be necessary to add the current directory as a source directory through
1243 -- qualifier "/SEARCH=[]", otherwise the compiler would not find the
1244 -- definition file.
1246 -- Then, optionally, switches similar to those of gnatprep may be found.
1247 -- Those switches are:
1249 -- -b Causes both preprocessor lines and the lines deleted by
1250 -- preprocessing to be replaced by blank lines, preserving
1251 -- the line number. This switch is always implied;
1252 -- however, if specified after `-c' it cancels the effect
1253 -- of `-c'.
1255 -- -c Causes both preprocessor lines and the lines deleted by
1256 -- preprocessing to be retained as comments marked with
1257 -- the special string "--! ".
1259 -- -Dsymbol=value Define or redefine a symbol, associated with value.
1260 -- A symbol is an Ada identifier, or an Ada reserved word,
1261 -- with the exception of "if", "else", "elsif", "end",
1262 -- "and", "or" and "then". value is either a literal
1263 -- string, an Ada identifier or any Ada reserved word.
1264 -- A symbol declared with this switch replaces a symbol
1265 -- with the same name defined in a definition file.
1267 -- -s Causes a sorted list of symbol names and values to be
1268 -- listed on the standard output file.
1270 -- -u Causes undefined symbols to be treated as having the
1271 -- value FALSE in the context of a preprocessor test.
1272 -- In the absence of this option, an undefined symbol
1273 -- in a #if or #elsif test will be treated as an error.
1275 -- Examples of valid lines in a preprocessor data file:
1277 -- "toto.adb" "prep.def" -u
1278 -- -- preprocess "toto.adb", using definition file "prep.def",
1279 -- -- undefined symbol are False.
1281 -- * -c -DVERSION=V101
1282 -- -- preprocess all other sources without a definition file;
1283 -- -- suppressed lined are commented; symbol VERSION has the value
1284 -- -- V101.
1286 -- "titi.adb" "prep2.def" -s
1287 -- -- preprocess "titi.adb", using definition file "prep2.def";
1288 -- -- list all symbols with their values.
1290 S_GCC_Debug : aliased constant S := "/DEBUG=" &
1291 "SYMBOLS " &
1292 "-g2 " &
1293 "NOSYMBOLS " &
1294 "!-g2 " &
1295 "TRACEBACK " &
1296 "-g1 " &
1297 "ALL " &
1298 "-g3 " &
1299 "NONE " &
1300 "-g0 " &
1301 "NOTRACEBACK " &
1302 "-g0";
1303 -- /DEBUG[=debug-level]
1304 -- /NODEBUG
1306 -- Specifies how much debugging information is to be included in
1307 -- the resulting object fie.
1309 -- 'debug-level' is one of the following:
1311 -- SYMBOLS (D) Include both debugger symbol records and traceback
1312 -- in the object file.
1314 -- ALL Include debugger symbol records, traceback plus
1315 -- extra debug information in the object file.
1317 -- NONE Excludes both debugger symbol records and traceback
1318 -- from the object file. Same as /NODEBUG.
1320 -- TRACEBACK Includes only traceback records in the object
1321 -- file. This is the default when /DEBUG is not used.
1323 S_GCC_DebugX : aliased constant S := "/NODEBUG " &
1324 "!-g";
1325 -- NODOC (see /Debug)
1327 S_GCC_Dist : aliased constant S := "/DISTRIBUTION_STUBS=" &
1328 "RECEIVER " &
1329 "-gnatzr " &
1330 "CALLER " &
1331 "-gnatzc";
1332 -- /NODISTRIBUTION_STUBS (D)
1333 -- /DISTRIBUTION_STUBS[=dist-opt]
1335 -- 'dist-opt' is either RECEIVER (the default) or SENDER and indicates
1336 -- that stubs for use in distributed programs (see the Distributed
1337 -- Systems Annex of the Ada RM) should be generated.
1339 S_GCC_DistX : aliased constant S := "/NODISTRIBUTION_STUBS " &
1340 "!-gnatzr,!-gnatzc";
1341 -- NODOC (see /DISTRIBUTION_STUBS)
1343 S_GCC_Error : aliased constant S := "/ERROR_LIMIT=#" &
1344 "-gnatm#";
1345 -- /NOERROR_LIMIT (D)
1346 -- /ERROR_LIMIT=nnn
1348 -- NNN is a decimal integer in the range of 1 to 999999 and limits the
1349 -- number of error messages to be generated to that number. Once that
1350 -- number has been reached, the compilation is abandoned.
1351 -- Specifying 999999 is equivalent to /NOERROR_LIMIT.
1353 S_GCC_ErrorX : aliased constant S := "/NOERROR_LIMIT " &
1354 "-gnatm999999";
1355 -- NODOC (see /ERROR_LIMIT)
1357 S_GCC_Expand : aliased constant S := "/EXPAND_SOURCE " &
1358 "-gnatG";
1359 -- /NOEXPAND_SOURCE (D)
1360 -- /EXPAND_SOURCE
1362 -- Produces a listing of the expanded code in Ada source form. For
1363 -- example, all tasking constructs are reduced to appropriate run-time
1364 -- library calls.
1366 S_GCC_Extend : aliased constant S := "/EXTENSIONS_ALLOWED " &
1367 "-gnatX";
1368 -- /NOEXTENSIONS_ALLOWED (D)
1369 -- /EXTENSIONS_ALLOWED
1371 -- GNAT specific language extensions allowed.
1373 S_GCC_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
1374 "-X" & '"';
1375 -- /EXTERNAL_REFERENCE="name=val"
1377 -- Specifies an external reference to the project manager. Useful only if
1378 -- /PROJECT_FILE is used.
1380 -- Example:
1381 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
1383 S_GCC_File : aliased constant S := "/FILE_NAME_MAX_LENGTH=#" &
1384 "-gnatk#";
1385 -- /FILE_NAME_MAX_LENGTH=nnn
1387 -- Activates file name "krunching". NNN, a decimal integer in the range
1388 -- 1-999, indicates the maximum allowable length of a file name (not
1389 -- including the ADS or ADB filetype. The default is not to enable file
1390 -- name krunching.
1392 S_GCC_Force : aliased constant S := "/FORCE_ALI " &
1393 "-gnatQ";
1394 -- /NOFORCE_ALI (D)
1395 -- /FORCE_ALI
1397 -- In normal operation mode, the .ALI file is not generated if any
1398 -- illegalities are detected in the program. The use of this qualifier
1399 -- forces generation of the .ALI file. This file is marked as being
1400 -- in error, so it cannot be used for binding purposes, but it does
1401 -- contain reasonably complete cross-reference information, and thus may
1402 -- be useful for use by tools (e.g. semantic browing tools or integrated
1403 -- development environments) that are driven from the .ALI file.
1405 S_GCC_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
1406 "-gnatef";
1407 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
1408 -- /FULL_PATH_IN_BRIEF_MESSAGES
1410 -- When using project files, if some errors or warnings are detected
1411 -- during parsing and verbose mode is not in effect (no use of qualifier
1412 -- /VERBOSE), then error lines start with the full path name of the
1413 -- project file, rather than its simple file name.
1415 S_GCC_Help : aliased constant S := "/HELP " &
1416 "-gnath";
1417 -- /NOHELP (D)
1418 -- /HELP
1420 -- Output usage information.
1422 S_GCC_Ident : aliased constant S := "/IDENTIFIER_CHARACTER_SET=" &
1423 "DEFAULT " &
1424 "-gnati1 " &
1425 "1 " &
1426 "-gnati1 " &
1427 "2 " &
1428 "-gnati2 " &
1429 "3 " &
1430 "-gnati3 " &
1431 "4 " &
1432 "-gnati4 " &
1433 "5 " &
1434 "-gnati5 " &
1435 "PC " &
1436 "-gnatip " &
1437 "PC850 " &
1438 "-gnati8 " &
1439 "FULL_UPPER " &
1440 "-gnatif " &
1441 "NO_UPPER " &
1442 "-gnatin " &
1443 "WIDE " &
1444 "-gnatiw";
1445 -- /NOIDENTIFIER_CHARACTER_SET (D)
1446 -- /IDENTIFIER_CHARACTER_SET=char-set
1448 -- Normally GNAT recognizes the Latin-1 character set in source program
1449 -- identifiers, as described in the reference manual. This qualifier
1450 -- causes GNAT to recognize alternate character sets in identifiers.
1451 -- 'char-set' is one of the following strings indicating the character
1452 -- set:
1454 -- DEFAULT (D) Equivalent to 1, below. Also equivalent to
1455 -- /NOIDENTIFIER_CHARACTER_SET.
1457 -- 1 The basic character set is Latin-1. This character
1458 -- set is defined by ISO standard 8859, part 1. The lower
1459 -- half (character codes 16#00# ... 16#7F#) is identical
1460 -- to standard ASCII coding, but the upper half is used
1461 -- to represent additional characters. This includes
1462 -- extended letters used by European languages, such as
1463 -- the umlaut used in German.
1465 -- You may use any of these extended characters freely
1466 -- in character or string literals. In addition, the
1467 -- extended characters that represent letters can be
1468 -- used in identifiers.
1470 -- 2 Latin-2 letters allowed in identifiers, with uppercase
1471 -- and lowercase equivalence.
1473 -- 3 Latin-3 letters allowed in identifiers, with uppercase
1474 -- and lower case equivalence.
1476 -- 4 Latin-4 letters allowed in identifiers, with uppercase
1477 -- and lower case equivalence.
1479 -- PC IBM PC code page 437. This code page is the normal
1480 -- default for PCs in the U.S. It corresponds to the
1481 -- original IBM PC character set. This set has some, but
1482 -- not all, of the extended Latin-1 letters, but these
1483 -- letters do not have the same encoding as Latin-1. In
1484 -- this mode, these letters are allowed in identifiers
1485 -- with uppercase and lowercase equivalence.
1487 -- PC850 This code page (850) is a modification of 437 extended
1488 -- to include all the Latin-1 letters, but still not with
1489 -- the usual Latin-1 encoding. In this mode, all these
1490 -- letters are allowed in identifiers with uppercase and
1491 -- lower case equivalence.
1493 -- FULL_UPPER Any character in the range 80-FF allowed in
1494 -- identifiers, and all are considered distinct. In
1495 -- other words, there are no uppercase and lower case
1496 -- equivalences in this range.
1498 -- NO_UPPER No upper-half characters in the range 80-FF are
1499 -- allowed in identifiers. This gives Ada 95
1500 -- compatibility for identifier names.
1502 -- WIDE GNAT allows wide character codes to appear in
1503 -- character and string literals, and also optionally
1504 -- in identifiers. See the /WIDE_CHARACTER_ENCODING
1505 -- qualifier for information on encoding formats.
1507 S_GCC_IdentX : aliased constant S := "/NOIDENTIFIER_CHARACTER_SET " &
1508 "-gnati1";
1509 -- NODOC (see /IDENTIFIER_CHARACTER_SET)
1511 S_GCC_Immed : aliased constant S := "/IMMEDIATE_ERRORS " &
1512 "-gnatdO";
1513 -- /NOIMMEDIATE_ERRORS (D)
1514 -- /IMMEDIATE_ERRORS
1516 -- Causes errors to be displayed as soon as they are encountered, rather
1517 -- than after compilation is terminated. If GNAT terminates prematurely
1518 -- or goes into an infinite loop, the last error message displayed may
1519 -- help to pinpoint the culprit.
1521 S_GCC_Inline : aliased constant S := "/INLINE=" &
1522 "PRAGMA " &
1523 "-gnatn " &
1524 "FULL " &
1525 "-gnatN " &
1526 "SUPPRESS " &
1527 "-fno-inline";
1528 -- /NOINLINE (D)
1529 -- /INLINE[=keyword]
1531 -- Selects the level of inlining for your program. In the absence of this
1532 -- qualifier, GNAT does not attempt inlining across units and does not
1533 -- need to access the bodies of subprograms for which "pragma Inline" is
1534 -- specified if they are not in the current unit.
1536 -- The supported keywords are as follows:
1538 -- PRAGMA (D) Recognize and process "Inline" pragmas. However,
1539 -- for the inlining to actually occur, optimization
1540 -- must be enabled. This enables inlining across unit
1541 -- boundaries, that is, inlining a call in one unit of
1542 -- a subprogram declared in a with'ed unit. The compiler
1543 -- will access these bodies, creating an extra source
1544 -- dependency for the resulting object file, and where
1545 -- possible, the call will be inlined.
1547 -- This qualifier also turns on full optimization and
1548 -- requests GNAT to try to attempt automatic inlining
1549 -- of small subprograms within a unit.
1551 -- Specifying /OPTIMIZE=NONE will disable the main effect
1552 -- of this qualifier, but you may specify other
1553 -- optimization options, to get either lower
1554 -- (/OPTIMIZE=SOME) or higher (/OPTIMIZE=UNROLL_LOOPS)
1555 -- levels of optimization.
1557 -- FULL Front end inlining. The front end inlining activated
1558 -- by this switch is generally more extensive, and quite
1559 -- often more effective than the standard PRAGMA inlining
1560 -- mode. It will also generate additional dependencies.
1562 -- SUPPRESS Suppresses all inlining, even if other optimization
1563 -- or inlining switches are set.
1565 S_GCC_InlineX : aliased constant S := "/NOINLINE " &
1566 "!-gnatn,!-gnatN";
1567 -- NODOC (see /INLINE)
1569 S_GCC_Jumps : aliased constant S := "/LONGJMP_SETJMP " &
1570 "-gnatL";
1571 -- /NOLONGJMP_SETJMP (D)
1572 -- /LONGJMP_SETJMP
1574 -- Causes the longjmp/setjmp approach to be used for exception handling.
1576 -- The default mechanism for OpenVMS is zero cost exceptions. This
1577 -- qualifier can be used to modify this default, but it must be used for
1578 -- all units in the partition, including all run-time library units.
1579 -- One way to achieve this is to use the /ALL_FILES and /FORCE_COMPILE
1580 -- for gnatmake.
1581 -- This option is rarely used. One case in which it may be advantageous is
1582 -- in an application where exception raising is common and the overall
1583 -- performance of the application is improved by favoring exception
1584 -- propagation.
1586 S_GCC_Length : aliased constant S := "/MAX_LINE_LENGTH=#" &
1587 "-gnatyM#";
1588 -- /MAX_LINE_LENGTH=nnn
1590 -- Set maximum line length.
1591 -- The length of lines must not exceed the given value nnn.
1593 S_GCC_List : aliased constant S := "/LIST " &
1594 "-gnatl";
1595 -- /NOLIST (D)
1596 -- /LIST
1598 -- Cause a full listing of the file to be generated.
1600 S_GCC_Mapping : aliased constant S := "/MAPPING_FILE=<" &
1601 "-gnatem>";
1602 -- /MAPPING_FILE=file_name
1604 -- Use mapping file file_name
1606 -- A mapping file is a way to communicate to the compiler two mappings:
1607 -- from unit names to file names (without any directory information) and
1608 -- from file names to path names (with full directory information).
1609 -- These mappings are used by the compiler to short-circuit the path
1610 -- search.
1612 -- The use of mapping files is not required for correct operation of the
1613 -- compiler, but mapping files can improve efficiency, particularly when
1614 -- sources are read over a slow network connection. In normal operation,
1615 -- you need not be concerned with the format or use of mapping files,
1616 -- and /MAPPING_FILE is not a qualifier that you would use explicitly.
1617 -- It is intended only for use by automatic tools such as GNAT MAKE
1618 -- running under the project file facility. The description here of the
1619 -- format of mapping files is provided for completeness and for possible
1620 -- use by other tools.
1622 -- A mapping file is a sequence of sets of three lines. In each set, the
1623 -- first line is the unit name, in lower case, with "%s" appended for
1624 -- specifications and "%b" appended for bodies; the second line is the
1625 -- file name; and the third line is the path name.
1627 -- Example:
1629 -- main%b
1630 -- main.2_ada
1631 -- /gnat/project1/sources/main.2_ada
1633 -- When qualifier ?MAPPING_FILE is specified, the compiler will create in
1634 -- memory the two mappings from the specified file. If there is any
1635 -- problem (non existent file, truncated file or duplicate entries),
1636 -- no mapping will be created.
1638 -- Several /MAPPING_FILE qualifiers may be specified; however, only the
1639 -- last one on the command line will be taken into account.
1641 -- When using a project file, GNAT MAKE creates a temporary mapping file
1642 -- and communicates it to the compiler using this switch.
1644 S_GCC_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
1645 "DEFAULT " &
1646 "-vP0 " &
1647 "MEDIUM " &
1648 "-vP1 " &
1649 "HIGH " &
1650 "-vP2";
1651 -- /MESSAGES_PROJECT_FILE[=messages-option]
1653 -- Specifies the "verbosity" of the parsing of project files.
1654 -- messages-option may be one of the following:
1656 -- DEFAULT (D) No messages are output if there is no error or warning.
1658 -- MEDIUM A small number of messages are output.
1660 -- HIGH A great number of messages are output, most of them not
1661 -- being useful for the user.
1663 S_GCC_Nesting : aliased constant S := "/MAX_NESTING=#" &
1664 "-gnatyL#";
1665 -- /MAX_NESTING=nnn
1667 -- Set maximum level of nesting of constructs (including subprograms,
1668 -- loops, blocks, packages, and conditionals).
1669 -- The level of nesting must not exceed the given value nnn.
1670 -- A value of zero disable this style check (not enabled by default).
1672 S_GCC_Noadc : aliased constant S := "/NO_GNAT_ADC " &
1673 "-gnatA";
1674 -- /NO_GNAT_ADC
1676 -- Cause the compiler to ignore any configuration pragmas file GNAT.ADC
1677 -- in the default directory. Implied by qualifier /PROJECT_FILE.
1678 -- Often used in conjunction with qualifier /CONFIGURATION_PRAGMAS_FILE.
1680 S_GCC_Noload : aliased constant S := "/NOLOAD " &
1681 "-gnatc";
1682 -- /NOLOAD
1684 -- Cause the compiler to operate in semantic check mode with full
1685 -- checking for all illegalities specified in the reference manual, but
1686 -- without generation of any source code (no object or ALI file
1687 -- generated).
1689 -- Since dependent files must be accessed, you must follow the GNAT
1690 -- semantic restrictions on file structuring to operate in this mode:
1692 -- o The needed source files must be accessible.
1693 -- o Each file must contain only one compilation unit.
1694 -- o The file name and unit name must match.
1696 -- The output consists of error messages as appropriate. No object file
1697 -- or ALI file is generated. The checking corresponds exactly to the
1698 -- notion of legality in the Ada reference manual.
1700 -- Any unit can be compiled in semantics-checking-only mode, including
1701 -- units that would not normally be compiled (generic library units,
1702 -- subunits, and specifications where a separate body is present).
1704 S_GCC_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
1705 "-nostdinc";
1706 -- /NOSTD_INCLUDES
1708 -- Do not look in the default directory for source files of the runtime.
1710 S_GCC_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
1711 "-nostdlib";
1712 -- /NOSTD_LIBRARIES
1714 -- Do not look for library files in the system default directory.
1716 S_GCC_Opt : aliased constant S := "/OPTIMIZE=" &
1717 "ALL " &
1718 "-O2,!-O0,!-O1,!-O3 " &
1719 "NONE " &
1720 "-O0,!-O1,!-O2,!-O3 " &
1721 "SOME " &
1722 "-O1,!-O0,!-O2,!-O3 " &
1723 "DEVELOPMENT " &
1724 "-O1,!-O0,!-O2,!-O3 " &
1725 "UNROLL_LOOPS " &
1726 "-funroll-loops " &
1727 "NO_STRICT_ALIASING " &
1728 "-fno-strict-aliasing " &
1729 "INLINING " &
1730 "-O3,!-O0,!-O1,!-O2";
1731 -- /NOOPTIMIZE (D)
1732 -- /OPTIMIZE[=(keyword[,...])]
1734 -- Selects the level of optimization for your program. The supported
1735 -- keywords are as follows:
1737 -- ALL (D) Perform most optimizations, including those that
1738 -- may be expensive.
1740 -- NONE Do not do any optimizations. Same as /NOOPTIMIZE.
1742 -- SOME Perform some optimizations, but omit ones that
1743 -- are costly in compilation time.
1745 -- DEVELOPMENT Same as SOME.
1747 -- INLINING Full optimization, and also attempt automatic inlining
1748 -- of small subprograms within a unit
1750 -- UNROLL_LOOPS Try to unroll loops. This keyword may be specified
1751 -- with any keyword above other than NONE. Loop
1752 -- unrolling usually, but not always, improves the
1753 -- performance of programs.
1755 -- NO_STRICT_ALIASING
1756 -- Suppress aliasing analysis. When optimization is
1757 -- enabled (ALL or SOME above), the compiler assumes
1758 -- that pointers do in fact point to legitimate values
1759 -- of the pointer type (allocated from the proper pool).
1760 -- If this assumption is violated, e.g. by the use of
1761 -- unchecked conversion, then it may be necessary to
1762 -- suppress this assumption using this keyword (which
1763 -- may be specified only in conjunction with any
1764 -- keyword above, other than NONE).
1766 S_GCC_OptX : aliased constant S := "/NOOPTIMIZE " &
1767 "-O0,!-O1,!-O2,!-O3";
1768 -- NODOC (see /OPTIMIZE)
1770 S_GCC_Polling : aliased constant S := "/POLLING " &
1771 "-gnatP";
1772 -- /NOPOLLING (D)
1773 -- /POLLING
1775 -- Enable polling. See the description of pragma Polling in the GNAT
1776 -- Reference Manual for full details.
1778 S_GCC_Project : aliased constant S := "/PROJECT_FILE=<" &
1779 "-P>";
1780 -- /PROJECT_FILE=filename
1782 -- Specifies the main project file to be used. The project files rooted
1783 -- at the main project file will be parsed before the invocation of the
1784 -- compiler. The source and object directories to be searched will be
1785 -- communicated to the compiler through logical names
1786 -- ADA_PRJ_INCLUDE_FILE and ADA_PRJ_OBJECTS_FILE.
1788 S_GCC_Psta : aliased constant S := "/PRINT_STANDARD " &
1789 "-gnatS";
1790 -- /PRINT_STANDARD
1792 -- cause the compiler to output a representation of package Standard
1793 -- in a form very close to standard Ada. It is not quite possible to
1794 -- do this and remain entirely Standard (since new numeric base types
1795 -- cannot be created in standard Ada), but the output is easily
1796 -- readable to any Ada programmer, and is useful to determine the
1797 -- characteristics of target dependent types in package Standard.
1799 S_GCC_Report : aliased constant S := "/REPORT_ERRORS=" &
1800 "VERBOSE " &
1801 "-gnatv " &
1802 "BRIEF " &
1803 "-gnatb " &
1804 "FULL " &
1805 "-gnatf " &
1806 "IMMEDIATE " &
1807 "-gnatdO " &
1808 "DEFAULT " &
1809 "!-gnatb,!-gnatv";
1810 -- /NOREPORT_ERRORS (D)
1811 -- /REPORT_ERRORS[=(keyword[,...])]
1813 -- Change the way errors are reported. The following keywords are
1814 -- supported:
1816 -- VERBOSE (D) Verbose mode. Full error output with source lines
1817 -- to SYS$OUTPUT.
1819 -- BRIEF Generate the brief format error messages to
1820 -- SYS$OUTPUT as well as the verbose format message or
1821 -- full listing.
1823 -- FULL Normally, the compiler suppresses error messages that
1824 -- are likely to be redundant. This keyword causes all
1825 -- error messages to be generated. One particular effect
1826 -- is for the case of references to undefined variables.
1827 -- If a given variable is referenced several times, the
1828 -- normal format of messages produces one error. With
1829 -- FULL, each undefined reference produces a separate
1830 -- error message.
1832 -- IMMEDIATE Normally, the compiler saves up error messages and
1833 -- generates them at the end of compilation in proper
1834 -- sequence. This keyword causes error messages to be
1835 -- generated as soon as they are detected. The use of
1836 -- IMMEDIATE usually causes error messages to be
1837 -- generated out of sequence. Use it when the compiler
1838 -- blows up due to an internal error. In this case, the
1839 -- error messages may be lost. Sometimes blowups are
1840 -- the result of mishandled error messages, so you may
1841 -- want to run with this keyword to determine whether
1842 -- any error messages were generated.
1844 -- DEFAULT Turn off VERBOSE and BRIEF. Same as /NOREPORT_ERRORS.
1846 S_GCC_ReportX : aliased constant S := "/NOREPORT_ERRORS " &
1847 "!-gnatb,!-gnatv";
1848 -- NODOC (see /REPORT_ERRORS)
1850 S_GCC_Repinfo : aliased constant S := "/REPRESENTATION_INFO=" &
1851 "DEFAULT " &
1852 "-gnatR " &
1853 "NONE " &
1854 "-gnatR0 " &
1855 "ARRAYS " &
1856 "-gnatR1 " &
1857 "ARRAYS_FILE " &
1858 "-gnatR1s " &
1859 "OBJECTS " &
1860 "-gnatR2 " &
1861 "OBJECTS_FILE " &
1862 "-gnatR2s " &
1863 "SYMBOLIC " &
1864 "-gnatR3 " &
1865 "SYMBOLIC_FILE " &
1866 "-gnatR3s";
1867 -- /NOREPRESENTATION_INFO (D)
1868 -- /REPRESENTATION_INFO[=(keyword[,...])]
1870 -- This qualifier controls output from the compiler of a listing showing
1871 -- representation information for declared types and objects.
1873 -- ARRAYS (D) Size and alignment information is listed for
1874 -- declared array and record types.
1876 -- ARRAYS_FILE Similar to ARRAYS, but the output is to a file
1877 -- with the name 'file_rep' where 'file' is the name
1878 -- of the corresponding source file.
1880 -- NONE no information is output (equivalent to omitting
1881 -- the /REPRESENTATION_INFO qualifiers).
1883 -- OBJECTS Size and alignment information is listed for all
1884 -- declared types and objects.
1886 -- OBJECTS_FILE Similar to OBJECTS, but the output is to a file
1887 -- with the name 'file_rep' where 'file' is the name
1888 -- of the corresponding source file.
1890 -- SYMBOLIC Symbolic expression information for values that
1891 -- are computed at run time for variant records.
1893 -- SYMBOLIC_FILE Similar to SYMBOLIC, but the output is to a file
1894 -- with the name 'file_rep' where 'file' is the name
1895 -- of the corresponding source file.
1897 -- DEFAULT Equivalent to ARRAYS.
1899 S_GCC_RepinfX : aliased constant S := "/NOREPRESENTATION_INFO " &
1900 "!-gnatR";
1901 -- NODOC (see /REPRESENTATION_INFO)
1903 S_GCC_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
1904 "--RTS=|";
1905 -- /RUNTIME_SYSTEM=xxx
1907 -- Build against an alternate runtime system named xxx or RTS-xxx.
1909 S_GCC_Search : aliased constant S := "/SEARCH=*" &
1910 "-I*";
1911 -- /SEARCH=(directory[,...])
1913 -- When looking for source files also look in directories specified.
1915 S_GCC_Style : aliased constant S := "/STYLE_CHECKS=" &
1916 "ALL_BUILTIN " &
1917 "-gnaty " &
1918 "1 " &
1919 "-gnaty1 " &
1920 "2 " &
1921 "-gnaty2 " &
1922 "3 " &
1923 "-gnaty3 " &
1924 "4 " &
1925 "-gnaty4 " &
1926 "5 " &
1927 "-gnaty5 " &
1928 "6 " &
1929 "-gnaty6 " &
1930 "7 " &
1931 "-gnaty7 " &
1932 "8 " &
1933 "-gnaty8 " &
1934 "9 " &
1935 "-gnaty9 " &
1936 "ATTRIBUTE " &
1937 "-gnatya " &
1938 "BLANKS " &
1939 "-gnatyb " &
1940 "COMMENTS " &
1941 "-gnatyc " &
1942 "DOS_LINE_ENDINGS " &
1943 "-gnatyd " &
1944 "END " &
1945 "-gnatye " &
1946 "VTABS " &
1947 "-gnatyf " &
1948 "GNAT " &
1949 "-gnatg " &
1950 "HTABS " &
1951 "-gnatyh " &
1952 "IF_THEN " &
1953 "-gnatyi " &
1954 "KEYWORD " &
1955 "-gnatyk " &
1956 "LAYOUT " &
1957 "-gnatyl " &
1958 "LINE_LENGTH " &
1959 "-gnatym " &
1960 "NONE " &
1961 "-gnatyN " &
1962 "STANDARD_CASING " &
1963 "-gnatyn " &
1964 "ORDERED_SUBPROGRAMS " &
1965 "-gnatyo " &
1966 "PRAGMA " &
1967 "-gnatyp " &
1968 "REFERENCES " &
1969 "-gnatyr " &
1970 "SPECS " &
1971 "-gnatys " &
1972 "TOKEN " &
1973 "-gnatyt " &
1974 "UNNECESSARY_BLANK_LINES " &
1975 "-gnatyu " &
1976 "XTRA_PARENS " &
1977 "-gnatyx ";
1978 -- /NOSTYLE_CHECKS (D)
1979 -- /STYLE_CHECKS[=(keyword,[...])]
1981 -- Normally, GNAT permits any code layout consistent with the reference
1982 -- manual requirements. This qualifier imposes style checking on the
1983 -- input source code. The following keywords are supported:
1985 -- ALL_BUILTIN (D) Equivalent to the following list of options:
1986 -- 3, ATTRIBUTE, BLANKS, COMMENTS, END, VTABS,
1987 -- HTABS, IF_THEN, KEYWORD, LAYOUT, LINE_LENGTH,
1988 -- PRAGMA, REFERENCES, SPECS, TOKEN.
1990 -- 1 .. 9 Specify indentation level from 1 to 9.
1991 -- The general style of required indentation is as
1992 -- specified by the examples in the Ada Reference
1993 -- Manual. Full line comments must be aligned with
1994 -- the -- starting on a column that is a multiple
1995 -- of the alignment level.
1997 -- ATTRIBUTE Check attribute casing.
1998 -- Attribute names, including the case of keywords
1999 -- such as digits used as attributes names,
2000 -- must be written in mixed case, that is,
2001 -- the initial letter and any letter following an
2002 -- underscore must be uppercase.
2003 -- All other letters must be lowercase.
2005 -- BLANKS Blanks not allowed at statement end.
2006 -- Trailing blanks are not allowed at the end of
2007 -- statements. The purpose of this rule, together
2008 -- with option HTABS (no horizontal tabs), is to
2009 -- enforce a canonical format for the use of
2010 -- blanks to separate source tokens.
2012 -- COMMENTS Check comments.
2013 -- Comments must meet the following set of rules:
2015 -- * The "--" that starts the column must either
2016 -- start in column one, or else at least one
2017 -- blank must precede this sequence.
2019 -- * Comments that follow other tokens on a line
2020 -- must have at least one blank following the
2021 -- "--" at the start of the comment.
2023 -- * Full line comments must have two blanks
2024 -- following the "--" that starts the comment,
2025 -- with the following exceptions.
2027 -- * A line consisting only of the "--"
2028 -- characters, possibly preceded by blanks is
2029 -- permitted.
2031 -- * A comment starting with "--x" where x is
2032 -- a special character is permitted. This
2033 -- allows proper processing of the output
2034 -- generated by specialized tools including
2035 -- gnatprep (where --! is used) and the SPARK
2036 -- annnotation language (where --# is used).
2037 -- For the purposes of this rule, a special
2038 -- character is defined as being in one of the
2039 -- ASCII ranges 16#21#..16#2F# or
2040 -- 16#3A#..16#3F#.
2042 -- * A line consisting entirely of minus signs,
2043 -- possibly preceded by blanks, is permitted.
2044 -- This allows the construction of box
2045 -- comments where lines of minus signs are
2046 -- used to form the top and bottom of the box.
2048 -- * If a comment starts and ends with "--" is
2049 -- permitted as long as at least one blank
2050 -- follows the initial "--". Together with
2051 -- the preceding rule, this allows the
2052 -- construction of box comments, as shown in
2053 -- the following example:
2055 -- ---------------------------
2056 -- -- This is a box comment --
2057 -- ---------------------------
2059 -- DOS_LINE_ENDINGS Check that no DOS line terminators are present
2060 -- All lines must be terminated by a single
2061 -- ASCII.LF character. In particular the DOS line
2062 -- terminator sequence CR / LF is not allowed).
2064 -- END Check end/exit labels.
2065 -- Optional labels on end statements ending
2066 -- subprograms and on exit statements exiting
2067 -- named loops, are required to be present.
2069 -- GNAT Enforces a set of style conventions that
2070 -- correspond to the style used in the GNAT
2071 -- source code. All compiler units are always
2072 -- compile with this keyword specified.
2074 -- You can find the full documentation for the
2075 -- style conventions imposed by this keyword
2076 -- in the body of the package "Style" in the
2077 -- compiler sources.
2079 -- You should not normally use this keyword.
2080 -- However, you MUST use it for compiling any
2081 -- language-defined unit, or for adding children
2082 -- to any language-defined unit other than
2083 -- "Standard".
2085 -- HTABS No horizontal tabs.
2086 -- Horizontal tab characters are not permitted in
2087 -- the source text. Together with the BLANKS
2088 -- (no blanks at end of line) option, this
2089 -- enforces a canonical form for the use of blanks
2090 -- to separate source tokens.
2092 -- IF_THEN Check if-then layout.
2093 -- The keyword then must appear either on the
2094 -- same line as the corresponding if, or on a line
2095 -- on its own, lined up under the if with at least
2096 -- one non-blank line in between containing all or
2097 -- part of the condition to be tested.
2099 -- KEYWORD Check keyword casing.
2100 -- All keywords must be in lower case (with the
2101 -- exception of keywords such as digits used as
2102 -- attribute names to which this check does not
2103 -- apply).
2105 -- LAYOUT Check layout.
2106 -- Layout of statement and declaration constructs
2107 -- must follow the recommendations in the Ada
2108 -- Reference Manual, as indicated by the form of
2109 -- the syntax rules. For example an else keyword
2110 -- must be lined up with the corresponding if
2111 -- keyword.
2113 -- There are two respects in which the style rule
2114 -- enforced by this check option are more liberal
2115 -- than those in the Ada Reference Manual.
2116 -- First in the case of record declarations,
2117 -- it is permissible to put the record keyword on
2118 -- the same line as the type keyword, and then
2119 -- the end in end record must line up under type.
2120 -- For example, either of the following two
2121 -- layouts is acceptable:
2123 -- type q is record
2124 -- a : integer;
2125 -- b : integer;
2126 -- end record;
2128 -- type q is
2129 -- record
2130 -- a : integer;
2131 -- b : integer;
2132 -- end record;
2134 -- Second, in the case of a block statement,
2135 -- a permitted alternative is to put the block
2136 -- label on the same line as the declare or begin
2137 -- keyword, and then line the end keyword up under
2138 -- the block label. For example both the following
2139 -- are permitted:
2143 -- Block : declare
2144 -- A : Integer := 3;
2145 -- begin
2146 -- Proc (A, A);
2147 -- end Block;
2149 -- Block :
2150 -- declare
2151 -- A : Integer := 3;
2152 -- begin
2153 -- Proc (A, A);
2154 -- end Block;
2156 -- The same alternative format is allowed for
2157 -- loops. For example, both of the following are
2158 -- permitted:
2162 -- Clear : while J < 10 loop
2163 -- A (J) := 0;
2164 -- end loop Clear;
2166 -- Clear :
2167 -- while J < 10 loop
2168 -- A (J) := 0;
2169 -- end loop Clear;
2173 -- LINE_LENGTH Check maximum line length.
2174 -- The length of source lines must not exceed 79
2175 -- characters, including any trailing blanks
2176 -- The value of 79 allows convenient display on
2177 -- an 80 character wide device or window, allowing
2178 -- for possible special treatment of 80 character
2179 -- lines.
2181 -- NONE Clear any previously set style checks.
2183 -- ORDERED_SUBPROGRAMS Check order of subprogram bodies.
2184 -- All subprogram bodies in a given scope (e.g.
2185 -- a package body) must be in alphabetical order.
2186 -- The ordering rule uses normal Ada rules for
2187 -- comparing strings, ignoring casing of letters,
2188 -- except that if there is a trailing numeric
2189 -- suffix, then the value of this suffix is used
2190 -- in the ordering (e.g. Junk2 comes before
2191 -- Junk10).
2193 -- PRAGMA Check pragma casing.
2194 -- Pragma names must be written in mixed case,
2195 -- that is, the initial letter and any letter
2196 -- following an underscore must be uppercase.
2197 -- All other letters must be lowercase.
2199 -- REFERENCES Check references.
2200 -- All identifier references must be cased in the
2201 -- same way as the corresponding declaration.
2202 -- No specific casing style is imposed on
2203 -- identifiers. The only requirement is for
2204 -- consistency of references with declarations.
2206 -- SPECS Check separate specs.
2207 -- Separate declarations ("specs") are required
2208 -- for subprograms (a body is not allowed to serve
2209 -- as its own declaration). The only exception is
2210 -- that parameterless library level procedures are
2211 -- not required to have a separate declaration.
2212 -- This exception covers the most frequent form of
2213 -- main program procedures.
2215 -- STANDARD_CASING Check casing of entities in Standard.
2216 -- Any identifier from Standard must be cased to
2217 -- match the presentation in the Ada Reference
2218 -- Manual (for example, Integer and ASCII.NUL).
2220 -- TOKEN Check token spacing.
2221 -- The following token spacing rules are enforced:
2223 -- * The keywords abs and not must be followed
2224 -- by a space.
2226 -- * The token => must be surrounded by spaces.
2228 -- * The token <> must be preceded by a space or
2229 -- a left parenthesis.
2231 -- * Binary operators other than ** must be
2232 -- surrounded by spaces. There is no
2233 -- restriction on the layout of the ** binary
2234 -- operator.
2236 -- * Colon must be surrounded by spaces.
2238 -- * Colon-equal (assignment) must be surrounded
2239 -- by spaces.
2241 -- * Comma must be the first non-blank character
2242 -- on the line, or be immediately preceded by
2243 -- a non-blank character, and must be followed
2244 -- by a space.
2246 -- * If the token preceding a left paren ends
2247 -- with a letter or digit, then a space must
2248 -- separate the two tokens.
2250 -- * A right parenthesis must either be the
2251 -- first non-blank character on a line, or it
2252 -- must be preceded by a non-blank character.
2254 -- * A semicolon must not be preceded by
2255 -- a space, and must not be followed by
2256 -- a non-blank character.
2258 -- * A unary plus or minus may not be followed
2259 -- by a space.
2261 -- * A vertical bar must be surrounded by
2262 -- spaces.
2264 -- In the above rules, appearing in column one is
2265 -- always permitted, that is, counts as meeting
2266 -- either a requirement for a required preceding
2267 -- space, or as meeting a requirement for no
2268 -- preceding space.
2270 -- Appearing at the end of a line is also always
2271 -- permitted, that is, counts as meeting either
2272 -- a requirement for a following space,
2273 -- or as meeting a requirement for no following
2274 -- space.
2276 -- UNNECESSARY_BLANK_LINES
2277 -- Check for unnecessary blank lines.
2278 -- A blank line is considered unnecessary if it
2279 -- appears at the end of the file, or if more
2280 -- than one blank line occurs in sequence.
2282 -- VTABS No form feeds or vertical tabs.
2283 -- Form feeds or vertical tab characters are not
2284 -- permitted in the source text.
2286 -- XTRA_PARENS Check for the use of an unnecessary extra
2287 -- level of parentheses (C - style) around
2288 -- conditions in if statements, while statements
2289 -- and exit statements.
2291 S_GCC_StyleX : aliased constant S := "/NOSTYLE_CHECKS " &
2292 "!-gnatg,!-gnaty*";
2293 -- NODOC (see /STYLE_CHECKS)
2295 S_GCC_Symbol : aliased constant S := "/SYMBOL_PREPROCESSING=" & '"' &
2296 "-gnateD" & '"';
2297 -- /SYMBOL_PREPROCESSING="symbol=value"
2299 -- Define or redefine a preprocessing symbol, associated with value.
2300 -- If "=value" is not specified, then the value of the symbol is True.
2301 -- A symbol is an identifier, following normal Ada (case-insensitive)
2302 -- rules for its syntax, and value is any sequence (including an empty
2303 -- sequence) of characters from the set (letters, digits, period,
2304 -- underline). Ada reserved words may be used as symbols, with the
2305 -- exceptions of "if", "else", "elsif", "end", "and", "or" and "then".
2307 -- A symbol declared with this qualifier on the command line replaces
2308 -- a symbol with the same name either in a definition file or specified
2309 -- with a switch -D in the preprocessor data file.
2311 -- This qualifier is similar to qualifier /ASSOCIATE of
2312 -- GNAT PREPROCESSING.
2314 S_GCC_Syntax : aliased constant S := "/SYNTAX_ONLY " &
2315 "-gnats";
2316 -- /NOSYNTAX_ONLY (D)
2317 -- /SYNTAX_ONLY
2319 -- Run GNAT in syntax checking only mode. You can check a series of
2320 -- files in a single command, and can use wild cards to specify such a
2321 -- group of files.
2323 -- You may use other qualifiers in conjunction with this qualifier. In
2324 -- particular, /LIST and /REPORT_ERRORS=VERBOSE are useful to control the
2325 -- format of any generated error messages.
2327 -- The output is simply the error messages, if any. No object file or ALI
2328 -- file is generated by a syntax-only compilation. Also, no units other
2329 -- than the one specified are accessed. For example, if a unit "X" with's
2330 -- a unit "Y", compiling unit "X" in syntax check only mode does not
2331 -- access the source file containing unit "Y".
2333 -- Normally, GNAT allows only a single unit in a source file. However,
2334 -- this restriction does not apply in syntax-check-only mode, and it is
2335 -- possible to check a file containing multiple compilation units
2336 -- concatenated together. This is primarily used by the GNAT CHOP
2337 -- command.
2339 S_GCC_Table : aliased constant S := "/TABLE_MULTIPLIER=#" &
2340 "-gnatT#";
2341 -- /TABLE_MULTIPLIER=nnn
2343 -- All compiler tables start at nnn times usual starting size.
2345 S_GCC_Trace : aliased constant S := "/TRACE_UNITS " &
2346 "-gnatdc";
2347 -- /TRACE_UNITS
2348 -- /NOTRACE_UNITS
2350 -- This switch that does for the frontend what /VERBOSE does for the
2351 -- backend. The system prints the name of each unit, either a compilation
2352 -- unit or nested unit, as it is being analyzed.
2354 S_GCC_Tree : aliased constant S := "/TREE_OUTPUT " &
2355 "-gnatt";
2356 -- /TREE_OUTPUT
2357 -- /NOTREE_OUTPUT
2359 -- Cause GNAT to write the internal tree for a unit to a file (with the
2360 -- filetype ATB for a body or ATS for a spec). This is not normally
2361 -- required, but is used by separate analysis tools. Typically these
2362 -- tools do the necessary compilations automatically, so you should never
2363 -- have to specify this switch in normal operation.
2365 S_GCC_Trys : aliased constant S := "/TRY_SEMANTICS " &
2366 "-gnatq";
2367 -- /TRY_SEMANTICS
2368 -- /NOTRY_SEMANTICS
2370 -- In normal operation mode the compiler first parses the program and
2371 -- determines if there are any syntax errors. If there are, appropriate
2372 -- error messages are generated and compilation is immediately
2373 -- terminated. This qualifier tells GNAT to continue with semantic
2374 -- analysis even if syntax errors have been found. This may enable the
2375 -- detection of more errors in a single run. On the other hand, the
2376 -- semantic analyzer is more likely to encounter some internal fatal
2377 -- error when given a syntactically invalid tree.
2379 S_GCC_Units : aliased constant S := "/UNITS_LIST " &
2380 "-gnatu";
2381 -- /NOUNITS_LIST (D)
2382 -- /UNITS_LIST
2384 -- Print a list of units required by this compilation on SYS$OUTPUT. The
2385 -- listing includes all units on which the unit being compiled depends
2386 -- either directly or indirectly.
2388 S_GCC_Unique : aliased constant S := "/UNIQUE_ERROR_TAG " &
2389 "-gnatU";
2390 -- /NOUNIQUE_ERROR_TAG (D)
2391 -- /UNIQUE_ERROR_TAG
2393 -- Tag compiler error messages with the string "error: ".
2395 S_GCC_Upcase : aliased constant S := "/UPPERCASE_EXTERNALS " &
2396 "-gnatF";
2397 -- /NOUPPERCASE_EXTERNALS (D)
2398 -- /UPPERCASE_EXTERNALS
2400 -- Fold default and explicit external names in pragmas Import and Export
2401 -- to uppercase for compatibility with the default behavior of DEC C.
2403 S_GCC_Valid : aliased constant S := "/VALIDITY_CHECKING=" &
2404 "DEFAULT " &
2405 "-gnatVd " &
2406 "NODEFAULT " &
2407 "-gnatVD " &
2408 "COPIES " &
2409 "-gnatVc " &
2410 "NOCOPIES " &
2411 "-gnatVC " &
2412 "FLOATS " &
2413 "-gnatVf " &
2414 "NOFLOATS " &
2415 "-gnatVF " &
2416 "IN_PARAMS " &
2417 "-gnatVi " &
2418 "NOIN_PARAMS " &
2419 "-gnatVI " &
2420 "MOD_PARAMS " &
2421 "-gnatVm " &
2422 "NOMOD_PARAMS " &
2423 "-gnatVM " &
2424 "OPERANDS " &
2425 "-gnatVo " &
2426 "NOOPERANDS " &
2427 "-gnatVO " &
2428 "PARAMETERS " &
2429 "-gnatVp " &
2430 "NOPARAMETERS " &
2431 "-gnatVP " &
2432 "RETURNS " &
2433 "-gnatVr " &
2434 "NORETURNS " &
2435 "-gnatVR " &
2436 "SUBSCRIPTS " &
2437 "-gnatVs " &
2438 "NOSUBSCRIPTS " &
2439 "-gnatVS " &
2440 "TESTS " &
2441 "-gnatVt " &
2442 "NOTESTS " &
2443 "-gnatVT " &
2444 "ALL " &
2445 "-gnatVa " &
2446 "NONE " &
2447 "-gnatVn";
2448 -- /VALIDITY_CHECKING[=(keyword,[...])]
2450 -- Control level of validity checking.
2452 -- DEFAULT (D) In this mode checks are made to prevent
2453 -- erroneous behavior in accordance with the RM.
2454 -- Notably extra checks may be needed for case
2455 -- statements and subscripted array assignments.
2457 -- NONE No special checks for invalid values are
2458 -- performed. This means that references to
2459 -- uninitialized variables can cause erroneous
2460 -- behavior from constructs like case statements
2461 -- and subscripted array assignments. In this
2462 -- mode, invalid values can lead to erroneous
2463 -- behavior.
2465 -- FULL Every assignment is checked for validity, so
2466 -- that it is impossible to assign invalid values.
2467 -- The RM specifically allows such assignments,
2468 -- but in this mode, invalid values can never be
2469 -- assigned, and an attempt to perform such an
2470 -- assignment immediately raises Constraint_Error.
2471 -- This behavior is allowed (but not required) by
2472 -- the RM. This mode is intended as a debugging aid,
2473 -- and may be useful in helping to track down
2474 -- uninitialized variables. It may be useful to
2475 -- use this in conjunction with the Normalize_Scalars
2476 -- pragma which attempts to initialize with invalid
2477 -- values where possible.
2479 S_GCC_Verbose : aliased constant S := "/VERBOSE " &
2480 "-v";
2481 -- /VERBOSE
2482 -- /NOVERBOSE
2484 -- Show commands generated by the GCC driver. Normally used only for
2485 -- debugging purposes or if you need to be sure what version of the
2486 -- compiler you are executing.
2488 S_GCC_Verb_Asm : aliased constant S := "/VERBOSE_ASM " &
2489 "-S,-verbose_asm,!-c";
2490 -- /NOASM (D)
2491 -- /ASM
2493 -- Use to cause the assembler source file to be generated, using S as the
2494 -- filetype, instead of the object file. This may be useful if you need
2495 -- to examine the generated assembly code.
2497 S_GCC_Warn : aliased constant S := "/WARNINGS=" &
2498 "DEFAULT " &
2499 "!-gnatws,!-gnatwe " &
2500 "ALL " &
2501 "-gnatwa " &
2502 "NOALL " &
2503 "-gnatwA " &
2504 "ALL_GCC " &
2505 "-Wall " &
2506 "BAD_FIXED_VALUES " &
2507 "-gnatwb " &
2508 "NO_BAD_FIXED_VALUES " &
2509 "-gnatwB " &
2510 "CONDITIONALS " &
2511 "-gnatwc " &
2512 "NOCONDITIONALS " &
2513 "-gnatwC " &
2514 "CONSTANT_VARIABLES " &
2515 "-gnatwk " &
2516 "NOCONSTANT_VARIABLES " &
2517 "-gnatwK " &
2518 "IMPLICIT_DEREFERENCE " &
2519 "-gnatwd " &
2520 "NO_IMPLICIT_DEREFERENCE " &
2521 "-gnatwD " &
2522 "ELABORATION " &
2523 "-gnatwl " &
2524 "NOELABORATION " &
2525 "-gnatwL " &
2526 "ERRORS " &
2527 "-gnatwe " &
2528 "HIDING " &
2529 "-gnatwh " &
2530 "NOHIDING " &
2531 "-gnatwH " &
2532 "IMPLEMENTATION " &
2533 "-gnatwi " &
2534 "NOIMPLEMENTATION " &
2535 "-gnatwI " &
2536 "INEFFECTIVE_INLINE " &
2537 "-gnatwp " &
2538 "NOINEFFECTIVE_INLINE " &
2539 "-gnatwP " &
2540 "MODIFIED_UNREF " &
2541 "-gnatwm " &
2542 "NOMODIFIED_UNREF " &
2543 "-gnatwM " &
2544 "OPTIONAL " &
2545 "-gnatwa " &
2546 "NOOPTIONAL " &
2547 "-gnatwA " &
2548 "NORMAL " &
2549 "-gnatwn " &
2550 "OBSOLESCENT " &
2551 "-gnatwj " &
2552 "NOOBSOLESCENT " &
2553 "-gnatwJ " &
2554 "OVERLAYS " &
2555 "-gnatwo " &
2556 "NOOVERLAYS " &
2557 "-gnatwO " &
2558 "REDUNDANT " &
2559 "-gnatwr " &
2560 "NOREDUNDANT " &
2561 "-gnatwR " &
2562 "SUPPRESS " &
2563 "-gnatws " &
2564 "UNINITIALIZED " &
2565 "-Wuninitialized " &
2566 "UNREFERENCED_FORMALS " &
2567 "-gnatwf " &
2568 "NOUNREFERENCED_FORMALS " &
2569 "-gnatwF " &
2570 "UNRECOGNIZED_PRAGMAS " &
2571 "-gnatwg " &
2572 "NOUNRECOGNIZED_PRAGMAS " &
2573 "-gnatwG " &
2574 "UNUSED " &
2575 "-gnatwu " &
2576 "NOUNUSED " &
2577 "-gnatwU " &
2578 "VARIABLES_UNINITIALIZED " &
2579 "-gnatwv " &
2580 "NOVARIABLES_UNINITIALIZED " &
2581 "-gnatwV " &
2582 "IMPORT_EXPORT_PRAGMAS " &
2583 "-gnatwx " &
2584 "NOIMPORT_EXPORT_PRAGMAS " &
2585 "-gnatwX " &
2586 "ADA_2005_COMPATIBILITY " &
2587 "-gnatwy " &
2588 "NOADA_2005_COMPATIBILITY " &
2589 "-gnatwY " &
2590 "UNCHECKED_CONVERSIONS " &
2591 "-gnatwz " &
2592 "NOUNCHECKED_CONVERSIONS " &
2593 "-gnatwZ";
2594 -- /NOWARNINGS
2596 -- Suppress the output of all warning messages from the GNAT front end.
2597 -- Note that it does not suppress warnings from the gcc back end.
2599 -- /WARNINGS[=(keyword[,...])]
2601 -- In addition to error messages, corresponding to illegalities as
2602 -- defined in the reference manual, the compiler detects two kinds of
2603 -- warning situations. First, the compiler considers some constructs
2604 -- suspicious and generates a warning message to alert you to a possible
2605 -- error. Second, if the compiler detects a situation that is sure to
2606 -- raise an exception at runtime, it generates a warning message.
2608 -- You may specify the following keywords to change this behavior:
2610 -- DEFAULT (D) The default behavior above.
2612 -- ALL Activate all optional warnings.
2613 -- Activates most optional warning messages,
2614 -- see remaining list in this section for
2615 -- details on optional warning messages that
2616 -- can be individually controlled.
2617 -- The warnings that are not turned on by
2618 -- this option are BIASED_ROUNDING,
2619 -- IMPLICIT_DEREFERENCE, HIDING and
2620 -- ELABORATION. All other optional Ada
2621 -- warnings are turned on.
2623 -- NOALL Suppress all optional errors.
2624 -- Suppresses all optional warning messages
2625 -- that can be activated by option ALL.
2627 -- ALL_GCC Request additional messages from the GCC
2628 -- backend. Most of these are not relevant
2629 -- to Ada.
2631 -- CONDITIONALS Activate warnings for conditional
2632 -- Expressions used in tests that are known
2633 -- to be True or False at compile time. The
2634 -- default is that such warnings are not
2635 -- generated.
2637 -- NOCONDITIONALS Suppress warnings for conditional
2638 -- expressions used in tests that are known
2639 -- to be True or False at compile time.
2641 -- IMPLICIT_DEREFERENCE Activate warnings on implicit dereferencing.
2642 -- The use of a prefix of an access type in an
2643 -- indexed component, slice, or selected component
2644 -- without an explicit .all will generate
2645 -- a warning. With this warning enabled, access
2646 -- checks occur only at points where an explicit
2647 -- .all appears in the source code (assuming no
2648 -- warnings are generated as a result of this
2649 -- option). The default is that such warnings are
2650 -- not generated. Note that /WARNINGS=ALL does not
2651 -- affect the setting of this warning option.
2653 -- NOIMPLICIT_DEREFERENCE Suppress warnings on implicit dereferencing.
2654 -- in indexed components, slices, and selected
2655 -- components.
2657 -- ELABORATION Activate warnings on missing pragma
2658 -- Elaborate_All statements. The default is
2659 -- that such warnings are not generated.
2661 -- NOELABORATION Suppress warnings on missing pragma
2662 -- Elaborate_All statements.
2664 -- ERRORS Warning messages are to be treated as errors.
2665 -- The warning string still appears, but the
2666 -- warning messages are counted as errors, and
2667 -- prevent the generation of an object file.
2669 -- HIDING Activate warnings on hiding declarations.
2670 -- A declaration is considered hiding if it is
2671 -- for a non-overloadable entity, and it declares
2672 -- an entity with the same name as some other
2673 -- entity that is directly or use-visible. The
2674 -- default is that such warnings are not
2675 -- generated.
2677 -- NOHIDING Suppress warnings on hiding declarations.
2679 -- IMPLEMENTATION Activate warnings for a with of an internal
2680 -- GNAT implementation unit, defined as any unit
2681 -- from the Ada, Interfaces, GNAT, DEC or
2682 -- System hierarchies that is not documented in
2683 -- either the Ada Reference Manual or the GNAT
2684 -- Programmer's Reference Manual. Such units are
2685 -- intended only for internal implementation
2686 -- purposes and should not be with'ed by user
2687 -- programs. The default is that such warnings
2688 -- are generated.
2690 -- NOIMPLEMENTATION Disables warnings for a with of an internal
2691 -- GNAT implementation unit.
2693 -- INEFFECTIVE_INLINE Activate warnings on ineffective pragma Inlines
2694 -- Activates warnings for failure of front end
2695 -- inlining (activated by /INLINE=FULL) to inline
2696 -- a particular call. There are many reasons for
2697 -- not being able to inline a call, including most
2698 -- commonly that the call is too complex to
2699 -- inline. This warning can also be turned on
2700 -- using /INLINE=FULL.
2702 -- NOINEFFECTIVE_INLINE Suppress warnings on ineffective pragma Inlines
2703 -- Suppresses warnings on ineffective pragma
2704 -- Inlines. If the inlining mechanism cannot
2705 -- inline a call, it will simply ignore the
2706 -- request silently.
2708 -- MODIFIED_UNREF Activates warnings for variables that are
2709 -- assigned (using an initialization value or with
2710 -- one or more assignment statements) but whose
2711 -- value is never read. The warning is suppressed
2712 -- for volatile variables and also for variables
2713 -- that are renamings of other variables or for
2714 -- which an address clause is given. This warning
2715 -- can also be turned on using /WARNINGS/OPTIONAL.
2717 -- NOMODIFIED_UNREF Disables warnings for variables that are
2718 -- assigned or initialized, but never read.
2720 -- NORMAL Sets normal warning mode, in which enabled
2721 -- warnings are issued and treated as warnings
2722 -- rather than errors. This is the default mode.
2723 -- It can be used to cancel the effect of an
2724 -- explicit /WARNINGS=SUPPRESS or
2725 -- /WARNINGS=ERRORS. It also cancels the effect
2726 -- of the implicit /WARNINGS=ERRORS that is
2727 -- activated by the use of /STYLE=GNAT.
2729 -- OBSOLESCENT Activates warnings for calls to subprograms
2730 -- marked with pragma Obsolescent and for use of
2731 -- features in Annex J of the Ada Reference
2732 -- Manual. In the case of Annex J, not all
2733 -- features are flagged. In particular use of the
2734 -- renamed packages (like Text_IO), use of package
2735 -- ASCII and use of the attribute 'Constrained are
2736 -- not flagged, since these are very common and
2737 -- would generate many annoying positive warnings.
2738 -- The default is that such warnings are not
2739 -- generated.
2741 -- NOOBSOLESCENT Disables warnings on use of obsolescent
2742 -- features.
2744 -- OPTIONAL Activate all optional warning messages.
2745 -- See other options under this qualifier
2746 -- for details on optional warning messages
2747 -- that can be individually controlled. The
2748 -- one exception is that /WARNINGS=OPTIONAL
2749 -- doesn't activate warnings for hiding
2750 -- variables (/WARNINGS=HIDING), so if this
2751 -- warning is required it must be explicitly
2752 -- set.
2754 -- NOOPTIONAL Suppress all optional warning messages.
2755 -- See other options under this qualifier
2756 -- for details on optional warning messages
2757 -- that can be individually controlled.
2759 -- OVERLAYS Activate warnings for possibly unintended
2760 -- initialization effects of defining address
2761 -- clauses that cause one variable to overlap
2762 -- another. The default is that such warnings
2763 -- are generated.
2765 -- NOOVERLAYS Suppress warnings on possibly unintended
2766 -- initialization effects of defining address
2767 -- clauses that cause one variable to overlap
2768 -- another.
2770 -- REDUNDANT Activate warnings for redundant constructs.
2771 -- In particular assignments of a variable to
2772 -- itself, and a type conversion that converts
2773 -- an object to its own type. The default
2774 -- is that such warnings are not generated.
2776 -- NOREDUNDANT Suppress warnings for redundant constructs.
2778 -- SUPPRESS Completely suppresse the output of all warning
2779 -- messages. Same as /NOWARNINGS.
2781 -- UNCHECKED_CONVERSIONS Activates warnings on unchecked conversions.
2782 -- Causes warnings to be generated for
2783 -- unchecked conversions when the two types are
2784 -- known at compile time to have different sizes.
2785 -- The default is that such warnings are
2786 -- generated.
2788 -- NOUNCHECKED_CONVERSIONS Suppress warnings for unchecked conversions.
2790 -- UNINITIALIZED Generate warnings for uninitialized variables.
2791 -- This is a GCC option, not an Ada option.
2792 -- You must also specify the /OPTIMIZE qualifier
2793 -- with a value other than NONE (in other words,
2794 -- this keyword works only if optimization is
2795 -- turned on).
2797 -- UNREFERENCED_FORMALS Activate warnings on unreferenced formals.
2798 -- Causes a warning to be generated if a formal
2799 -- parameter is not referenced in the body of
2800 -- the subprogram. This warning can also be turned
2801 -- on using option ALL or UNUSED.
2803 -- NOUNREFERENCED_FORMALS Suppress warnings on unreferenced formals.
2804 -- Suppresses warnings for unreferenced formal
2805 -- parameters. Note that the combination UNUSED
2806 -- followed by NOUNREFERENCED_FORMALS has the
2807 -- effect of warning on unreferenced entities
2808 -- other than subprogram formals.
2810 -- UNUSED Activates warnings to be generated for entities
2811 -- that are defined but not referenced, and for
2812 -- units that are with'ed and not referenced. In
2813 -- the case of packages, a warning is also
2814 -- generated if no entities in the package are
2815 -- referenced. This means that if the package
2816 -- is referenced but the only references are in
2817 -- use clauses or renames declarations, a warning
2818 -- is still generated. A warning is also generated
2819 -- for a generic package that is with'ed but never
2820 -- instantiated. In the case where a package or
2821 -- subprogram body is compiled, and there is a
2822 -- with on the corresponding spec that is only
2823 -- referenced in the body, a warning is also
2824 -- generated, noting that the with can be moved
2825 -- to the body. The default is that such warnings
2826 -- are not generated.
2828 -- NOUNUSED Suppress warnings for unused entities and
2829 -- packages.
2831 -- VARIABLES_UNINITIALIZED Activates warnings on unassigned variables.
2832 -- Causes warnings to be generated when a variable
2833 -- is accessed which may not be properly
2834 -- uninitialized.
2835 -- The default is that such warnings are
2836 -- generated.
2838 -- NOVARIABLES_UNINITIALIZED Suppress warnings for uninitialized
2839 -- variables.
2841 S_GCC_WarnX : aliased constant S := "/NOWARNINGS " &
2842 "-gnatws";
2843 -- NODOC (see /WARNINGS)
2845 S_GCC_No_Back : aliased constant S := "/NO_BACK_END_WARNINGS " &
2846 "-w";
2847 -- /NO_BACK_END_WARNINGS
2849 -- Inhibit all warning messages of the GCC back-end.
2851 S_GCC_Wide : aliased constant S := "/WIDE_CHARACTER_ENCODING=" &
2852 "BRACKETS " &
2853 "-gnatWb " &
2854 "NONE " &
2855 "-gnatWn " &
2856 "HEX " &
2857 "-gnatWh " &
2858 "UPPER " &
2859 "-gnatWu " &
2860 "SHIFT_JIS " &
2861 "-gnatWs " &
2862 "UTF8 " &
2863 "-gnatW8 " &
2864 "EUC " &
2865 "-gnatWe";
2866 -- /NOWIDE_CHARACTER_ENCODING (D)
2867 -- /WIDE_CHARACTER_ENCODING[=encode-type]
2869 -- Specifies the mechanism used to encode wide characters. 'encode-type'
2870 -- is one of the following:
2872 -- BRACKETS (D) A wide character is encoded as ["xxxx"] where XXXX
2873 -- are four hexadecimal digits representing the coding
2874 -- ('Pos value) of the character in type
2875 -- Wide_Character. The hexadecimal digits may use upper
2876 -- or lower case letters.
2878 -- This notation can also be used for upper half
2879 -- Character values using the format ["xx"] where XX is
2880 -- two hexadecimal digits representing the coding ('Pos
2881 -- value) of the character in type Character (or
2882 -- Wide_Character). The hexadecimal digits may use upper
2883 -- of lower case.
2885 -- NONE No wide characters are allowed. Same
2886 -- as /NOWIDE_CHARCTER_ENCODING.
2888 -- HEX In this encoding, a wide character is represented by
2889 -- the following five character sequence: ESC a b c d
2890 -- Where 'a', 'b', 'c', and 'd' are the four hexadecimal
2891 -- characters (using uppercase letters) of the wide
2892 -- character code. For example, ESC A345 is used to
2893 -- represent the wide character with code 16#A345#. This
2894 -- scheme is compatible with use of the full
2895 -- Wide_Character set.
2897 -- UPPER The wide character with encoding 16#abcd# where the
2898 -- upper bit is on (in other words, "a" is in the range
2899 -- 8-F) is represented as two bytes, 16#ab# and 16#cd#.
2900 -- The second byte may never be a format control
2901 -- character, but is not required to be in the upper
2902 -- half. This method can be also used for shift-JIS or
2903 -- EUC, where the internal coding matches the external
2904 -- coding.
2906 -- SHIFT_JIS A wide character is represented by a two-character
2907 -- sequence, 16#ab# and 16#cd#, with the restrictions
2908 -- described for upper-half encoding as described above.
2909 -- The internal character code is the corresponding JIS
2910 -- character according to the standard algorithm for
2911 -- Shift-JIS conversion. Only characters defined in the
2912 -- JIS code set table can be used with this encoding
2913 -- method.
2915 -- UTF8 A wide character is represented using
2916 -- UCS Transformation Format 8 (UTF-8) as defined in Annex
2917 -- R of ISO 10646-1/Am.2. Depending on the character
2918 -- value, the representation is a one, two, or three byte
2919 -- sequence:
2921 -- 16#0000#-16#007f#: 2#0xxxxxxx#
2922 -- 16#0080#-16#07ff#: 2#110xxxxx# 2#10xxxxxx#
2923 -- 16#0800#-16#ffff#: 2#1110xxxx# 2#10xxxxxx# 2#10xxxxxx#
2925 -- where the xxx bits correspond to the left-padded bits
2926 -- of the the 16-bit character value. Note that all lower
2927 -- half ASCII characters are represented as ASCII bytes
2928 -- and all upper half characters and other wide characters
2929 -- are represented as sequences of upper-half (The full
2930 -- UTF-8 scheme allows for encoding 31-bit characters as
2931 -- 6-byte sequences, but in this implementation, all UTF-8
2932 -- sequences of four or more bytes length will be treated
2933 -- as illegal).
2935 -- EUC A wide character is represented by a two-character
2936 -- sequence 16#ab# and 16#cd#, with both characters being
2937 -- in the upper half. The internal character code is the
2938 -- corresponding JIS character according to the EUC
2939 -- encoding algorithm. Only characters defined in the JIS
2940 -- code set table can be used with this encoding method.
2942 S_GCC_WideX : aliased constant S := "/NOWIDE_CHARACTER_ENCODING " &
2943 "-gnatWn";
2944 -- NODOC (see /WIDE_CHARACTER_ENCODING)
2946 S_GCC_Xdebug : aliased constant S := "/XDEBUG " &
2947 "-gnatD";
2948 -- /NOXDEBUG (D)
2949 -- /XDEBUG
2951 -- Output expanded source files for source level debugging.
2952 -- The expanded source (see /EXPAND_SOURCE) is written to files
2953 -- with names formed by appending "_DG" to the input file name,
2954 -- The debugging information generated by the /DEBUG qualifier will then
2955 -- refer to the generated file. This allows source level debugging using
2956 -- the generated code which is sometimes useful for complex code, for
2957 -- example to find out exactly which part of a complex construction
2958 -- raised an exception.
2960 S_GCC_Xref : aliased constant S := "/XREF=" &
2961 "GENERATE " &
2962 "!-gnatx " &
2963 "SUPPRESS " &
2964 "-gnatx";
2965 -- /XREF[=keyword]
2967 -- Normally the compiler generates full cross-referencing information in
2968 -- the .ALI file. This information is used by a number of tools,
2969 -- including GNAT FIND and GNAT XREF.
2971 -- GENERATE (D) Generate cross-referencing information.
2973 -- SUPPRESS Suppress cross-referencing information.
2974 -- This saves some space and may slightly
2975 -- speed up compilation, but means that some
2976 -- tools cannot be used.
2978 S_GCC_Zero : aliased constant S := "/ZERO_COST_EXCEPTIONS " &
2979 "-gnatZ";
2980 -- /ZERO_COST_EXCEPTIONS
2981 -- /NOZERO_COST_EXCEPTIONS
2983 -- As zero-cost exceptions is the default on VMS, this qualifier has
2984 -- no effect, except that it cancels the effect of a previous
2985 -- /LONGJMP_SETJUMP qualifier.
2987 GCC_Switches : aliased constant Switches :=
2988 (S_GCC_Ada_83 'Access,
2989 S_GCC_Ada_95 'Access,
2990 S_GCC_Ada_05 'Access,
2991 S_GCC_Asm 'Access,
2992 S_GCC_Checks 'Access,
2993 S_GCC_ChecksX 'Access,
2994 S_GCC_Compres 'Access,
2995 S_GCC_Config 'Access,
2996 S_GCC_Current 'Access,
2997 S_GCC_Debug 'Access,
2998 S_GCC_DebugX 'Access,
2999 S_GCC_Data 'Access,
3000 S_GCC_Dist 'Access,
3001 S_GCC_DistX 'Access,
3002 S_GCC_Error 'Access,
3003 S_GCC_ErrorX 'Access,
3004 S_GCC_Expand 'Access,
3005 S_GCC_Extend 'Access,
3006 S_GCC_Ext 'Access,
3007 S_GCC_File 'Access,
3008 S_GCC_Force 'Access,
3009 S_GCC_Full 'Access,
3010 S_GCC_Help 'Access,
3011 S_GCC_Ident 'Access,
3012 S_GCC_IdentX 'Access,
3013 S_GCC_Immed 'Access,
3014 S_GCC_Inline 'Access,
3015 S_GCC_InlineX 'Access,
3016 S_GCC_Jumps 'Access,
3017 S_GCC_Length 'Access,
3018 S_GCC_List 'Access,
3019 S_GCC_Mapping 'Access,
3020 S_GCC_Mess 'Access,
3021 S_GCC_Nesting 'Access,
3022 S_GCC_Noadc 'Access,
3023 S_GCC_Noload 'Access,
3024 S_GCC_Nostinc 'Access,
3025 S_GCC_Nostlib 'Access,
3026 S_GCC_Opt 'Access,
3027 S_GCC_OptX 'Access,
3028 S_GCC_Polling 'Access,
3029 S_GCC_Project 'Access,
3030 S_GCC_Psta 'Access,
3031 S_GCC_Report 'Access,
3032 S_GCC_ReportX 'Access,
3033 S_GCC_Repinfo 'Access,
3034 S_GCC_RepinfX 'Access,
3035 S_GCC_RTS 'Access,
3036 S_GCC_Search 'Access,
3037 S_GCC_Style 'Access,
3038 S_GCC_StyleX 'Access,
3039 S_GCC_Symbol 'Access,
3040 S_GCC_Syntax 'Access,
3041 S_GCC_Table 'Access,
3042 S_GCC_Trace 'Access,
3043 S_GCC_Tree 'Access,
3044 S_GCC_Trys 'Access,
3045 S_GCC_Units 'Access,
3046 S_GCC_Unique 'Access,
3047 S_GCC_Upcase 'Access,
3048 S_GCC_Valid 'Access,
3049 S_GCC_Verbose 'Access,
3050 S_GCC_Verb_Asm'Access,
3051 S_GCC_Warn 'Access,
3052 S_GCC_WarnX 'Access,
3053 S_GCC_Wide 'Access,
3054 S_GCC_WideX 'Access,
3055 S_GCC_No_Back 'Access,
3056 S_GCC_Xdebug 'Access,
3057 S_GCC_Xref 'Access,
3058 S_GCC_Zero 'Access);
3060 ----------------------------
3061 -- Switches for GNAT ELIM --
3062 ----------------------------
3064 S_Elim_All : aliased constant S := "/ALL " &
3065 "-a";
3066 -- /NOALL (D)
3067 -- /ALL
3069 -- Also look for subprograms from the GNAT run time that can be
3070 -- eliminated. Note that when 'gnat.adc' is produced using this switch,
3071 -- the entire program must be recompiled with qualifier /ALL_FILES of
3072 -- GNAT MAKE.
3074 S_Elim_Bind : aliased constant S := "/BIND_FILE=<" &
3075 "-b>";
3076 -- /BIND_FILE=file_name
3078 -- Specifies file_name as the bind file to process. If this qualifier is
3079 -- not used, the name of the bind file is computed from the full expanded
3080 -- Ada name of a main subprogram.
3082 S_Elim_Comp : aliased constant S := "/COMPILER=@" &
3083 "--GCC=@";
3084 -- /COMPILER=path_name
3086 -- Instructs GNAT ELIM to use a specific gcc compiler instead of one
3087 -- available on the path.
3089 S_Elim_Config : aliased constant S := "/CONFIGURATION_PRAGMAS=<" &
3090 "-C>";
3091 -- /CONFIGURATION_PRAGMAS=path_name
3093 -- Specifies a file that contains configuration pragmas.
3094 -- The file must be specified with absolute path.
3096 S_Elim_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3097 "!-I-";
3098 -- /CURRENT_DIRECTORY (D)
3099 -- /NOCURRENT_DIRECTORY
3101 -- Look for source files in the default directory.
3103 S_Elim_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3104 "-X" & '"';
3105 -- /EXTERNAL_REFERENCE="name=val"
3107 -- Specifies an external reference to the project manager. Useful only if
3108 -- /PROJECT_FILE is used.
3110 -- Example:
3111 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3113 S_Elim_GNATMAKE : aliased constant S := "/GNATMAKE=@" &
3114 "--GNATMAKE=@";
3115 -- /GNATMAKE=path_name
3117 -- Instructs GNAT MAKE to use a specific gnatmake instead of one available
3118 -- on the path.
3120 S_Elim_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3121 "DEFAULT " &
3122 "-vP0 " &
3123 "MEDIUM " &
3124 "-vP1 " &
3125 "HIGH " &
3126 "-vP2";
3127 -- /MESSAGES_PROJECT_FILE[=messages-option]
3129 -- Specifies the "verbosity" of the parsing of project files.
3130 -- messages-option may be one of the following:
3132 -- DEFAULT (D) No messages are output if there is no error or warning.
3134 -- MEDIUM A small number of messages are output.
3136 -- HIGH A great number of messages are output, most of them not
3137 -- being useful for the user.
3139 S_Elim_Project : aliased constant S := "/PROJECT_FILE=<" &
3140 "-P>";
3141 -- /PROJECT_FILE=filename
3143 -- Specifies the main project file to be used. The project files rooted
3144 -- at the main project file will be parsed before the invocation of the
3145 -- gnatelim. The source directories to be searched will be communicated
3146 -- to gnatelim through logical name ADA_PRJ_INCLUDE_FILE.
3148 S_Elim_Quiet : aliased constant S := "/QUIET " &
3149 "-q";
3150 -- /NOQUIET (D)
3151 -- /QUIET
3153 -- Quiet mode: by default GNAT ELIM outputs to the standard error stream
3154 -- the number of program units left to be processed. This option turns
3155 -- this trace off.
3157 S_Elim_Search : aliased constant S := "/SEARCH=*" &
3158 "-I*";
3159 -- /SEARCH=(directory, ...)
3161 -- When looking for source files also look in the specified directories.
3163 S_Elim_Verb : aliased constant S := "/VERBOSE " &
3164 "-v";
3165 -- /NOVERBOSE (D)
3166 -- /VERBOSE
3168 -- Verbose mode: GNAT ELIM version information is output as Ada comments
3169 -- to the standard output stream. Also, in addition to the number of
3170 -- program units left, GNAT ELIM will output the name of the current unit
3171 -- being processed.
3173 Elim_Switches : aliased constant Switches :=
3174 (S_Elim_All 'Access,
3175 S_Elim_Bind 'Access,
3176 S_Elim_Comp 'Access,
3177 S_Elim_Config 'Access,
3178 S_Elim_Current 'Access,
3179 S_Elim_Ext 'Access,
3180 S_Elim_GNATMAKE'Access,
3181 S_Elim_Mess 'Access,
3182 S_Elim_Project 'Access,
3183 S_Elim_Quiet 'Access,
3184 S_Elim_Search 'Access,
3185 S_Elim_Verb 'Access);
3187 ----------------------------
3188 -- Switches for GNAT FIND --
3189 ----------------------------
3191 S_Find_All : aliased constant S := "/ALL_FILES " &
3192 "-a";
3193 -- /NOALL_FILES (D)
3194 -- /ALL_FILES
3196 -- If this switch is present, FIND and XREF will parse the read-only
3197 -- files found in the library search path. Otherwise, these files will
3198 -- be ignored. This option can be used to protect Gnat sources or your
3199 -- own libraries from being parsed, thus making FIND and XREF much
3200 -- faster, and their output much smaller.
3202 S_Find_Deriv : aliased constant S := "/DERIVED_TYPE_INFORMATION " &
3203 "-d";
3204 -- /NODERIVED_TYPE_INFORMATION (D)
3205 -- /DERIVED_TYPE_INFORMATION
3207 -- Output the parent type reference for each matching derived types.
3209 S_Find_Expr : aliased constant S := "/EXPRESSIONS " &
3210 "-e";
3211 -- /NOEXPRESSIONS (D)
3212 -- /EXPRESSIONS
3214 -- By default, FIND accepts the simple regular expression set for pattern.
3215 -- If this switch is set, then the pattern will be considered as a full
3216 -- Unix-style regular expression.
3218 S_Find_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3219 "-X" & '"';
3220 -- /EXTERNAL_REFERENCE="name=val"
3222 -- Specifies an external reference to the project manager. Useful only if
3223 -- /PROJECT_FILE is used.
3225 -- Example:
3226 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3228 S_Find_Full : aliased constant S := "/FULL_PATHNAME " &
3229 "-f";
3230 -- /NOFULL_PATHNAME (D)
3231 -- /FULL_PATHNAME
3233 -- If this switch is set, the output file names will be preceded by their
3234 -- directory (if the file was found in the search path). If this switch
3235 -- is not set, the directory will not be printed.
3237 S_Find_Ignore : aliased constant S := "/IGNORE_LOCALS " &
3238 "-g";
3239 -- /NOIGNORE_LOCALS (D)
3240 -- /IGNORE_LOCALS
3242 -- If this switch is set, information is output only for library-level
3243 -- entities, ignoring local entities. The use of this switch may
3244 -- accelerate FIND and XREF.
3246 S_Find_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3247 "DEFAULT " &
3248 "-vP0 " &
3249 "MEDIUM " &
3250 "-vP1 " &
3251 "HIGH " &
3252 "-vP2";
3253 -- /MESSAGES_PROJECT_FILE[=messages-option]
3255 -- Specifies the "verbosity" of the parsing of project files.
3256 -- messages-option may be one of the following:
3258 -- DEFAULT (D) No messages are output if there is no error or warning.
3260 -- MEDIUM A small number of messages are output.
3262 -- HIGH A great number of messages are output, most of them not
3263 -- being useful for the user.
3265 S_Find_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3266 "-nostdinc";
3267 -- /NOSTD_INCLUDES
3269 -- Do not look for sources in the system default directory.
3271 S_Find_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
3272 "-nostdlib";
3273 -- /NOSTD_LIBRARIES
3275 -- Do not look for library files in the system default directory.
3277 S_Find_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3278 "-aO*";
3279 -- /OBJECT_SEARCH=(directory,...)
3281 -- When searching for library and object files, look in the specified
3282 -- directories. The order in which library files are searched is the same
3283 -- as for MAKE.
3285 S_Find_Print : aliased constant S := "/PRINT_LINES " &
3286 "-s";
3287 -- /NOPRINT_LINES (D)
3288 -- /PRINT_LINES
3290 -- Output the content of the Ada source file lines were the entity was
3291 -- found.
3293 S_Find_Project : aliased constant S := "/PROJECT=@" &
3294 "-p@";
3295 -- /PROJECT=file
3297 -- Specify a project file to use. By default, FIND and XREF will try to
3298 -- locate a project file in the current directory.
3300 -- If a project file is either specified or found by the tools, then the
3301 -- content of the source directory and object directory lines are added
3302 -- as if they had been specified respectively by /SOURCE_SEARCH and
3303 -- /OBJECT_SEARCH.
3305 -- This qualifier is not compatible with /PROJECT_FILE
3307 S_Find_Prj : aliased constant S := "/PROJECT_FILE=<" &
3308 "-P>";
3309 -- /PROJECT_FILE=filename
3311 -- Specifies the main project file to be used. The project files rooted
3312 -- at the main project file will be parsed before looking for sources.
3313 -- The source and object directories to be searched will be communicated
3314 -- to gnatfind through logical names ADA_PRJ_INCLUDE_FILE and
3315 -- ADA_PRJ_OBJECTS_FILE.
3317 S_Find_Ref : aliased constant S := "/REFERENCES " &
3318 "-r";
3319 -- /NOREFERENCES (D)
3320 -- /REFERENCES
3322 -- By default, FIND will output only the information about the
3323 -- declaration, body or type completion of the entities. If this switch
3324 -- is set, the FIND will locate every reference to the entities in the
3325 -- files specified on the command line (or in every file in the search
3326 -- path if no file is given on the command line).
3328 S_Find_Search : aliased constant S := "/SEARCH=*" &
3329 "-I*";
3330 -- /SEARCH=(directory,...)
3332 -- Equivalent to:
3333 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
3335 S_Find_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3336 "-aI*";
3337 -- /SOURCE_SEARCH=(directory,...)
3339 -- When looking for source files also look in the specified directories.
3340 -- The order in which source file search is undertaken is the same as for
3341 -- MAKE.
3343 S_Find_Types : aliased constant S := "/TYPE_HIERARCHY " &
3344 "-t";
3345 -- /NOTYPE_HIERARCHY (D)
3346 -- /TYPE_HIERARCHY
3348 -- Output the type hierarchy for the specified type. It acts like the
3349 -- /DERIVED_TYPE_INFORMATION qualifier, but recursively from parent type
3350 -- to parent type. When this qualifier is specified it is not possible to
3351 -- specify more than one file.
3353 Find_Switches : aliased constant Switches :=
3354 (S_Find_All 'Access,
3355 S_Find_Deriv 'Access,
3356 S_Find_Expr 'Access,
3357 S_Find_Ext 'Access,
3358 S_Find_Full 'Access,
3359 S_Find_Ignore 'Access,
3360 S_Find_Mess 'Access,
3361 S_Find_Nostinc 'Access,
3362 S_Find_Nostlib 'Access,
3363 S_Find_Object 'Access,
3364 S_Find_Print 'Access,
3365 S_Find_Project 'Access,
3366 S_Find_Prj 'Access,
3367 S_Find_Ref 'Access,
3368 S_Find_Search 'Access,
3369 S_Find_Source 'Access,
3370 S_Find_Types 'Access);
3372 ------------------------------
3373 -- Switches for GNAT KRUNCH --
3374 ------------------------------
3376 S_Krunch_Count : aliased constant S := "/COUNT=#" &
3377 "`#";
3378 -- /COUNT=39 (D)
3379 -- /COUNT=nnn
3381 -- Limit file names to nnn characters (where nnn is a decimal
3382 -- integer). The maximum file name length is 39, but if you want to
3383 -- generate a set of files that would be usable if ported to a system
3384 -- with some different maximum file length, then a different value can
3385 -- be specified.
3387 Krunch_Switches : aliased constant Switches :=
3388 (1 .. 1 => S_Krunch_Count 'Access);
3390 ----------------------------
3391 -- Switches for GNAT LINK --
3392 ----------------------------
3394 S_Link_Bind : aliased constant S := "/BIND_FILE=" &
3395 "ADA " &
3396 "-A " &
3397 "C " &
3398 "-C";
3399 -- /BIND_FILE=[bind-file-option]
3401 -- Specifies the language of the binder generated file.
3403 -- ADA (D) Binder file is Ada.
3405 -- C Binder file is 'C'.
3407 S_Link_Debug : aliased constant S := "/DEBUG=" &
3408 "ALL " &
3409 "-g3 " &
3410 "NONE " &
3411 "-g0 " &
3412 "TRACEBACK " &
3413 "-g1 " &
3414 "NOTRACEBACK " &
3415 "-g0";
3416 -- /NODEBUG (D)
3417 -- /DEBUG[=debug-option]
3419 -- Specifies the amount of debugging information included. 'debug-option'
3420 -- is one of the following:
3422 -- ALL (D) Include full debugging information.
3424 -- NONE Provide no debugging information. Same as /NODEBUG.
3426 -- TRACEBACK Provide sufficient debug information for a traceback.
3428 -- NOTRACEBACK Same as NONE.
3430 S_Link_Nodebug : aliased constant S := "/NODEBUG " &
3431 "-g0";
3432 -- NODOC (see /DEBUG)
3434 S_Link_Execut : aliased constant S := "/EXECUTABLE=@" &
3435 "-o@";
3436 -- /EXECUTABLE=exec-name
3438 -- 'exec-name' specifies an alternative name for the generated executable
3439 -- program. If this qualifier switch is omitted, the executable is called
3440 -- the name of the main unit. So "$ GNAT LINK TRY.ALI" creates an
3441 -- executable called TRY.EXE.
3443 S_Link_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3444 "-X" & '"';
3445 -- /EXTERNAL_REFERENCE="name=val"
3447 -- Specifies an external reference to the project manager. Useful only if
3448 -- /PROJECT_FILE is used.
3450 -- Example:
3451 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3453 S_Link_Forlink : aliased constant S := "/FOR_LINKER=" & '"' &
3454 "--for-linker=" & '"';
3455 -- /FOR_LINKER=<string>
3457 -- Transmit the option <string> to the underlying linker.
3459 S_Link_Force : aliased constant S := "/FORCE_OBJECT_FILE_LIST " &
3460 "-f";
3461 -- /NOFORCE_OBJECT_FILE_LIST (D)
3462 -- /FORCE_OBJECT_FILE_LIST
3464 -- Forces the generation of a file that contains commands for the linker.
3465 -- This is useful in some cases to deal with special situations where the
3466 -- command line length is exceeded.
3468 S_Link_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
3469 "--for-linker=IDENT=" &
3470 '"';
3471 -- /IDENTIFICATION="<string>"
3473 -- "<string>" specifies the string to be stored in the image file ident-
3474 -- ification field in the image header. It overrides any pragma Ident
3475 -- specified string.
3477 S_Link_Libdir : aliased constant S := "/LIBDIR=*" &
3478 "-L*";
3479 -- /LIBDIR=(directory, ...)
3481 -- Look for libraries in the specified directories.
3483 S_Link_Library : aliased constant S := "/LIBRARY=|" &
3484 "-l|";
3485 -- /LYBRARY=xyz
3487 -- Link with library named "xyz".
3489 S_Link_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3490 "DEFAULT " &
3491 "-vP0 " &
3492 "MEDIUM " &
3493 "-vP1 " &
3494 "HIGH " &
3495 "-vP2";
3496 -- /MESSAGES_PROJECT_FILE[=messages-option]
3498 -- Specifies the "verbosity" of the parsing of project files.
3499 -- messages-option may be one of the following:
3501 -- DEFAULT (D) No messages are output if there is no error or warning.
3503 -- MEDIUM A small number of messages are output.
3505 -- HIGH A great number of messages are output, most of them not
3506 -- being useful for the user.
3508 S_Link_Nocomp : aliased constant S := "/NOCOMPILE " &
3509 "-n";
3510 -- /NOCOMPILE
3512 -- Do not compile the file generated by the binder.
3513 -- This may be used when a link is rerun with different options,
3514 -- but there is no need to recompile the binder generated file.
3516 S_Link_Noinhib : aliased constant S := "/NOINHIBIT-EXEC " &
3517 "--for-linker=--noinhibit-exec";
3518 -- /NOINHIBIT-EXEC
3520 -- Delete executable if there are errors or warnings.
3522 S_Link_Nofiles : aliased constant S := "/NOSTART_FILES " &
3523 "-nostartfiles";
3524 -- /NOSTART_FILES
3526 -- Link in default image initialization and startup functions.
3528 S_Link_Project : aliased constant S := "/PROJECT_FILE=<" &
3529 "-P>";
3530 -- /PROJECT_FILE=filename
3532 -- Specifies the main project file to be used. The project files rooted
3533 -- at the main project file will be parsed before the invocation of the
3534 -- linker.
3535 -- The source and object directories to be searched will be communicated
3536 -- to the linker through logical names ADA_PRJ_INCLUDE_FILE and
3537 -- ADA_PRJ_OBJECTS_FILE.
3539 S_Link_Return : aliased constant S := "/RETURN_CODES=" &
3540 "POSIX " &
3541 "!-mvms-return-codes " &
3542 "VMS " &
3543 "-mvms-return-codes";
3544 -- /RETURN_CODES=POSIX (D)
3545 -- /RETURN_CODES=VMS
3547 -- Specifies the style of codes returned by
3548 -- Ada.Command_Line.Set_Exit_Status. Must be used in conjunction with
3549 -- and match the Bind qualifer with the same name.
3551 -- POSIX (D) Return Posix compatible exit codes.
3553 -- VMS Return VMS compatible exit codes. The value returned
3554 -- is identically equal to the Set_Exit_Status parameter.
3556 S_Link_Static : aliased constant S := "/STATIC " &
3557 "--for-linker=-static";
3558 -- /NOSTATIC (D)
3559 -- /STATIC
3561 -- Indicate to the linker that the link is static.
3563 S_Link_Verb : aliased constant S := "/VERBOSE " &
3564 "-v";
3565 -- /NOVERBOSE (D)
3566 -- /VERBOSE
3568 -- Causes additional information to be output, including a full list of
3569 -- the included object files. This switch option is most useful when you
3570 -- want to see what set of object files are being used in the link step.
3572 S_Link_ZZZZZ : aliased constant S := "/<other> " &
3573 "--for-linker=";
3574 -- /<other>
3576 -- Any other switch that will be transmited to the underlying linker.
3578 Link_Switches : aliased constant Switches :=
3579 (S_Link_Bind 'Access,
3580 S_Link_Debug 'Access,
3581 S_Link_Nodebug 'Access,
3582 S_Link_Execut 'Access,
3583 S_Link_Ext 'Access,
3584 S_Link_Forlink 'Access,
3585 S_Link_Force 'Access,
3586 S_Link_Ident 'Access,
3587 S_Link_Libdir 'Access,
3588 S_Link_Library 'Access,
3589 S_Link_Mess 'Access,
3590 S_Link_Nocomp 'Access,
3591 S_Link_Nofiles 'Access,
3592 S_Link_Noinhib 'Access,
3593 S_Link_Project 'Access,
3594 S_Link_Return 'Access,
3595 S_Link_Static 'Access,
3596 S_Link_Verb 'Access,
3597 S_Link_ZZZZZ 'Access);
3599 ----------------------------
3600 -- Switches for GNAT LIST --
3601 ----------------------------
3603 S_List_All : aliased constant S := "/ALL_UNITS " &
3604 "-a";
3605 -- /NOALL_UNITS (D)
3606 -- /ALL_UNITS
3608 -- Consider all units, including those of the predefined Ada library.
3609 -- Especially useful with /DEPENDENCIES.
3611 S_List_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3612 "!-I-";
3613 -- /CURRENT_DIRECTORY (D)
3614 -- /NOCURRENT_DIRECTORY
3616 -- Look for source, library or object files in the default directory.
3618 S_List_Depend : aliased constant S := "/DEPENDENCIES " &
3619 "-d";
3620 -- /NODEPENDENCIES (D)
3621 -- /DEPENDENCIES
3623 S_List_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3624 "-X" & '"';
3625 -- /EXTERNAL_REFERENCE="name=val"
3627 -- Specifies an external reference to the project manager. Useful only if
3628 -- /PROJECT_FILE is used.
3630 -- Example:
3631 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3633 S_List_Files : aliased constant S := "/FILES=@" &
3634 "-files=@";
3635 -- /FILES=filename
3637 -- Take as arguments the files that are listed in the specified
3638 -- text file.
3640 S_List_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
3641 "DEFAULT " &
3642 "-vP0 " &
3643 "MEDIUM " &
3644 "-vP1 " &
3645 "HIGH " &
3646 "-vP2";
3647 -- /MESSAGES_PROJECT_FILE[=messages-option]
3649 -- Specifies the "verbosity" of the parsing of project files.
3650 -- messages-option may be one of the following:
3652 -- DEFAULT (D) No messages are output if there is no error or warning.
3654 -- MEDIUM A small number of messages are output.
3656 -- HIGH A great number of messages are output, most of them not
3657 -- being useful for the user.
3659 S_List_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
3660 "-nostdinc";
3661 -- /NOSTD_INCLUDES
3663 -- Do not look for sources of the run time in the standard directory.
3665 S_List_Object : aliased constant S := "/OBJECT_SEARCH=*" &
3666 "-aO*";
3667 -- /OBJECT_SEARCH=(directory,...)
3669 -- When looking for library and object files look also in the specified
3670 -- directories.
3672 S_List_Output : aliased constant S := "/OUTPUT=" &
3673 "SOURCES " &
3674 "-s " &
3675 "DEPEND " &
3676 "-d " &
3677 "OBJECTS " &
3678 "-o " &
3679 "UNITS " &
3680 "-u " &
3681 "OPTIONS " &
3682 "-h " &
3683 "VERBOSE " &
3684 "-v ";
3685 -- /OUTPUT=(option,option,...)
3687 -- SOURCES (D) Only output information about source files.
3689 -- DEPEND List sources from which specified units depend on.
3691 -- OBJECTS Only output information about object files.
3693 -- UNITS Only output information about compilation units.
3695 -- OPTIONS Output the list of options.
3697 -- VERBOSE Output the complete source and object paths.
3698 -- Do not use the default column layout but instead
3699 -- use long format giving as much as information
3700 -- possible on each requested units, including
3701 -- special characteristics.
3703 S_List_Project : aliased constant S := "/PROJECT_FILE=<" &
3704 "-P>";
3705 -- /PROJECT_FILE=filename
3707 -- Specifies the main project file to be used. The project files rooted
3708 -- at the main project file will be parsed before doing any listing.
3709 -- The source and object directories to be searched will be communicated
3710 -- to gnatlist through logical names ADA_PRJ_INCLUDE_FILE and
3711 -- ADA_PRJ_OBJECTS_FILE.
3713 S_List_Search : aliased constant S := "/SEARCH=*" &
3714 "-I*";
3715 -- /SEARCH=(directory,...)
3717 -- Search the specified directories for both source and object files.
3719 S_List_Source : aliased constant S := "/SOURCE_SEARCH=*" &
3720 "-aI*";
3721 -- /SOURCE_SEARCH=(directory,...)
3723 -- When looking for source files also look in the specified directories.
3725 List_Switches : aliased constant Switches :=
3726 (S_List_All 'Access,
3727 S_List_Current 'Access,
3728 S_List_Depend 'Access,
3729 S_List_Ext 'Access,
3730 S_List_Files 'Access,
3731 S_List_Mess 'Access,
3732 S_List_Nostinc 'Access,
3733 S_List_Object 'Access,
3734 S_List_Output 'Access,
3735 S_List_Project 'Access,
3736 S_List_Search 'Access,
3737 S_List_Source 'Access);
3739 ----------------------------
3740 -- Switches for GNAT MAKE --
3741 ----------------------------
3743 S_Make_Actions : aliased constant S := "/ACTIONS=" &
3744 "COMPILE " &
3745 "-c " &
3746 "BIND " &
3747 "-b " &
3748 "LINK " &
3749 "-l ";
3750 -- /ACTIONS=(keyword[,...])
3752 -- GNAT MAKE default behavior is to check if the sources are up to date,
3753 -- compile those sources that are not up to date, bind the main source,
3754 -- then link the executable.
3756 -- With the /ACTIONS qualifier, GNAT MAKE may be restricted to one or
3757 -- two of these three steps:
3759 -- o Compile
3760 -- o Bind
3761 -- o Link
3764 -- You may specify one or more of the following keywords to the /ACTIONS
3765 -- qualifier:
3767 -- BIND Bind only. Can be combined with /ACTIONS=COMPILE
3768 -- to do compilation and binding, but no linking.
3769 -- Can be combined with /ACTIONS=LINK to do binding and
3770 -- linking. When not combined with /ACTIONS=COMPILE,
3771 -- all the units in the closure of the main program must
3772 -- have been previously compiled and must be up to date.
3774 -- COMPILE Compile only. Do not perform binding, except when
3775 -- /ACTIONS=BIND is also specified. Do not perform
3776 -- linking, except if both /ACTIONS=BIND and /ACTIONS=LINK
3777 -- are also specified.
3779 -- LINK Link only. Can be combined with /ACTIONS=BIND to do
3780 -- binding and linking. Linking will not be performed
3781 -- if combined with /ACTIONS=COMPILE but not with
3782 -- /ACTIONS=BIND\. When not combined with /ACTIONS=BIND
3783 -- all the units in the closure of the main program must
3784 -- have been previously compiled and must be up to date,
3785 -- and the main program need to have been bound.
3787 S_Make_All : aliased constant S := "/ALL_FILES " &
3788 "-a";
3789 -- /NOALL_FILES (D)
3790 -- /ALL_FILES
3792 -- Consider all files in the make process, even the GNAT internal system
3793 -- files (for example, the predefined Ada library files). By default,
3794 -- GNAT MAKE does not check these files (however, if there is an
3795 -- installation problem, it will be caught when GNAT MAKE binds your
3796 -- program). You may have to specify this qualifier if you are working on
3797 -- GNAT itself. The vast majority of GNAT MAKE users never need to
3798 -- specify this switch. All GNAT internal files with will be compiled
3799 -- with /STYLE_CHECK=GNAT.
3801 S_Make_Allproj : aliased constant S := "/ALL_PROJECTS " &
3802 "-U";
3803 -- /NOALL_PROJECTS (D)
3804 -- /ALL_PROJECTS
3806 -- Implies /Unique.
3807 -- When used without project files, it is equivalent to /UNIQUE.
3808 -- When used with a project file with no main (neither on the command
3809 -- line nor in the attribute Main) check every source of every project,
3810 -- recompile all sources that are not up to date and rebuild libraries
3811 -- if necessary.
3813 S_Make_Bind : aliased constant S := "/BINDER_QUALIFIERS=?" &
3814 "-bargs BIND";
3815 -- /BINDER_QUALIFIERS
3817 -- Any qualifiers specified after this qualifier other than
3818 -- /COMPILER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3819 -- passed to any GNAT BIND commands generated by GNAT MAKE.
3821 S_Make_Bindprj : aliased constant S := "/BND_LNK_FULL_PROJECT " &
3822 "-B";
3823 -- /BND_LNK_FULL_PROJECT
3825 -- Bind and link all sources of a project, without any consideration
3826 -- to attribute Main, if there is one. This qualifier need to be
3827 -- used in conjunction with the /PROJECT_FILE= qualifier and cannot
3828 -- be used with a main subprogram on the command line or for
3829 -- a library project file. As the binder is invoked with the option
3830 -- meaning "No Ada main subprogram", the user must ensure that the
3831 -- proper options are specified to the linker. This qualifier is
3832 -- normally used when the main subprogram is in a foreign language
3833 -- such as C.
3835 S_Make_Comp : aliased constant S := "/COMPILER_QUALIFIERS=?" &
3836 "-cargs COMPILE";
3837 -- /COMPILER_QUALIFIERS
3839 -- Any qualifiers specified after this qualifier other than
3840 -- /BINDER_QUALIFIERS, /LINKER_QUALIFIERS and /MAKE_QUALIFIERS will be
3841 -- passed to any GNAT COMPILE commands generated by GNAT MAKE.
3843 S_Make_Cond : aliased constant S := "/CONDITIONAL_SOURCE_SEARCH=*" &
3844 "-A*";
3845 -- /CONDITIONAL_SOURCE_SEARCH=dir
3847 -- Equivalent to "/SOURCE_SEARCH=dir /SKIP_MISSING=dir".
3849 S_Make_Cont : aliased constant S := "/CONTINUE_ON_ERROR " &
3850 "-k";
3851 -- /NOCONTINUE_ON_ERROR (D)
3852 -- /CONTINUE_ON_ERROR
3854 -- Keep going. Continue as much as possible after a compilation error.
3855 -- To ease the programmer's task in case of compilation errors, the list
3856 -- of sources for which the compile fails is given when GNAT MAKE
3857 -- terminates.
3859 S_Make_Current : aliased constant S := "/CURRENT_DIRECTORY " &
3860 "!-I-";
3861 -- /CURRENT_DIRECTORY (D)
3862 -- /NOCURRENT_DIRECTORY
3864 -- Look for source, library or object files in the default directory.
3866 S_Make_Dep : aliased constant S := "/DEPENDENCIES_LIST " &
3867 "-M";
3868 -- /NODEPENDENCIES_LIST (D)
3869 -- /DEPENDENCIES_LIST
3871 -- Check if all objects are up to date. If they are, output the object
3872 -- dependences to SYS$OUTPUT in a form that can be directly exploited in
3873 -- a Unix-style Makefile. By default, each source file is prefixed with
3874 -- its (relative or absolute) directory name. This name is whatever you
3875 -- specified in the various /SOURCE_SEARCH and /SEARCH qualifiers. If
3876 -- you also speficy the /QUIET qualifier, only the source file names,
3877 -- without relative paths, are output. If you just specify the
3878 -- /DEPENDENCY_LIST qualifier, dependencies of the GNAT internal system
3879 -- files are omitted. This is typically what you want. If you also
3880 -- specify the /ALL_FILES qualifier, dependencies of the GNAT internal
3881 -- files are also listed. Note that dependencies of the objects in
3882 -- external Ada libraries (see the /SKIP_MISSING qualifier) are never
3883 -- reported.
3885 S_Make_Dirobj : aliased constant S := "/DIRECTORY_OBJECTS=@" &
3886 "-D@";
3887 -- /DIRECTORY_OBJECTS=<file>
3889 -- Put all object files and .ALI files in <file>.
3890 -- This qualifier is not compatible with /PROJECT_FILE.
3892 S_Make_Doobj : aliased constant S := "/DO_OBJECT_CHECK " &
3893 "-n";
3894 -- /NODO_OBJECT_CHECK (D)
3895 -- /DO_OBJECT_CHECK
3897 -- Don't compile, bind, or link. Output a single command that will
3898 -- recompile an out of date unit, if any. Repeated use of this option,
3899 -- followed by carrying out the indicated compilation, will eventually
3900 -- result in recompiling all required units.
3902 -- If any ALI is missing during the process, GNAT MAKE halts and
3903 -- displays an error message.
3905 S_Make_Execut : aliased constant S := "/EXECUTABLE=@" &
3906 "-o@";
3907 -- /EXECUTABLE=exec-name
3909 -- The name of the final executable program will be 'exec_name'. If this
3910 -- qualifier is omitted the default name for the executable will be the
3911 -- name of the input file with an EXE filetype. You may prefix
3912 -- 'exec_name' with a relative or absolute directory path.
3914 S_Make_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
3915 "-X" & '"';
3916 -- /EXTERNAL_REFERENCE="name=val"
3918 -- Specifies an external reference to the project manager. Useful only if
3919 -- /PROJECT_FILE is used.
3921 -- Example:
3922 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
3924 S_Make_Force : aliased constant S := "/FORCE_COMPILE " &
3925 "-f";
3926 -- /NOFORCE_COMPILE (D)
3927 -- /FORCE_COMPILE
3929 -- Force recompilations. Recompile all sources, even though some object
3930 -- files may be up to date, but don't recompile predefined or GNAT
3931 -- internal files unless the /ALL_FILES qualfier is also specified.
3933 S_Make_Full : aliased constant S := "/FULL_PATH_IN_BRIEF_MESSAGES " &
3934 "-F";
3935 -- /NOFULL_PATH_IN_BRIEF_MESSAGES (D)
3936 -- /FULL_PATH_IN_BRIEF_MESSAGES
3938 -- When using project files, if some errors or warnings are detected
3939 -- during parsing and verbose mode is not in effect (no use of qualifier
3940 -- /VERBOSE), then error lines start with the full path name of the
3941 -- project file, rather than its simple file name.
3943 S_Make_Hi_Verb : aliased constant S := "/HIGH_VERBOSITY " &
3944 "-vh";
3945 -- /NOHIGH_VERBOSITY (D)
3946 -- /HIGH_VERBOSITY
3948 -- Displays the reason for all recompilations GNAT MAKE decides are
3949 -- necessary, in high verbosity. Equivalent to /VERBOSE.
3951 S_Make_Inplace : aliased constant S := "/IN_PLACE " &
3952 "-i";
3953 -- /NOIN_PLACE (D)
3954 -- /IN_PLACE
3956 -- In normal mode, GNAT MAKE compiles all object files and ALI files
3957 -- into the current directory. If the /IN_PLACE switch is used,
3958 -- then instead object files and ALI files that already exist are over-
3959 -- written in place. This means that once a large project is organized
3960 -- into separate directories in the desired manner, then GNAT MAKE will
3961 -- automatically maintain and update this organization. If no ALI files
3962 -- are found on the Ada object path, the new object and ALI files are
3963 -- created in the directory containing the source being compiled.
3965 S_Make_Index : aliased constant S := "/SOURCE_INDEX=#" &
3966 "-eI#";
3967 -- /SOURCE_INDEX=nnn
3969 -- Specifies the index of the units in the source file
3970 -- By default, source files are mono-unit and there is no index
3971 -- When /SOURCE_INDEX=nnn is specified, only one main may be specified
3972 -- on the command line.
3974 S_Make_Library : aliased constant S := "/LIBRARY_SEARCH=*" &
3975 "-L*";
3976 -- /LIBRARY_SEARCH=(directory[,...])
3978 -- Add the specified directories to the list of directories in which the
3979 -- linker will search for libraries.
3981 S_Make_Link : aliased constant S := "/LINKER_QUALIFIERS=?" &
3982 "-largs LINK";
3983 -- /LINKER_QUALIFIERS
3985 -- Any qualifiers specified after this qualifier other than
3986 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /MAKE_QUALIFIERS will be
3987 -- passed to any GNAT LINK commands generated by GNAT LINK.
3989 S_Make_Low_Verb : aliased constant S := "/LOW_VERBOSITY " &
3990 "-vl";
3991 -- /NOLOW_VERBOSITY (D)
3992 -- /LOW_VERBOSITY
3994 -- Displays the reason for all recompilations GNAT MAKE decides are
3995 -- necessary, in low verbosity, that is with less output than
3996 -- /MEDIUM_VERBOSITY, /HIGH_VERBOSITY or /VERBOSE.
3998 S_Make_Make : aliased constant S := "/MAKE_QUALIFIERS=?" &
3999 "-margs MAKE";
4000 -- /MAKE_QUALIFIERS
4002 -- Any qualifiers specified after this qualifier other than
4003 -- /COMPILER_QUALIFIERS, /BINDER_QUALIFIERS and /LINKER_QUALIFIERS
4004 -- are for the benefit of GNAT MAKE itself.
4006 S_Make_Mapping : aliased constant S := "/MAPPING " &
4007 "-C";
4008 -- /NOMAPPING (D)
4009 -- /MAPPING
4011 -- Use a mapping file. A mapping file is a way to communicate to the
4012 -- compiler two mappings: from unit names to file names (without any
4013 -- directory information) and from file names to path names (with full
4014 -- directory information). These mappings are used by the compiler to
4015 -- short-circuit the path search. When GNAT MAKE is invoked with this
4016 -- qualifier, it will create a mapping file, initially populated by the
4017 -- project manager, if /PROJECT_File= is used, otherwise initially empty.
4018 -- Each invocation of the compiler will add the newly accessed sources to
4019 -- the mapping file. This will improve the source search during the next
4020 -- invocations of the compiler
4022 S_Make_Med_Verb : aliased constant S := "/MEDIUM_VERBOSITY " &
4023 "-vm";
4024 -- /NOMEDIUM_VERBOSITY (D)
4025 -- /MEDIUM_VERBOSITY
4027 -- Displays the reason for all recompilations GNAT MAKE decides are
4028 -- necessary, in medium verbosity, that is with potentially less output
4029 -- than /HIGH_VERBOSITY or /VERBOSE.
4031 S_Make_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4032 "DEFAULT " &
4033 "-vP0 " &
4034 "MEDIUM " &
4035 "-vP1 " &
4036 "HIGH " &
4037 "-vP2";
4038 -- /MESSAGES_PROJECT_FILE[=messages-option]
4040 -- Specifies the "verbosity" of the parsing of project files.
4041 -- messages-option may be one of the following:
4043 -- DEFAULT (D) No messages are output if there is no error or warning.
4045 -- MEDIUM A small number of messages are output.
4047 -- HIGH A great number of messages are output, most of them not
4048 -- being useful for the user.
4050 S_Make_Minimal : aliased constant S := "/MINIMAL_RECOMPILATION " &
4051 "-m";
4052 -- /NOMINIMAL_RECOMPILATION (D)
4053 -- /MINIMAL_RECOMPILATION
4055 -- Specifies that the minimum necessary amount of recompilation
4056 -- be performed. In this mode GNAT MAKE ignores time stamp differences
4057 -- when the only modifications to a source file consist in
4058 -- adding/removing comments, empty lines, spaces or tabs.
4060 S_Make_Nolink : aliased constant S := "/NOLINK " &
4061 "-c";
4062 -- /NOLINK
4064 -- Compile only. Do not perform binding and linking. If the root unit is
4065 -- not a main unit, this is the default. Otherwise GNAT MAKE will
4066 -- attempt binding and linking unless all objects are up to date and the
4067 -- executable is more recent than the objects.
4068 -- This is equivalent to /ACTIONS=COMPILE
4070 S_Make_Nomain : aliased constant S := "/NOMAIN " &
4071 "-z";
4072 -- /NOMAIN
4074 -- No main subprogram. Bind and link the program even if the unit name
4075 -- given on the command line is a package name. The resulting executable
4076 -- will execute the elaboration routines of the package and its closure,
4077 -- then the finalization routines.
4079 S_Make_Nonpro : aliased constant S := "/NON_PROJECT_UNIT_COMPILATION " &
4080 "-x";
4081 -- /NON_PROJECT_UNIT_COMPILATION
4083 -- Normally, when using project files, a unit that is not part of any
4084 -- project file, cannot be compile. These units may be compile, when
4085 -- needed, if this qualifier is specified.
4087 S_Make_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
4088 "-nostdinc";
4089 -- /NOSTD_INCLUDES
4091 -- Do not look for sources the in the system default directory.
4093 S_Make_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
4094 "-nostdlib";
4095 -- /NOSTD_LIBRARIES
4097 -- Do not look for library files in the system default directory.
4099 S_Make_Object : aliased constant S := "/OBJECT_SEARCH=*" &
4100 "-aO*";
4101 -- /OBJECT_SEARCH=(directory[,...])
4103 -- When looking for library and object files look also in the specified
4104 -- directories.
4106 S_Make_Proc : aliased constant S := "/PROCESSES=#" &
4107 "-j#";
4108 -- /NOPROCESSES (D)
4109 -- /PROCESSES=NNN
4111 -- Use NNN processes to carry out the (re)complations. If you have a
4112 -- multiprocessor machine, compilations will occur in parallel. In the
4113 -- event of compilation errors, messages from various compilations might
4114 -- get interspersed (but GNAT MAKE will give you the full ordered list of
4115 -- failing compiles at the end). This can at times be annoying. To get a
4116 -- clean list of error messages don't use this qualifier.
4118 S_Make_Nojobs : aliased constant S := "/NOPROCESSES " &
4119 "-j1";
4120 -- NODOC (see /PROCESS)
4122 S_Make_Project : aliased constant S := "/PROJECT_FILE=<" &
4123 "-P>";
4124 -- /PROJECT_FILE=filename
4126 -- Specifies the main project file to be used. The project files rooted
4127 -- at the main project file will be parsed before any other processing to
4128 -- set the building environment.
4130 S_Make_Quiet : aliased constant S := "/QUIET " &
4131 "-q";
4132 -- /NOQUIET (D)
4133 -- /QUIET
4135 -- When this qualifiers is specified, the commands carried out by GNAT
4136 -- MAKE are not displayed.
4138 S_Make_Reason : aliased constant S := "/REASONS " &
4139 "-v";
4140 -- /NOREASONS (D)
4141 -- /REASONS
4143 -- Displays the reason for all recompilations GNAT MAKE decides are
4144 -- necessary.
4146 S_Make_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
4147 "--RTS=|";
4148 -- /RUNTIME_SYSTEM=xxx
4150 -- Build against an alternate runtime system named xxx or RTS-xxx.
4152 S_Make_Search : aliased constant S := "/SEARCH=*" &
4153 "-I*";
4154 -- /SEARCH=(directory[,...])
4156 -- Search the specified directories for both source and object files.
4158 S_Make_Skip : aliased constant S := "/SKIP_MISSING=*" &
4159 "-aL*";
4160 -- /SKIP_MISSING=(directory[,...])
4162 -- Skip missing library sources if ALI in 'directory'.
4164 S_Make_Source : aliased constant S := "/SOURCE_SEARCH=*" &
4165 "-aI*";
4166 -- /SOURCE_SEARCH=(directory[,...])
4168 -- When looking for source files also look in the specified directories.
4170 S_Make_Switch : aliased constant S := "/SWITCH_CHECK " &
4171 "-s";
4172 -- /NOSWITCH_CHECK (D)
4173 -- /SWITCH_CHECK
4175 -- Recompile if compiler switches have changed since last compilation.
4176 -- All compiler switches but -I and -o are taken into account in the
4177 -- following way: orders between different "first letter" switches are
4178 -- ignored, but orders between same switches are taken into account.
4179 -- For example, -O -O2 is different than -O2 -O, but -g -O is equivalent
4180 -- to -O -g.
4182 S_Make_Unique : aliased constant S := "/UNIQUE " &
4183 "-u";
4184 -- /NOUNIQUE (D)
4185 -- /UNIQUE
4187 -- Recompile at most the main file. It implies /ACTIONS=COMPILE.
4188 -- Combined with /FORCE_COMPILE, it is equivalent to calling the compiler
4189 -- directly.
4191 S_Make_Use_Map : aliased constant S := "/USE_MAPPING_File=@" &
4192 "-C=@";
4193 -- /USE_MAPPING_FILE=file_name
4195 -- Use a specific mapping file. The file 'file_name', specified as a path
4196 -- name (absolute or relative) by this qualifier, should already exist,
4197 -- otherwise the qualifier is ineffective. The specified mapping file
4198 -- will be communicated to the compiler. This switch is not compatible
4199 -- with a project file (/PROJECT_FILE=) or with multiple compiling
4200 -- processes (/PROCESSES=nnn, when nnn is greater than 1).
4202 S_Make_Verbose : aliased constant S := "/VERBOSE " &
4203 "-v";
4204 -- /NOVERBOSE (D)
4205 -- /VERBOSE
4207 -- Displays the reason for all recompilations GNAT MAKE decides are
4208 -- necessary.
4210 Make_Switches : aliased constant Switches :=
4211 (S_Make_Actions 'Access,
4212 S_Make_All 'Access,
4213 S_Make_Allproj 'Access,
4214 S_Make_Bind 'Access,
4215 S_Make_Comp 'Access,
4216 S_Make_Cond 'Access,
4217 S_Make_Cont 'Access,
4218 S_Make_Current 'Access,
4219 S_Make_Dep 'Access,
4220 S_Make_Dirobj 'Access,
4221 S_Make_Doobj 'Access,
4222 S_Make_Execut 'Access,
4223 S_Make_Ext 'Access,
4224 S_Make_Force 'Access,
4225 S_Make_Full 'Access,
4226 S_Make_Hi_Verb 'Access,
4227 S_Make_Inplace 'Access,
4228 S_Make_Index 'Access,
4229 S_Make_Library 'Access,
4230 S_Make_Link 'Access,
4231 S_Make_Low_Verb'Access,
4232 S_Make_Make 'Access,
4233 S_Make_Mapping 'Access,
4234 S_Make_Med_Verb'Access,
4235 S_Make_Mess 'Access,
4236 S_Make_Minimal 'Access,
4237 S_Make_Nolink 'Access,
4238 S_Make_Nomain 'Access,
4239 S_Make_Nonpro 'Access,
4240 S_Make_Nostinc 'Access,
4241 S_Make_Nostlib 'Access,
4242 S_Make_Object 'Access,
4243 S_Make_Proc 'Access,
4244 S_Make_Nojobs 'Access,
4245 S_Make_Project 'Access,
4246 S_Make_Quiet 'Access,
4247 S_Make_Reason 'Access,
4248 S_Make_RTS 'Access,
4249 S_Make_Search 'Access,
4250 S_Make_Skip 'Access,
4251 S_Make_Source 'Access,
4252 S_Make_Switch 'Access,
4253 S_Make_Unique 'Access,
4254 S_Make_Use_Map 'Access,
4255 S_Make_Verbose 'Access);
4257 ------------------------------
4258 -- Switches for GNAT METRIC --
4259 ------------------------------
4261 S_Metric_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4262 "-U";
4263 -- /NOALL_PROJECTS (D)
4264 -- /ALL_PROJECTS
4265 -- When GNAT METRIC is used with a Project File and no source is
4266 -- specified, the underlying tool gnatmetric is called for all the
4267 -- sources of all the Project Files in the project tree.
4269 S_Metric_Debug : aliased constant S := "/DEBUG_OUTPUT " &
4270 "-dv";
4271 -- /DEBUG_OUTPUT
4273 -- Generate the debug information
4275 S_Metric_Direct : aliased constant S := "/DIRECTORY=@" &
4276 "-d=@";
4277 -- /DIRECTORY=pathname
4279 -- Put the files with detailed metric information into the specified
4280 -- directory
4282 S_Metric_Element : aliased constant S := "/ELEMENT_METRICS=" &
4283 "ALL " &
4284 "!-ed,!-es,!-enl,!-eps," &
4285 "!-eas,!-ept,!-eat,!-enu," &
4286 "!-ec " &
4287 "DECLARATION_TOTAL " &
4288 "-ed " &
4289 "STATEMENT_TOTAL " &
4290 "-es " &
4291 "LOOP_NESTING_MAX " &
4292 "-enl " &
4293 "INT_SUBPROGRAMS " &
4294 "-eps " &
4295 "SUBPROGRAMS_ALL " &
4296 "-eas " &
4297 "INT_TYPES " &
4298 "-ept " &
4299 "TYPES_ALL " &
4300 "-eat " &
4301 "PROGRAM_NESTING_MAX " &
4302 "-enu " &
4303 "CONSTRUCT_NESTING_MAX " &
4304 "-ec";
4305 -- /ELEMENT_METRICS=(option, option ...)
4307 -- Specifies the element metrics to be computed (if not set, all the
4308 -- element metrics are set on, otherwise only specified metrics are
4309 -- computed and reported)
4311 -- option may be one of the following:
4313 -- ALL (D) All the element metrics are computed
4314 -- DECLARATION_TOTAL Compute the total number of declarations
4315 -- STATEMENT_TOTAL Compute the total number of statements
4316 -- LOOP_NESTING_MAX Compute the maximal loop nesting level
4317 -- INT_SUBPROGRAMS Compute the number of interface subprograms
4318 -- SUBPROGRAMS_ALL Compute the number of all the subprograms
4319 -- INT_TYPES Compute the number of interface types
4320 -- TYPES_ALL Compute the number of all the types
4321 -- PROGRAM_NESTING_MAX Compute the maximal program unit nesting level
4323 -- All combinations of element metrics options are allowed.
4325 S_Metric_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4326 "-X" & '"';
4327 -- /EXTERNAL_REFERENCE="name=val"
4329 -- Specifies an external reference to the project manager. Useful only if
4330 -- /PROJECT_FILE is used.
4332 -- Example:
4333 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4335 S_Metric_Files : aliased constant S := "/FILES=@" &
4336 "-files=@";
4337 -- /FILES=filename
4339 -- Take as arguments the files that are listed in the specified
4340 -- text file.
4342 S_Metric_Format : aliased constant S := "/FORMAT_OUTPUT=" &
4343 "DEFAULT " &
4344 "!-x,!-nt,!-sfn " &
4345 "XML " &
4346 "-x " &
4347 "NO_TEXT " &
4348 "-nt " &
4349 "SHORT_SOURCE_FILE_NAME " &
4350 "-sfn";
4351 -- /FORMAT_OUTPUT=(option, option ...)
4353 -- Specifies the details of the tool output
4355 -- option may be one of the following:
4357 -- DEFAULT (D) Generate the text output only, use full
4358 -- argument source names in global information
4359 -- XML Generate the output in XML format
4360 -- NO_TEXT Do not generate the text output (implies XML)
4361 -- SHORT_SOURCE_FILE_NAME Use short argument source names in output
4363 S_Metric_Globout : aliased constant S := "/GLOBAL_OUTPUT=@" &
4364 "-og@";
4365 -- /GLOBAL_OUTPUT=filename
4367 -- Put the textual global metric information into the specified file
4369 S_Metric_Line : aliased constant S := "/LINE_METRICS=" &
4370 "ALL " &
4371 "!-la,!-lcode,!-lcomm," &
4372 "!-leol,!-lb " &
4373 "LINES_ALL " &
4374 "-la " &
4375 "CODE_LINES " &
4376 "-lcode " &
4377 "COMENT_LINES " &
4378 "-lcomm " &
4379 "MIXED_CODE_COMMENTS " &
4380 "-leol " &
4381 "BLANK_LINES " &
4382 "-lb ";
4383 -- /LINE_METRICS=(option, option ...)
4385 -- Specifies the line metrics to be computed (if not set, all the line
4386 -- metrics are set on, otherwise only specified metrics are computed and
4387 -- reported)
4389 -- option may be one of the following:
4391 -- ALL (D) All the line metrics are computed
4392 -- LINES_ALL All lines are computed
4393 -- CODE_LINES Lines with Ada code are computed
4394 -- COMENT_LINES All comment lines are computed
4395 -- MIXED_CODE_COMMENTS All lines containing both code and comment are
4396 -- computed
4397 -- BLANK_LINES Blank lines are computed
4399 -- All combinations of line metrics options are allowed.
4401 S_Metric_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
4402 "DEFAULT " &
4403 "-vP0 " &
4404 "MEDIUM " &
4405 "-vP1 " &
4406 "HIGH " &
4407 "-vP2";
4408 -- /MESSAGES_PROJECT_FILE[=messages-option]
4410 -- Specifies the "verbosity" of the parsing of project files.
4411 -- messages-option may be one of the following:
4413 -- DEFAULT (D) No messages are output if there is no error or warning.
4415 -- MEDIUM A small number of messages are output.
4417 -- HIGH A great number of messages are output, most of them not
4418 -- being useful for the user.
4420 S_Metric_Project : aliased constant S := "/PROJECT_FILE=<" &
4421 "-P>";
4422 -- /PROJECT_FILE=filename
4424 -- Specifies the main project file to be used. The project files rooted
4425 -- at the main project file will be parsed before the invocation of the
4426 -- binder.
4428 S_Metric_Quiet : aliased constant S := "/QUIET " &
4429 "-q";
4430 -- /NOQUIET (D)
4431 -- /QUIET
4433 -- Quiet mode: by default GNAT METRIC outputs to the standard error stream
4434 -- the number of program units left to be processed. This option turns
4435 -- this trace off.
4437 S_Metric_Suffix : aliased constant S := "/SUFFIX_DETAILS=" & '"' &
4438 "-o" & '"';
4439 -- /SUFFIX_DETAILS=suffix
4441 -- Use the given suffix as the suffix for the name of the file to place
4442 -- the detailed metrics into.
4444 S_Metric_Suppress : aliased constant S := "/SUPPRESS=" &
4445 "NOTHING " &
4446 "!-nocc,!-noec,!-nonl," &
4447 "!-ne,!-nolocal " &
4448 "CYCLOMATIC_COMPLEXITY " &
4449 "-nocc " &
4450 "ESSENTIAL_COMPLEXITY " &
4451 "-noec " &
4452 "MAXIMAL_LOOP_NESTING " &
4453 "-nonl " &
4454 "EXITS_AS_GOTOS " &
4455 "-ne " &
4456 "LOCAL_DETAILS " &
4457 "-nolocal ";
4458 -- /SUPPRESS=(option, option ...)
4460 -- Specifies the metric that should not be computed
4462 -- option may be one of the following:
4464 -- NOTHING (D) Do not suppress computation of any metric
4465 -- CYCLOMATIC_COMPLEXITY Do not compute the Cyclomatic Complexity
4466 -- ESSENTIAL_COMPLEXITY Do not compute the Essential Complexity
4467 -- MAXIMAL_LOOP_NESTING Do not compute the maximal loop nesting
4468 -- EXITS_AS_GOTOS Do not count EXIT statements as GOTOs when
4469 -- computing the Essential Complexity
4470 -- LOCAL_DETAILS Do not compute the detailed metrics for local
4471 -- program units
4473 -- All combinations of options are allowed.
4475 S_Metric_Verbose : aliased constant S := "/VERBOSE " &
4476 "-v";
4477 -- /NOVERBOSE (D)
4478 -- /VERBOSE
4480 -- Verbose mode.
4482 S_Metric_XMLout : aliased constant S := "/XML_OUTPUT=@" &
4483 "-ox@";
4484 -- /XML_OUTPUT=filename
4486 -- Place the XML output into the specified file
4488 Metric_Switches : aliased constant Switches :=
4489 (S_Metric_All_Prjs 'Access,
4490 S_Metric_Debug 'Access,
4491 S_Metric_Direct 'Access,
4492 S_Metric_Element 'Access,
4493 S_Metric_Ext 'Access,
4494 S_Metric_Files 'Access,
4495 S_Metric_Format 'Access,
4496 S_Metric_Globout 'Access,
4497 S_Metric_Line 'Access,
4498 S_Metric_Mess 'Access,
4499 S_Metric_Project 'Access,
4500 S_Metric_Quiet 'Access,
4501 S_Metric_Suffix 'Access,
4502 S_Metric_Suppress 'Access,
4503 S_Metric_Verbose 'Access,
4504 S_Metric_XMLout 'Access);
4506 ----------------------------
4507 -- Switches for GNAT NAME --
4508 ----------------------------
4510 S_Name_Conf : aliased constant S := "/CONFIG_FILE=<" &
4511 "-c>";
4512 -- /CONFIG_FILE=path_name
4514 -- Create a configuration pragmas file 'path_name' (instead of the default
4515 -- 'gnat.adc'). 'path_name' may include directory information. 'path_name'
4516 -- must be writable. There may be only one qualifier /CONFIG_FILE.
4517 -- This qualifier is not compatible with qualifier /PROJECT_FILE.
4519 S_Name_Dirs : aliased constant S := "/SOURCE_DIRS=*" &
4520 "-d*";
4521 -- /SOURCE_DIRS=(directory, ...)
4523 -- Look for source files in the specified directories. When this qualifier
4524 -- is specified, the current working directory will not be searched for
4525 -- source files, unless it is explicitly specified with a qualifier
4526 -- /SOURCE_DIRS or /DIRS_FILE. Several qualifiers /SOURCE_DIRS may be
4527 -- specified. If a directory is specified as a relative path, it is
4528 -- relative to the directory of the configuration pragmas file specified
4529 -- with qualifier /CONFIG_FILE, or to the directory of the project file
4530 -- specified with qualifier /PROJECT_FILE or, if neither qualifier
4531 -- /CONFIG_FILE nor qualifier /PROJECT_FILE are specified, it is relative
4532 -- to the current working directory. The directories specified with
4533 -- qualifiers /SOURCE_DIRS must exist and be readable.
4535 S_Name_Dfile : aliased constant S := "/DIRS_FILE=<" &
4536 "-D>";
4537 -- /DIRS_FILE=file_name
4539 -- Look for source files in all directories listed in text file
4540 -- 'file_name'. 'file_name' must be an existing, readable text file.
4541 -- Each non empty line in the specified file must be a directory.
4542 -- Specifying qualifier /DIRS_FILE is equivalent to specifying as many
4543 -- qualifiers /SOURCE_DIRS as there are non empty lines in the specified
4544 -- text file.
4546 S_Name_Frng : aliased constant S := "/FOREIGN_PATTERN=" & '"' &
4547 "-f" & '"';
4548 -- /FOREIGN_PATTERN=<string>
4550 -- Specify a foreign pattern.
4551 -- Using this qualifier, it is possible to add sources of languages other
4552 -- than Ada to the list of sources of a project file. It is only useful
4553 -- if a qualifier /PROJECT_FILE is used. For example,
4555 -- GNAT NAME /PROJECT_FILE=PRJ /FOREIGN_PATTERN="*.C" "*.ADA"
4557 -- will look for Ada units in all files with the '.ADA' extension, and
4558 -- will add to the list of file for project PRJ.GPR the C files with
4559 -- extension ".C".
4561 S_Name_Help : aliased constant S := "/HELP " &
4562 "-h";
4563 -- /NOHELP (D)
4564 -- /HELP
4566 -- Output usage information to the standard output stream.
4568 S_Name_Proj : aliased constant S := "/PROJECT_FILE=<" &
4569 "-P>";
4570 -- /PROJECT_FILE=file_name
4572 -- Create or update a project file. 'file_name' may include directory
4573 -- information. The specified file must be writable. There may be only
4574 -- one qualifier /PROJECT_FILE. When a qualifier /PROJECT_DILE is
4575 -- specified, no qualifier /CONFIG_FILE may be specified.
4577 S_Name_Verbose : aliased constant S := "/VERBOSE " &
4578 "-v";
4579 -- /NOVERBOSE (D)
4580 -- /VERBOSE
4582 -- Verbose mode. Output detailed explanation of behavior to the standard
4583 -- output stream. This includes name of the file written, the name of the
4584 -- directories to search and, for each file in those directories whose
4585 -- name matches at least one of the Naming Patterns, an indication of
4586 -- whether the file contains a unit, and if so the name of the unit.
4588 S_Name_Excl : aliased constant S := "/EXCLUDED_PATTERN=" & '"' &
4589 "-x" & '"';
4590 -- /EXCLUDED_PATTERN=<string>
4592 -- Specify an excluded pattern.
4593 -- Using this qualifier, it is possible to exclude some files that would
4594 -- match the Naming patterns. For example,
4596 -- GNAT NAME /EXCLUDED_PATTERN="*_NT.ADA" "*.ADA"
4598 -- will look for Ada units in all files with the '.ADA' extension, except
4599 -- those whose names end with '_NT.ADA'.
4601 Name_Switches : aliased constant Switches :=
4602 (S_Name_Conf 'Access,
4603 S_Name_Dirs 'Access,
4604 S_Name_Dfile 'Access,
4605 S_Name_Frng 'Access,
4606 S_Name_Help 'Access,
4607 S_Name_Proj 'Access,
4608 S_Name_Verbose 'Access,
4609 S_Name_Excl 'Access);
4611 ----------------------------------
4612 -- Switches for GNAT PREPROCESS --
4613 ----------------------------------
4615 S_Prep_Assoc : aliased constant S := "/ASSOCIATE=" & '"' &
4616 "-D" & '"';
4617 -- /ASSOCIATE="name=val"
4619 -- Defines a new symbol, associated with value. If no value is given
4620 -- on the command line, then symbol is considered to be True.
4621 -- This qualifier can be used in place of a definition file.
4623 S_Prep_Blank : aliased constant S := "/BLANK_LINES " &
4624 "-b";
4625 -- /NOBLANK_LINES (D)
4626 -- /BLANK_LINES
4628 -- Causes both preprocessor lines and the lines deleted by preprocessing
4629 -- to be replaced by blank lines in the output source file, thus
4630 -- preserving line numbers in the output file.
4632 S_Prep_Com : aliased constant S := "/COMMENTS " &
4633 "-c";
4634 -- /NOCOMMENTS (D)
4635 -- /COMMENTS
4637 -- /COMMENTS causes both preprocessor lines and the lines deleted
4638 -- by preprocessing to be retained in the output source as comments marked
4639 -- with the special string "--! ". This option will result in line numbers
4640 -- being preserved in the output file.
4642 -- /NOCOMMENTS causes both preprocessor lines and the lines deleted by
4643 -- preprocessing to be replaced by blank lines in the output source file,
4644 -- thus preserving line numbers in the output file.
4646 S_Prep_Ref : aliased constant S := "/REFERENCE " &
4647 "-r";
4648 -- /NOREFERENCE (D)
4649 -- /REFERENCE
4651 -- Causes a "Source_Reference" pragma to be generated that references the
4652 -- original input file, so that error messages will use the file name of
4653 -- this original file. Also implies /BLANK_LINES if /COMMENTS is not
4654 -- specified.
4656 S_Prep_Remove : aliased constant S := "/REMOVE " &
4657 "!-b,!-c";
4658 -- /REMOVE (D)
4659 -- /NOREMOVE
4661 -- Preprocessor lines and deleted lines are completely removed from the
4662 -- output.
4664 S_Prep_Replace : aliased constant S := "/REPLACE_IN_COMMENTS " &
4665 "-C";
4666 -- /NOREPLACE_IN_COMMENTS (D)
4667 -- /REPLACE_IN_COMMENTS
4669 -- Causes preprocessor to scan comments and perform replacements on
4670 -- any $symbol occurrences within the comment text.
4672 S_Prep_Symbols : aliased constant S := "/SYMBOLS " &
4673 "-s";
4674 -- /NOSYMBOLS (D)
4675 -- /SYMBOLS
4677 -- Causes a sorted list of symbol names and values to be listed on
4678 -- SYS$OUTPUT.
4680 S_Prep_Undef : aliased constant S := "/UNDEFINED " &
4681 "-u";
4682 -- /NOUNDEFINED (D)
4683 -- /UNDEFINED
4685 Prep_Switches : aliased constant Switches :=
4686 (S_Prep_Assoc 'Access,
4687 S_Prep_Blank 'Access,
4688 S_Prep_Com 'Access,
4689 S_Prep_Ref 'Access,
4690 S_Prep_Remove 'Access,
4691 S_Prep_Replace 'Access,
4692 S_Prep_Symbols 'Access,
4693 S_Prep_Undef 'Access);
4695 ------------------------------
4696 -- Switches for GNAT PRETTY --
4697 ------------------------------
4699 S_Pretty_Align : aliased constant S := "/ALIGN=" &
4700 "DEFAULT " &
4701 "-A12345 " &
4702 "OFF " &
4703 "-A0 " &
4704 "COLONS " &
4705 "-A1 " &
4706 "DECLARATIONS " &
4707 "-A2 " &
4708 "STATEMENTS " &
4709 "-A3 " &
4710 "ARROWS " &
4711 "-A4 " &
4712 "COMPONENT_CLAUSES " &
4713 "-A5";
4714 -- /ALIGN[=align-option, align-option, ...]
4716 -- Set alignments. By default, all alignments (colons in declarations,
4717 -- initialisations in declarations, assignments and arrow delimiters) are
4718 -- ON.
4720 -- align-option may be one of the following:
4722 -- OFF (D) Set all alignments to OFF
4723 -- COLONS Set alignments of colons in declarations to ON
4724 -- DECLARATIONS Set alignments of initialisations in declarations
4725 -- to ON
4726 -- STATEMENTS Set alignments of assignments statements to ON
4727 -- ARROWS Set alignments of arrow delimiters to ON.
4728 -- COMPONENT_CLAUSES Set alignments of AT keywords in component
4729 -- clauses ON
4731 -- Specifying one of the ON options without first specifying the OFF
4732 -- option has no effect, because by default all alignments are set to ON.
4734 S_Pretty_All_Prjs : aliased constant S := "/ALL_PROJECTS " &
4735 "-U";
4736 -- /NOALL_PROJECTS (D)
4737 -- /ALL_PROJECTS
4738 -- When GNAT PRETTY is used with a Project File and no source is
4739 -- specified, the underlying tool gnatpp is called for all the
4740 -- sources of all the Project Files in the project tree.
4742 S_Pretty_Attrib : aliased constant S := "/ATTRIBUTE_CASING=" &
4743 "MIXED_CASE " &
4744 "-aM " &
4745 "LOWER_CASE " &
4746 "-aL " &
4747 "UPPER_CASE " &
4748 "-aU";
4749 -- /ATTRIBUTE_CASING[=casing-option]
4751 -- Set the case of the attributes. By default the attributes are in mixed
4752 -- case.
4753 -- casing-option may be one of the following:
4755 -- MIXED_CASE (D)
4756 -- LOWER_CASE
4757 -- UPPER_CASE
4759 S_Pretty_Comments : aliased constant S := "/COMMENTS_LAYOUT=" &
4760 "UNTOUCHED " &
4761 "-c0 " &
4762 "DEFAULT " &
4763 "-c1 " &
4764 "STANDARD_INDENT " &
4765 "-c2 " &
4766 "GNAT_BEGINNING " &
4767 "-c3 " &
4768 "REFORMAT " &
4769 "-c4";
4770 -- /COMMENTS_LAYOUT[=layout-option, layout-option, ...]
4772 -- Set the comment layout. By default, comments use the GNAT style
4773 -- comment line indentation.
4775 -- layout-option may be one of the following:
4777 -- UNTOUCHED           All the comments remain unchanged
4778 -- DEFAULT (D) GNAT style comment line indentation
4779 -- STANDARD_INDENT Standard comment line indentation
4780 -- GNAT_BEGINNING GNAT style comment beginning
4781 -- REFORMAT Reformat comment blocks
4783 -- All combinations of layout options are allowed, except for DEFAULT
4784 -- and STANDARD_INDENT which are mutually exclusive, and also if
4785 -- UNTOUCHED is specified, this must be the only option.
4787 -- The difference between "GNAT style comment line indentation" and
4788 -- "standard comment line indentation" is the following: for standard
4789 -- comment indentation, any comment line is indented as if it were
4790 -- a declaration or statement at the same place.
4791 -- For GNAT style comment indentation, comment lines which are
4792 -- immediately followed by if or case statement alternative, record
4793 -- variant or 'begin' keyword are indented as the keyword that follows
4794 -- them.:
4796 -- Standard indentation:
4798 -- if A then
4799 -- null;
4800 -- -- some comment
4801 -- else
4802 -- null;
4803 -- end if;
4805 -- GNAT style indentation:
4807 -- if A then
4808 -- null;
4809 -- -- some comment
4810 -- else
4811 -- null;
4812 -- end if;
4814 -- Option "GNAT style comment beginning" means that for each comment
4815 -- which is not considered as non-formattable separator (that is, the
4816 -- comment line contains only dashes, or a comment line ends with two
4817 -- dashes), there will be at least two spaces between starting "--" and
4818 -- the first non-blank character of the comment.
4820 S_Pretty_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
4821 "-gnatec>";
4822 -- /CONFIGURATION_PRAGMAS_FILE=file
4824 -- Specify a configuration pragmas file that need to be passed to the
4825 -- compiler.
4827 S_Pretty_Constr : aliased constant S := "/CONSTRUCT_LAYOUT=" &
4828 "GNAT " &
4829 "-l1 " &
4830 "COMPACT " &
4831 "-l2 " &
4832 "UNCOMPACT " &
4833 "-l3";
4834 -- /CONSTRUCT_LAYOUT[=construct-option]
4836 -- Set construct layout. Default is GNAT style layout.
4837 -- construct-option may be one of the following:
4839 -- GNAT (D)
4840 -- COMPACT
4841 -- UNCOMPACT
4843 -- The difference between GNAT style and Compact layout on one hand
4844 -- and Uncompact layout on the other hand can be illustrated by the
4845 -- following examples:
4847 -- GNAT style and Uncompact layout
4848 -- Compact layout
4850 -- type q is record type q is
4851 -- a : integer; record
4852 -- b : integer; a : integer;
4853 -- end record; b : integer;
4854 -- end record;
4857 -- Block : declare Block :
4858 -- A : Integer := 3; declare
4859 -- begin A : Integer := 3;
4860 -- Proc (A, A); begin
4861 -- end Block; Proc (A, A);
4862 -- end Block;
4864 -- Clear : for J in 1 .. 10 loop Clear :
4865 -- A (J) := 0; for J in 1 .. 10 loop
4866 -- end loop Clear; A (J) := 0;
4867 -- end loop Clear;
4870 -- A further difference between GNAT style layout and compact layout is
4871 -- that in GNAT style layout compound statements, return statements and
4872 -- bodies are always separated by empty lines.
4874 S_Pretty_Comind : aliased constant S := "/CONTINUATION_INDENT=#" &
4875 "-cl#";
4876 -- /CONTINUATION_INDENT=nnn
4878 -- Indentation level for continuation lines, nnn from 1 .. 9.
4879 -- The default value is one less then the (normal) indentation level,
4880 -- unless the indentation is set to 1: in that case the default value for
4881 -- continuation line indentation is also 1.
4883 S_Pretty_Compact_Is : aliased constant S := "/NO_SEPARATE_IS " &
4884 "--no-separate-is";
4885 -- /NO_SEPARATE_IS
4887 -- Do not place the IS keyword on a separate line in a subprogram body in
4888 -- case if the specification occupies more then one line.
4890 S_Pretty_Eol : aliased constant S := "/END_OF_LINE=" &
4891 "DOS " &
4892 "--eol=dos " &
4893 "UNIX " &
4894 "--eol=unix " &
4895 "CRLF " &
4896 "--eol=crlf " &
4897 "LF " &
4898 "--eol=lf";
4899 -- /END_OF_LINE=[option]
4901 -- Specifies the form of the line terminators in the produced source.
4902 -- By default, the form of the line terminator depends on the platforms.
4903 -- On Unix and VMS, it is a Line Feed (LF) chararcter. On Windows (DOS),
4904 -- It is a Carriage Return (CR) followed by a Line Feed.
4905 -- The Options DOS and CRLF are equivalent. The options UNIX and LF are
4906 -- also equivalent.
4908 S_Pretty_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
4909 "-X" & '"';
4910 -- /EXTERNAL_REFERENCE="name=val"
4912 -- Specifies an external reference to the project manager. Useful only if
4913 -- /PROJECT_FILE is used.
4915 -- Example:
4916 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
4918 S_Pretty_Current : aliased constant S := "/CURRENT_DIRECTORY " &
4919 "!-I-";
4920 -- /CURRENT_DIRECTORY (D)
4922 -- Look for source files in the current working directory.
4924 -- /NOCURRENT_DIRECTORY
4925 -- Do not look for source files in the current working directory.
4927 S_Pretty_Dico : aliased constant S := "/DICTIONARY=*" &
4928 "-D*";
4929 -- /DICTIONARY=(file_name, ...)
4931 -- Use each specified file as a dictionary file that defines the casing
4932 -- for a set of specified names, thereby overriding the effect on these
4933 -- names by any explicit or implicit /NAME_CASING qualifier.
4935 -- GNAT PRETTY implicitly uses a default dictionary file to define the
4936 -- casing for the Ada predefined names and the names declared in the GNAT
4937 -- libraries.
4939 -- The structure of a dictionary file, and details on the conventions
4940 -- used in the default dictionary file, are defined in the GNAT User's
4941 -- Guide.
4943 S_Pretty_Files : aliased constant S := "/FILES=@" &
4944 "-files=@";
4945 -- /FILES=filename
4947 -- Take as arguments the files that are listed in the specified
4948 -- text file.
4950 S_Pretty_Forced : aliased constant S := "/FORCED_OUTPUT=@" &
4951 "-of@";
4952 -- /FORCED_OUTPUT=file
4954 -- Write the output into the specified file, overriding any possibly
4955 -- existing file.
4957 S_Pretty_Formfeed : aliased constant S := "/FORM_FEED_AFTER_PRAGMA_PAGE " &
4958 "-ff";
4959 -- /FORM_FEED_AFTER_PRAGMA_PAGE
4961 -- When there is a pragma Page in the source, insert a Form Feed
4962 -- character immediately after the semicolon that follows the pragma
4963 -- Page.
4965 S_Pretty_Indent : aliased constant S := "/INDENTATION_LEVEL=#" &
4966 "-i#";
4967 -- /INDENTATION_LEVEL=nnn
4969 -- Specify the number of spaces to add for each indentation level.
4970 -- nnn must be between 1 and 9. The default is 3.
4972 S_Pretty_Keyword : aliased constant S := "/KEYWORD_CASING=" &
4973 "LOWER_CASE " &
4974 "-kL " &
4975 "UPPER_CASE " &
4976 "-kU";
4977 -- /KEYWORD_CASING[=keyword-option]
4979 -- Specify the case of Ada keywords. The default is keywords in lower
4980 -- case.
4981 -- keyword-option may be one of the following:
4983 -- LOWER_CASE (D)
4984 -- UPPER_CASE
4986 S_Pretty_Maxlen : aliased constant S := "/LINE_LENGTH_MAX=#" &
4987 "-M#";
4988 -- /LINE_LENGTH_MAX=nnn
4990 -- Set the maximum line length, nnn from 32 ..256. The default is 79.
4992 S_Pretty_Maxind : aliased constant S := "/MAX_INDENT=#" &
4993 "-T#";
4994 -- /MAX_INDENT=nnn
4996 -- Do not use an additional indentation level for case alternatives
4997 -- and variants if their number is nnn or more. The default is 10.
4998 -- If nnn is zero, an additional indentation level is used for any number
4999 -- of case alternatives and variants.
5001 S_Pretty_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5002 "DEFAULT " &
5003 "-vP0 " &
5004 "MEDIUM " &
5005 "-vP1 " &
5006 "HIGH " &
5007 "-vP2";
5008 -- /MESSAGES_PROJECT_FILE[=messages-option]
5010 -- Specifies the "verbosity" of the parsing of project files.
5011 -- messages-option may be one of the following:
5013 -- DEFAULT (D) No messages are output if there is no error or warning.
5015 -- MEDIUM A small number of messages are output.
5017 -- HIGH A great number of messages are output, most of them not
5018 -- being useful for the user.
5020 S_Pretty_Names : aliased constant S := "/NAME_CASING=" &
5021 "AS_DECLARED " &
5022 "-nD " &
5023 "LOWER_CASE " &
5024 "-nL " &
5025 "UPPER_CASE " &
5026 "-nU " &
5027 "MIXED_CASE " &
5028 "-nM";
5029 -- /NAME_CASING[=name-option]
5031 -- Specify the casing of names.
5032 -- 'name-option' may be one of:
5034 -- AS_DECLARED (D) Name casing for defining occurrences are as they
5035 -- appear in the source file.
5037 -- LOWER_CASE Names are in lower case.
5039 -- UPPER_CASE Names are in upper case.
5041 -- MIXED_CASE Names are in mixed case.
5043 S_Pretty_No_Backup : aliased constant S := "/NO_BACKUP " &
5044 "-rnb";
5045 -- /REPLACE_NO_BACKUP
5047 -- Replace the argument source with the pretty-printed source without
5048 -- creating any backup copy of the argument source.
5050 S_Pretty_No_Labels : aliased constant S := "/NO_MISSED_LABELS " &
5051 "-e";
5052 -- /NO_MISSED_LABELS
5054 -- Do not insert missing end/exit labels. The end label is the name of
5055 -- a construct that may optionally appear at the end of the construct.
5056 -- This includes the names of packages and subprograms.
5057 -- Similarly, the exit label is the name of a loop that may appear as the
5058 -- argument of an exit statement within the loop. By default, GNAT PRETTY
5059 -- inserts these end/exit labels when they are absent in the original
5060 -- source. This qualifier /NO_MISSED_LABELS suppresses this insertion,
5061 -- so that the formatted source reflects the original.
5063 S_Pretty_Notabs : aliased constant S := "/NOTABS " &
5064 "-notabs";
5065 -- /NOTABS
5067 -- Replace all tabulations in comments with spaces.
5069 S_Pretty_Output : aliased constant S := "/OUTPUT=@" &
5070 "-o@";
5071 -- /OUTPUT=file
5073 -- Write the output to the specified file. If the file already exists,
5074 -- an error is reported.
5076 S_Pretty_Override : aliased constant S := "/OVERRIDING_REPLACE " &
5077 "-rf";
5078 -- /NOOVERRIDING_REPLACE (D)
5079 -- /OVERRIDING_REPLACE
5081 -- Replace the argument source with the pretty-printed source and copy the
5082 -- argument source into filename.NPP, overriding any existing file if
5083 -- needed.
5085 S_Pretty_Pragma : aliased constant S := "/PRAGMA_CASING=" &
5086 "MIXED_CASE " &
5087 "-pM " &
5088 "LOWER_CASE " &
5089 "-pL " &
5090 "UPPER_CASE " &
5091 "-pU";
5092 -- /PRAGMA_CASING[=pragma-option]
5094 -- Set the case of pragma identifiers. The default is Mixed case.
5095 -- pragma-option may be one of the following:
5097 -- MIXED_CASE (D)
5098 -- LOWER_CASE
5099 -- UPPER_CASE
5101 S_Pretty_Project : aliased constant S := "/PROJECT_FILE=<" &
5102 "-P>";
5103 -- /PROJECT_FILE=filename
5105 -- Specifies the main project file to be used. The project files rooted
5106 -- at the main project file will be parsed before any other processing to
5107 -- set the building environment.
5109 S_Pretty_Replace : aliased constant S := "/REPLACE " &
5110 "-r";
5111 -- /NOREPLACE (D)
5112 -- /REPLACE
5114 -- Replace the argument source with the pretty-printed source and copy the
5115 -- argument source into filename.NPP. If filename.NPP already exists,
5116 -- report an error and exit.
5118 S_Pretty_RTS : aliased constant S := "/RUNTIME_SYSTEM=|" &
5119 "--RTS=|";
5120 -- /RUNTIME_SYSTEM=xxx
5122 -- Compile against an alternate runtime system named xxx or RTS-xxx.
5124 S_Pretty_Search : aliased constant S := "/SEARCH=*" &
5125 "-I*";
5126 -- /SEARCH=(directory[,...])
5128 -- When looking for source files also look in directories specified.
5130 S_Pretty_Specific : aliased constant S := "/SPECIFIC_CASING " &
5131 "-D-";
5132 -- /SPECIFIC_CASING
5134 -- Do not use the default dictionary file; instead, use the casing
5135 -- defined by a qualifier /NAME_CASING and/or any explicit dictionary
5136 -- file specified by a qualifier /DICTIONARY.
5138 S_Pretty_Standard : aliased constant S := "/STANDARD_OUTPUT " &
5139 "-pipe";
5140 -- /NOSTANDARD_OUTPUT (D)
5141 -- /STANDARD_OUTPUT
5143 -- Redirect the output to the standard output.
5145 S_Pretty_Verbose : aliased constant S := "/VERBOSE " &
5146 "-v";
5147 -- /NOVERBOSE (D)
5148 -- /VERBOSE
5150 -- Verbose mode; GNAT PRETTY generates version information and then a
5151 -- trace of the actions it takes to produce or obtain the ASIS tree.
5153 S_Pretty_Warnings : aliased constant S := "/WARNINGS " &
5154 "-w";
5155 -- /NOWARNINGS (D)
5156 -- /WARNINGS
5158 -- Issue a warning to the standard error stream if it is not possible
5159 -- to provide the required layout in the result source.
5160 -- By default such warnings are not activated.
5162 Pretty_Switches : aliased constant Switches :=
5163 (S_Pretty_Align 'Access,
5164 S_Pretty_All_Prjs 'Access,
5165 S_Pretty_Attrib 'Access,
5166 S_Pretty_Comments 'Access,
5167 S_Pretty_Compact_Is'Access,
5168 S_Pretty_Config 'Access,
5169 S_Pretty_Constr 'Access,
5170 S_Pretty_Comind 'Access,
5171 S_Pretty_Current 'Access,
5172 S_Pretty_Dico 'Access,
5173 S_Pretty_Eol 'Access,
5174 S_Pretty_Ext 'Access,
5175 S_Pretty_Files 'Access,
5176 S_Pretty_Forced 'Access,
5177 S_Pretty_Formfeed 'Access,
5178 S_Pretty_Indent 'Access,
5179 S_Pretty_Keyword 'Access,
5180 S_Pretty_Maxlen 'Access,
5181 S_Pretty_Maxind 'Access,
5182 S_Pretty_Mess 'Access,
5183 S_Pretty_Names 'Access,
5184 S_Pretty_No_Backup 'Access,
5185 S_Pretty_No_Labels 'Access,
5186 S_Pretty_Notabs 'Access,
5187 S_Pretty_Output 'Access,
5188 S_Pretty_Override 'Access,
5189 S_Pretty_Pragma 'Access,
5190 S_Pretty_Replace 'Access,
5191 S_Pretty_Project 'Access,
5192 S_Pretty_RTS 'Access,
5193 S_Pretty_Search 'Access,
5194 S_Pretty_Specific 'Access,
5195 S_Pretty_Standard 'Access,
5196 S_Pretty_Verbose 'Access,
5197 S_Pretty_Warnings 'Access);
5199 -----------------------------
5200 -- Switches for GNAT SETUP --
5201 -----------------------------
5203 S_Setup_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5204 "-X" & '"';
5205 -- /EXTERNAL_REFERENCE="name=val"
5207 -- Specifies an external reference to the project manager. Useful only if
5208 -- /PROJECT_FILE is used.
5210 -- Example:
5211 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5213 S_Setup_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5214 "DEFAULT " &
5215 "-vP0 " &
5216 "MEDIUM " &
5217 "-vP1 " &
5218 "HIGH " &
5219 "-vP2";
5220 -- /MESSAGES_PROJECT_FILE[=messages-option]
5222 -- Specifies the "verbosity" of the parsing of project files.
5223 -- messages-option may be one of the following:
5225 -- DEFAULT (D) No messages are output if there is no error or warning.
5227 -- MEDIUM A small number of messages are output.
5229 -- HIGH A great number of messages are output, most of them not
5230 -- being useful for the user.
5232 S_Setup_Project : aliased constant S := "/PROJECT_FILE=<" &
5233 "-P>";
5234 -- /PROJECT_FILE=filename
5236 -- Specifies the main project file to be used. The project files rooted
5237 -- at the main project file are parsed and non existing object
5238 -- directories, library directories and exec directories are created.
5240 S_Setup_Quiet : aliased constant S := "/QUIET " &
5241 "-q";
5242 -- /NOQUIET (D)
5243 -- /QUIET
5245 -- Work quietly, only output warnings and errors.
5247 S_Setup_Verbose : aliased constant S := "/VERBOSE " &
5248 "-v";
5249 -- /NOVERBOSE (D)
5250 -- /VERBOSE
5252 -- Verbose mode; GNAT PRETTY generates version information and then a
5253 -- trace of the actions it takes to produce or obtain the ASIS tree.
5255 Setup_Switches : aliased constant Switches :=
5256 (S_Setup_Ext 'Access,
5257 S_Setup_Mess 'Access,
5258 S_Setup_Project 'Access,
5259 S_Setup_Quiet 'Access,
5260 S_Setup_Verbose 'Access);
5262 ------------------------------
5263 -- Switches for GNAT SHARED --
5264 ------------------------------
5266 S_Shared_Debug : aliased constant S := "/DEBUG=" &
5267 "ALL " &
5268 "-g3 " &
5269 "NONE " &
5270 "-g0 " &
5271 "TRACEBACK " &
5272 "-g1 " &
5273 "NOTRACEBACK " &
5274 "-g0";
5275 -- /DEBUG[=debug-option]
5276 -- /NODEBUG
5278 -- Specifies the amount of debugging information included. 'debug-option'
5279 -- is one of the following:
5281 -- ALL (D) Include full debugging information.
5283 -- NONE Provide no debugging information. Same as /NODEBUG.
5285 -- TRACEBACK Provide sufficient debug information for a traceback.
5287 -- NOTRACEBACK Same as NONE.
5289 S_Shared_Image : aliased constant S := "/IMAGE=@" &
5290 "-o@";
5291 -- /IMAGE=image-name
5293 -- 'image-name' specifies the name for the generated shared library.
5295 S_Shared_Ident : aliased constant S := "/IDENTIFICATION=" & '"' &
5296 "--for-linker=IDENT=" &
5297 '"';
5298 -- /IDENTIFICATION="<string>"
5300 -- "<string>" specifies the string to be stored in the image file ident-
5301 -- ification field in the image header. It overrides any pragma Ident
5302 -- specified string.
5304 S_Shared_Nofiles : aliased constant S := "/NOSTART_FILES " &
5305 "-nostartfiles";
5306 -- /NOSTART_FILES
5308 -- Link in default image initialization and startup functions.
5310 S_Shared_Noinhib : aliased constant S := "/NOINHIBIT-IMAGE " &
5311 "--for-linker=--noinhibit-exec";
5312 -- /NOINHIBIT-IMAGE
5314 -- Delete image if there are errors or warnings.
5316 S_Shared_Verb : aliased constant S := "/VERBOSE " &
5317 "-v";
5318 -- /NOVERBOSE (D)
5319 -- /VERBOSE
5321 -- Causes additional information to be output, including a full list of
5322 -- the included object files. This switch option is most useful when you
5323 -- want to see what set of object files are being used in the link step.
5325 S_Shared_ZZZZZ : aliased constant S := "/<other> " &
5326 "--for-linker=";
5327 -- /<other>
5329 -- Any other switch transmitted to the underlying linker.
5331 Shared_Switches : aliased constant Switches :=
5332 (S_Shared_Debug 'Access,
5333 S_Shared_Image 'Access,
5334 S_Shared_Ident 'Access,
5335 S_Shared_Nofiles 'Access,
5336 S_Shared_Noinhib 'Access,
5337 S_Shared_Verb 'Access,
5338 S_Shared_ZZZZZ 'Access);
5340 ----------------------------
5341 -- Switches for GNAT STUB --
5342 ----------------------------
5344 S_Stub_Config : aliased constant S := "/CONFIGURATION_PRAGMAS_FILE=<" &
5345 "-gnatec>";
5346 -- /CONFIGURATION_PRAGMAS_FILE=filespec
5348 -- Specifies a configuration pragmas file that must be taken into account
5349 -- when compiling.
5351 S_Stub_Current : aliased constant S := "/CURRENT_DIRECTORY " &
5352 "!-I-";
5353 -- /CURRENT_DIRECTORY (D)
5354 -- /NOCURRENT_DIRECTORY
5356 -- Look for source, library or object files in the default directory.
5358 S_Stub_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5359 "-X" & '"';
5360 -- /EXTERNAL_REFERENCE="name=val"
5362 -- Specifies an external reference to the project manager. Useful only if
5363 -- /PROJECT_FILE is used.
5365 -- Example:
5366 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5368 S_Stub_Full : aliased constant S := "/FULL " &
5369 "-f";
5370 -- /NOFULL (D)
5371 -- /FULL
5373 -- If the destination directory already contains a file with the name of
5374 -- the body file for the argument file spec, replace it with the generated
5375 -- body stub. If /FULL is not used and there is already a body file, this
5376 -- existing body file is not replaced.
5378 S_Stub_Header : aliased constant S := "/HEADER=" &
5379 "GENERAL " &
5380 "-hg " &
5381 "SPEC " &
5382 "-hs";
5383 -- /HEADER[=header-option]
5385 -- Specifies the form of the comment header above the generated body stub.
5386 -- If no /HEADER qualifier is specified, there is no comment header.
5387 -- header-option is one of the following:
5390 -- GENERAL (D) Put a sample comment header into the body stub.
5392 -- SPEC Put the comment header (i.e., all the comments
5393 -- preceding the compilation unit) from the source of the
5394 -- library unit declaration into the body stub.
5396 S_Stub_Indent : aliased constant S := "/INDENTATION=#" &
5397 "-i#";
5398 -- /INDENTATION=nnn
5400 -- (nnn is a non-negative integer). Set the indentation level in the
5401 -- generated body stub to nnn. nnn=0 means "no indentation".
5402 -- Default insdentation is 3.
5404 S_Stub_Keep : aliased constant S := "/KEEP " &
5405 "-k";
5406 -- /NOKEEP (D)
5407 -- /KEEP
5409 -- Do not delete the tree file (i.e., the snapshot of the compiler
5410 -- internal structures used by gnatstub) after creating the body stub.
5412 S_Stub_Length : aliased constant S := "/LINE_LENGTH=#" &
5413 "-l#";
5414 -- /LINE_LENGTH=nnn
5416 -- (n is a non-negative integer). Set the maximum line length in the body
5417 -- stub to nnn. Default is 78.
5419 S_Stub_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5420 "DEFAULT " &
5421 "-vP0 " &
5422 "MEDIUM " &
5423 "-vP1 " &
5424 "HIGH " &
5425 "-vP2";
5426 -- /MESSAGES_PROJECT_FILE[=messages-option]
5428 -- Specifies the "verbosity" of the parsing of project files.
5429 -- messages-option may be one of the following:
5431 -- DEFAULT (D) No messages are output if there is no error or warning.
5433 -- MEDIUM A small number of messages are output.
5435 -- HIGH A great number of messages are output, most of them not
5436 -- being useful for the user.
5438 S_Stub_Output : aliased constant S := "/OUTPUT=@" &
5439 "-o@";
5440 -- /OUTPUT=filespec
5442 -- Body file name. This should be set if the argument file name does not
5443 -- follow the GNAT file naming conventions. If this switch is omitted,
5444 -- the default name for the body will be obtained from the argument file
5445 -- name according to the GNAT file naming conventions.
5447 S_Stub_Project : aliased constant S := "/PROJECT_FILE=<" &
5448 "-P>";
5449 -- /PROJECT_FILE=filename
5451 -- Specifies the main project file to be used. The project files rooted
5452 -- at the main project file will be parsed before any other processing.
5453 -- The source and object directories to be searched will be communicated
5454 -- to gnatstub through logical names ADA_PRJ_INCLUDE_FILE and
5455 -- ADA_PRJ_OBJECTS_FILE.
5457 S_Stub_Quiet : aliased constant S := "/QUIET " &
5458 "-q";
5459 -- /NOQUIET (D)
5460 -- /QUIET
5462 -- Quiet mode: do not generate a confirmation when a body is successfully
5463 -- created, and do not generate a message when a body is not required for
5464 -- an argument unit.
5466 S_Stub_Search : aliased constant S := "/SEARCH=*" &
5467 "-I*";
5468 -- /SEARCH=(directory[,...])
5470 -- When looking for source files also look in directories specified.
5472 S_Stub_Tree : aliased constant S := "/TREE_FILE=" &
5473 "OVERWRITE " &
5474 "-t " &
5475 "SAVE " &
5476 "-k " &
5477 "REUSE " &
5478 "-r";
5479 -- /TREE_FILE[=treefile-option]
5481 -- Specify what to do with the tree file.
5482 -- treefile-option is one of the following:
5484 -- OVERWRITE (D) Overwrite the existing tree file. If the current
5485 -- directory already contains the file which, according
5486 -- to the GNAT file naming rules should be considered
5487 -- as a tree file for the argument source file,
5488 -- gnatstub will refuse to create the tree file needed
5489 -- to create a sample body unless this option is chosen.
5491 -- SAVE Do not remove the tree file (i.e., the snapshot
5492 -- of the compiler internal structures used by gnatstub)
5493 -- after creating the body stub.
5495 -- REUSE Reuse the tree file (if it exists) instead of
5496 -- creating it.
5497 -- Instead of creating the tree file for the library
5498 -- unit declaration, gnatstub tries to find it in the
5499 -- current directory and use it for creating a body.
5500 -- If the tree file is not found, no body is created.
5501 -- This option also implies `SAVE', whether or not the
5502 -- latter is set explicitly.
5504 S_Stub_Verbose : aliased constant S := "/VERBOSE " &
5505 "-v";
5506 -- /NOVERBOSE (D)
5507 -- /VERBOSE
5509 -- Verbose mode: generate version information.
5511 Stub_Switches : aliased constant Switches :=
5512 (S_Stub_Config 'Access,
5513 S_Stub_Current 'Access,
5514 S_Stub_Ext 'Access,
5515 S_Stub_Full 'Access,
5516 S_Stub_Header 'Access,
5517 S_Stub_Indent 'Access,
5518 S_Stub_Keep 'Access,
5519 S_Stub_Length 'Access,
5520 S_Stub_Mess 'Access,
5521 S_Stub_Output 'Access,
5522 S_Stub_Project 'Access,
5523 S_Stub_Quiet 'Access,
5524 S_Stub_Search 'Access,
5525 S_Stub_Tree 'Access,
5526 S_Stub_Verbose 'Access);
5528 ----------------------------
5529 -- Switches for GNAT XREF --
5530 ----------------------------
5532 S_Xref_All : aliased constant S := "/ALL_FILES " &
5533 "-a";
5534 -- /NOALL_FILES (D)
5535 -- /ALL_FILES
5537 -- If this switch is present, FIND and XREF will parse the read-only
5538 -- files found in the library search path. Otherwise, these files will
5539 -- be ignored. This option can be used to protect Gnat sources or your
5540 -- own libraries from being parsed, thus making FIND and XREF much
5541 -- faster, and their output much smaller.
5543 S_Xref_Deriv : aliased constant S := "/DERIVED_TYPES " &
5544 "-d";
5545 -- /NODERIVED_TYPES (D)
5546 -- /DERIVED_TYPES
5548 -- Output the parent type reference for each matching derived types.
5550 S_Xref_Ext : aliased constant S := "/EXTERNAL_REFERENCE=" & '"' &
5551 "-X" & '"';
5552 -- /EXTERNAL_REFERENCE="name=val"
5554 -- Specifies an external reference to the project manager. Useful only if
5555 -- /PROJECT_FILE is used.
5557 -- Example:
5558 -- /EXTERNAL_REFERENCE="DEBUG=TRUE"
5560 S_Xref_Full : aliased constant S := "/FULL_PATHNAME " &
5561 "-f";
5562 -- /NOFULL_PATHNAME (D)
5563 -- /FULL_PATHNAME
5565 -- If this switch is set, the output file names will be preceded by their
5566 -- directory (if the file was found in the search path). If this switch
5567 -- is not set, the directory will not be printed.
5569 S_Xref_Global : aliased constant S := "/IGNORE_LOCALS " &
5570 "-g";
5571 -- /NOIGNORE_LOCALS (D)
5572 -- /IGNORE_LOCALS
5574 -- If this switch is set, information is output only for library-level
5575 -- entities, ignoring local entities. The use of this switch may
5576 -- accelerate FIND and XREF.
5578 S_Xref_Mess : aliased constant S := "/MESSAGES_PROJECT_FILE=" &
5579 "DEFAULT " &
5580 "-vP0 " &
5581 "MEDIUM " &
5582 "-vP1 " &
5583 "HIGH " &
5584 "-vP2";
5585 -- /MESSAGES_PROJECT_FILE[=messages-option]
5587 -- Specifies the "verbosity" of the parsing of project files.
5588 -- messages-option may be one of the following:
5590 -- DEFAULT (D) No messages are output if there is no error or warning.
5592 -- MEDIUM A small number of messages are output.
5594 -- HIGH A great number of messages are output, most of them not
5595 -- being useful for the user.
5597 S_Xref_Nostinc : aliased constant S := "/NOSTD_INCLUDES " &
5598 "-nostdinc";
5599 -- /NOSTD_INCLUDES
5601 -- Do not look for sources in the system default directory.
5603 S_Xref_Nostlib : aliased constant S := "/NOSTD_LIBRARIES " &
5604 "-nostdlib";
5605 -- /NOSTD_LIBRARIES
5607 -- Do not look for library files in the system default directory.
5609 S_Xref_Object : aliased constant S := "/OBJECT_SEARCH=*" &
5610 "-aO*";
5611 -- /OBJECT_SEARCH=(directory,...)
5613 -- When searching for library and object files, look in the specified
5614 -- directories. The order in which library files are searched is the same
5615 -- as for MAKE.
5617 S_Xref_Project : aliased constant S := "/PROJECT=@" &
5618 "-p@";
5619 -- /PROJECT=file
5621 -- Specify a project file to use. By default, FIND and XREF will try to
5622 -- locate a project file in the current directory.
5624 -- If a project file is either specified or found by the tools, then the
5625 -- content of the source directory and object directory lines are added
5626 -- as if they had been specified respectively by /SOURCE_SEARCH and
5627 -- /OBJECT_SEARCH.
5629 S_Xref_Prj : aliased constant S := "/PROJECT_FILE=<" &
5630 "-P>";
5631 -- /PROJECT_FILE=filename
5633 -- Specifies the main project file to be used. The project files rooted
5634 -- at the main project file will be parsed before doing any processing.
5635 -- The source and object directories to be searched will be communicated
5636 -- to gnatxref through logical names ADA_PRJ_INCLUDE_FILE and
5637 -- ADA_PRJ_OBJECTS_FILE.
5639 S_Xref_Search : aliased constant S := "/SEARCH=*" &
5640 "-I*";
5641 -- /SEARCH=(directory,...)
5643 -- Equivalent to:
5644 -- /OBJECT_SEARCH=(directory,...) /SOURCE_SEARCH=(directory,...)
5646 S_Xref_Source : aliased constant S := "/SOURCE_SEARCH=*" &
5647 "-aI*";
5648 -- /SOURCE_SEARCH=(directory,...)
5650 -- When looking for source files also look in the specified directories.
5651 -- The order in which source file search is undertaken is the same as for
5652 -- MAKE.
5654 S_Xref_Output : aliased constant S := "/UNUSED " &
5655 "-u";
5656 -- /SOURCE_SEARCH=(directory,...)
5658 -- When looking for source files also look in the specified directories.
5659 -- The order in which source file search is undertaken is the same as for
5660 -- MAKE.
5662 S_Xref_Tags : aliased constant S := "/TAGS " &
5663 "-v";
5664 -- /NOTAGS (D)
5665 -- /TAGS
5667 -- Print a 'tags' file for vi.
5669 Xref_Switches : aliased constant Switches :=
5670 (S_Xref_All 'Access,
5671 S_Xref_Deriv 'Access,
5672 S_Xref_Ext 'Access,
5673 S_Xref_Full 'Access,
5674 S_Xref_Global 'Access,
5675 S_Xref_Mess 'Access,
5676 S_Xref_Nostinc 'Access,
5677 S_Xref_Nostlib 'Access,
5678 S_Xref_Object 'Access,
5679 S_Xref_Project 'Access,
5680 S_Xref_Prj 'Access,
5681 S_Xref_Search 'Access,
5682 S_Xref_Source 'Access,
5683 S_Xref_Output 'Access,
5684 S_Xref_Tags 'Access);
5686 end VMS_Data;