annotate gcc/ada/debug.adb @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT COMPILER COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- D E B U G --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- B o d y --
kono
parents:
diff changeset
8 -- --
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
9 -- Copyright (C) 1992-2019, Free Software Foundation, Inc. --
111
kono
parents:
diff changeset
10 -- --
kono
parents:
diff changeset
11 -- GNAT is free software; you can redistribute it and/or modify it under --
kono
parents:
diff changeset
12 -- terms of the GNU General Public License as published by the Free Soft- --
kono
parents:
diff changeset
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
kono
parents:
diff changeset
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
kono
parents:
diff changeset
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
kono
parents:
diff changeset
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
kono
parents:
diff changeset
17 -- --
kono
parents:
diff changeset
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
kono
parents:
diff changeset
19 -- additional permissions described in the GCC Runtime Library Exception, --
kono
parents:
diff changeset
20 -- version 3.1, as published by the Free Software Foundation. --
kono
parents:
diff changeset
21 -- --
kono
parents:
diff changeset
22 -- You should have received a copy of the GNU General Public License and --
kono
parents:
diff changeset
23 -- a copy of the GCC Runtime Library Exception along with this program; --
kono
parents:
diff changeset
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
kono
parents:
diff changeset
25 -- <http://www.gnu.org/licenses/>. --
kono
parents:
diff changeset
26 -- --
kono
parents:
diff changeset
27 -- GNAT was originally developed by the GNAT team at New York University. --
kono
parents:
diff changeset
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
kono
parents:
diff changeset
29 -- --
kono
parents:
diff changeset
30 ------------------------------------------------------------------------------
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 package body Debug is
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 ---------------------------------
kono
parents:
diff changeset
35 -- Summary of Debug Flag Usage --
kono
parents:
diff changeset
36 ---------------------------------
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 -- Debug flags for compiler (GNAT1)
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 -- da Generate messages tracking semantic analyzer progress
kono
parents:
diff changeset
41 -- db Show encoding of type names for debug output
kono
parents:
diff changeset
42 -- dc List names of units as they are compiled
kono
parents:
diff changeset
43 -- dd Dynamic allocation of tables messages generated
kono
parents:
diff changeset
44 -- de List the entity table
kono
parents:
diff changeset
45 -- df Full tree/source print (includes withed units)
kono
parents:
diff changeset
46 -- dg Print source from tree (generated code only)
kono
parents:
diff changeset
47 -- dh Generate listing showing loading of name table hash chains
kono
parents:
diff changeset
48 -- di Generate messages for visibility linking/delinking
kono
parents:
diff changeset
49 -- dj Suppress "junk null check" for access parameter values
kono
parents:
diff changeset
50 -- dk Generate GNATBUG message on abort, even if previous errors
kono
parents:
diff changeset
51 -- dl Generate unit load trace messages
kono
parents:
diff changeset
52 -- dm Prevent special frontend inlining in GNATprove mode
kono
parents:
diff changeset
53 -- dn Generate messages for node/list allocation
kono
parents:
diff changeset
54 -- do Print source from tree (original code only)
kono
parents:
diff changeset
55 -- dp Generate messages for parser scope stack push/pops
kono
parents:
diff changeset
56 -- dq No auto-alignment of small records
kono
parents:
diff changeset
57 -- dr Generate parser resynchronization messages
kono
parents:
diff changeset
58 -- ds Print source from tree (including original and generated stuff)
kono
parents:
diff changeset
59 -- dt Print full tree
kono
parents:
diff changeset
60 -- du Uncheck categorization pragmas
kono
parents:
diff changeset
61 -- dv Output trace of overload resolution
kono
parents:
diff changeset
62 -- dw Print trace of semantic scope stack
kono
parents:
diff changeset
63 -- dx Force expansion on, even if no code being generated
kono
parents:
diff changeset
64 -- dy Print tree of package Standard
kono
parents:
diff changeset
65 -- dz Print source of package Standard
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 -- dA All entities included in representation information output
kono
parents:
diff changeset
68 -- dB Output debug encoding of type names and variants
kono
parents:
diff changeset
69 -- dC Output debugging information on check suppression
kono
parents:
diff changeset
70 -- dD Delete elaboration checks in inner level routines
kono
parents:
diff changeset
71 -- dE Apply elaboration checks to predefined units
kono
parents:
diff changeset
72 -- dF Perform the new SPARK checking rules for pointer aliasing
kono
parents:
diff changeset
73 -- dG Generate all warnings including those normally suppressed
kono
parents:
diff changeset
74 -- dH Hold (kill) call to gigi
kono
parents:
diff changeset
75 -- dI Inhibit internal name numbering in gnatG listing
kono
parents:
diff changeset
76 -- dJ Prepend subprogram name in messages
kono
parents:
diff changeset
77 -- dK Kill all error messages
kono
parents:
diff changeset
78 -- dL Ignore external calls from instances for elaboration
kono
parents:
diff changeset
79 -- dM Assume all variables are modified (no current values)
kono
parents:
diff changeset
80 -- dN No file name information in exception messages
kono
parents:
diff changeset
81 -- dO Output immediate error messages
kono
parents:
diff changeset
82 -- dP Do not check for controlled objects in preelaborable packages
kono
parents:
diff changeset
83 -- dQ Use old secondary stack method
kono
parents:
diff changeset
84 -- dR Bypass check for correct version of s-rpc
kono
parents:
diff changeset
85 -- dS Never convert numbers to machine numbers in Sem_Eval
kono
parents:
diff changeset
86 -- dT Convert to machine numbers only for constant declarations
kono
parents:
diff changeset
87 -- dU Enable garbage collection of unreachable entities
kono
parents:
diff changeset
88 -- dV Enable viewing of all symbols in debugger
kono
parents:
diff changeset
89 -- dW Disable warnings on calls for IN OUT parameters
kono
parents:
diff changeset
90 -- dX Display messages on reads of potentially uninitialized scalars
kono
parents:
diff changeset
91 -- dY Enable configurable run-time mode
kono
parents:
diff changeset
92 -- dZ Generate listing showing the contents of the dispatch tables
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94 -- d.a Force Target_Strict_Alignment mode to True
kono
parents:
diff changeset
95 -- d.b Dump backend types
kono
parents:
diff changeset
96 -- d.c Generate inline concatenation, do not call procedure
kono
parents:
diff changeset
97 -- d.d Disable atomic synchronization
kono
parents:
diff changeset
98 -- d.e Enable atomic synchronization
kono
parents:
diff changeset
99 -- d.f Inhibit folding of static expressions
kono
parents:
diff changeset
100 -- d.g Enable conversion of raise into goto
kono
parents:
diff changeset
101 -- d.h Minimize the creation of public internal symbols for concatenation
kono
parents:
diff changeset
102 -- d.i Ignore Warnings pragmas
kono
parents:
diff changeset
103 -- d.j Generate listing of frontend inlined calls
kono
parents:
diff changeset
104 -- d.k Kill referenced run-time library unit line numbers
kono
parents:
diff changeset
105 -- d.l Use Ada 95 semantics for limited function returns
kono
parents:
diff changeset
106 -- d.m For -gnatl, print full source only for main unit
kono
parents:
diff changeset
107 -- d.n Print source file names
kono
parents:
diff changeset
108 -- d.o Conservative elaboration order for indirect calls
kono
parents:
diff changeset
109 -- d.p Use original Ada 95 semantics for Bit_Order (disable AI95-0133)
kono
parents:
diff changeset
110 -- d.q Suppress optimizations on imported 'in'
kono
parents:
diff changeset
111 -- d.r Disable reordering of components in record types
kono
parents:
diff changeset
112 -- d.s Strict secondary stack management
kono
parents:
diff changeset
113 -- d.t Disable static allocation of library level dispatch tables
kono
parents:
diff changeset
114 -- d.u Enable Modify_Tree_For_C (update tree for c)
kono
parents:
diff changeset
115 -- d.v Enforce SPARK elaboration rules in SPARK code
kono
parents:
diff changeset
116 -- d.w Do not check for infinite loops
kono
parents:
diff changeset
117 -- d.x No exception handlers
kono
parents:
diff changeset
118 -- d.y Disable implicit pragma Elaborate_All on task bodies
kono
parents:
diff changeset
119 -- d.z Restore previous support for frontend handling of Inline_Always
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 -- d.A Read/write Aspect_Specifications hash table to tree
kono
parents:
diff changeset
122 -- d.B Generate a bug box on abort_statement
kono
parents:
diff changeset
123 -- d.C Generate concatenation call, do not generate inline code
kono
parents:
diff changeset
124 -- d.D Disable errors on use of overriding keyword in Ada 95 mode
kono
parents:
diff changeset
125 -- d.E Turn selected errors into warnings
kono
parents:
diff changeset
126 -- d.F Debug mode for GNATprove
kono
parents:
diff changeset
127 -- d.G Ignore calls through generic formal parameters for elaboration
kono
parents:
diff changeset
128 -- d.H GNSA mode for ASIS
kono
parents:
diff changeset
129 -- d.I Do not ignore enum representation clauses in CodePeer mode
kono
parents:
diff changeset
130 -- d.J Relaxed rules for pragma No_Return
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
131 -- d.K
111
kono
parents:
diff changeset
132 -- d.L Depend on back end for limited types in if and case expressions
kono
parents:
diff changeset
133 -- d.M Relaxed RM semantics
kono
parents:
diff changeset
134 -- d.N Add node to all entities
kono
parents:
diff changeset
135 -- d.O Dump internal SCO tables
kono
parents:
diff changeset
136 -- d.P Previous (non-optimized) handling of length comparisons
kono
parents:
diff changeset
137 -- d.Q Previous (incomplete) style check for binary operators
kono
parents:
diff changeset
138 -- d.R Restrictions in ali files in positional form
kono
parents:
diff changeset
139 -- d.S Force Optimize_Alignment (Space)
kono
parents:
diff changeset
140 -- d.T Force Optimize_Alignment (Time)
kono
parents:
diff changeset
141 -- d.U Ignore indirect calls for static elaboration
kono
parents:
diff changeset
142 -- d.V Do not verify validity of SCIL files (CodePeer mode)
kono
parents:
diff changeset
143 -- d.W Print out debugging information for Walk_Library_Items
kono
parents:
diff changeset
144 -- d.X Old treatment of indexing aspects
kono
parents:
diff changeset
145 -- d.Y
kono
parents:
diff changeset
146 -- d.Z Do not enable expansion in configurable run-time mode
kono
parents:
diff changeset
147
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
148 -- d_a Stop elaboration checks on accept or select statement
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
149 -- d_b
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
150 -- d_c
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
151 -- d_d
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
152 -- d_e Ignore entry calls and requeue statements for elaboration
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
153 -- d_f Issue info messages related to GNATprove usage
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
154 -- d_g
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
155 -- d_h
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
156 -- d_i Ignore activations and calls to instances for elaboration
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
157 -- d_j Read JSON files and populate Repinfo tables (opposite of -gnatRjs)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
158 -- d_k
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
159 -- d_l
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
160 -- d_m
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
161 -- d_n
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
162 -- d_o
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
163 -- d_p Ignore assertion pragmas for elaboration
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
164 -- d_q
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
165 -- d_r
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
166 -- d_s Stop elaboration checks on synchronous suspension
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
167 -- d_t
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
168 -- d_u
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
169 -- d_v
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
170 -- d_w
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
171 -- d_x
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
172 -- d_y
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
173 -- d_z
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
174
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
175 -- d_A Stop generation of ALI file
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
176 -- d_B
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
177 -- d_C
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
178 -- d_D
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
179 -- d_E
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
180 -- d_F Encode full invocation paths in ALI files
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
181 -- d_G
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
182 -- d_H
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
183 -- d_I
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
184 -- d_J
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
185 -- d_K (Reserved) Enable reporting a warning on known-problem issues
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
186 -- d_L Output trace information on elaboration checking
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
187 -- d_M
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
188 -- d_N
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
189 -- d_O
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
190 -- d_P
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
191 -- d_Q
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
192 -- d_R
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
193 -- d_S
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
194 -- d_T Output trace information on invocation path recording
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
195 -- d_U
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
196 -- d_V
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
197 -- d_W
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
198 -- d_X
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
199 -- d_Y
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
200 -- d_Z
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
201
111
kono
parents:
diff changeset
202 -- d1 Error msgs have node numbers where possible
kono
parents:
diff changeset
203 -- d2 Eliminate error flags in verbose form error messages
kono
parents:
diff changeset
204 -- d3 Dump bad node in Comperr on an abort
kono
parents:
diff changeset
205 -- d4 Inhibit automatic krunch of predefined library unit files
kono
parents:
diff changeset
206 -- d5 Debug output for tree read/write
kono
parents:
diff changeset
207 -- d6 Default access unconstrained to thin pointers
kono
parents:
diff changeset
208 -- d7 Suppress version/source stamp/compilation time for -gnatv/-gnatl
kono
parents:
diff changeset
209 -- d8 Force opposite endianness in packed stuff
kono
parents:
diff changeset
210 -- d9 Allow lock free implementation
kono
parents:
diff changeset
211
kono
parents:
diff changeset
212 -- d.1 Enable unnesting of nested procedures
kono
parents:
diff changeset
213 -- d.2 Allow statements in declarative part
kono
parents:
diff changeset
214 -- d.3 Output debugging information from Exp_Unst
kono
parents:
diff changeset
215 -- d.4 Do not delete generated C file in case of errors
kono
parents:
diff changeset
216 -- d.5 Do not generate imported subprogram definitions in C code
kono
parents:
diff changeset
217 -- d.6 Do not avoid declaring unreferenced types in C code
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
218 -- d.7 Disable unsound heuristics in gnat2scil (for CP as SPARK prover)
111
kono
parents:
diff changeset
219 -- d.8
kono
parents:
diff changeset
220 -- d.9 Disable build-in-place for nonlimited types
kono
parents:
diff changeset
221
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
222 -- d_1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
223 -- d_2
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
224 -- d_3
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
225 -- d_4
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
226 -- d_5
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
227 -- d_6
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
228 -- d_7
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
229 -- d_8
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
230 -- d_9
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
231
111
kono
parents:
diff changeset
232 -- Debug flags for binder (GNATBIND)
kono
parents:
diff changeset
233
kono
parents:
diff changeset
234 -- da All links (including internal units) listed if there is a cycle
kono
parents:
diff changeset
235 -- db Output information from Better_Choice
kono
parents:
diff changeset
236 -- dc List units as they are chosen
kono
parents:
diff changeset
237 -- dd
kono
parents:
diff changeset
238 -- de Elaboration dependencies including system units
kono
parents:
diff changeset
239 -- df
kono
parents:
diff changeset
240 -- dg
kono
parents:
diff changeset
241 -- dh
kono
parents:
diff changeset
242 -- di Ignore_Errors mode for reading ali files
kono
parents:
diff changeset
243 -- dj
kono
parents:
diff changeset
244 -- dk
kono
parents:
diff changeset
245 -- dl
kono
parents:
diff changeset
246 -- dm
kono
parents:
diff changeset
247 -- dn List details of manipulation of Num_Pred values
kono
parents:
diff changeset
248 -- do Use older preference for elaboration order
kono
parents:
diff changeset
249 -- dp Use old preference for elaboration order
kono
parents:
diff changeset
250 -- dq
kono
parents:
diff changeset
251 -- dr
kono
parents:
diff changeset
252 -- ds
kono
parents:
diff changeset
253 -- dt
kono
parents:
diff changeset
254 -- du List units as they are acquired
kono
parents:
diff changeset
255 -- dv Verbose debugging printouts
kono
parents:
diff changeset
256 -- dw
kono
parents:
diff changeset
257 -- dx Force binder to read xref information from ali files
kono
parents:
diff changeset
258 -- dy
kono
parents:
diff changeset
259 -- dz
kono
parents:
diff changeset
260
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
261 -- dA
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
262 -- dB
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
263 -- dC
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
264 -- dD
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
265 -- dE
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
266 -- dF
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
267 -- dG
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
268 -- dH
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
269 -- dI
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
270 -- dJ
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
271 -- dK
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
272 -- dL
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
273 -- dM
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
274 -- dN
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
275 -- dO
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
276 -- dP
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
277 -- dQ
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
278 -- dR
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
279 -- dS
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
280 -- dT
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
281 -- dU
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
282 -- dV
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
283 -- dW
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
284 -- dX
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
285 -- dY
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
286 -- dZ
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
287
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
288 -- d.a
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
289 -- d.b
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
290 -- d.c
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
291 -- d.d
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
292 -- d.e
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
293 -- d.f
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
294 -- d.g
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
295 -- d.h
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
296 -- d.i
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
297 -- d.j
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
298 -- d.k
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
299 -- d.l
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
300 -- d.m
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
301 -- d.n
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
302 -- d.o
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
303 -- d.p
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
304 -- d.q
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
305 -- d.r
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
306 -- d.s
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
307 -- d.t
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
308 -- d.u
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
309 -- d.v
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
310 -- d.w
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
311 -- d.x
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
312 -- d.y
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
313 -- d.z
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
314
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
315 -- d.A
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
316 -- d.B
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
317 -- d.C
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
318 -- d.D
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
319 -- d.E
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
320 -- d.F
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
321 -- d.G
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
322 -- d.H
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
323 -- d.I
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
324 -- d.J
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
325 -- d.K
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
326 -- d.L
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
327 -- d.M
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
328 -- d.N
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
329 -- d.O
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
330 -- d.P
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
331 -- d.Q
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
332 -- d.R
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
333 -- d.S
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
334 -- d.T
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
335 -- d.U
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
336 -- d.V
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
337 -- d.W
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
338 -- d.X
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
339 -- d.Y
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
340 -- d.Z
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
341
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
342 -- d.1
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
343 -- d.2
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
344 -- d.3
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
345 -- d.4
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
346 -- d.5
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
347 -- d.6
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
348 -- d.7
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
349 -- d.8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
350 -- d.9
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
351
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
352 -- d_a Ignore the effects of pragma Elaborate_All
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
353 -- d_b Ignore the effects of pragma Elaborate_Body
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
354 -- d_c
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
355 -- d_d
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
356 -- d_e Ignore the effects of pragma Elaborate
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
357 -- d_f
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
358 -- d_g
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
359 -- d_h
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
360 -- d_i
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
361 -- d_j
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
362 -- d_k
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
363 -- d_l
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
364 -- d_m
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
365 -- d_n
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
366 -- d_o
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
367 -- d_p
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
368 -- d_q
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
369 -- d_r
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
370 -- d_s
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
371 -- d_t Output cycle-detection trace information
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
372 -- d_u
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
373 -- d_v
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
374 -- d_w
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
375 -- d_x
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
376 -- d_y
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
377 -- d_z
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
378
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
379 -- d_A Output ALI invocation tables
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
380 -- d_B
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
381 -- d_C Diagnose all cycles
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
382 -- d_D
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
383 -- d_E
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
384 -- d_F
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
385 -- d_G
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
386 -- d_H
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
387 -- d_I Output invocation graph
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
388 -- d_J
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
389 -- d_K
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
390 -- d_L Output library graph
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
391 -- d_M
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
392 -- d_N
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
393 -- d_O
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
394 -- d_P Output cycle paths
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
395 -- d_Q
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
396 -- d_R
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
397 -- d_S Output elaboration-order status
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
398 -- d_T Output elaboration-order trace information
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
399 -- d_U
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
400 -- d_V Validate bindo cycles, graphs, and order
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
401 -- d_W
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
402 -- d_X
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
403 -- d_Y
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
404 -- d_Z
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
405
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
406 -- d_1
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
407 -- d_2
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
408 -- d_3
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
409 -- d_4
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
410 -- d_5
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
411 -- d_6
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
412 -- d_7
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
413 -- d_8
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
414 -- d_9
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
415
111
kono
parents:
diff changeset
416 -- Debug flags used in package Make and its clients (e.g. GNATMAKE)
kono
parents:
diff changeset
417
kono
parents:
diff changeset
418 -- da
kono
parents:
diff changeset
419 -- db
kono
parents:
diff changeset
420 -- dc
kono
parents:
diff changeset
421 -- dd
kono
parents:
diff changeset
422 -- de
kono
parents:
diff changeset
423 -- df Only output file names, not path names, in log
kono
parents:
diff changeset
424 -- dg
kono
parents:
diff changeset
425 -- dh Generate listing showing loading of name table hash chains
kono
parents:
diff changeset
426 -- di
kono
parents:
diff changeset
427 -- dj
kono
parents:
diff changeset
428 -- dk
kono
parents:
diff changeset
429 -- dl
kono
parents:
diff changeset
430 -- dm Display the number of maximum simultaneous compilations
kono
parents:
diff changeset
431 -- dn Do not delete temp files created by gnatmake
kono
parents:
diff changeset
432 -- do
kono
parents:
diff changeset
433 -- dp Prints the contents of the Q used by Make.Compile_Sources
kono
parents:
diff changeset
434 -- dq Prints source files as they are enqueued and dequeued
kono
parents:
diff changeset
435 -- dr
kono
parents:
diff changeset
436 -- ds
kono
parents:
diff changeset
437 -- dt Display time stamps when there is a mismatch
kono
parents:
diff changeset
438 -- du List units as their ali files are acquired
kono
parents:
diff changeset
439 -- dv
kono
parents:
diff changeset
440 -- dw Prints the list of units withed by the unit currently explored
kono
parents:
diff changeset
441 -- dx
kono
parents:
diff changeset
442 -- dy
kono
parents:
diff changeset
443 -- dz
kono
parents:
diff changeset
444
kono
parents:
diff changeset
445 --------------------------------------------
kono
parents:
diff changeset
446 -- Documentation for Compiler Debug Flags --
kono
parents:
diff changeset
447 --------------------------------------------
kono
parents:
diff changeset
448
kono
parents:
diff changeset
449 -- da Generate messages tracking semantic analyzer progress. A message
kono
parents:
diff changeset
450 -- is output showing each node as it gets analyzed, expanded,
kono
parents:
diff changeset
451 -- resolved, or evaluated. This option is useful for finding out
kono
parents:
diff changeset
452 -- exactly where a bomb during semantic analysis is occurring.
kono
parents:
diff changeset
453
kono
parents:
diff changeset
454 -- db In Exp_Dbug, certain type names are encoded to include debugging
kono
parents:
diff changeset
455 -- information. This debug switch causes lines to be output showing
kono
parents:
diff changeset
456 -- the encodings used.
kono
parents:
diff changeset
457
kono
parents:
diff changeset
458 -- dc List names of units as they are compiled. One line of output will
kono
parents:
diff changeset
459 -- be generated at the start of compiling each unit (package or
kono
parents:
diff changeset
460 -- subprogram).
kono
parents:
diff changeset
461
kono
parents:
diff changeset
462 -- dd Dynamic allocation of tables messages generated. Each time a
kono
parents:
diff changeset
463 -- table is reallocated, a line is output indicating the expansion.
kono
parents:
diff changeset
464
kono
parents:
diff changeset
465 -- de List the entity table
kono
parents:
diff changeset
466
kono
parents:
diff changeset
467 -- df Full tree/source print (includes withed units). Normally the tree
kono
parents:
diff changeset
468 -- output (dt) or recreated source output (dg,do,ds) includes only
kono
parents:
diff changeset
469 -- the main unit. If df is set, then the output in either case
kono
parents:
diff changeset
470 -- includes all compiled units (see also dg,do,ds,dt). Note that to
kono
parents:
diff changeset
471 -- be effective, this switch must be used in combination with one or
kono
parents:
diff changeset
472 -- more of dt, dg, do or ds.
kono
parents:
diff changeset
473
kono
parents:
diff changeset
474 -- dg Print the source recreated from the generated tree. In the case
kono
parents:
diff changeset
475 -- where the tree has been rewritten this output includes only the
kono
parents:
diff changeset
476 -- generated code, not the original code (see also df,do,ds,dz).
kono
parents:
diff changeset
477 -- This flag differs from -gnatG in that the output also includes
kono
parents:
diff changeset
478 -- non-source generated null statements, and freeze nodes, which
kono
parents:
diff changeset
479 -- are normally omitted in -gnatG mode.
kono
parents:
diff changeset
480
kono
parents:
diff changeset
481 -- dh Generates a table at the end of a compilation showing how the hash
kono
parents:
diff changeset
482 -- table chains built by the Namet package are loaded. This is useful
kono
parents:
diff changeset
483 -- in ensuring that the hashing algorithm (in Namet.Hash) is working
kono
parents:
diff changeset
484 -- effectively with typical sets of program identifiers.
kono
parents:
diff changeset
485
kono
parents:
diff changeset
486 -- di Generate messages for visibility linking/delinking
kono
parents:
diff changeset
487
kono
parents:
diff changeset
488 -- dj Suppress "junk null check" for access parameters. This flag permits
kono
parents:
diff changeset
489 -- Ada programs to pass null parameters to access parameters, and to
kono
parents:
diff changeset
490 -- explicitly check such access values against the null literal.
kono
parents:
diff changeset
491 -- Neither of these is valid Ada, but both were allowed in versions of
kono
parents:
diff changeset
492 -- GNAT before 3.10, so this switch can ease the transition process.
kono
parents:
diff changeset
493
kono
parents:
diff changeset
494 -- dk Immediate kill on abort. Normally on an abort (i.e. a call to
kono
parents:
diff changeset
495 -- Comperr.Compiler_Abort), the GNATBUG message is not given if
kono
parents:
diff changeset
496 -- there is a previous error. This debug switch bypasses this test
kono
parents:
diff changeset
497 -- and gives the message unconditionally (useful for debugging).
kono
parents:
diff changeset
498
kono
parents:
diff changeset
499 -- dl Generate unit load trace messages. A line of traceback output is
kono
parents:
diff changeset
500 -- generated each time a request is made to the library manager to
kono
parents:
diff changeset
501 -- load a new unit.
kono
parents:
diff changeset
502
kono
parents:
diff changeset
503 -- dm Prevent special frontend inlining in GNATprove mode. In some cases,
kono
parents:
diff changeset
504 -- some subprogram calls are inlined in GNATprove mode in order to
kono
parents:
diff changeset
505 -- facilitate formal verification. This debug switch prevents that
kono
parents:
diff changeset
506 -- inlining to happen.
kono
parents:
diff changeset
507
kono
parents:
diff changeset
508 -- dn Generate messages for node/list allocation. Each time a node or
kono
parents:
diff changeset
509 -- list header is allocated, a line of output is generated. Certain
kono
parents:
diff changeset
510 -- other basic tree operations also cause a line of output to be
kono
parents:
diff changeset
511 -- generated. This option is useful in seeing where the parser is
kono
parents:
diff changeset
512 -- blowing up.
kono
parents:
diff changeset
513
kono
parents:
diff changeset
514 -- do Print the source recreated from the generated tree. In the case
kono
parents:
diff changeset
515 -- where the tree has been rewritten, this output includes only the
kono
parents:
diff changeset
516 -- original code, not the generated code (see also df,dg,ds,dz).
kono
parents:
diff changeset
517
kono
parents:
diff changeset
518 -- dp Generate messages for parser scope stack push/pops. A line of
kono
parents:
diff changeset
519 -- output by the parser each time the parser scope stack is either
kono
parents:
diff changeset
520 -- pushed or popped. Useful in debugging situations where the
kono
parents:
diff changeset
521 -- parser scope stack ends up incorrectly synchronized
kono
parents:
diff changeset
522
kono
parents:
diff changeset
523 -- dq In layout version 1.38, 2002/01/12, a circuit was implemented
kono
parents:
diff changeset
524 -- to give decent default alignment to short records that had no
kono
parents:
diff changeset
525 -- specific alignment set. This debug option restores the previous
kono
parents:
diff changeset
526 -- behavior of giving such records poor alignments, typically 1.
kono
parents:
diff changeset
527 -- This may be useful in dealing with transition.
kono
parents:
diff changeset
528
kono
parents:
diff changeset
529 -- dr Generate parser resynchronization messages. Normally the parser
kono
parents:
diff changeset
530 -- resynchronizes quietly. With this debug option, two messages
kono
parents:
diff changeset
531 -- are generated, one when the parser starts a resynchronization
kono
parents:
diff changeset
532 -- skip, and another when it resumes parsing. Useful in debugging
kono
parents:
diff changeset
533 -- inadequate error recovery situations.
kono
parents:
diff changeset
534
kono
parents:
diff changeset
535 -- ds Print the source recreated from the generated tree. In the case
kono
parents:
diff changeset
536 -- where the tree has been rewritten this output includes both the
kono
parents:
diff changeset
537 -- generated code and the original code with the generated code
kono
parents:
diff changeset
538 -- being enlosed in curly brackets (see also df,do,ds,dz)
kono
parents:
diff changeset
539
kono
parents:
diff changeset
540 -- dt Print full tree. The generated tree is output (see also df,dy)
kono
parents:
diff changeset
541
kono
parents:
diff changeset
542 -- du Uncheck categorization pragmas. This debug switch causes the
kono
parents:
diff changeset
543 -- elaboration control pragmas (Pure, Preelaborate, etc.) and the
kono
parents:
diff changeset
544 -- categorization pragmas (Shared_Passive, Remote_Types, etc.) to be
kono
parents:
diff changeset
545 -- ignored, so that normal checks are not made (this is particularly
kono
parents:
diff changeset
546 -- useful for adding temporary debugging code to units that have
kono
parents:
diff changeset
547 -- pragmas that are inconsistent with the debugging code added).
kono
parents:
diff changeset
548
kono
parents:
diff changeset
549 -- dv Output trace of overload resolution. Outputs messages for
kono
parents:
diff changeset
550 -- overload attempts that involve cascaded errors, or where
kono
parents:
diff changeset
551 -- an interpretation is incompatible with the context.
kono
parents:
diff changeset
552
kono
parents:
diff changeset
553 -- dw Write semantic scope stack messages. Each time a scope is created
kono
parents:
diff changeset
554 -- or removed, a message is output (see the Sem_Ch8.Push_Scope and
kono
parents:
diff changeset
555 -- Sem_Ch8.Pop_Scope subprograms).
kono
parents:
diff changeset
556
kono
parents:
diff changeset
557 -- dx Force expansion on, even if no code being generated. Normally the
kono
parents:
diff changeset
558 -- expander is inhibited if no code is generated. This switch forces
kono
parents:
diff changeset
559 -- expansion to proceed normally even if the backend is not being
kono
parents:
diff changeset
560 -- called. This is particularly useful for debugging purposes when
kono
parents:
diff changeset
561 -- using the front-end only version of the compiler (which normally
kono
parents:
diff changeset
562 -- would never do any expansion).
kono
parents:
diff changeset
563
kono
parents:
diff changeset
564 -- dy Print tree of package Standard. Normally the tree print out does
kono
parents:
diff changeset
565 -- not include package Standard, even if the -df switch is set. This
kono
parents:
diff changeset
566 -- switch forces output of the internal tree built for Standard.
kono
parents:
diff changeset
567
kono
parents:
diff changeset
568 -- dz Print source of package Standard. Normally the source print out
kono
parents:
diff changeset
569 -- does not include package Standard, even if the -df switch is set.
kono
parents:
diff changeset
570 -- This switch forces output of the source recreated from the internal
kono
parents:
diff changeset
571 -- tree built for Standard. Note that this differs from -gnatS in
kono
parents:
diff changeset
572 -- that it prints from the actual tree using the normal Sprint
kono
parents:
diff changeset
573 -- circuitry for printing trees.
kono
parents:
diff changeset
574
kono
parents:
diff changeset
575 -- dA Forces output of representation information, including full
kono
parents:
diff changeset
576 -- information for all internal type and object entities, as well
kono
parents:
diff changeset
577 -- as all user defined type and object entities including private
kono
parents:
diff changeset
578 -- and incomplete types. This debug switch also automatically sets
kono
parents:
diff changeset
579 -- the equivalent of -gnatRm.
kono
parents:
diff changeset
580
kono
parents:
diff changeset
581 -- dB Output debug encodings for types and variants. See Exp_Dbug for
kono
parents:
diff changeset
582 -- exact form of the generated output.
kono
parents:
diff changeset
583
kono
parents:
diff changeset
584 -- dC Output trace information showing the decisions made during
kono
parents:
diff changeset
585 -- check suppression activity in unit Checks.
kono
parents:
diff changeset
586
kono
parents:
diff changeset
587 -- dD Delete new elaboration checks. This flag causes GNAT to return
kono
parents:
diff changeset
588 -- to the 3.13a elaboration semantics, and to suppress the fixing
kono
parents:
diff changeset
589 -- of two bugs. The first is in the context of inner routines in
kono
parents:
diff changeset
590 -- dynamic elaboration mode, when the subprogram we are in was
kono
parents:
diff changeset
591 -- called at elaboration time by a unit that was also compiled with
kono
parents:
diff changeset
592 -- dynamic elaboration checks. In this case, if A calls B calls C,
kono
parents:
diff changeset
593 -- and all are in different units, we need an elaboration check at
kono
parents:
diff changeset
594 -- each call. These nested checks were only put in recently (see
kono
parents:
diff changeset
595 -- version 1.80 of Sem_Elab) and we provide this debug flag to
kono
parents:
diff changeset
596 -- revert to the previous behavior in case of regressions. The
kono
parents:
diff changeset
597 -- other behavior reverted by this flag is the treatment of the
kono
parents:
diff changeset
598 -- Elaborate_Body pragma in static elaboration mode. This used to
kono
parents:
diff changeset
599 -- be treated as not needing elaboration checking, but in fact in
kono
parents:
diff changeset
600 -- general Elaborate_All is still required because of nested calls.
kono
parents:
diff changeset
601
kono
parents:
diff changeset
602 -- dE Apply compile time elaboration checking for with relations between
kono
parents:
diff changeset
603 -- predefined units. Normally no checks are made.
kono
parents:
diff changeset
604
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
605 -- dF Disable the new SPARK checking rules for pointer aliasing. This is
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
606 -- only activated as part of GNATprove mode and on SPARK code. Now
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
607 -- that pointer support is part of the official SPARK language, this
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
608 -- switch allows reverting to the previous version of GNATprove
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
609 -- rejecting pointers.
111
kono
parents:
diff changeset
610
kono
parents:
diff changeset
611 -- dG Generate all warnings. Normally Errout suppresses warnings on
kono
parents:
diff changeset
612 -- units that are not part of the main extended source, and also
kono
parents:
diff changeset
613 -- suppresses warnings on instantiations in the main extended
kono
parents:
diff changeset
614 -- source that duplicate warnings already posted on the template.
kono
parents:
diff changeset
615 -- This switch stops both kinds of deletion and causes Errout to
kono
parents:
diff changeset
616 -- post all warnings sent to it.
kono
parents:
diff changeset
617
kono
parents:
diff changeset
618 -- dH Inhibit call to gigi. This is useful for testing front end data
kono
parents:
diff changeset
619 -- layout, and may be useful in other debugging situations where
kono
parents:
diff changeset
620 -- you do not want gigi to intefere with the testing.
kono
parents:
diff changeset
621
kono
parents:
diff changeset
622 -- dI Inhibit internal name numbering in gnatDG listing. Any sequence of
kono
parents:
diff changeset
623 -- the form <uppercase-letter><digits><lowercase-letter> appearing in
kono
parents:
diff changeset
624 -- a name is replaced by <uppercase-letter>...<lowercase-letter>. This
kono
parents:
diff changeset
625 -- is used in the fixed bugs run to minimize system and version
kono
parents:
diff changeset
626 -- dependency in filed -gnatD or -gnatG output.
kono
parents:
diff changeset
627
kono
parents:
diff changeset
628 -- dJ Prepend the name of the enclosing subprogram in compiler messages
kono
parents:
diff changeset
629 -- (errors, warnings, style checks). This is useful in particular to
kono
parents:
diff changeset
630 -- integrate compiler warnings in static analysis tools such as
kono
parents:
diff changeset
631 -- CodePeer.
kono
parents:
diff changeset
632
kono
parents:
diff changeset
633 -- dK Kill all error messages. This debug flag suppresses the output
kono
parents:
diff changeset
634 -- of all error messages. It is used in regression tests where the
kono
parents:
diff changeset
635 -- error messages are target dependent and irrelevant.
kono
parents:
diff changeset
636
kono
parents:
diff changeset
637 -- dL The compiler ignores calls in instances and invoke subprograms
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
638 -- which are external to the instance for both the static and dynamic
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
639 -- elaboration models.
111
kono
parents:
diff changeset
640
kono
parents:
diff changeset
641 -- dM Assume all variables have been modified, and ignore current value
kono
parents:
diff changeset
642 -- indications. This debug flag disconnects the tracking of constant
kono
parents:
diff changeset
643 -- values (see Exp_Ch2.Expand_Current_Value).
kono
parents:
diff changeset
644
kono
parents:
diff changeset
645 -- dN Do not generate file name information in exception messages
kono
parents:
diff changeset
646
kono
parents:
diff changeset
647 -- dO Output immediate error messages. This causes error messages to
kono
parents:
diff changeset
648 -- be output as soon as they are generated (disconnecting several
kono
parents:
diff changeset
649 -- circuits for improvement of messages, deletion of duplicate
kono
parents:
diff changeset
650 -- messages etc). Useful to diagnose compiler bombs caused by
kono
parents:
diff changeset
651 -- erroneous handling of error situations
kono
parents:
diff changeset
652
kono
parents:
diff changeset
653 -- dP Do not check for controlled objects in preelaborable packages.
kono
parents:
diff changeset
654 -- RM 10.2.1(9) forbids the use of library level controlled objects
kono
parents:
diff changeset
655 -- in preelaborable packages, but this restriction is a huge pain,
kono
parents:
diff changeset
656 -- especially in the predefined library units.
kono
parents:
diff changeset
657
kono
parents:
diff changeset
658 -- dQ Use old method for determining what goes on the secondary stack.
kono
parents:
diff changeset
659 -- This disables some newer optimizations. The intent is to use this
kono
parents:
diff changeset
660 -- temporarily to measure before/after efficiency. ???Remove this
kono
parents:
diff changeset
661 -- when we are done (see Sem_Util.Requires_Transient_Scope).
kono
parents:
diff changeset
662
kono
parents:
diff changeset
663 -- dR Bypass the check for a proper version of s-rpc being present
kono
parents:
diff changeset
664 -- to use the -gnatz? switch. This allows debugging of the use
kono
parents:
diff changeset
665 -- of stubs generation without needing to have GLADE (or some
kono
parents:
diff changeset
666 -- other PCS installed).
kono
parents:
diff changeset
667
kono
parents:
diff changeset
668 -- dS Omit conversion of fpt numbers to exact machine numbers in
kono
parents:
diff changeset
669 -- non-static evaluation contexts (see Check_Non_Static_Context).
kono
parents:
diff changeset
670 -- This is intended for testing out timing problems with this
kono
parents:
diff changeset
671 -- conversion circuit.
kono
parents:
diff changeset
672
kono
parents:
diff changeset
673 -- dT Similar to dS, but omits the conversions only in the case where
kono
parents:
diff changeset
674 -- the parent is not a constant declaration.
kono
parents:
diff changeset
675
kono
parents:
diff changeset
676 -- dU Enable garbage collection of unreachable entities. This enables
kono
parents:
diff changeset
677 -- both the reachability analysis and changing the Is_Public and
kono
parents:
diff changeset
678 -- Is_Eliminated flags.
kono
parents:
diff changeset
679
kono
parents:
diff changeset
680 -- dV Enable viewing of all symbols in debugger. Causes debug information
kono
parents:
diff changeset
681 -- to be generated for all symbols, including internal symbols. This
kono
parents:
diff changeset
682 -- is enabled by default for -gnatD, but this switch allows this to
kono
parents:
diff changeset
683 -- be enabled without generating modified source files. Note that the
kono
parents:
diff changeset
684 -- use of -gnatdV ensures in the dwarf/elf case that all symbols that
kono
parents:
diff changeset
685 -- are present in the elf tables are also in the dwarf tables (which
kono
parents:
diff changeset
686 -- seems to be required by some tools). Another effect of dV is to
kono
parents:
diff changeset
687 -- generate full qualified names, including internal names generated
kono
parents:
diff changeset
688 -- for blocks and loops.
kono
parents:
diff changeset
689
kono
parents:
diff changeset
690 -- dW Disable warnings when a possibly uninitialized scalar value is
kono
parents:
diff changeset
691 -- passed to an IN OUT parameter of a procedure. This usage is a
kono
parents:
diff changeset
692 -- quite improper bounded error [erroneous in Ada 83] situation,
kono
parents:
diff changeset
693 -- and would normally generate a warning. However, to ease the
kono
parents:
diff changeset
694 -- task of transitioning incorrect legacy code, we provide this
kono
parents:
diff changeset
695 -- undocumented feature for suppressing these warnings.
kono
parents:
diff changeset
696
kono
parents:
diff changeset
697 -- dY Enable configurable run-time mode, just as though the System file
kono
parents:
diff changeset
698 -- had Configurable_Run_Time_Mode set to True. This is useful in
kono
parents:
diff changeset
699 -- testing high integrity mode.
kono
parents:
diff changeset
700
kono
parents:
diff changeset
701 -- dZ Generate listing showing the contents of the dispatch tables. Each
kono
parents:
diff changeset
702 -- line has an internally generated number used for references between
kono
parents:
diff changeset
703 -- tagged types and primitives. For each primitive the output has the
kono
parents:
diff changeset
704 -- following fields:
kono
parents:
diff changeset
705 --
kono
parents:
diff changeset
706 -- - Letter 'P' or letter 's': The former indicates that this
kono
parents:
diff changeset
707 -- primitive will be located in a primary dispatch table. The
kono
parents:
diff changeset
708 -- latter indicates that it will be located in a secondary
kono
parents:
diff changeset
709 -- dispatch table.
kono
parents:
diff changeset
710 --
kono
parents:
diff changeset
711 -- - Name of the primitive. In case of predefined Ada primitives
kono
parents:
diff changeset
712 -- the text "(predefined)" is added before the name, and these
kono
parents:
diff changeset
713 -- acronyms are used: SR (Stream_Read), SW (Stream_Write), SI
kono
parents:
diff changeset
714 -- (Stream_Input), SO (Stream_Output), DA (Deep_Adjust), DF
kono
parents:
diff changeset
715 -- (Deep_Finalize). In addition Oeq identifies the equality
kono
parents:
diff changeset
716 -- operator, and "_assign" the assignment.
kono
parents:
diff changeset
717 --
kono
parents:
diff changeset
718 -- - If the primitive covers interface types, two extra fields
kono
parents:
diff changeset
719 -- referencing other primitives are generated: "Alias" references
kono
parents:
diff changeset
720 -- the primitive of the tagged type that covers an interface
kono
parents:
diff changeset
721 -- primitive, and "AI_Alias" references the covered interface
kono
parents:
diff changeset
722 -- primitive.
kono
parents:
diff changeset
723 --
kono
parents:
diff changeset
724 -- - The expression "at #xx" indicates the slot of the dispatch
kono
parents:
diff changeset
725 -- table occupied by such primitive in its corresponding primary
kono
parents:
diff changeset
726 -- or secondary dispatch table.
kono
parents:
diff changeset
727 --
kono
parents:
diff changeset
728 -- - In case of abstract subprograms the text "is abstract" is
kono
parents:
diff changeset
729 -- added at the end of the line.
kono
parents:
diff changeset
730
kono
parents:
diff changeset
731 -- d.a Force Target_Strict_Alignment to True, even on targets where it
kono
parents:
diff changeset
732 -- would normally be false. Can be used for testing strict alignment
kono
parents:
diff changeset
733 -- circuitry in the compiler.
kono
parents:
diff changeset
734
kono
parents:
diff changeset
735 -- d.b Dump back end types. During Create_Standard, the back end is
kono
parents:
diff changeset
736 -- queried for all available types. This option shows them.
kono
parents:
diff changeset
737
kono
parents:
diff changeset
738 -- d.c Generate inline concatenation, instead of calling one of the
kono
parents:
diff changeset
739 -- System.Concat_n.Str_Concat_n routines in cases where the latter
kono
parents:
diff changeset
740 -- routines would normally be called.
kono
parents:
diff changeset
741
kono
parents:
diff changeset
742 -- d.d Disable atomic synchronization for all atomic variable references.
kono
parents:
diff changeset
743 -- Pragma Enable_Atomic_Synchronization is ignored.
kono
parents:
diff changeset
744
kono
parents:
diff changeset
745 -- d.e Enable atomic synchronization for all atomic variable references.
kono
parents:
diff changeset
746 -- Pragma Disable_Atomic_Synchronization is ignored, and also the
kono
parents:
diff changeset
747 -- compiler switch -gnated is ignored.
kono
parents:
diff changeset
748
kono
parents:
diff changeset
749 -- d.f Suppress folding of static expressions. This of course results
kono
parents:
diff changeset
750 -- in seriously non-conforming behavior, but is useful sometimes
kono
parents:
diff changeset
751 -- when tracking down handling of complex expressions.
kono
parents:
diff changeset
752
kono
parents:
diff changeset
753 -- d.g Enables conversion of a raise statement into a goto when the
kono
parents:
diff changeset
754 -- relevant handler is statically determinable. For now we only try
kono
parents:
diff changeset
755 -- this if this debug flag is set. Later we will enable this more
kono
parents:
diff changeset
756 -- generally by default.
kono
parents:
diff changeset
757
kono
parents:
diff changeset
758 -- d.h Minimize the creation of public internal symbols for concatenation
kono
parents:
diff changeset
759 -- by enforcing a secondary stack-like handling of the final result.
kono
parents:
diff changeset
760 -- The target of the concatenation is thus constrained in place and
kono
parents:
diff changeset
761 -- initialized with the result instead of acting as its alias.
kono
parents:
diff changeset
762
kono
parents:
diff changeset
763 -- d.i Ignore all occurrences of pragma Warnings in the sources. This can
kono
parents:
diff changeset
764 -- be used in particular to disable Warnings (Off) to check if any of
kono
parents:
diff changeset
765 -- these statements are inappropriate.
kono
parents:
diff changeset
766
kono
parents:
diff changeset
767 -- d.k If an error message contains a reference to a location in an
kono
parents:
diff changeset
768 -- internal unit, then suppress the line number in this reference.
kono
parents:
diff changeset
769
kono
parents:
diff changeset
770 -- d.j Generate listing of frontend inlined calls and inline calls passed
kono
parents:
diff changeset
771 -- to the backend. This is useful to locate skipped calls that must be
kono
parents:
diff changeset
772 -- inlined by the frontend.
kono
parents:
diff changeset
773
kono
parents:
diff changeset
774 -- d.l Use Ada 95 semantics for limited function returns. This may be
kono
parents:
diff changeset
775 -- used to work around the incompatibility introduced by AI-318-2.
kono
parents:
diff changeset
776 -- It is useful only in Ada 2005 and later.
kono
parents:
diff changeset
777
kono
parents:
diff changeset
778 -- d.m When -gnatl is used, the normal output includes full listings of
kono
parents:
diff changeset
779 -- all files in the extended main source (body/spec/subunits). If this
kono
parents:
diff changeset
780 -- debug switch is used, then the full listing is given only for the
kono
parents:
diff changeset
781 -- main source (this corresponds to a previous behavior of -gnatl and
kono
parents:
diff changeset
782 -- is used for running the ACATS tests).
kono
parents:
diff changeset
783
kono
parents:
diff changeset
784 -- d.n Print source file names as they are loaded. This is useful if the
kono
parents:
diff changeset
785 -- compiler has a bug -- these are the files that need to be included
kono
parents:
diff changeset
786 -- in a bug report.
kono
parents:
diff changeset
787
kono
parents:
diff changeset
788 -- d.o Conservative elaboration order for indirect calls. This causes
kono
parents:
diff changeset
789 -- P'Access to be treated as a call in more cases.
kono
parents:
diff changeset
790
kono
parents:
diff changeset
791 -- d.p In Ada 95 (or 83) mode, use original Ada 95 behavior for the
kono
parents:
diff changeset
792 -- interpretation of component clauses crossing byte boundaries when
kono
parents:
diff changeset
793 -- using the non-default bit order (i.e. ignore AI95-0133).
kono
parents:
diff changeset
794
kono
parents:
diff changeset
795 -- d.q If an array variable or constant is not modified in Ada code, and
kono
parents:
diff changeset
796 -- is passed to an 'in' parameter of a foreign-convention subprogram,
kono
parents:
diff changeset
797 -- and that subprogram modifies the array, the Ada compiler normally
kono
parents:
diff changeset
798 -- assumes that the array is not modified. This option suppresses such
kono
parents:
diff changeset
799 -- optimizations. This option should not be used; the correct solution
kono
parents:
diff changeset
800 -- is to declare the parameter 'in out'.
kono
parents:
diff changeset
801
kono
parents:
diff changeset
802 -- d.r Do not reorder components in record types.
kono
parents:
diff changeset
803
kono
parents:
diff changeset
804 -- d.s The compiler no longer attempts to optimize the calls to secondary
kono
parents:
diff changeset
805 -- stack management routines SS_Mark and SS_Release. As a result, each
kono
parents:
diff changeset
806 -- transient block tasked with secondary stack management will fulfill
kono
parents:
diff changeset
807 -- its role unconditionally.
kono
parents:
diff changeset
808
kono
parents:
diff changeset
809 -- d.s The compiler does not generate calls to secondary stack management
kono
parents:
diff changeset
810 -- routines SS_Mark and SS_Release for a transient block when there is
kono
parents:
diff changeset
811 -- an enclosing scoping construct which already manages the secondary
kono
parents:
diff changeset
812 -- stack.
kono
parents:
diff changeset
813
kono
parents:
diff changeset
814 -- d.t The compiler has been modified (a fairly extensive modification)
kono
parents:
diff changeset
815 -- to generate static dispatch tables for library level tagged types.
kono
parents:
diff changeset
816 -- This debug switch disables this modification and reverts to the
kono
parents:
diff changeset
817 -- previous dynamic construction of tables. It is there as a possible
kono
parents:
diff changeset
818 -- work around if we run into trouble with the new implementation.
kono
parents:
diff changeset
819
kono
parents:
diff changeset
820 -- d.u Sets Modify_Tree_For_C mode in which tree is modified to make it
kono
parents:
diff changeset
821 -- easier to generate code using a C compiler.
kono
parents:
diff changeset
822
kono
parents:
diff changeset
823 -- d.v This flag enforces the elaboration rules defined in the SPARK
kono
parents:
diff changeset
824 -- Reference Manual, chapter 7.7, to all SPARK code within a unit. As
kono
parents:
diff changeset
825 -- a result, constructs which violate the rules in chapter 7.7 are no
kono
parents:
diff changeset
826 -- longer accepted, even if the implementation is able to statically
kono
parents:
diff changeset
827 -- ensure that accepting these constructs does not introduce the
kono
parents:
diff changeset
828 -- possibility of failing an elaboration check.
kono
parents:
diff changeset
829
kono
parents:
diff changeset
830 -- d.w This flag turns off the scanning of loops to detect possible
kono
parents:
diff changeset
831 -- infinite loops.
kono
parents:
diff changeset
832
kono
parents:
diff changeset
833 -- d.x No exception handlers in generated code. This causes exception
kono
parents:
diff changeset
834 -- handlers to be eliminated from the generated code. They are still
kono
parents:
diff changeset
835 -- fully compiled and analyzed, they just get eliminated from the
kono
parents:
diff changeset
836 -- code generation step.
kono
parents:
diff changeset
837
kono
parents:
diff changeset
838 -- d.y Disable implicit pragma Elaborate_All on task bodies. When a task
kono
parents:
diff changeset
839 -- body calls a procedure in the same package, and that procedure
kono
parents:
diff changeset
840 -- calls a procedure in another package, the static elaboration
kono
parents:
diff changeset
841 -- machinery adds an implicit Elaborate_All on the other package. This
kono
parents:
diff changeset
842 -- switch disables the addition of the implicit pragma in such cases.
kono
parents:
diff changeset
843
kono
parents:
diff changeset
844 -- d.z Restore previous front-end support for Inline_Always. In default
kono
parents:
diff changeset
845 -- mode, for targets that use the GCC back end, Inline_Always is
kono
parents:
diff changeset
846 -- handled by the back end. Use of this switch restores the previous
kono
parents:
diff changeset
847 -- handling of Inline_Always by the front end on such targets. For the
kono
parents:
diff changeset
848 -- targets that do not use the GCC back end, this switch is ignored.
kono
parents:
diff changeset
849
kono
parents:
diff changeset
850 -- d.A There seems to be a problem with ASIS if we activate the circuit
kono
parents:
diff changeset
851 -- for reading and writing the aspect specification hash table, so
kono
parents:
diff changeset
852 -- for now, this is controlled by the debug flag d.A. The hash table
kono
parents:
diff changeset
853 -- is only written and read if this flag is set.
kono
parents:
diff changeset
854
kono
parents:
diff changeset
855 -- d.B Generate a bug box when we see an abort_statement, even though
kono
parents:
diff changeset
856 -- there is no bug. Useful for testing Comperr.Compiler_Abort: write
kono
parents:
diff changeset
857 -- some code containing an abort_statement, and compile it with
kono
parents:
diff changeset
858 -- -gnatd.B. There is nothing special about abort_statements; it just
kono
parents:
diff changeset
859 -- provides a way to control where the bug box is generated. See "when
kono
parents:
diff changeset
860 -- N_Abort_Statement" in package body Expander.
kono
parents:
diff changeset
861
kono
parents:
diff changeset
862 -- d.C Generate call to System.Concat_n.Str_Concat_n routines in cases
kono
parents:
diff changeset
863 -- where we would normally generate inline concatenation code.
kono
parents:
diff changeset
864
kono
parents:
diff changeset
865 -- d.D For compatibility with some Ada 95 compilers implementing only
kono
parents:
diff changeset
866 -- one feature of Ada 2005 (overriding keyword), disable errors on use
kono
parents:
diff changeset
867 -- of overriding keyword in Ada 95 mode.
kono
parents:
diff changeset
868
kono
parents:
diff changeset
869 -- d.E Turn selected errors into warnings. This debug switch causes a
kono
parents:
diff changeset
870 -- specific set of error messages into warnings. Setting this switch
kono
parents:
diff changeset
871 -- causes Opt.Error_To_Warning to be set to True. The intention is
kono
parents:
diff changeset
872 -- that this be used for messages representing upwards incompatible
kono
parents:
diff changeset
873 -- changes to Ada 2012 that cause previously correct programs to be
kono
parents:
diff changeset
874 -- treated as illegal now. The following cases are affected:
kono
parents:
diff changeset
875 --
kono
parents:
diff changeset
876 -- Errors relating to overlapping subprogram parameters for cases
kono
parents:
diff changeset
877 -- other than IN OUT parameters to functions.
kono
parents:
diff changeset
878 --
kono
parents:
diff changeset
879 -- Errors relating to the new rules about not defining equality
kono
parents:
diff changeset
880 -- too late so that composition of equality can be assured.
kono
parents:
diff changeset
881 --
kono
parents:
diff changeset
882 -- Errors relating to overriding indicators on protected subprogram
kono
parents:
diff changeset
883 -- bodies (not an Ada 2012 incompatibility, but might cause errors
kono
parents:
diff changeset
884 -- for existing programs assuming they were legal because GNAT
kono
parents:
diff changeset
885 -- formerly allowed them).
kono
parents:
diff changeset
886
kono
parents:
diff changeset
887 -- d.F Sets GNATprove_Mode to True. This allows debugging the frontend in
kono
parents:
diff changeset
888 -- the special mode used by GNATprove.
kono
parents:
diff changeset
889
kono
parents:
diff changeset
890 -- d.G Previously the compiler ignored calls via generic formal parameters
kono
parents:
diff changeset
891 -- when doing the analysis for the static elaboration model. This is
kono
parents:
diff changeset
892 -- now fixed, but we provide this debug flag to revert to the previous
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
893 -- situation of ignoring such calls to aid in transition.
111
kono
parents:
diff changeset
894
kono
parents:
diff changeset
895 -- d.H Sets ASIS_GNSA_Mode to True. This signals the front end to suppress
kono
parents:
diff changeset
896 -- the call to gigi in ASIS_Mode.
kono
parents:
diff changeset
897
kono
parents:
diff changeset
898 -- d.I Do not ignore enum representation clauses in CodePeer mode.
kono
parents:
diff changeset
899 -- The default of ignoring representation clauses for enumeration
kono
parents:
diff changeset
900 -- types in CodePeer is good for the majority of Ada code, but in some
kono
parents:
diff changeset
901 -- cases being able to change this default might be useful to remove
kono
parents:
diff changeset
902 -- some false positives.
kono
parents:
diff changeset
903
kono
parents:
diff changeset
904 -- d.J Relaxed rules for pragma No_Return. A pragma No_Return is illegal
kono
parents:
diff changeset
905 -- if it applies to a body. This switch disables the legality check
kono
parents:
diff changeset
906 -- for that. If the procedure does in fact return normally, execution
kono
parents:
diff changeset
907 -- is erroneous, and therefore unpredictable.
kono
parents:
diff changeset
908
kono
parents:
diff changeset
909 -- d.L Normally the front end generates special expansion for conditional
kono
parents:
diff changeset
910 -- expressions of a limited type. This debug flag removes this special
kono
parents:
diff changeset
911 -- case expansion, leaving it up to the back end to handle conditional
kono
parents:
diff changeset
912 -- expressions correctly.
kono
parents:
diff changeset
913
kono
parents:
diff changeset
914 -- d.M Relaxed RM semantics. This flag sets Opt.Relaxed_RM_Semantics
kono
parents:
diff changeset
915 -- See Opt.Relaxed_RM_Semantics for more details.
kono
parents:
diff changeset
916
kono
parents:
diff changeset
917 -- d.N Enlarge entities by one node (but don't attempt to use this extra
kono
parents:
diff changeset
918 -- node for storage of any flags or fields). This can be used to do
kono
parents:
diff changeset
919 -- experiments on the impact of increasing entity sizes.
kono
parents:
diff changeset
920
kono
parents:
diff changeset
921 -- d.O Dump internal SCO tables. Before outputting the SCO information to
kono
parents:
diff changeset
922 -- the ALI file, the internal SCO tables (SCO_Table/SCO_Unit_Table)
kono
parents:
diff changeset
923 -- are dumped for debugging purposes.
kono
parents:
diff changeset
924
kono
parents:
diff changeset
925 -- d.P Previous non-optimized handling of length comparisons. Setting this
kono
parents:
diff changeset
926 -- flag inhibits the effect of Optimize_Length_Comparison in Exp_Ch4.
kono
parents:
diff changeset
927 -- This is there in case we find a situation where the optimization
kono
parents:
diff changeset
928 -- malfunctions, to provide a work around.
kono
parents:
diff changeset
929
kono
parents:
diff changeset
930 -- d.Q Previous incomplete style checks for binary operators. Style checks
kono
parents:
diff changeset
931 -- for token separation rules were incomplete and have been made
kono
parents:
diff changeset
932 -- compliant with the documentation. For example, no warning was
kono
parents:
diff changeset
933 -- issued for expressions such as 16-One or "A"&"B". Setting this flag
kono
parents:
diff changeset
934 -- inhibits these new checks.
kono
parents:
diff changeset
935
kono
parents:
diff changeset
936 -- d.R As documented in lib-writ.ads, restrictions in the ali file can
kono
parents:
diff changeset
937 -- have two forms, positional and named. The named notation is the
kono
parents:
diff changeset
938 -- current preferred form, but the use of this debug switch will force
kono
parents:
diff changeset
939 -- the use of the obsolescent positional form.
kono
parents:
diff changeset
940
kono
parents:
diff changeset
941 -- d.S Force Optimize_Alignment (Space) mode as the default
kono
parents:
diff changeset
942
kono
parents:
diff changeset
943 -- d.T Force Optimize_Alignment (Time) mode as the default
kono
parents:
diff changeset
944
kono
parents:
diff changeset
945 -- d.U Ignore indirect calls for static elaboration. The static
kono
parents:
diff changeset
946 -- elaboration model is conservative, especially regarding indirect
kono
parents:
diff changeset
947 -- calls. If you say Proc'Access, it will assume you might call
kono
parents:
diff changeset
948 -- Proc. This can cause elaboration cycles at bind time. This flag
kono
parents:
diff changeset
949 -- reverts to the behavior of earlier compilers, which ignored
kono
parents:
diff changeset
950 -- indirect calls.
kono
parents:
diff changeset
951
kono
parents:
diff changeset
952 -- d.V Do not verify the validity of SCIL files (CodePeer mode). When
kono
parents:
diff changeset
953 -- generating SCIL files for CodePeer, by default we verify that the
kono
parents:
diff changeset
954 -- SCIL is well formed before saving it on disk. This switch can be
kono
parents:
diff changeset
955 -- used to disable this checking, either to improve speed or to shut
kono
parents:
diff changeset
956 -- down a false positive detected during the verification.
kono
parents:
diff changeset
957
kono
parents:
diff changeset
958 -- d.W Print out debugging information for Walk_Library_Items, including
kono
parents:
diff changeset
959 -- the order in which units are walked. This is primarily for use in
kono
parents:
diff changeset
960 -- debugging CodePeer mode.
kono
parents:
diff changeset
961
kono
parents:
diff changeset
962 -- d.X A previous version of GNAT allowed indexing aspects to be redefined
kono
parents:
diff changeset
963 -- on derived container types, while the default iterator was
kono
parents:
diff changeset
964 -- inherited from the parent type. This nonstandard extension is
kono
parents:
diff changeset
965 -- preserved temporarily for use by the modeling project under debug
kono
parents:
diff changeset
966 -- flag d.X.
kono
parents:
diff changeset
967
kono
parents:
diff changeset
968 -- d.Z Normally we always enable expansion in configurable run-time mode
kono
parents:
diff changeset
969 -- to make sure we get error messages about unsupported features even
kono
parents:
diff changeset
970 -- when compiling in -gnatc mode. But expansion is turned off in this
kono
parents:
diff changeset
971 -- case if debug flag -gnatd.Z is used. This is to deal with the case
kono
parents:
diff changeset
972 -- where we discover difficulties in this new processing.
kono
parents:
diff changeset
973
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
974 -- d_a The compiler stops the examination of a task body once it reaches
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
975 -- an accept or select statement for the static elaboration model. The
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
976 -- behavior is similar to that of No_Entry_Calls_In_Elaboration_Code,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
977 -- but does not penalize actual entry calls in elaboration code.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
978
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
979 -- d_e The compiler ignores simple entry calls, asynchronous transfer of
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
980 -- control, conditional entry calls, timed entry calls, and requeue
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
981 -- statements in both the static and dynamic elaboration models.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
982
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
983 -- d_f Issue info messages related to GNATprove usage to help users
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
984 -- understand analysis results. By default these are not issued as
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
985 -- beginners find them confusing. Set automatically by GNATprove when
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
986 -- switch --info is used.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
987
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
988 -- d_i The compiler ignores calls and task activations when they target a
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
989 -- subprogram or task type defined in an external instance for both
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
990 -- the static and dynamic elaboration models.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
991
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
992 -- d_j The compiler reads JSON files that would be generated by the same
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
993 -- compilation session if -gnatRjs was passed, in order to populate
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
994 -- the internal tables of the Repinfo unit from them.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
995
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
996 -- d_p The compiler ignores calls to subprograms which verify the run-time
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
997 -- semantics of invariants and postconditions in both the static and
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
998 -- dynamic elaboration models.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
999
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1000 -- d_s The compiler stops the examination of a task body once it reaches
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1001 -- a call to routine Ada.Synchronous_Task_Control.Suspend_Until_True
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1002 -- or Ada.Synchronous_Barriers.Wait_For_Release.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1003
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1004 -- d_A Do not generate ALI files by setting Opt.Disable_ALI_File.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1005
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1006 -- d_F The compiler encodes the full path from an invocation construct to
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1007 -- an external target, offering additional information to GNATBIND for
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1008 -- purposes of error diagnostics.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1009
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1010 -- d_K (Reserved) Enable reporting a warning on known-problem issues of
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1011 -- previous releases. No action performed in the wavefront.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1012
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1013 -- d_L Output trace information on elaboration checking. This debug switch
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1014 -- causes output to be generated showing each call or instantiation as
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1015 -- it is checked, and the progress of the recursive trace through
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1016 -- elaboration calls at compile time.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1017
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1018 -- d_T The compiler outputs trance information to standard output whenever
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1019 -- an invocation path is recorded.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1020
111
kono
parents:
diff changeset
1021 -- d1 Error messages have node numbers where possible. Normally error
kono
parents:
diff changeset
1022 -- messages have only source locations. This option is useful when
kono
parents:
diff changeset
1023 -- debugging errors caused by expanded code, where the source location
kono
parents:
diff changeset
1024 -- does not give enough information.
kono
parents:
diff changeset
1025
kono
parents:
diff changeset
1026 -- d2 Suppress output of the error position flags for verbose form error
kono
parents:
diff changeset
1027 -- messages. The messages are still interspersed in the listing, but
kono
parents:
diff changeset
1028 -- without any error flags or extra blank lines. Also causes an extra
kono
parents:
diff changeset
1029 -- <<< to be output at the right margin. This is intended to be the
kono
parents:
diff changeset
1030 -- easiest format for checking conformance of ACATS B tests. This
kono
parents:
diff changeset
1031 -- flag also suppresses the additional messages explaining why a
kono
parents:
diff changeset
1032 -- non-static expression is non-static (see Sem_Eval.Why_Not_Static).
kono
parents:
diff changeset
1033 -- This avoids having to worry about these messages in ACATS testing.
kono
parents:
diff changeset
1034
kono
parents:
diff changeset
1035 -- d3 Causes Comperr to dump the contents of the node for which an abort
kono
parents:
diff changeset
1036 -- was detected (normally only the Node_Id of the node is output).
kono
parents:
diff changeset
1037
kono
parents:
diff changeset
1038 -- d4 Inhibits automatic krunching of predefined library unit file names.
kono
parents:
diff changeset
1039 -- Normally, as described in the spec of package Krunch, such files
kono
parents:
diff changeset
1040 -- are automatically krunched to 8 characters, with special treatment
kono
parents:
diff changeset
1041 -- of the prefixes Ada, System, and Interfaces. Setting this debug
kono
parents:
diff changeset
1042 -- switch disables this special treatment.
kono
parents:
diff changeset
1043
kono
parents:
diff changeset
1044 -- d5 Causes the tree read/write circuit to output detailed information
kono
parents:
diff changeset
1045 -- tracking the data that is read and written element by element.
kono
parents:
diff changeset
1046
kono
parents:
diff changeset
1047 -- d6 Normally access-to-unconstrained-array types are represented
kono
parents:
diff changeset
1048 -- using fat (double) pointers. Using this debug flag causes them
kono
parents:
diff changeset
1049 -- to default to thin. This can be used to test the performance
kono
parents:
diff changeset
1050 -- implications of using thin pointers, and also to test that the
kono
parents:
diff changeset
1051 -- compiler functions correctly with this choice.
kono
parents:
diff changeset
1052
kono
parents:
diff changeset
1053 -- d7 Normally a -gnatl or -gnatv listing includes the time stamp of the
kono
parents:
diff changeset
1054 -- source file and the time of the compilation. This debug flag can
kono
parents:
diff changeset
1055 -- be used to suppress this output, and also suppresses the message
kono
parents:
diff changeset
1056 -- with the version of the compiler. This is useful for regression
kono
parents:
diff changeset
1057 -- tests which need to have consistent output.
kono
parents:
diff changeset
1058
kono
parents:
diff changeset
1059 -- d8 This forces the packed stuff to generate code assuming the
kono
parents:
diff changeset
1060 -- opposite endianness from the actual correct value. Useful in
kono
parents:
diff changeset
1061 -- testing out code generation from the packed routines.
kono
parents:
diff changeset
1062
kono
parents:
diff changeset
1063 -- d9 This allows lock free implementation for protected objects
kono
parents:
diff changeset
1064 -- (see Exp_Ch9).
kono
parents:
diff changeset
1065
kono
parents:
diff changeset
1066 -- d.1 Sets Opt.Unnest_Subprogram_Mode to enable unnesting of subprograms.
kono
parents:
diff changeset
1067 -- This special pass does not actually unnest things, but it ensures
kono
parents:
diff changeset
1068 -- that a nested procedure does not contain any uplevel references.
kono
parents:
diff changeset
1069 -- See spec of Exp_Unst for full details.
kono
parents:
diff changeset
1070
kono
parents:
diff changeset
1071 -- d.2 Allow statements within declarative parts. This is not usually
kono
parents:
diff changeset
1072 -- allowed, but in some debugging contexts (e.g. testing the circuit
kono
parents:
diff changeset
1073 -- for unnesting of procedures), it is useful to allow this.
kono
parents:
diff changeset
1074
kono
parents:
diff changeset
1075 -- d.3 Output debugging information from Exp_Unst, including the name of
kono
parents:
diff changeset
1076 -- any unreachable subprograms that get deleted.
kono
parents:
diff changeset
1077
kono
parents:
diff changeset
1078 -- d.4 By default in case of an error during C generation, the .c or .h
kono
parents:
diff changeset
1079 -- file is deleted. This flag keeps the C file.
kono
parents:
diff changeset
1080
kono
parents:
diff changeset
1081 -- d.5 By default a subprogram imported generates a subprogram profile.
kono
parents:
diff changeset
1082 -- This debug flag disables this generation when generating C code,
kono
parents:
diff changeset
1083 -- assuming a proper #include will be used instead.
kono
parents:
diff changeset
1084
kono
parents:
diff changeset
1085 -- d.6 By default the C back-end avoids declaring types that are not
kono
parents:
diff changeset
1086 -- referenced by the generated C code. This debug flag restores the
kono
parents:
diff changeset
1087 -- output of all the types.
kono
parents:
diff changeset
1088
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1089 -- d.7 Indicates (to gnat2scil) that CodePeer is being invoked as a
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1090 -- prover by the SPARK tools and that therefore gnat2scil should
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1091 -- avoid SCIL generation strategies which can introduce soundness
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1092 -- issues (e.g., assuming that a low bound of an array parameter
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1093 -- of an unconstrained subtype belongs to the index subtype).
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1094
111
kono
parents:
diff changeset
1095 -- d.9 Enable build-in-place for function calls returning some nonlimited
kono
parents:
diff changeset
1096 -- types.
kono
parents:
diff changeset
1097
kono
parents:
diff changeset
1098 ------------------------------------------
kono
parents:
diff changeset
1099 -- Documentation for Binder Debug Flags --
kono
parents:
diff changeset
1100 ------------------------------------------
kono
parents:
diff changeset
1101
kono
parents:
diff changeset
1102 -- da Normally if there is an elaboration circularity, then in describing
kono
parents:
diff changeset
1103 -- the cycle, links involving internal units are omitted, since they
kono
parents:
diff changeset
1104 -- are irrelevant and confusing. This debug flag causes all links to
kono
parents:
diff changeset
1105 -- be listed, and is useful when diagnosing circularities introduced
kono
parents:
diff changeset
1106 -- by incorrect changes to the run-time library itself.
kono
parents:
diff changeset
1107
kono
parents:
diff changeset
1108 -- db Output debug information from Better_Choice in Binde, which uses
kono
parents:
diff changeset
1109 -- various heuristics to determine elaboration order in cases where
kono
parents:
diff changeset
1110 -- multiple orders are valid.
kono
parents:
diff changeset
1111
kono
parents:
diff changeset
1112 -- dc List units as they are chosen. As units are selected for addition to
kono
parents:
diff changeset
1113 -- the elaboration order, a line of output is generated showing which
kono
parents:
diff changeset
1114 -- unit has been selected.
kono
parents:
diff changeset
1115
kono
parents:
diff changeset
1116 -- de Similar to the effect of -e (output complete list of elaboration
kono
parents:
diff changeset
1117 -- dependencies) except that internal units are included in the
kono
parents:
diff changeset
1118 -- listing.
kono
parents:
diff changeset
1119
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1120 -- di Normally GNATBIND calls Read_Ali with Ignore_Errors set to False,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1121 -- since the binder really needs correct version ALI files to do its
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1122 -- job. This debug flag causes Ignore_Errors mode to be set for the
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1123 -- binder (and is particularly useful for testing ignore errors mode).
111
kono
parents:
diff changeset
1124
kono
parents:
diff changeset
1125 -- dn List details of manipulation of Num_Pred values during execution of
kono
parents:
diff changeset
1126 -- the algorithm used to determine a correct order of elaboration. This
kono
parents:
diff changeset
1127 -- is useful in diagnosing any problems in its behavior.
kono
parents:
diff changeset
1128
kono
parents:
diff changeset
1129 -- do Use older elaboration order preference. The new preference rules
kono
parents:
diff changeset
1130 -- prefer specs with no bodies to specs with bodies, and between two
kono
parents:
diff changeset
1131 -- specs with bodies, prefers the one whose body is closer to being
kono
parents:
diff changeset
1132 -- able to be elaborated. This is a clear improvement, but we provide
kono
parents:
diff changeset
1133 -- this debug flag in case of regressions. Note: -do is even older
kono
parents:
diff changeset
1134 -- than -dp.
kono
parents:
diff changeset
1135
kono
parents:
diff changeset
1136 -- dp Use old elaboration order preference. The new preference rules
kono
parents:
diff changeset
1137 -- elaborate all units within a strongly connected component together,
kono
parents:
diff changeset
1138 -- with no other units in between. In particular, if a spec/body pair
kono
parents:
diff changeset
1139 -- can be elaborated together, it will be. In the new order, the binder
kono
parents:
diff changeset
1140 -- behaves as if every pragma Elaborate_All that would be legal is
kono
parents:
diff changeset
1141 -- present, even if it does not appear in the source code.
kono
parents:
diff changeset
1142
kono
parents:
diff changeset
1143 -- du List unit name and file name for each unit as it is read in
kono
parents:
diff changeset
1144
kono
parents:
diff changeset
1145 -- dv Verbose debugging printouts
kono
parents:
diff changeset
1146
kono
parents:
diff changeset
1147 -- dx Force the binder to read (and then ignore) the xref information
kono
parents:
diff changeset
1148 -- in ali files (used to check that read circuit is working OK).
kono
parents:
diff changeset
1149
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1150 -- d_a GNATBIND ignores the effects of pragma Elaborate_All in the case of
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1151 -- elaboration order and treats the associated dependency as a regular
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1152 -- with edge.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1153
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1154 -- d_b GNATBIND ignores the effects of pragma Elaborate_Body in the case
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1155 -- of elaboration order and treats the spec and body as decoupled.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1156
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1157 -- d_e GNATBIND ignores the effects of pragma Elaborate in the case of
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1158 -- elaboration order and no longer creates an implicit dependency on
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1159 -- the body of the argument.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1160
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1161 -- d_t GNATBIND output trace information of cycle-detection activities to
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1162 -- standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1163
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1164 -- d_A GNATBIND output the contents of all ALI invocation-related tables
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1165 -- in textual format to standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1166
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1167 -- d_C GNATBIND diagnoses all unique cycles within the bind, rather than
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1168 -- just the most important one.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1169
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1170 -- d_I GNATBIND outputs the contents of the invocation graph in textual
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1171 -- format to standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1172
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1173 -- d_L GNATBIND outputs the contents of the library graph in textual
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1174 -- format to standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1175
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1176 -- d_P GNATBIND outputs the cycle paths to standard output
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1177
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1178 -- d_S GNATBIND outputs trace information concerning the status of its
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1179 -- various phases to standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1180
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1181 -- d_T GNATBIND outputs trace information of elaboration order detection
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1182 -- activities to standard output.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1183
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1184 -- d_V GNATBIND validates the invocation graph, library graph along with
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1185 -- its cycles, and the elaboration order.
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
1186
111
kono
parents:
diff changeset
1187 --------------------------------------------
kono
parents:
diff changeset
1188 -- Documentation for gnatmake Debug Flags --
kono
parents:
diff changeset
1189 --------------------------------------------
kono
parents:
diff changeset
1190
kono
parents:
diff changeset
1191 -- df Only output file names, not path names, in log
kono
parents:
diff changeset
1192
kono
parents:
diff changeset
1193 -- dh Generate listing showing loading of name table hash chains,
kono
parents:
diff changeset
1194 -- same as for the compiler.
kono
parents:
diff changeset
1195
kono
parents:
diff changeset
1196 -- dm Issue a message indicating the maximum number of simultaneous
kono
parents:
diff changeset
1197 -- compilations.
kono
parents:
diff changeset
1198
kono
parents:
diff changeset
1199 -- dn Do not delete temporary files created by gnatmake at the end
kono
parents:
diff changeset
1200 -- of execution, such as temporary config pragma files, mapping
kono
parents:
diff changeset
1201 -- files or project path files. This debug switch is equivalent to
kono
parents:
diff changeset
1202 -- the standard switch --keep-temp-files. We retain the debug switch
kono
parents:
diff changeset
1203 -- for back compatibility with past usage.
kono
parents:
diff changeset
1204
kono
parents:
diff changeset
1205 -- dp Prints the Q used by routine Make.Compile_Sources every time
kono
parents:
diff changeset
1206 -- we go around the main compile loop of Make.Compile_Sources
kono
parents:
diff changeset
1207
kono
parents:
diff changeset
1208 -- dq Prints source files as they are enqueued and dequeued in the Q
kono
parents:
diff changeset
1209 -- used by routine Make.Compile_Sources. Useful to figure out the
kono
parents:
diff changeset
1210 -- order in which sources are recompiled.
kono
parents:
diff changeset
1211
kono
parents:
diff changeset
1212 -- dt When a time stamp mismatch has been found for an ALI file,
kono
parents:
diff changeset
1213 -- display the source file name, the time stamp expected and
kono
parents:
diff changeset
1214 -- the time stamp found.
kono
parents:
diff changeset
1215
kono
parents:
diff changeset
1216 -- du List unit name and file name for each unit as it is read in
kono
parents:
diff changeset
1217
kono
parents:
diff changeset
1218 -- dw Prints the list of units withed by the unit currently explored
kono
parents:
diff changeset
1219 -- during the main loop of Make.Compile_Sources.
kono
parents:
diff changeset
1220
kono
parents:
diff changeset
1221 ---------------------------------------------
kono
parents:
diff changeset
1222 -- Documentation for gprbuild Debug Flags --
kono
parents:
diff changeset
1223 ---------------------------------------------
kono
parents:
diff changeset
1224
kono
parents:
diff changeset
1225 -- dm Display the maximum number of simultaneous compilations.
kono
parents:
diff changeset
1226
kono
parents:
diff changeset
1227 -- dn Do not delete temporary files created by gprbuild at the end
kono
parents:
diff changeset
1228 -- of execution, such as temporary config pragma files, mapping
kono
parents:
diff changeset
1229 -- files or project path files. This debug switch is equivalent to
kono
parents:
diff changeset
1230 -- the standard switch --keep-temp-files. We retain the debug switch
kono
parents:
diff changeset
1231 -- for back compatibility with past usage.
kono
parents:
diff changeset
1232
kono
parents:
diff changeset
1233 -- dt When a time stamp mismatch has been found for an ALI file,
kono
parents:
diff changeset
1234 -- display the source file name, the time stamp expected and
kono
parents:
diff changeset
1235 -- the time stamp found.
kono
parents:
diff changeset
1236
kono
parents:
diff changeset
1237 --------------------
kono
parents:
diff changeset
1238 -- Set_Debug_Flag --
kono
parents:
diff changeset
1239 --------------------
kono
parents:
diff changeset
1240
kono
parents:
diff changeset
1241 procedure Set_Debug_Flag (C : Character; Val : Boolean := True) is
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1242 subtype Dig is Character range '1' .. '9';
111
kono
parents:
diff changeset
1243 subtype LLet is Character range 'a' .. 'z';
kono
parents:
diff changeset
1244 subtype ULet is Character range 'A' .. 'Z';
kono
parents:
diff changeset
1245
kono
parents:
diff changeset
1246 begin
kono
parents:
diff changeset
1247 if C in Dig then
kono
parents:
diff changeset
1248 case Dig (C) is
kono
parents:
diff changeset
1249 when '1' =>
kono
parents:
diff changeset
1250 Debug_Flag_1 := Val;
kono
parents:
diff changeset
1251 when '2' =>
kono
parents:
diff changeset
1252 Debug_Flag_2 := Val;
kono
parents:
diff changeset
1253 when '3' =>
kono
parents:
diff changeset
1254 Debug_Flag_3 := Val;
kono
parents:
diff changeset
1255 when '4' =>
kono
parents:
diff changeset
1256 Debug_Flag_4 := Val;
kono
parents:
diff changeset
1257 when '5' =>
kono
parents:
diff changeset
1258 Debug_Flag_5 := Val;
kono
parents:
diff changeset
1259 when '6' =>
kono
parents:
diff changeset
1260 Debug_Flag_6 := Val;
kono
parents:
diff changeset
1261 when '7' =>
kono
parents:
diff changeset
1262 Debug_Flag_7 := Val;
kono
parents:
diff changeset
1263 when '8' =>
kono
parents:
diff changeset
1264 Debug_Flag_8 := Val;
kono
parents:
diff changeset
1265 when '9' =>
kono
parents:
diff changeset
1266 Debug_Flag_9 := Val;
kono
parents:
diff changeset
1267 end case;
kono
parents:
diff changeset
1268
kono
parents:
diff changeset
1269 elsif C in ULet then
kono
parents:
diff changeset
1270 case ULet (C) is
kono
parents:
diff changeset
1271 when 'A' =>
kono
parents:
diff changeset
1272 Debug_Flag_AA := Val;
kono
parents:
diff changeset
1273 when 'B' =>
kono
parents:
diff changeset
1274 Debug_Flag_BB := Val;
kono
parents:
diff changeset
1275 when 'C' =>
kono
parents:
diff changeset
1276 Debug_Flag_CC := Val;
kono
parents:
diff changeset
1277 when 'D' =>
kono
parents:
diff changeset
1278 Debug_Flag_DD := Val;
kono
parents:
diff changeset
1279 when 'E' =>
kono
parents:
diff changeset
1280 Debug_Flag_EE := Val;
kono
parents:
diff changeset
1281 when 'F' =>
kono
parents:
diff changeset
1282 Debug_Flag_FF := Val;
kono
parents:
diff changeset
1283 when 'G' =>
kono
parents:
diff changeset
1284 Debug_Flag_GG := Val;
kono
parents:
diff changeset
1285 when 'H' =>
kono
parents:
diff changeset
1286 Debug_Flag_HH := Val;
kono
parents:
diff changeset
1287 when 'I' =>
kono
parents:
diff changeset
1288 Debug_Flag_II := Val;
kono
parents:
diff changeset
1289 when 'J' =>
kono
parents:
diff changeset
1290 Debug_Flag_JJ := Val;
kono
parents:
diff changeset
1291 when 'K' =>
kono
parents:
diff changeset
1292 Debug_Flag_KK := Val;
kono
parents:
diff changeset
1293 when 'L' =>
kono
parents:
diff changeset
1294 Debug_Flag_LL := Val;
kono
parents:
diff changeset
1295 when 'M' =>
kono
parents:
diff changeset
1296 Debug_Flag_MM := Val;
kono
parents:
diff changeset
1297 when 'N' =>
kono
parents:
diff changeset
1298 Debug_Flag_NN := Val;
kono
parents:
diff changeset
1299 when 'O' =>
kono
parents:
diff changeset
1300 Debug_Flag_OO := Val;
kono
parents:
diff changeset
1301 when 'P' =>
kono
parents:
diff changeset
1302 Debug_Flag_PP := Val;
kono
parents:
diff changeset
1303 when 'Q' =>
kono
parents:
diff changeset
1304 Debug_Flag_QQ := Val;
kono
parents:
diff changeset
1305 when 'R' =>
kono
parents:
diff changeset
1306 Debug_Flag_RR := Val;
kono
parents:
diff changeset
1307 when 'S' =>
kono
parents:
diff changeset
1308 Debug_Flag_SS := Val;
kono
parents:
diff changeset
1309 when 'T' =>
kono
parents:
diff changeset
1310 Debug_Flag_TT := Val;
kono
parents:
diff changeset
1311 when 'U' =>
kono
parents:
diff changeset
1312 Debug_Flag_UU := Val;
kono
parents:
diff changeset
1313 when 'V' =>
kono
parents:
diff changeset
1314 Debug_Flag_VV := Val;
kono
parents:
diff changeset
1315 when 'W' =>
kono
parents:
diff changeset
1316 Debug_Flag_WW := Val;
kono
parents:
diff changeset
1317 when 'X' =>
kono
parents:
diff changeset
1318 Debug_Flag_XX := Val;
kono
parents:
diff changeset
1319 when 'Y' =>
kono
parents:
diff changeset
1320 Debug_Flag_YY := Val;
kono
parents:
diff changeset
1321 when 'Z' =>
kono
parents:
diff changeset
1322 Debug_Flag_ZZ := Val;
kono
parents:
diff changeset
1323 end case;
kono
parents:
diff changeset
1324
kono
parents:
diff changeset
1325 else
kono
parents:
diff changeset
1326 case LLet (C) is
kono
parents:
diff changeset
1327 when 'a' =>
kono
parents:
diff changeset
1328 Debug_Flag_A := Val;
kono
parents:
diff changeset
1329 when 'b' =>
kono
parents:
diff changeset
1330 Debug_Flag_B := Val;
kono
parents:
diff changeset
1331 when 'c' =>
kono
parents:
diff changeset
1332 Debug_Flag_C := Val;
kono
parents:
diff changeset
1333 when 'd' =>
kono
parents:
diff changeset
1334 Debug_Flag_D := Val;
kono
parents:
diff changeset
1335 when 'e' =>
kono
parents:
diff changeset
1336 Debug_Flag_E := Val;
kono
parents:
diff changeset
1337 when 'f' =>
kono
parents:
diff changeset
1338 Debug_Flag_F := Val;
kono
parents:
diff changeset
1339 when 'g' =>
kono
parents:
diff changeset
1340 Debug_Flag_G := Val;
kono
parents:
diff changeset
1341 when 'h' =>
kono
parents:
diff changeset
1342 Debug_Flag_H := Val;
kono
parents:
diff changeset
1343 when 'i' =>
kono
parents:
diff changeset
1344 Debug_Flag_I := Val;
kono
parents:
diff changeset
1345 when 'j' =>
kono
parents:
diff changeset
1346 Debug_Flag_J := Val;
kono
parents:
diff changeset
1347 when 'k' =>
kono
parents:
diff changeset
1348 Debug_Flag_K := Val;
kono
parents:
diff changeset
1349 when 'l' =>
kono
parents:
diff changeset
1350 Debug_Flag_L := Val;
kono
parents:
diff changeset
1351 when 'm' =>
kono
parents:
diff changeset
1352 Debug_Flag_M := Val;
kono
parents:
diff changeset
1353 when 'n' =>
kono
parents:
diff changeset
1354 Debug_Flag_N := Val;
kono
parents:
diff changeset
1355 when 'o' =>
kono
parents:
diff changeset
1356 Debug_Flag_O := Val;
kono
parents:
diff changeset
1357 when 'p' =>
kono
parents:
diff changeset
1358 Debug_Flag_P := Val;
kono
parents:
diff changeset
1359 when 'q' =>
kono
parents:
diff changeset
1360 Debug_Flag_Q := Val;
kono
parents:
diff changeset
1361 when 'r' =>
kono
parents:
diff changeset
1362 Debug_Flag_R := Val;
kono
parents:
diff changeset
1363 when 's' =>
kono
parents:
diff changeset
1364 Debug_Flag_S := Val;
kono
parents:
diff changeset
1365 when 't' =>
kono
parents:
diff changeset
1366 Debug_Flag_T := Val;
kono
parents:
diff changeset
1367 when 'u' =>
kono
parents:
diff changeset
1368 Debug_Flag_U := Val;
kono
parents:
diff changeset
1369 when 'v' =>
kono
parents:
diff changeset
1370 Debug_Flag_V := Val;
kono
parents:
diff changeset
1371 when 'w' =>
kono
parents:
diff changeset
1372 Debug_Flag_W := Val;
kono
parents:
diff changeset
1373 when 'x' =>
kono
parents:
diff changeset
1374 Debug_Flag_X := Val;
kono
parents:
diff changeset
1375 when 'y' =>
kono
parents:
diff changeset
1376 Debug_Flag_Y := Val;
kono
parents:
diff changeset
1377 when 'z' =>
kono
parents:
diff changeset
1378 Debug_Flag_Z := Val;
kono
parents:
diff changeset
1379 end case;
kono
parents:
diff changeset
1380 end if;
kono
parents:
diff changeset
1381 end Set_Debug_Flag;
kono
parents:
diff changeset
1382
kono
parents:
diff changeset
1383 ---------------------------
kono
parents:
diff changeset
1384 -- Set_Dotted_Debug_Flag --
kono
parents:
diff changeset
1385 ---------------------------
kono
parents:
diff changeset
1386
kono
parents:
diff changeset
1387 procedure Set_Dotted_Debug_Flag (C : Character; Val : Boolean := True) is
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1388 subtype Dig is Character range '1' .. '9';
111
kono
parents:
diff changeset
1389 subtype LLet is Character range 'a' .. 'z';
kono
parents:
diff changeset
1390 subtype ULet is Character range 'A' .. 'Z';
kono
parents:
diff changeset
1391
kono
parents:
diff changeset
1392 begin
kono
parents:
diff changeset
1393 if C in Dig then
kono
parents:
diff changeset
1394 case Dig (C) is
kono
parents:
diff changeset
1395 when '1' =>
kono
parents:
diff changeset
1396 Debug_Flag_Dot_1 := Val;
kono
parents:
diff changeset
1397 when '2' =>
kono
parents:
diff changeset
1398 Debug_Flag_Dot_2 := Val;
kono
parents:
diff changeset
1399 when '3' =>
kono
parents:
diff changeset
1400 Debug_Flag_Dot_3 := Val;
kono
parents:
diff changeset
1401 when '4' =>
kono
parents:
diff changeset
1402 Debug_Flag_Dot_4 := Val;
kono
parents:
diff changeset
1403 when '5' =>
kono
parents:
diff changeset
1404 Debug_Flag_Dot_5 := Val;
kono
parents:
diff changeset
1405 when '6' =>
kono
parents:
diff changeset
1406 Debug_Flag_Dot_6 := Val;
kono
parents:
diff changeset
1407 when '7' =>
kono
parents:
diff changeset
1408 Debug_Flag_Dot_7 := Val;
kono
parents:
diff changeset
1409 when '8' =>
kono
parents:
diff changeset
1410 Debug_Flag_Dot_8 := Val;
kono
parents:
diff changeset
1411 when '9' =>
kono
parents:
diff changeset
1412 Debug_Flag_Dot_9 := Val;
kono
parents:
diff changeset
1413 end case;
kono
parents:
diff changeset
1414
kono
parents:
diff changeset
1415 elsif C in ULet then
kono
parents:
diff changeset
1416 case ULet (C) is
kono
parents:
diff changeset
1417 when 'A' =>
kono
parents:
diff changeset
1418 Debug_Flag_Dot_AA := Val;
kono
parents:
diff changeset
1419 when 'B' =>
kono
parents:
diff changeset
1420 Debug_Flag_Dot_BB := Val;
kono
parents:
diff changeset
1421 when 'C' =>
kono
parents:
diff changeset
1422 Debug_Flag_Dot_CC := Val;
kono
parents:
diff changeset
1423 when 'D' =>
kono
parents:
diff changeset
1424 Debug_Flag_Dot_DD := Val;
kono
parents:
diff changeset
1425 when 'E' =>
kono
parents:
diff changeset
1426 Debug_Flag_Dot_EE := Val;
kono
parents:
diff changeset
1427 when 'F' =>
kono
parents:
diff changeset
1428 Debug_Flag_Dot_FF := Val;
kono
parents:
diff changeset
1429 when 'G' =>
kono
parents:
diff changeset
1430 Debug_Flag_Dot_GG := Val;
kono
parents:
diff changeset
1431 when 'H' =>
kono
parents:
diff changeset
1432 Debug_Flag_Dot_HH := Val;
kono
parents:
diff changeset
1433 when 'I' =>
kono
parents:
diff changeset
1434 Debug_Flag_Dot_II := Val;
kono
parents:
diff changeset
1435 when 'J' =>
kono
parents:
diff changeset
1436 Debug_Flag_Dot_JJ := Val;
kono
parents:
diff changeset
1437 when 'K' =>
kono
parents:
diff changeset
1438 Debug_Flag_Dot_KK := Val;
kono
parents:
diff changeset
1439 when 'L' =>
kono
parents:
diff changeset
1440 Debug_Flag_Dot_LL := Val;
kono
parents:
diff changeset
1441 when 'M' =>
kono
parents:
diff changeset
1442 Debug_Flag_Dot_MM := Val;
kono
parents:
diff changeset
1443 when 'N' =>
kono
parents:
diff changeset
1444 Debug_Flag_Dot_NN := Val;
kono
parents:
diff changeset
1445 when 'O' =>
kono
parents:
diff changeset
1446 Debug_Flag_Dot_OO := Val;
kono
parents:
diff changeset
1447 when 'P' =>
kono
parents:
diff changeset
1448 Debug_Flag_Dot_PP := Val;
kono
parents:
diff changeset
1449 when 'Q' =>
kono
parents:
diff changeset
1450 Debug_Flag_Dot_QQ := Val;
kono
parents:
diff changeset
1451 when 'R' =>
kono
parents:
diff changeset
1452 Debug_Flag_Dot_RR := Val;
kono
parents:
diff changeset
1453 when 'S' =>
kono
parents:
diff changeset
1454 Debug_Flag_Dot_SS := Val;
kono
parents:
diff changeset
1455 when 'T' =>
kono
parents:
diff changeset
1456 Debug_Flag_Dot_TT := Val;
kono
parents:
diff changeset
1457 when 'U' =>
kono
parents:
diff changeset
1458 Debug_Flag_Dot_UU := Val;
kono
parents:
diff changeset
1459 when 'V' =>
kono
parents:
diff changeset
1460 Debug_Flag_Dot_VV := Val;
kono
parents:
diff changeset
1461 when 'W' =>
kono
parents:
diff changeset
1462 Debug_Flag_Dot_WW := Val;
kono
parents:
diff changeset
1463 when 'X' =>
kono
parents:
diff changeset
1464 Debug_Flag_Dot_XX := Val;
kono
parents:
diff changeset
1465 when 'Y' =>
kono
parents:
diff changeset
1466 Debug_Flag_Dot_YY := Val;
kono
parents:
diff changeset
1467 when 'Z' =>
kono
parents:
diff changeset
1468 Debug_Flag_Dot_ZZ := Val;
kono
parents:
diff changeset
1469 end case;
kono
parents:
diff changeset
1470
kono
parents:
diff changeset
1471 else
kono
parents:
diff changeset
1472 case LLet (C) is
kono
parents:
diff changeset
1473 when 'a' =>
kono
parents:
diff changeset
1474 Debug_Flag_Dot_A := Val;
kono
parents:
diff changeset
1475 when 'b' =>
kono
parents:
diff changeset
1476 Debug_Flag_Dot_B := Val;
kono
parents:
diff changeset
1477 when 'c' =>
kono
parents:
diff changeset
1478 Debug_Flag_Dot_C := Val;
kono
parents:
diff changeset
1479 when 'd' =>
kono
parents:
diff changeset
1480 Debug_Flag_Dot_D := Val;
kono
parents:
diff changeset
1481 when 'e' =>
kono
parents:
diff changeset
1482 Debug_Flag_Dot_E := Val;
kono
parents:
diff changeset
1483 when 'f' =>
kono
parents:
diff changeset
1484 Debug_Flag_Dot_F := Val;
kono
parents:
diff changeset
1485 when 'g' =>
kono
parents:
diff changeset
1486 Debug_Flag_Dot_G := Val;
kono
parents:
diff changeset
1487 when 'h' =>
kono
parents:
diff changeset
1488 Debug_Flag_Dot_H := Val;
kono
parents:
diff changeset
1489 when 'i' =>
kono
parents:
diff changeset
1490 Debug_Flag_Dot_I := Val;
kono
parents:
diff changeset
1491 when 'j' =>
kono
parents:
diff changeset
1492 Debug_Flag_Dot_J := Val;
kono
parents:
diff changeset
1493 when 'k' =>
kono
parents:
diff changeset
1494 Debug_Flag_Dot_K := Val;
kono
parents:
diff changeset
1495 when 'l' =>
kono
parents:
diff changeset
1496 Debug_Flag_Dot_L := Val;
kono
parents:
diff changeset
1497 when 'm' =>
kono
parents:
diff changeset
1498 Debug_Flag_Dot_M := Val;
kono
parents:
diff changeset
1499 when 'n' =>
kono
parents:
diff changeset
1500 Debug_Flag_Dot_N := Val;
kono
parents:
diff changeset
1501 when 'o' =>
kono
parents:
diff changeset
1502 Debug_Flag_Dot_O := Val;
kono
parents:
diff changeset
1503 when 'p' =>
kono
parents:
diff changeset
1504 Debug_Flag_Dot_P := Val;
kono
parents:
diff changeset
1505 when 'q' =>
kono
parents:
diff changeset
1506 Debug_Flag_Dot_Q := Val;
kono
parents:
diff changeset
1507 when 'r' =>
kono
parents:
diff changeset
1508 Debug_Flag_Dot_R := Val;
kono
parents:
diff changeset
1509 when 's' =>
kono
parents:
diff changeset
1510 Debug_Flag_Dot_S := Val;
kono
parents:
diff changeset
1511 when 't' =>
kono
parents:
diff changeset
1512 Debug_Flag_Dot_T := Val;
kono
parents:
diff changeset
1513 when 'u' =>
kono
parents:
diff changeset
1514 Debug_Flag_Dot_U := Val;
kono
parents:
diff changeset
1515 when 'v' =>
kono
parents:
diff changeset
1516 Debug_Flag_Dot_V := Val;
kono
parents:
diff changeset
1517 when 'w' =>
kono
parents:
diff changeset
1518 Debug_Flag_Dot_W := Val;
kono
parents:
diff changeset
1519 when 'x' =>
kono
parents:
diff changeset
1520 Debug_Flag_Dot_X := Val;
kono
parents:
diff changeset
1521 when 'y' =>
kono
parents:
diff changeset
1522 Debug_Flag_Dot_Y := Val;
kono
parents:
diff changeset
1523 when 'z' =>
kono
parents:
diff changeset
1524 Debug_Flag_Dot_Z := Val;
kono
parents:
diff changeset
1525 end case;
kono
parents:
diff changeset
1526 end if;
kono
parents:
diff changeset
1527 end Set_Dotted_Debug_Flag;
kono
parents:
diff changeset
1528
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1529 --------------------------------
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1530 -- Set_Underscored_Debug_Flag --
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1531 --------------------------------
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1532
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1533 procedure Set_Underscored_Debug_Flag
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1534 (C : Character;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1535 Val : Boolean := True)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1536 is
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1537 subtype Dig is Character range '1' .. '9';
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1538 subtype LLet is Character range 'a' .. 'z';
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1539 subtype ULet is Character range 'A' .. 'Z';
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1540
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1541 begin
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1542 if C in Dig then
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1543 case Dig (C) is
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1544 when '1' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1545 Debug_Flag_Underscore_1 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1546 when '2' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1547 Debug_Flag_Underscore_2 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1548 when '3' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1549 Debug_Flag_Underscore_3 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1550 when '4' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1551 Debug_Flag_Underscore_4 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1552 when '5' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1553 Debug_Flag_Underscore_5 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1554 when '6' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1555 Debug_Flag_Underscore_6 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1556 when '7' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1557 Debug_Flag_Underscore_7 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1558 when '8' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1559 Debug_Flag_Underscore_8 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1560 when '9' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1561 Debug_Flag_Underscore_9 := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1562 end case;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1563
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1564 elsif C in ULet then
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1565 case ULet (C) is
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1566 when 'A' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1567 Debug_Flag_Underscore_AA := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1568 when 'B' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1569 Debug_Flag_Underscore_BB := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1570 when 'C' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1571 Debug_Flag_Underscore_CC := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1572 when 'D' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1573 Debug_Flag_Underscore_DD := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1574 when 'E' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1575 Debug_Flag_Underscore_EE := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1576 when 'F' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1577 Debug_Flag_Underscore_FF := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1578 when 'G' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1579 Debug_Flag_Underscore_GG := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1580 when 'H' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1581 Debug_Flag_Underscore_HH := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1582 when 'I' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1583 Debug_Flag_Underscore_II := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1584 when 'J' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1585 Debug_Flag_Underscore_JJ := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1586 when 'K' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1587 Debug_Flag_Underscore_KK := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1588 when 'L' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1589 Debug_Flag_Underscore_LL := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1590 when 'M' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1591 Debug_Flag_Underscore_MM := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1592 when 'N' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1593 Debug_Flag_Underscore_NN := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1594 when 'O' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1595 Debug_Flag_Underscore_OO := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1596 when 'P' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1597 Debug_Flag_Underscore_PP := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1598 when 'Q' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1599 Debug_Flag_Underscore_QQ := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1600 when 'R' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1601 Debug_Flag_Underscore_RR := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1602 when 'S' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1603 Debug_Flag_Underscore_SS := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1604 when 'T' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1605 Debug_Flag_Underscore_TT := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1606 when 'U' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1607 Debug_Flag_Underscore_UU := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1608 when 'V' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1609 Debug_Flag_Underscore_VV := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1610 when 'W' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1611 Debug_Flag_Underscore_WW := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1612 when 'X' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1613 Debug_Flag_Underscore_XX := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1614 when 'Y' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1615 Debug_Flag_Underscore_YY := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1616 when 'Z' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1617 Debug_Flag_Underscore_ZZ := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1618 end case;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1619
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1620 else
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1621 case LLet (C) is
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1622 when 'a' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1623 Debug_Flag_Underscore_A := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1624 when 'b' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1625 Debug_Flag_Underscore_B := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1626 when 'c' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1627 Debug_Flag_Underscore_C := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1628 when 'd' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1629 Debug_Flag_Underscore_D := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1630 when 'e' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1631 Debug_Flag_Underscore_E := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1632 when 'f' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1633 Debug_Flag_Underscore_F := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1634 when 'g' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1635 Debug_Flag_Underscore_G := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1636 when 'h' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1637 Debug_Flag_Underscore_H := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1638 when 'i' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1639 Debug_Flag_Underscore_I := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1640 when 'j' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1641 Debug_Flag_Underscore_J := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1642 when 'k' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1643 Debug_Flag_Underscore_K := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1644 when 'l' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1645 Debug_Flag_Underscore_L := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1646 when 'm' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1647 Debug_Flag_Underscore_M := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1648 when 'n' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1649 Debug_Flag_Underscore_N := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1650 when 'o' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1651 Debug_Flag_Underscore_O := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1652 when 'p' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1653 Debug_Flag_Underscore_P := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1654 when 'q' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1655 Debug_Flag_Underscore_Q := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1656 when 'r' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1657 Debug_Flag_Underscore_R := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1658 when 's' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1659 Debug_Flag_Underscore_S := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1660 when 't' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1661 Debug_Flag_Underscore_T := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1662 when 'u' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1663 Debug_Flag_Underscore_U := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1664 when 'v' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1665 Debug_Flag_Underscore_V := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1666 when 'w' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1667 Debug_Flag_Underscore_W := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1668 when 'x' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1669 Debug_Flag_Underscore_X := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1670 when 'y' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1671 Debug_Flag_Underscore_Y := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1672 when 'z' =>
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1673 Debug_Flag_Underscore_Z := Val;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1674 end case;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1675 end if;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1676 end Set_Underscored_Debug_Flag;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
1677
111
kono
parents:
diff changeset
1678 end Debug;