compiler: don't generate stubs for ambiguous direct interface methods
[official-gcc.git] / gcc / ada / debug.ads
blob1a07ec6006ced0f475a641c06c84cd5d97d428ff
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- D E B U G --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2022, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
20 -- --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
23 -- --
24 ------------------------------------------------------------------------------
26 -- This package contains global flags used to control the inclusion
27 -- of debugging code in various phases of the compiler. Some of these
28 -- flags are also used by the binder and gnatmake.
30 package Debug is
31 pragma Preelaborate;
33 -------------------------
34 -- Dynamic Debug Flags --
35 -------------------------
37 -- Flags that can be used to activate various specialized debugging output
38 -- information. The flags are preset to False, which corresponds to the
39 -- given output being suppressed. The individual flags can be turned on
40 -- using the undocumented switch dxxx where xxx is a string of letters for
41 -- flags to be turned on. Documentation on the current usage of these flags
42 -- is contained in the body of Debug rather than the spec, so that we don't
43 -- have to recompile the world when a new debug flag is added.
45 -- WARNING: There is a matching C declaration of a few flags in fe.h
47 Debug_Flag_A : Boolean := False;
48 Debug_Flag_B : Boolean := False;
49 Debug_Flag_C : Boolean := False;
50 Debug_Flag_D : Boolean := False;
51 Debug_Flag_E : Boolean := False;
52 Debug_Flag_F : Boolean := False;
53 Debug_Flag_G : Boolean := False;
54 Debug_Flag_H : Boolean := False;
55 Debug_Flag_I : Boolean := False;
56 Debug_Flag_J : Boolean := False;
57 Debug_Flag_K : Boolean := False;
58 Debug_Flag_L : Boolean := False;
59 Debug_Flag_M : Boolean := False;
60 Debug_Flag_N : Boolean := False;
61 Debug_Flag_O : Boolean := False;
62 Debug_Flag_P : Boolean := False;
63 Debug_Flag_Q : Boolean := False;
64 Debug_Flag_R : Boolean := False;
65 Debug_Flag_S : Boolean := False;
66 Debug_Flag_T : Boolean := False;
67 Debug_Flag_U : Boolean := False;
68 Debug_Flag_V : Boolean := False;
69 Debug_Flag_W : Boolean := False;
70 Debug_Flag_X : Boolean := False;
71 Debug_Flag_Y : Boolean := False;
72 Debug_Flag_Z : Boolean := False;
74 Debug_Flag_AA : Boolean := False;
75 Debug_Flag_BB : Boolean := False;
76 Debug_Flag_CC : Boolean := False;
77 Debug_Flag_DD : Boolean := False;
78 Debug_Flag_EE : Boolean := False;
79 Debug_Flag_FF : Boolean := False;
80 Debug_Flag_GG : Boolean := False;
81 Debug_Flag_HH : Boolean := False;
82 Debug_Flag_II : Boolean := False;
83 Debug_Flag_JJ : Boolean := False;
84 Debug_Flag_KK : Boolean := False;
85 Debug_Flag_LL : Boolean := False;
86 Debug_Flag_MM : Boolean := False;
87 Debug_Flag_NN : Boolean := False;
88 Debug_Flag_OO : Boolean := False;
89 Debug_Flag_PP : Boolean := False;
90 Debug_Flag_QQ : Boolean := False;
91 Debug_Flag_RR : Boolean := False;
92 Debug_Flag_SS : Boolean := False;
93 Debug_Flag_TT : Boolean := False;
94 Debug_Flag_UU : Boolean := False;
95 Debug_Flag_VV : Boolean := False;
96 Debug_Flag_WW : Boolean := False;
97 Debug_Flag_XX : Boolean := False;
98 Debug_Flag_YY : Boolean := False;
99 Debug_Flag_ZZ : Boolean := False;
101 Debug_Flag_1 : Boolean := False;
102 Debug_Flag_2 : Boolean := False;
103 Debug_Flag_3 : Boolean := False;
104 Debug_Flag_4 : Boolean := False;
105 Debug_Flag_5 : Boolean := False;
106 Debug_Flag_6 : Boolean := False;
107 Debug_Flag_7 : Boolean := False;
108 Debug_Flag_8 : Boolean := False;
109 Debug_Flag_9 : Boolean := False;
111 Debug_Flag_Dot_A : Boolean := False;
112 Debug_Flag_Dot_B : Boolean := False;
113 Debug_Flag_Dot_C : Boolean := False;
114 Debug_Flag_Dot_D : Boolean := False;
115 Debug_Flag_Dot_E : Boolean := False;
116 Debug_Flag_Dot_F : Boolean := False;
117 Debug_Flag_Dot_G : Boolean := False;
118 Debug_Flag_Dot_H : Boolean := False;
119 Debug_Flag_Dot_I : Boolean := False;
120 Debug_Flag_Dot_J : Boolean := False;
121 Debug_Flag_Dot_K : Boolean := False;
122 Debug_Flag_Dot_L : Boolean := False;
123 Debug_Flag_Dot_M : Boolean := False;
124 Debug_Flag_Dot_N : Boolean := False;
125 Debug_Flag_Dot_O : Boolean := False;
126 Debug_Flag_Dot_P : Boolean := False;
127 Debug_Flag_Dot_Q : Boolean := False;
128 Debug_Flag_Dot_R : Boolean := False;
129 Debug_Flag_Dot_S : Boolean := False;
130 Debug_Flag_Dot_T : Boolean := False;
131 Debug_Flag_Dot_U : Boolean := False;
132 Debug_Flag_Dot_V : Boolean := False;
133 Debug_Flag_Dot_W : Boolean := False;
134 Debug_Flag_Dot_X : Boolean := False;
135 Debug_Flag_Dot_Y : Boolean := False;
136 Debug_Flag_Dot_Z : Boolean := False;
138 Debug_Flag_Dot_AA : Boolean := False;
139 Debug_Flag_Dot_BB : Boolean := False;
140 Debug_Flag_Dot_CC : Boolean := False;
141 Debug_Flag_Dot_DD : Boolean := False;
142 Debug_Flag_Dot_EE : Boolean := False;
143 Debug_Flag_Dot_FF : Boolean := False;
144 Debug_Flag_Dot_GG : Boolean := False;
145 Debug_Flag_Dot_HH : Boolean := False;
146 Debug_Flag_Dot_II : Boolean := False;
147 Debug_Flag_Dot_JJ : Boolean := False;
148 Debug_Flag_Dot_KK : Boolean := False;
149 Debug_Flag_Dot_LL : Boolean := False;
150 Debug_Flag_Dot_MM : Boolean := False;
151 Debug_Flag_Dot_NN : Boolean := False;
152 Debug_Flag_Dot_OO : Boolean := False;
153 Debug_Flag_Dot_PP : Boolean := False;
154 Debug_Flag_Dot_QQ : Boolean := False;
155 Debug_Flag_Dot_RR : Boolean := False;
156 Debug_Flag_Dot_SS : Boolean := False;
157 Debug_Flag_Dot_TT : Boolean := False;
158 Debug_Flag_Dot_UU : Boolean := False;
159 Debug_Flag_Dot_VV : Boolean := False;
160 Debug_Flag_Dot_WW : Boolean := False;
161 Debug_Flag_Dot_XX : Boolean := False;
162 Debug_Flag_Dot_YY : Boolean := False;
163 Debug_Flag_Dot_ZZ : Boolean := False;
165 Debug_Flag_Dot_1 : Boolean := False;
166 Debug_Flag_Dot_2 : Boolean := False;
167 Debug_Flag_Dot_3 : Boolean := False;
168 Debug_Flag_Dot_4 : Boolean := False;
169 Debug_Flag_Dot_5 : Boolean := False;
170 Debug_Flag_Dot_6 : Boolean := False;
171 Debug_Flag_Dot_7 : Boolean := False;
172 Debug_Flag_Dot_8 : Boolean := False;
173 Debug_Flag_Dot_9 : Boolean := False;
175 Debug_Flag_Underscore_A : Boolean := False;
176 Debug_Flag_Underscore_B : Boolean := False;
177 Debug_Flag_Underscore_C : Boolean := False;
178 Debug_Flag_Underscore_D : Boolean := False;
179 Debug_Flag_Underscore_E : Boolean := False;
180 Debug_Flag_Underscore_F : Boolean := False;
181 Debug_Flag_Underscore_G : Boolean := False;
182 Debug_Flag_Underscore_H : Boolean := False;
183 Debug_Flag_Underscore_I : Boolean := False;
184 Debug_Flag_Underscore_J : Boolean := False;
185 Debug_Flag_Underscore_K : Boolean := False;
186 Debug_Flag_Underscore_L : Boolean := False;
187 Debug_Flag_Underscore_M : Boolean := False;
188 Debug_Flag_Underscore_N : Boolean := False;
189 Debug_Flag_Underscore_O : Boolean := False;
190 Debug_Flag_Underscore_P : Boolean := False;
191 Debug_Flag_Underscore_Q : Boolean := False;
192 Debug_Flag_Underscore_R : Boolean := False;
193 Debug_Flag_Underscore_S : Boolean := False;
194 Debug_Flag_Underscore_T : Boolean := False;
195 Debug_Flag_Underscore_U : Boolean := False;
196 Debug_Flag_Underscore_V : Boolean := False;
197 Debug_Flag_Underscore_W : Boolean := False;
198 Debug_Flag_Underscore_X : Boolean := False;
199 Debug_Flag_Underscore_Y : Boolean := False;
200 Debug_Flag_Underscore_Z : Boolean := False;
202 Debug_Flag_Underscore_AA : Boolean := False;
203 Debug_Flag_Underscore_BB : Boolean := False;
204 Debug_Flag_Underscore_CC : Boolean := False;
205 Debug_Flag_Underscore_DD : Boolean := False;
206 Debug_Flag_Underscore_EE : Boolean := False;
207 Debug_Flag_Underscore_FF : Boolean := False;
208 Debug_Flag_Underscore_GG : Boolean := False;
209 Debug_Flag_Underscore_HH : Boolean := False;
210 Debug_Flag_Underscore_II : Boolean := False;
211 Debug_Flag_Underscore_JJ : Boolean := False;
212 Debug_Flag_Underscore_KK : Boolean := False;
213 Debug_Flag_Underscore_LL : Boolean := False;
214 Debug_Flag_Underscore_MM : Boolean := False;
215 Debug_Flag_Underscore_NN : Boolean := False;
216 Debug_Flag_Underscore_OO : Boolean := False;
217 Debug_Flag_Underscore_PP : Boolean := False;
218 Debug_Flag_Underscore_QQ : Boolean := False;
219 Debug_Flag_Underscore_RR : Boolean := False;
220 Debug_Flag_Underscore_SS : Boolean := False;
221 Debug_Flag_Underscore_TT : Boolean := False;
222 Debug_Flag_Underscore_UU : Boolean := False;
223 Debug_Flag_Underscore_VV : Boolean := False;
224 Debug_Flag_Underscore_WW : Boolean := False;
225 Debug_Flag_Underscore_XX : Boolean := False;
226 Debug_Flag_Underscore_YY : Boolean := False;
227 Debug_Flag_Underscore_ZZ : Boolean := False;
229 Debug_Flag_Underscore_1 : Boolean := False;
230 Debug_Flag_Underscore_2 : Boolean := False;
231 Debug_Flag_Underscore_3 : Boolean := False;
232 Debug_Flag_Underscore_4 : Boolean := False;
233 Debug_Flag_Underscore_5 : Boolean := False;
234 Debug_Flag_Underscore_6 : Boolean := False;
235 Debug_Flag_Underscore_7 : Boolean := False;
236 Debug_Flag_Underscore_8 : Boolean := False;
237 Debug_Flag_Underscore_9 : Boolean := False;
239 procedure Set_Debug_Flag (C : Character; Val : Boolean := True);
240 -- Where C is 0-9, A-Z, or a-z, sets the corresponding debug flag to
241 -- the given value. In the checks off version of debug, the call to
242 -- Set_Debug_Flag is always a null operation.
244 procedure Set_Dotted_Debug_Flag (C : Character; Val : Boolean := True);
245 -- Where C is 0-9, A-Z, or a-z, sets the corresponding dotted debug
246 -- flag (e.g. call with C = 'a' for the .a flag).
248 procedure Set_Underscored_Debug_Flag (C : Character; Val : Boolean := True);
249 -- Where C is 0-9, A-Z, or a-z, sets the corresponding underscored debug
250 -- flag (e.g. call with C = 'a' for the _a flag).
252 end Debug;