]>
Commit | Line | Data |
---|---|---|
c01817d2 AC |
1 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
2 | ||
3 | * sem_ch3.adb (Add_Internal_Interface_Entities): If serious errors have | |
4 | been reported and a subprogram covering an interface primitive is not | |
5 | found then skip generating the internal entity. Done to avoid crashing | |
6 | the frontend. | |
7 | (Check_Abstract_Overriding): Change text of error of wrong formal of | |
8 | protected subprogram or entry. Done for consistency to emit exactly the | |
9 | same error reported by Check_Synchronized_Overriding. In addition, the | |
10 | error is restricted to protected types (bug found working on AI05-0090) | |
11 | ||
12 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
13 | ||
14 | * exp_aggr.adb, exp_ch11.adb, exp_prag.adb: Remove early exit during | |
15 | expansion in Alfa mode. | |
16 | * exp_ch6.adb, exp_ch6.ads (Expand_Actuals): Make subprogram public. | |
17 | * exp_light.adb, exp_light.ads: New package defining light expansion. | |
18 | * expander.adb (Expand): Call light expansion in Alfa mode | |
19 | * exp_ch6_light.adb, exp_ch6_light.ads: Light expansion of chapter 6 | |
20 | constructs. | |
21 | * exp_ch7_light.adb, exp_ch7_light.ads: Light expansion of chapter 7 | |
22 | constructs. | |
23 | * exp_attr_light.adb, exp_attr_light.ads: Light expansion of attributes | |
24 | * gnat1drv.adb (Adjust_Global_Switches): Comment | |
25 | ||
26 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
27 | ||
28 | * lib-xref-alfa.adb: Minor refactoring. | |
29 | ||
30 | 2011-08-30 Yannick Moy <moy@adacore.com> | |
31 | ||
32 | * exp_ch9.adb (Expand_Entry_Barrier): Do not perform expansion in Alfa | |
33 | mode. | |
34 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Do not perform | |
35 | expansion in Alfa mode. | |
36 | * sem_ch9.adb (Analyze_Entry_Body): Do not perform expansion in Alfa | |
37 | mode. | |
38 | ||
39 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
40 | ||
41 | * debug_a.adb: Update comment. | |
42 | ||
996c8821 RD |
43 | 2011-08-30 Robert Dewar <dewar@adacore.com> |
44 | ||
45 | * exp_ch5.adb, sem_ch3.adb, sem_ch5.adb, einfo.adb, checks.adb, | |
46 | sem_util.adb, sem_util.ads, sem_res.adb, s-stposu.adb, sem_attr.adb, | |
47 | exp_ch4.adb, exp_ch6.adb, lib-xref-alfa.adb, | |
48 | sem_ch8.adb, sem_disp.adb, exp_ch3.adb: Minor reformatting | |
49 | ||
50 | 2011-08-30 Robert Dewar <dewar@adacore.com> | |
51 | ||
52 | * gnat_rm.texi: Add section on C.6(16) implementation advice for pragma | |
53 | volatile. | |
54 | ||
3647ca26 HK |
55 | 2011-08-30 Hristian Kirtchev <kirtchev@adacore.com> |
56 | ||
57 | * exp_ch3.adb (Expand_Freeze_Array_Type): Correct the call to | |
58 | Build_Finalization_Master by supplying an insertion node and enclosing | |
59 | scope. In its old version, the call did not generate a finalization | |
60 | master. | |
61 | (Expand_Freeze_Record_Type): Add local variable Has_AACC. Add code to | |
62 | recognize anonymous access-to-controlled components. Rewrite the | |
63 | machinery which creates finalization masters to service anonymous | |
64 | access-to-controlled components of a record type. In its current state, | |
65 | only one heterogeneous master is necessary to handle multiple anonymous | |
66 | components. | |
67 | (Freeze_Type): Comment reformatting. | |
68 | * rtsfind.ads: Add RE_Set_Is_Heterogeneous to tables RE_Id and | |
69 | RE_Unit_Table. | |
70 | * s-stposu.adb (Allocate_Any_Controlled): Rewrite the machinery which | |
71 | associates TSS primitive Finalize_Address with either the master itself | |
72 | or with the internal hash table depending on the mode of operation of | |
73 | the master. | |
74 | ||
6d4e4fbc JM |
75 | 2011-08-30 Javier Miranda <miranda@adacore.com> |
76 | ||
77 | * exp_ch3.adb (Make_Eq_If): If the etype of the _parent component is an | |
78 | interface type then do not generate code to compare this component. | |
79 | Required since they have no components and their equality operator is | |
80 | abstract. | |
81 | ||
d15f9422 AC |
82 | 2011-08-30 Steve Baird <baird@adacore.com> |
83 | ||
84 | * sem_util.ads (Deepest_Type_Access_Level): New function; for the type | |
85 | of a saooaaat (i.e, a stand-alone object of an anonymous access type), | |
86 | returns the (static) accessibility level of the object. Otherwise, the | |
87 | same as Type_Access_Level. | |
88 | (Dynamic_Accessibility_Level): New function; given an expression which | |
89 | could occur as the rhs of an assignment to a saooaaat (i.e., an | |
90 | expression of an access-to-object type), return the new value for the | |
91 | saooaaat's associated Extra_Accessibility object. | |
92 | (Effective_Extra_Accessibility): New function; same as | |
93 | Einfo.Extra_Accessibility except that object renames are looked through. | |
94 | * sem_util.adb | |
95 | (Deepest_Type_Access_Level): New function; see sem_util.ads description. | |
96 | (Dynamic_Accessibility_Level): New function; see sem_util.ads | |
97 | description. | |
98 | (Effective_Extra_Accessibility): New function; see sem_util.ads | |
99 | description. | |
100 | * einfo.ads (Is_Local_Anonymous_Access): Update comments. | |
101 | (Extra_Accessibility): Update comments. | |
102 | (Init_Object_Size_Align): New procedure; same as Init_Size_Align | |
103 | except RM_Size field (which is only for types) is unaffected. | |
104 | * einfo.adb | |
105 | (Extra_Accessibility): Expand domain to allow objects, not just formals. | |
106 | (Set_Extra_Accessibility): Expand domain to allow objects, not just | |
107 | formals. | |
108 | (Init_Size): Add assertion that we are not trashing the | |
109 | Extra_Accessibility attribute of an object. | |
110 | (Init_Size_Align): Add assertion that we are not trashing the | |
111 | Extra_Accessibility attribute of an object. | |
112 | (Init_Object_Size_Align): New procedure; see einfo.ads description. | |
113 | * sem_ch3.adb (Find_Type_Of_Object): Set Is_Local_Anonymous_Access | |
114 | differently for the type of a (non-library-level) saooaaat depending | |
115 | whether Ada_Version < Ada_2012. This is the only point where Ada_Version | |
116 | is queried in this set of changes - everything else (in particular, | |
117 | setting of the Extra_Accessibility attribute in exp_ch3.adb) is | |
118 | driven off of the setting of the Is_Local_Anonymous_Access attribute. | |
119 | The special treatment of library-level saooaaats is an optimization, | |
120 | not required for correctnesss. This is based on the observation that the | |
121 | Ada2012 rules (static and dynamic) for saooaaats turn out to be | |
122 | equivalent to the Ada2005 rules in the case of a library-level saooaaat. | |
123 | * exp_ch3.adb | |
124 | (Expand_N_Object_Declaration): If Is_Local_Anonymous_Access is | |
125 | false for the type of a saooaaat, declare and initialize its | |
126 | accessibility level object and set the Extra_Accessibility attribute | |
127 | of the saooaaat to refer to this object. | |
128 | * checks.adb (Apply_Accessibility_Check): Add Ada 2012 saooaaat support. | |
129 | * exp_ch4.adb (Expand_N_In): Replace some Extra_Accessibility calls with | |
130 | calls to Effective_Extra_Accessibility in order to support | |
131 | renames of saooaaats. | |
132 | (Expand_N_Type_Conversion): Add new local function, | |
133 | Has_Extra_Accessibility, and call it when determining whether an | |
134 | accessibility check is needed. | |
135 | It returns True iff Present (Effective_Extra_Accessibility (Id)) would | |
136 | evaluate to True (without raising an exception). | |
137 | * exp_ch5.adb | |
138 | (Expand_N_Assignment_Statement): When assigning to an Ada2012 | |
139 | saooaaat, update its associated Extra_Accessibility object (if | |
140 | it has one). This includes an accessibility check. | |
141 | * exp_ch6.adb (Add_Call_By_Copy_Code): When parameter copy-back updates | |
142 | a saooaaat, update its Extra_Accessibility object too (if it | |
143 | has one). | |
144 | (Expand_Call): Replace a couple of calls to Type_Access_Level | |
145 | with calls to Dynamic_Access_Level to handle cases where | |
146 | passing a literal (any literal) is incorrect. | |
147 | * sem_attr.adb (Resolve_Attribute): Handle the static accessibility | |
148 | checks associated with "Saooaat := Some_Object'Access;"; this must | |
149 | be rejected if Some_Object is declared in a more nested scope | |
150 | than Saooaat. | |
151 | * sem_ch5.adb (Analyze_Assignment): Force accessibility checking for an | |
152 | assignment to a saooaaat even if Is_Local_Anonymous_Access | |
153 | returns False for its type (indicating a 2012-style saooaaat). | |
154 | * sem_ch8.adb | |
155 | (Analyze_Object_Renaming): Replace a call to Init_Size_Align | |
156 | (which is only appropriate for objects, not types) with a call | |
157 | of Init_Object_Size_Align in order to avoid trashing the | |
158 | Extra_Accessibility attribute of a rename (the two attributes | |
159 | share storage). | |
160 | * sem_res.adb | |
161 | (Valid_Conversion) Replace six calls to Type_Access_Level with | |
162 | calls to Deepest_Type_Access_Level. This is a bit tricky. For an | |
163 | Ada2012 non-library-level saooaaat, the former returns library level | |
164 | while the latter returns the (static) accessibility level of the | |
165 | saooaaat. A type conversion to the anonymous type of a saooaaat | |
166 | can only occur as part of an assignment to the saooaaat, so we | |
167 | know that such a conversion must be in a lhs context, so Deepest | |
168 | yields the result that we need. If such a conversion could occur, | |
169 | say, as the operand of an equality operator, then this might not | |
170 | be right. Also add a test so that static accessibilty checks are | |
171 | performed for converting to a saooaaat's type even if | |
172 | Is_Local_Anonymous_Access yields False for the type. | |
173 | ||
174 | 2011-08-30 Javier Miranda <miranda@adacore.com> | |
175 | ||
176 | * sem_disp.adb (Check_Dispatching_Operation): Complete condition that | |
177 | controls generation of a warning associated with late declaration of | |
178 | dispatching functions. Required to avoid generating spurious | |
179 | warnings. | |
180 | ||
6cce2156 GD |
181 | 2011-08-30 Gary Dismukes <dismukes@adacore.com> |
182 | ||
183 | * sem_ch6.adb (Check_Return_Subtype_Indication): Issue error if the | |
184 | return object has an anonymous access type and the function's type is | |
185 | a named access type. | |
186 | * sem_ch8.adb (Analyze_Object_Renaming): Suppress error about renaming | |
187 | conversions on implicit conversions, since such conversions can occur | |
188 | for anonymous access cases due to expansion. Issue error for attempt | |
189 | to rename an anonymous expression as an object of a named access type. | |
190 | * sem_res.ads (Valid_Conversion): Add defaulted parameter Report_Errs, | |
191 | to indicate whether this function should report errors on invalid | |
192 | conversions. | |
193 | * sem_res.adb (Resolve): For Ada 2012, in the case where the type of | |
194 | the expression is of an anonymous access type and the expected type is | |
195 | a named general access type, rewrite the expression as a type | |
196 | conversion, unless this is an expression of a membership test. | |
197 | (Valid_Conversion.Error_Msg_N): New procedure that conditions the | |
198 | calling of Error_Msg_N on new formal Report_Errs. | |
199 | (Valid_Conversion.Error_Msg_NE): New procedure that conditions the | |
200 | calling of Error_Msg_NE on new formal Report_Errs. | |
201 | (Valid_Conversion): Move declaration of this function to the package | |
202 | spec, to allow calls from membership test processing. For Ada 2012, | |
203 | enforce legality restrictions on implicit conversions of anonymous | |
204 | access values to general access types, disallowing such conversions in | |
205 | cases where the expression has a dynamic accessibility level (access | |
206 | parameters, stand-alone anonymous access objects, or a component of a | |
207 | dereference of one of the first two cases). | |
208 | * sem_type.adb (Covers): For Ada 2012, allow an anonymous access type | |
209 | in the context of a named general access expected type. | |
210 | * exp_ch4.adb Add with and use of Exp_Ch2. | |
211 | (Expand_N_In): Add processing for membership tests applied to | |
212 | expressions of an anonymous access type. First, Valid_Conversion is | |
213 | called to check whether the test is statically False, and then the | |
214 | conversion is expanded to test that the expression's accessibility | |
215 | level is no deeper than that of the tested type. In the case of | |
216 | anonymous access-to-tagged types, a tagged membership test is applied | |
217 | as well. | |
218 | (Tagged_Membership): Extend to handle access type cases, applying the | |
219 | test to the designated types. | |
220 | * exp_ch6.adb (Expand_Call): When creating an extra actual for an | |
221 | accessibility level, and the actual is a 'Access applied to a current | |
222 | instance, pass the accessibility level of the type of the current | |
223 | instance rather than applying Object_Access_Level to the prefix. Add a | |
224 | ??? comment, since this level isn't quite right either (will eventually | |
225 | need to pass an implicit level parameter to init procs). | |
226 | ||
747de90b AC |
227 | 2011-08-30 Bob Duff <duff@adacore.com> |
228 | ||
229 | * s-taskin.ads: Minor comment fix. | |
230 | ||
231 | 2011-08-30 Ed Schonberg <schonberg@adacore.com> | |
232 | ||
233 | * sem_res.adb (Check_Parameterless_Call): If the node is a selected | |
234 | component and the selector is a dispatching operation, check if it is | |
235 | a prefixed call before rewriting as a parameterless function call. | |
236 | ||
cdc4cc65 JJ |
237 | 2011-08-29 Jakub Jelinek <jakub@redhat.com> |
238 | ||
239 | * gcc-interface/Makefile.in (../stamp-gnatlib1-$(RTSDIR)): Copy | |
240 | tsystem.h into $(RTSDIR) instead of rts. | |
241 | ||
226a7fa4 AC |
242 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
243 | ||
244 | * sem_ch10.adb, a-coorse.adb, exp_dist.adb, exp_ch3.adb: Minor | |
245 | reformatting. | |
246 | * gcc-interface/Make-lang.in: Update dependencies. | |
247 | ||
248 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
249 | ||
250 | * alfa.ads (Name_Of_Heap_Variable): New constant name. | |
251 | * lib-xref-alfa.adb, lib-xref.adb, lib-xref.ads (Drefs): New global | |
252 | table to hold dereferences. | |
253 | (Add_ALFA_Xrefs): Take into account dereferences as special | |
254 | reads/writes to the variable "HEAP". | |
255 | (Enclosing_Subprogram_Or_Package): Move subprogram here. | |
256 | (Generate_Dereference): New procedure to store a read/write dereferencew | |
257 | in the table Drefs. | |
258 | * put_alfa.adb (Put_ALFA): Use different default than (0,0) used for | |
259 | the special "HEAP" var. | |
260 | * sem_ch4.adb (Analyze_Explicit_Dereference): Store read dereference | |
261 | in ALFA mode. | |
262 | * sem_util.adb (Note_Possible_Modification): Store write dereference | |
263 | in ALFA mode. | |
264 | ||
dfbcb149 HK |
265 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
266 | ||
267 | * exp_ch3.adb (Freeze_Type): Generate an accessibility check which | |
268 | ensures that the level of the subpool access type is not deeper than | |
269 | that of the pool object. | |
270 | * sem_util.adb (Object_Access_Level): Expand to handle defining | |
271 | identifiers. | |
272 | * sem_res.adb (Resolve_Allocator): Add a guard to avoid examining the | |
273 | subpool handle name of a rewritten allocator. | |
274 | ||
1df4f514 AC |
275 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
276 | ||
277 | * impunit.adb, exp_ch4.adb, s-finmas.adb: Minor reformatting. | |
278 | ||
279 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
280 | ||
281 | * exp_dist.adb (TC_Rec_Add_Process_Element): For a choice with multiple | |
282 | values, we generate multiple triples of parameters in the TypeCode. | |
283 | Bump Choice_Index for each such triple so that a subsequent default | |
284 | choice is associated with the correct index in the typecode. | |
285 | ||
286 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
287 | ||
288 | * a-cdlili.adb (Iterate): Initialize properly an iterator over a null | |
289 | container. | |
290 | (First, Last): Handle properly an iterator over a null container. | |
291 | ||
292 | 2011-08-29 Bob Duff <duff@adacore.com> | |
293 | ||
294 | * sem_ch10.adb (Analyze_With_Clause,Install_Withed_Unit): Abandon | |
295 | processing if we run across a node with no Scope. This can happen if | |
296 | we're with-ing an library-level instance, and that instance got errors | |
297 | that caused "instantiation abandoned". | |
298 | * sem_util.adb (Unit_Declaration_Node): Make it more robust, by raising | |
299 | an exception instead of using Assert, so it won't go into an infinite | |
300 | loop, even when assertions are turned off. | |
301 | ||
302 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
303 | ||
304 | * a-coorse.adb: Proper handling of empty ordered sets. | |
305 | ||
14f0f659 AC |
306 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
307 | ||
308 | * debug.adb: Add comments. | |
309 | ||
8027b455 AC |
310 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
311 | ||
312 | * a-except.adb, a-except-2005.adb: Minor comment rewording and | |
313 | reformatting. | |
314 | ||
315 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
316 | ||
317 | * sem_ch3.adb (Array_Type_Declaration): Remove insertion of | |
318 | declaration for Itypes in Alfa mode. | |
319 | ||
d85fd922 AC |
320 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
321 | ||
322 | * a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb, | |
323 | a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads, | |
324 | a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor | |
325 | reformatting. | |
326 | ||
327 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
328 | ||
329 | * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to | |
330 | package spec. | |
331 | * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler. | |
332 | * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts | |
333 | while raising PE. | |
334 | ||
fd3d2680 AC |
335 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
336 | ||
337 | * a-cbhama.adb, a-cbhama.ads: Minor reformatting. | |
338 | ||
339 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
340 | ||
341 | * sem_ch8.adb (Analyze_Subprogram_Renaming): Complete support for | |
342 | renamings of formal subprograms when the actual for a formal type is | |
343 | class-wide. | |
344 | ||
dfbf013f MH |
345 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
346 | ||
347 | * a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment | |
348 | to Target. | |
349 | ||
350 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
351 | ||
352 | * a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all | |
353 | components of record type. | |
354 | * a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw | |
355 | to Target. | |
356 | ||
a6dd3a54 ES |
357 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
358 | ||
359 | * a-cbhama.adb, a-cbhama.ads, a-cborma.adb, a-cborma.ads, a-cobove.adb, | |
360 | a-cobove.ads, a-coorma.adb, a-coorma.ads: Add iterator machinery to | |
361 | container packages. | |
362 | ||
c54796e0 AC |
363 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
364 | ||
365 | * sem_ch3.adb, sem_util.adb, gnat1drv.adb, s-parint.ads: Minor | |
366 | reformatting. | |
367 | ||
368 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
369 | ||
370 | * a-cbhama.ads, a-cbhase.ads (Cursor): Default-initialize all | |
371 | components of record type. | |
372 | ||
373 | 2011-08-29 Bob Duff <duff@adacore.com> | |
374 | ||
375 | * s-tassta.adb (Task_Wrapper): Handle and ignore exceptions propagated | |
376 | by the termination handler. | |
377 | ||
9fd9d2be AC |
378 | 2011-08-29 Yannick Moy <moy@adacore.com> |
379 | ||
380 | * sem_ch3.adb (Array_Type_Declaration): Create declarations for Itypes | |
381 | created in Alfa mode, instead of inserting artificial declarations of | |
382 | non-Itypes in the tree. | |
383 | * sem_util.adb, sem_util.ads (Itype_Has_Declaration): New function to | |
384 | know if an Itype has a corresponding declaration, as defined in | |
385 | itypes.ads. | |
386 | ||
387 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
388 | ||
389 | * gnat1drv.adb: Minor rewrite. | |
390 | ||
391 | 2011-08-29 Bob Duff <duff@adacore.com> | |
392 | ||
393 | * s-tasuti.adb (Make_Passive): Work around race condition in | |
394 | Make_Independent, which can cause Wait_Count to be zero. So instead of | |
395 | asserting that Wait_Count > 0, and then decrementing it, decrement it | |
396 | only if Wait_Count > 0. | |
397 | * s-taskin.ads (Wait_Count, Alive_Count, Awake_Count): All of these | |
398 | should be nonnegative, so declare them Natural instead of Integer. | |
399 | ||
833eaa8a AC |
400 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
401 | ||
402 | * exp_ch5.adb, sem_ch3.adb, a-cihama.adb, a-cihama.ads, exp_ch7.adb, | |
403 | sem_ch5.adb, a-ciorse.adb, a-ciorse.ads, sem_ch12.adb, a-cidlli.adb, | |
404 | a-cidlli.ads, sem_util.adb, sem_res.adb, gnat1drv.adb, a-except.adb, | |
405 | a-except.ads, a-except-2005.ads, sem_ch4.adb, exp_disp.adb, | |
406 | exp_aggr.adb, sem_ch13.adb, par-ch3.adb: Minor reformatting. | |
407 | ||
408 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
409 | ||
410 | * s-auxdec-vms-alpha.adb: Add comments, remove some HT before labels. | |
411 | ||
412 | 2011-08-29 Vadim Godunko <godunko@adacore.com> | |
413 | ||
414 | * s-parint.ads: Minor comment clarification. | |
415 | ||
416 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
417 | ||
418 | * prj.adb (Initialize): Make sure that new reserved words after Ada 95 | |
419 | may be used as identifiers. | |
420 | ||
421 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
422 | ||
423 | * a-coinho.ads: Minor reformating. | |
424 | ||
3a613a36 AC |
425 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
426 | ||
427 | * exp_ch5.adb (Expand_Iterator_Loop): Handle properly a loop over a | |
428 | container of a derived type. | |
429 | ||
3a613a36 AC |
430 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
431 | ||
432 | * a-cidlli.adb, a-cidlli.ads, a-cihama.adb, a-cihama.ads, | |
433 | a-ciorse.adb, a-ciorse.ads: Add iterator machinery to containers. | |
434 | ||
14848f57 AC |
435 | 2011-08-29 Pascal Obry <obry@adacore.com> |
436 | ||
437 | * exp_disp.adb: Minor comment fix. | |
438 | (Make_Disp_Asynchronous_Select_Body): Properly initialize out parameters | |
439 | to avoid warnings when compiling with -Wall. | |
440 | (Make_Disp_Conditional_Select_Body): Likewise. | |
441 | (Make_Disp_Timed_Select_Body): Likewise. | |
442 | ||
443 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
444 | ||
445 | * sem_ch12.adb (Analyze_Formal_Subprogram_Declaration): If default is | |
446 | an entity name, generate reference for it. | |
447 | ||
448 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
449 | ||
450 | * exp_ch5.adb (Expand_Iterator_Loop): Uniform handling of "X of S" | |
451 | iterator form. | |
452 | * sem_util.adb (Is_Iterator, Is_Reversible_Iterator): Yield True for | |
453 | the class-wide type. | |
454 | * sem_ch5.adb: Move some rewriting to the expander, where it belongs. | |
455 | ||
456 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
457 | ||
458 | * sem_ch8.adb (Check_Constrained_Object): Do not create an actual | |
459 | subtype for an object whose type is an unconstrained union. | |
460 | ||
461 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
462 | ||
463 | * par-ch3.adb (P_Array_Type_Definiation, P_Component_Items): "aliased" | |
464 | is allowed in a component definition, by AI95-406. | |
465 | ||
466 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
467 | ||
468 | * a-chtgbo.adb (Generic_Iteration): Use correct overloading of Next. | |
469 | ||
470 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
471 | ||
472 | * a-except-2005.adb: Alphabetize all routines. | |
473 | (Triggered_By_Abort): New routine. | |
474 | * a-except-2005.ads (Triggered_By_Abort): New routine. | |
475 | * a-except.adb Alphabetize all routines. | |
476 | (Triggered_By_Abort): New routine. | |
477 | * a-except.ads (Triggered_By_Abort): New routine. | |
478 | * exp_ch7.adb: Update all comments involving the detection of aborts in | |
479 | finalization code. | |
480 | (Build_Object_Declarations): Do not generate code to detect the | |
481 | presence of an abort at the start of finalization code, use a runtime | |
482 | routine istead. | |
483 | * rtsfind.ads: Add RE_Triggered_By_Abort to tables RE_Id and | |
484 | RE_Unit_Table. | |
485 | * sem_res.adb (Resolve_Allocator): Emit a warning when attempting to | |
486 | allocate a task on a subpool. | |
487 | * s-stposu.adb: Add library-level flag Finalize_Address_Table_In_Use. | |
488 | The flag disables all actions related to the maintenance of | |
489 | Finalize_Address_Table when subpools are not in use. | |
490 | (Allocate_Any_Controlled): Signal the machinery that subpools are in | |
491 | use. | |
492 | (Deallocate_Any_Controlled): Do not call Delete_Finalize_Address which | |
493 | performs costly task locking when subpools are not in use. | |
494 | ||
57a8057a AC |
495 | 2011-08-29 Yannick Moy <moy@adacore.com> |
496 | ||
497 | * gnat1drv.adb (Adjust_Global_Switches): Restore expansion of tagged | |
498 | types and dispatching calls in Alfa mode. | |
499 | * lib-xref-alfa.adb (Collect_ALFA): Rewrite computation of | |
500 | correspondance between body and spec scopes, to reuse utility functions | |
501 | (Traverse_Declarations_Or_Statements): Protect access to body for stub | |
502 | by testing the presence of the library unit for the body | |
503 | * sem_ch6.adb (Set_Actual_Subtypes): take into account that in Alfa | |
504 | mode the expansion of accept statements is skipped | |
505 | * sem_util.adb, sem_util.ads (Unique_Entity): New function returning | |
506 | the unique entity corresponding to the one returned by | |
507 | Unique_Defining_Entity applied to the enclosing declaration of the | |
508 | argument. | |
509 | ||
510 | 2011-08-29 Bob Duff <duff@adacore.com> | |
511 | ||
512 | * treepr.ads: Improve debugging facilities. pn(x) no longer crashes in | |
513 | gdb when x is not a node (it can be a node list, name_id, etc). pp is | |
514 | an alias for pn. ppp is an alias for pt. | |
515 | ||
516 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
517 | ||
518 | * exp_aggr.adb (Expand_Record_Aggregate): Use the top-level enclosing | |
519 | aggregate to take a consistent decision on the need to convert into | |
520 | assignments aggregates that initialize constant objects. | |
521 | ||
522 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
523 | ||
524 | * exp_ch4.adb (Expand_Allocator_Expression): Add a call to | |
525 | Build_Allocate_Deallocate_Proc in order to handle allocation of | |
526 | non-controlled objects on subpools. | |
527 | * impunit.adb: Remove s-finmas and s-spsufi since they were never meant | |
528 | to be end-user visible. | |
529 | * s-finmas.adb: Add with and use clause for System.HTable. | |
530 | Add an instantiation of Simple_HTable which provides a mapping between | |
531 | the address of a controlled object and the corresponding | |
532 | Finalize_Address used to clean up the object. The table is used when a | |
533 | master is operating in heterogeneous mode. | |
534 | (Attach): Explain why the input node is not verified on being already | |
535 | attached. | |
536 | (Delete_Finalize_Address): New routine. | |
537 | (Detach): Add pragma Assert which ensures that a node is already | |
538 | attached. | |
539 | (Finalize): Add local variable Cleanup. Rewrite the iteration scheme | |
540 | since nodes are no longer removed on traversal. Explain why node | |
541 | detachment is undesirable in this case. | |
542 | (Get_Finalize_Address): New routine. | |
543 | (Hash): New routine. | |
544 | (Is_Empty_List): Removed. | |
545 | (pm): Renamed to Print_Master. Add output for discriminant | |
546 | Is_Homogeneous. | |
547 | Comment reformatting. | |
548 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
549 | * s-finmas.ads: Various comments additions / improvements. | |
550 | Type Finalization_Master has a discriminant which determines the mode of | |
551 | operation. | |
552 | (Delete_Finalize_Address): New routine. | |
553 | (Get_Finalize_Address): New routine. | |
554 | (pm): Renamed to Print_Master. | |
555 | (Set_Finalize_Address (Address, Finalize_Address_Ptr)): New routine. | |
556 | * s-stposu.adb: Add with clause for System.Address_Image; Add with and | |
557 | use clause for System.IO. | |
558 | (Allocate_Any_Controlled): Add machinery to set TSS primitive | |
559 | Finalize_Address depending on the mode of allocation and the mode of | |
560 | the master. | |
561 | (Deallocate_Any_Controlled): Remove the relation pair object - | |
562 | Finalize_Address regardless of the master mode. Add comment explaining | |
563 | the reason. | |
564 | (Detach): Ensure that fields Prev and Next are null after detachment. | |
565 | (Finalize_Pool): Remove local variable Next_Ptr. Rewrite the iteration | |
566 | scheme to check whether the list of subpools is empty. There is no | |
567 | longer need to store the next subpool or advance the current pointer. | |
568 | (Is_Empty_List): New routine. | |
569 | (Print_Pool): New routine. | |
570 | (Print_Subpool): New routine. | |
571 | * s-stposu.ads: Various comments additions / improvements. | |
572 | Field Master of type Root_Subpool is now a heterogeneous collection. | |
573 | (Print_Pool): New routine. | |
574 | (Print_Subpool): New routine. | |
575 | ||
576 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
577 | ||
578 | * exp_ch5.adb (Expand_N_Iterator_Loop): Implement Ada2012 loop iterator | |
579 | forms, using aspects of container types. | |
580 | * sem_ch3.adb (Find_Type_Name): Preserve Has_Delayed_Aspects and | |
581 | Has_Implicit_Dereference flags, that may be set on the partial view. | |
582 | * sem_ch4.adb (Process_Overloaded_Indexed_Component): Prefix may be a | |
583 | container type with an indexing aspect. | |
584 | (Analyze_Quantified_Expression): Analyze construct with expansion | |
585 | disabled, because it will be rewritten as a loop during expansion. | |
586 | (Try_Container_Indexing): The prefix itself may be a container type | |
587 | with an indexing aspect, as with a vector of vectors. | |
588 | * sem_ch5.adb (Analyze_Iteration_Scheme): In a generic context, analyze | |
589 | the original doamin of iteration, for name capture. | |
590 | (Analyze_Iterator_Specification): If the domain is an expression that | |
591 | needs finalization, create a separate declaration for it. | |
592 | For an iterator with "of" retrieve default iterator info from aspect of | |
593 | container type. For "in" iterator, retrieve type of Iterate function. | |
594 | * sem_ch13.adb (Check_Iterator_Function): Fix typo. | |
595 | (Check_Aspect_At_End_Of_Declaration): Make type unfrozen before | |
596 | analysis, to prevent spurious errors about late attributes. | |
597 | * sprint.adb: Handle quantified expression with either loop or iterator | |
598 | specification. | |
599 | * a-convec.ads, a-convec.adb: Iterate function returns a reversible | |
600 | iterator. | |
601 | ||
ddf67a1d AC |
602 | 2011-08-29 Vincent Celier <celier@adacore.com> |
603 | ||
604 | * make.adb (Scan_Make_Arg): Take any option as is in packages Compiler, | |
605 | Binder or Linker of the main project file. | |
606 | ||
607 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
608 | ||
609 | * inline.adb (Add_Scopes_To_Clean): Exclude any entity within a generic | |
610 | unit. | |
611 | ||
612 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
613 | ||
614 | * exp_ch9.adb: Partial revert of previous change for Alfa mode | |
615 | ||
616 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
617 | ||
618 | * exp_ch11.adb: Minor expansion of comment. | |
619 | ||
620 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
621 | ||
622 | * lib-xref-alfa.adb (Add_ALFA_Scope): Treat generic entities. | |
623 | ||
624 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
625 | ||
626 | * sem_res.adb (Resolve_Arithmetic_Op): If the node has a universal | |
627 | interpretation, set the type before resolving the operands, because | |
628 | legality checks on an exponention operand need to know the type of the | |
629 | context. | |
630 | ||
631 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
632 | ||
633 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not set delayed | |
634 | cleanups on a master if the instance is within a generic unit. | |
635 | Complement to the corresponding fix to inline.adb for K520-030. | |
636 | ||
637 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
638 | ||
639 | * exp_ch7.adb (Build_Raise_Statement): Raise PE instead of the current | |
640 | occurrence. | |
641 | * exp_intr.adb: Minor comment fix. | |
642 | ||
643 | 2011-08-29 Bob Duff <duff@adacore.com> | |
644 | ||
645 | * sem_ch13.adb (Analyze_Aspect_Specifications): Fix cases where | |
646 | Delay_Required was used as an uninitialized variable. | |
647 | ||
690943fc RD |
648 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
649 | ||
650 | * a-cdlili.adb, a-cdlili.ads, a-coinve.adb, a-coinve.ads, | |
651 | sem_util.adb, sem_util.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, | |
652 | a-coorse.ads, aspects.ads, sem_ch8.adb: Minor reformatting. | |
653 | ||
9f0ee988 TQ |
654 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
655 | ||
656 | * system-freebsd-x86_64.ads (Backend_Overflow_Checks): Set true True. | |
657 | Remove unused variables. | |
658 | ||
3e24afaa AC |
659 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
660 | ||
661 | * sem_res.adb: Remove Build_Explicit_Dereference. | |
662 | * sem_util.adb, sem_util.ads (Build_Explicit_Dereference): Moved here | |
663 | from sem_res.adb, used in analysis of additional constructs. | |
664 | (Is_Iterator, Is_Reversible_Iterator): New predicates for Ada2012 | |
665 | expansion of iterators. | |
666 | (Is_Object_Reference): Recognize variables rewritten as explicit | |
667 | dereferences in Ada2012. | |
668 | * snames.ads-tmpl: Add Has_Element, Forward_Iterator, | |
669 | Reversible_Iterator names, for expansion of Ada2012 iterators. | |
670 | * aspects.ads, aspects.adb (Find_Aspect): Utility. | |
671 | * a-cdlili.ads, a-cdlili.adb: Add new iterator machinery to doubly | |
672 | linked list container. | |
673 | * a-coinve.ads, a-coinve.adb: Ditto for indefinite vector containers. | |
674 | * a-coorse.ads, a-coorse.adb: Ditto for ordered sets. | |
675 | ||
676 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
677 | ||
678 | * a-cohama.adb, a-cohama.ads: Add iterator primitives to hashed map | |
679 | containers. | |
680 | ||
681 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
682 | ||
683 | * make.adb (Gnatmake): Get the maximum number of simultaneous | |
684 | compilation processes after the Builder switches has been scanned, as | |
685 | there may include -jnn. | |
686 | ||
687 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
688 | ||
689 | * a-chtgbo.adb (Generic_Equal): Use correct overloading of Next. | |
690 | ||
691 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
692 | ||
693 | * gnatcmd.adb (GNATCmd): On OpenVMS, truncate the length of | |
694 | GNAT_DRIVER_COMMAND_LINE to 255. | |
695 | ||
696 | 2011-08-29 Pascal Obry <obry@adacore.com> | |
697 | ||
698 | * freeze.adb, sem_ch8.adb, a-convec.adb, a-convec.ads: Minor | |
699 | reformatting and style fix (class attribute casing). | |
700 | ||
701 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
702 | ||
703 | * exp_ch11.adb: Yet another case where expansion should be common | |
704 | between CodePeer and Alfa. | |
705 | ||
706 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
707 | ||
708 | * exp_ch9.adb: Partial revert of previous change for Alfa mode. | |
709 | ||
710 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
711 | ||
712 | * sem_ch6.adb (Matches_Limited_With_View): The limited views of an | |
713 | incomplete type and its completion match. | |
714 | ||
3ddd922e AC |
715 | 2011-08-29 Yannick Moy <moy@adacore.com> |
716 | ||
717 | * exp_ch13.adb: Adjust previous change. | |
718 | ||
719 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
720 | ||
721 | * sem_prag.adb, prj.adb, sem_util.adb, sem_res.adb, gnat1drv.adb, | |
722 | exp_ch4.adb, sem_ch8.adb: Minor code reorganization | |
723 | Minor reformatting. | |
724 | ||
444acbdd AC |
725 | 2011-08-29 Emmanuel Briot <briot@adacore.com> |
726 | ||
727 | * make.adb, prj.adb, prj.ads (Compute_All_Imported_Projects): Also | |
728 | initialize aggregated projects. | |
729 | ||
730 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
731 | ||
732 | * sem_ch8.adb (Find_Renamed_Entity): Within an instance, use scope | |
733 | depth of candidates to resolve a potentially spurious ambiguity between | |
734 | two visible subprograms. | |
735 | ||
e0296583 AC |
736 | 2011-08-29 Yannick Moy <moy@adacore.com> |
737 | ||
738 | * sem_prag.adb (Analyze_Pragma): Allow Test_Case pragma without | |
739 | Requires/Ensures. | |
740 | * sem_util.adb (Get_Ensures_From_Test_Case_Pragma, | |
741 | Get_Requires_From_Test_Case_Pragma): Allow Test_Case pragma without | |
742 | Requires/Ensures. | |
743 | ||
744 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
745 | ||
746 | * gnat1drv.adb (Adjust_Global_Switches): Improve previous change. | |
747 | Add comment. | |
748 | ||
749 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
750 | ||
751 | * sem_res.adb: Minor reformatting. | |
752 | ||
69794413 JK |
753 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
754 | ||
755 | * exp_ch4.adb (Expand_Quantified_Expression): Do not expand in ALFA | |
756 | mode. | |
757 | * gnat1drv.adb (Adjust_Global_Switches): Set | |
758 | Use_Expressions_With_Actions to False in ALFA mode. | |
759 | * sem_res.adb (Resolve_Quantified_Expression): Simpler treatment in | |
760 | ALFA mode. | |
761 | ||
59e6b23c AC |
762 | 2011-08-29 Yannick Moy <moy@adacore.com> |
763 | ||
764 | * exp_ch13.adb (Expand_N_Freeze_Entity): Do nothing in Alfa mode. | |
765 | * exp_ch9.adb: Do not expand tasking constructs in Alfa mode. | |
766 | * gnat1drv.adb (Adjust_Global_Switches): Suppress the expansion of | |
767 | tagged types and dispatching calls in Alfa mode. | |
768 | ||
769 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
770 | ||
771 | * sem_ch3.adb (Process_Discriminants): Add missing check to ensure that | |
772 | we do not report an error on an Empty node. | |
773 | ||
774 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
775 | ||
776 | * Makefile.rtl (GNATRTL_NONTASKING_OBJECTS): Add a-nllrar.o, | |
777 | a-nlrear.o and a-nurear.o. | |
778 | ||
779 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
780 | ||
781 | * freeze.adb: Minor code reorganization. | |
782 | Minor reformatting. | |
783 | * sem_util.adb, errout.adb, exp_ch11.adb, a-ngrear.adb, s-gearop.adb, | |
784 | sem_ch6.adb: Minor reformatting | |
785 | ||
786 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
787 | ||
788 | * s-except.ads, s-except.adb: Provide dummy body. | |
789 | ||
790 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
791 | ||
792 | * sem_warn.adb (Within_Postcondition): Take into account the case of | |
793 | an Ensures component in a Test_Case. | |
794 | ||
4d792549 AC |
795 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
796 | ||
797 | * s-excdeb.ads, s-excdeb.adb: New files, created from s-except. | |
798 | * rtsfind.ads (RTU_Id): Replaces System_Exceptions by | |
799 | System_Exceptions_Debug | |
800 | (RE_Unit_Table): Search RE_Local_Raise in System_Exceptions_Debug | |
801 | * a-except.adb: With and use System.Exceptions_Debug instead of | |
802 | System.Exceptions. | |
803 | * a-except-2005.adb: Likewise. | |
804 | * s-assert.adb: Likewise. | |
805 | * s-except.adb, s-except.ads: Move debugging hooks to s-excdeb. | |
806 | * Makefile.rtl: Add s-excdeb. Adjust compilation rule. | |
807 | * gcc-interfaces/Makefile.in, gcc-interface/Make-lang.in: Add | |
808 | s-excdeb. Update dependencies. | |
809 | (GNATRTL_LINEARALGEBRA_OBJS): Remove a-nlrear.o a-nurear.o a-nllrar.o | |
810 | as these no longer need external libraries. | |
811 | ||
812 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
813 | ||
814 | * sem_res.adb (Resolve_Op_Expon): Additional check to reject an | |
815 | exponentiation operator on universal values in a context that requires | |
816 | a fixed-point type. | |
817 | ||
818 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
819 | ||
820 | * raise-gcc.c (personnality_routine): Fix thinko. Set Ada occurrence | |
821 | before calling notify_handled_exception. | |
822 | * a-exextr.adb: Fix comment. | |
823 | ||
b254da66 AC |
824 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
825 | ||
826 | * exp_ch4.adb (Expand_Allocator_Expression): Add code to set attribute | |
827 | Finalize_Address of the access type's finalization master. | |
828 | (Expand_N_Allocator): Add code to set attribute Finalize_Address of the | |
829 | access type's finalization master. Add a guard to prevent | |
830 | Associated_Storage_Pool from being set on .NET/JVM. | |
831 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Add code to set | |
832 | attribute Finalize_Address of the access type's finalization master. | |
833 | * exp_ch7.adb (Make_Finalize_Address_Call): New routine. | |
834 | * exp_ch7.ads (Make_Finalize_Address_Call): New routine. | |
835 | * rtsfind.ads: Add RE_Set_Finalize_Address to tables RE_Id and | |
836 | RE_Unit_Table. | |
837 | * s-finmas.adb: Add with clause for System.Address_Image. Add with and | |
838 | use clause for System.IO | |
839 | (Detach): Relax the assertion, to be reinstated later. | |
840 | (Finalize): Rewrite the iteration loop to avoid pointer comparison. | |
841 | Relax the assertion on Finalize_Address, to be reinstated later. | |
842 | (Is_Empty_List): New routine. | |
843 | (pm): New debug routine. | |
844 | (Set_Finalize_Address): New routine. | |
845 | * s-finmas.ads (pm): New debug routine. | |
846 | (Set_Finalize_Address): New routine. | |
847 | * s-stposu.adb (Allocate_Any_Controlled): Code reformatting. | |
848 | ||
849 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
850 | ||
851 | * a-exexpr-gcc.adb (GCC_Exception_Access, GNAT_GCC_Exception_Access): | |
852 | Remove convention C. | |
853 | ||
854 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
855 | ||
856 | * s-taprop-vms.adb (Get_Exc_Stack_Addr): Remove. | |
857 | (Initialize_TCB): Remove Exc_Stack_Ptr initialization. | |
858 | (Finalize_TCB): Remove its finalization. | |
859 | (Initialize): Remove assignment of GET_Exc_Stack_Addr | |
860 | * s-soflin.adb (NT_Exc_Stack): Remove | |
861 | (Get_Exc_Stack_Addr_NT): Likewise. | |
862 | (Get_Exc_Stack_Addr_Soft): Likewise. | |
863 | * s-soflin.ads (Get_Exc_Stack_Addr_NT): Remove. | |
864 | (Get_Exc_Stack_Addr): Likewise. | |
865 | (Get_Exc_Stack_Addr_Soft): Likewise | |
866 | * s-taspri-vms.ads (Exc_Stack_T): Remove. | |
867 | (Exc_Stack_Ptr_T): Likewise. | |
868 | (Private_Data): Remove Exc_Stack_Ptr component. | |
869 | ||
870 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
871 | ||
872 | * raise-gcc.c (get_ip_from_context): New function. Factorize code. | |
873 | ||
874 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
875 | ||
876 | * gnat_ugn.texi: Fix aix and x86-solaris info for run-time. | |
877 | ||
878 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
879 | ||
880 | * s-gearop.ads (Back_Substitute, Diagonal, Forward_Eliminate, | |
881 | L2_Norm, Swap_Column): New generic subprograms | |
882 | * s-gearop.adb (Back_Substitute, Diagonal, Forward_Eliminate, | |
883 | L2_Norm, Swap_Column): Implement new subprograms in order to | |
884 | eliminate dependency on BLAS and LAPACK libraries in | |
885 | Ada.Numerics.Generic_Real_Arrays and eventually also the complex | |
886 | version. Forward_Eliminate/Back_Substitute can be used to put a | |
887 | matrix in row echelon or reduced row echelon form using partial | |
888 | pivoting. | |
889 | * a-ngrear.adb: (Back_Substitute, Diagonal, Forward_Eleminate, | |
890 | Swap_Column): Instantiate from System.Generic_Array_Operations. | |
891 | ("*", "abs"): Implement by instantiation from Generic_Array_Operations. | |
892 | (Sqrt): Local function for simple computation of square root without | |
893 | adding dependencies on Generic_Elementary_Functions. | |
894 | (Swap): New subprogram to exchange floating point numbers. | |
895 | (Inverse): Reimplement using Jordan-Gauss elimination. | |
896 | (Jacobi): New procedure implementing Jacobi's method for computation | |
897 | of eigensystems, based on Rutishauser's implementation. | |
898 | (L2_Norm): Implement directly using the inner product. | |
899 | (Sort_Eigensystem): Sort eigenvalue/eigenvector pairs in order of | |
900 | decreasing eigenvalue as required by the Ada RM. | |
901 | (Swap_Column): New helper procedure for Sort_Eigensystem. | |
902 | Remove with of System.Generic_Real_BLAS and System.Generic_Real_LAPACK. | |
903 | Add with of Ada.Containers.Generic_Anonymous_Array_Sort, for | |
904 | Sort_Eigensystems. | |
905 | ||
906 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
907 | ||
908 | * put_scos.adb (Put_SCOs): Do not emit a newline for an empty | |
909 | statements line. | |
910 | ||
60370fb1 AC |
911 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
912 | ||
913 | * s-finmas.adb (Finalize): Check Finalize_Address of the master rather | |
914 | than the current node. | |
915 | * s-finmas.ads: Move field Finalize_Address from type FM_Node to | |
916 | Finalization_Master. The list headers have two fields instead of three. | |
917 | This should fix alignment issue but subpool allocations are now | |
918 | unusable. Alphabetize subprograms. | |
919 | * s-stposu.adb (Allocate_Any_Controlled): Use the offset rather than | |
920 | the size of the header when converting the beginning of the object to | |
921 | a FM_Node. Set the master's Finalize_Address attribute if not already | |
922 | set. | |
923 | (Deallocate_Any_Controlled): Use the offset rather than the size of the | |
924 | header when converting the beginning of the object to a FM_Node. | |
925 | ||
926 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> | |
927 | ||
928 | * exp_ch11.adb (Expand_N_Raise_Statement): Don't suppress expansion of | |
929 | reraise when compiling for CodePeer. | |
930 | ||
931 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
932 | ||
933 | * a-iteint.ads, Makefile.rtl: Add missing compilation of a-iteint.ads, | |
934 | now needed by a-convec.adb. Fix warning. | |
935 | ||
936 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
937 | ||
938 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Add a guard for the | |
939 | processing of TSS routine Finalize_Address when compiling in | |
940 | CodePeer_Mode. | |
941 | ||
942 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
943 | ||
944 | * a-strunb.ads, einfo.ads, g-comlin.ads, sem_ch6.adb, | |
945 | sem_warn.adb: Minor reformatting. | |
946 | ||
947 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
948 | ||
949 | * prj-conf.adb (Get_Config_Switches): Also collect the list of | |
950 | languages from aggregated projects. | |
951 | ||
952 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
953 | ||
954 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Declarations_Or_Statements, | |
955 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
956 | Traverse_Package_Declaration, Traverse_Subprogram_Body, | |
957 | Traverse_Compilation_Unit): Add a parameter Inside_Stubs so that bodies | |
958 | for stubs are traversed too when parameter is set | |
959 | (Traverse_All_Compilation_Units): Traverse without going inside stubs | |
960 | (Traverse_Declarations_Or_Statements): Do the special traversing for | |
961 | stubs when required. | |
962 | * sem_util.adb, sem_util.ads (Get_Body_From_Stub): New function to | |
963 | return subprogram or package body from stub. | |
964 | (Is_Subprogram_Stub_Without_Prior_Declaration): New function to detect | |
965 | stubs without prior subprogram decl. | |
966 | ||
967 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
968 | ||
969 | * gnat_ugn.texi: Fix typo. | |
970 | ||
e9c9d122 HK |
971 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
972 | ||
973 | * s-stposu.adb (Allocate_Any_Controlled): Reimplement the mechanism | |
974 | which accounts for size vs alignment issues and calculates the size of | |
975 | the list header. | |
976 | (Deallocate_Any_Controlled): Ditto. | |
977 | (Nearest_Multiple_Rounded_Up): New routine. | |
978 | ||
25ebc085 AC |
979 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
980 | ||
981 | * a-exstat.adb (String_To_EO): Do no set Cleanup_Flag. | |
982 | * a-exexda.adb (Set_Exception_C_Msg): Ditto. | |
983 | (Set_Exception_Msg): Ditto. | |
984 | * a-exexpr-gcc.adb (Setup_Current_Excep): Ditto. Do not set | |
985 | Private_Data. | |
986 | * a-except.adb, a-except-2005.adb (Save_Occurrence_No_Private): Remove. | |
987 | Use Save_Occurrence instead of Save_Occurrence_No_Private. | |
988 | (Raise_With_Msg): Remove Cleanup_Flag. | |
989 | * a-except.ads, a-except-2005.ads (Exception_Occurrence): Remove | |
990 | Clean_Flag and Private_Data components. | |
991 | ||
992 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
993 | ||
994 | * freeze.adb (Freeze_Record_Type): Ignore packing in Alfa mode, like | |
995 | in CodePeer mode. | |
996 | * sem_ch3.adb (Signed_Integer_Type_Declaration): Correct the generation | |
997 | of an explicitly declared type, so that the base types of the original | |
998 | type and this generated type are the same, and a "type" (not a subtype | |
999 | like previously). | |
1000 | * errout.adb (Special_Msg_Delete): Do not issue messages "Size too | |
1001 | small" in Alfa mode, like in CodePeer mode. | |
1002 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore rep | |
1003 | clauses in Alfa mode. | |
1004 | ||
1005 | 2011-08-29 Javier Miranda <miranda@adacore.com> | |
1006 | ||
1007 | * exp_ch6.ads, exp_ch6.adb (Is_Null_Procedure): Move the spec of this | |
1008 | function to the package spec. | |
1009 | * sem_ch6.adb (Find_Corresponding_Spec, New_Overloaded_Entity): For | |
1010 | internally generated bodies of null procedures locate the internally | |
1011 | generated spec enforcing mode conformance. | |
1012 | (Is_Interface_Conformant): Ensure that the controlling formal of the | |
1013 | primitives match. | |
1014 | ||
1015 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1016 | ||
1017 | * sem_prag.adb (Analyze_Pragma, case Inline): In an instance, do not | |
1018 | reject the pragma if it appears to apply to a formal subprogram. | |
1019 | ||
1020 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1021 | ||
1022 | * exp_ch4.adb (Expand_Allocator_Expression): Use consistent name for | |
1023 | inner expression, to prevent double evaluation. | |
1024 | ||
590549fb AC |
1025 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1026 | ||
1027 | * a-exexpr.adb (Propagate_Exception): Remove all the parameters as | |
1028 | they were unused. | |
1029 | * a-exexpr-gcc.adb (Propagate_Exception): Ditto. | |
1030 | * a-except-2005.adb (Propagate_Exception): Adjust spec. | |
1031 | (Raise_Current_Excep): Adjust call. | |
1032 | (Raise_From_Signal_Handler): Call now simply call Raise_Current_Excep. | |
1033 | ||
1034 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1035 | ||
1036 | * exp_disp.adb: Minor reformatting. | |
1037 | ||
62380e66 TG |
1038 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1039 | ||
1040 | * a-exexpr.adb (Setup_Exception): Removed. | |
1041 | * a-exexpr-gcc.adb (Setup_Exception): Removed. | |
1042 | * a-except.adb (Exception_Propagation): Removed. | |
1043 | * a-except-2005.adb (Setup_Exception): Removed. | |
1044 | (Reraise): Remove call to Setup_Exception. | |
1045 | (Reraise_Occurrence): Ditto. | |
1046 | (Reraise_Occurrence_Always): Ditto. | |
1047 | (Reraise_Occurrence_No_Defer): Ditto. | |
1048 | (Transfer_Occurrence): Ditto. | |
1049 | * a-exexda.adb (Set_Exception_C_Msg): Remove call to Setup_Exception. | |
1050 | (Set_Exception_Msg): Ditto. | |
1051 | ||
c95aa61c AC |
1052 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1053 | ||
1054 | * a-convec.adb, exp_disp.adb: Minor reformatting. | |
1055 | ||
1056 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1057 | ||
1058 | * a-exexpr-gcc.adb (GNAT_GCC_Exception_Access): Set to convention C. | |
1059 | ||
624e1688 AC |
1060 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
1061 | ||
1062 | * exp_ch3.adb (Build_Record_Init_Proc.Build_Init_Procedure): Set | |
1063 | Exception_Handlers to No_List instead of Empty_List in the case where | |
1064 | there are no handlers. | |
1065 | ||
1066 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1067 | ||
1068 | * gcc-interface/gigi.h (enum standard_datatypes): Add | |
1069 | ADT_reraise_zcx_decl | |
1070 | (reraise_zcx_decl): New macro. | |
1071 | * gcc-interface/trans.c (gnu_incoming_exc_ptr): New variable. | |
1072 | (gigi): Set reraise_zcx_decl. | |
1073 | (Exception_Handler_to_gnu_zcx): Save and restore gnu_incoming_exc_ptr. | |
1074 | (gnat_to_gnu): Handle N_Raise_Statement. | |
1075 | ||
7134062a AC |
1076 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1077 | ||
1078 | * sem_ch6.adb, exp_ch3.adb, s-stposu.adb, a-undesu.ads, | |
1079 | a-undesu.adb: Minor reformatting. | |
1080 | ||
1081 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1082 | ||
1083 | * exp_disp.adb (Check_Premature_Freezing): When building a dispatch | |
1084 | table, accept an unfrozen untagged component if it is an actual for a | |
1085 | formal incomplete type. | |
1086 | * a-convec.ads, a-convec.adb: Instantiate Ada.Iterator_Interfaces to | |
1087 | provide new iterator forms over vectors. | |
1088 | Introduce type Iterator in package body to implement operations of | |
1089 | Reversible_Iterator interface. | |
1090 | * a-iteint.ads: Make package pure so it is usable with new container | |
1091 | packages, that are categorized Remote_Types. | |
1092 | ||
ca5af305 AC |
1093 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1094 | ||
1095 | * a-exexpr-gcc.adb, a-synbar.adb, sem_ch13.adb: Minor reformatting. | |
1096 | ||
1097 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1098 | ||
1099 | * sem_aggr.adb (Resolve_Aggr_Expr): Call this routine even in the case | |
1100 | of <>, because this is the routine that checks for dimensionality | |
1101 | errors (for example, for a two-dimensional array, (others => <>) should | |
1102 | be (others => (others => <>)). | |
1103 | ||
1104 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1105 | ||
1106 | * impunit.adb: Add new run-time units. | |
1107 | * freeze.adb, exp_ch7.ads, exp_ch7.adb, exp_util.ads, exp_util.adb, | |
1108 | s-stposu.ads, s-stposu.adb: Code clean up. | |
1109 | Handle protected class-wide or task class-wide types | |
1110 | Handle C/C++/CIL/Java types. | |
1111 | * s-spsufi.adb, s-spsufi.ads: New files. | |
1112 | ||
5accd7b6 AC |
1113 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1114 | ||
1115 | * sem_ch13.adb (Analyze_Aspect_Specifications): Reject test-case on | |
1116 | library-level subprogram. | |
1117 | * sem_prag.adb (Check_Test_Case): Stricter rules for test-case | |
1118 | placement. | |
1119 | (Analyze_Pragma): Change name "Normal" for "Nominal" in test-case | |
1120 | component. | |
1121 | * snames.ads-tmpl: Change name "Normal" for "Nominal" in test-case | |
1122 | component. | |
1123 | * gnat_rm.texi: Update doc for Test_Case pragma. | |
1124 | ||
1125 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1126 | ||
1127 | * a-exexpr-gcc.adb (Unwind_Exception): Remove default value, made it | |
1128 | convention C. | |
1129 | (GCC_Exception_Access): New type. | |
1130 | (Unwind_DeleteException): New imported procedure | |
1131 | (Foreign_Exception): Import it. | |
1132 | (GNAT_GCC_Exception): Simply have the occurrence inside. | |
1133 | (To_GCC_Exception): New function. | |
1134 | (To_GNAT_GCC_Exception): New function. | |
1135 | (GNAT_GCC_Exception_Cleanup): New procedure.. | |
1136 | (Propagate_GCC_Exception): New procedure. | |
1137 | (Reraise_GCC_Exception): New procedure. | |
1138 | (Setup_Current_Excep): New procedure. | |
1139 | (CleanupUnwind_Handler): Change type of UW_Exception parameter. | |
1140 | (Unwind_RaiseException): Ditto. | |
1141 | (Unwind_ForcedUnwind): Ditto. | |
1142 | (Remove): Removed. | |
1143 | (Begin_Handler): Change type of parameter. | |
1144 | (End_Handler): Ditto. Now delete the exception if still present. | |
1145 | (Setup_Key): Removed. | |
1146 | (Is_Setup_And_Not_Propagated): Removed. | |
1147 | (Set_Setup_And_Not_Propagated): Ditto. | |
1148 | (Clear_Setup_And_Not_Propagated): Ditto. | |
1149 | (Save_Occurrence_And_Private): Ditto. | |
1150 | (EID_For): Add 'not null' constraint on parameter. | |
1151 | (Setup_Exception): Does nothing. | |
1152 | (Propagate_Exception): Simplified. | |
1153 | * exp_ch11.adb (Expand_N_Raise_Statement): In back-end exception model, | |
1154 | re-raise is not expanded anymore. | |
1155 | * s-except.ads (Foreign_Exception): New exception - placeholder for | |
1156 | non Ada exceptions. | |
1157 | * raise-gcc.c (__gnat_setup_current_excep): Declare | |
1158 | (CXX_EXCEPTION_CLASS): Define (not yet used) | |
1159 | (GNAT_EXCEPTION_CLASS): Define. | |
1160 | (is_handled_by): Handle foreign exceptions. | |
1161 | (PERSONALITY_FUNCTION): Call __gnat_setup_current_excep. | |
1162 | ||
1163 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1164 | ||
1165 | * a-synbar.adb (Synchronous_Barrier): Some additional clarification. | |
1166 | ||
2ef48385 AC |
1167 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1168 | ||
1169 | * a-synbar-posix.adb: Minor reformatting. | |
1170 | ||
1171 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1172 | ||
1173 | * a-exetim-posix.adb, a-exetim-mingw.adb, a-exetim-mingw.ads, | |
1174 | a-exetim-default.ads (Interrupt_Clocks_Supported, | |
1175 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
1176 | definitions to be compliant with AI-0171. The target systems do not | |
1177 | support separate account for the execution time of interrupt handlers. | |
1178 | ||
1179 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1180 | ||
1181 | * a-synbar.adb (Wait): Change the order of evaluation of the conditions | |
1182 | in the barrier to put first the easiest to evaluate (and the one which | |
1183 | will be True more often). More efficient. | |
1184 | ||
1185 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> | |
1186 | ||
1187 | * s-atocou-x86.adb: Fix constraint in machine code insertion. | |
1188 | ||
1189 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1190 | ||
1191 | * aspects.ads, aspects.adb: Add new aspects for various pragmas and | |
1192 | attributes that are now aspects, as specified by AI05-0229-1. | |
1193 | * sem_ch13.adb (Analyze_Aspect_Specifications, | |
1194 | Check_Aspect_At_Freeze_Point): Analyze the new aspects. Turn them into | |
1195 | pragmas or attribute references, as appropriate. | |
1196 | ||
0db16b1e AC |
1197 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1198 | ||
1199 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.adb, | |
1200 | a-synbar-posix.ads: Minor reformatting. | |
1201 | ||
1202 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1203 | ||
1204 | * snames.ads-tmpl: Add name Force. | |
1205 | ||
978ffe02 AC |
1206 | 2011-08-29 Pascal Obry <obry@adacore.com> |
1207 | ||
1208 | * prj-nmsc.adb: Minor reformatting. | |
1209 | ||
1210 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1211 | ||
1212 | * a-exetim.ads (Interrupt_Clocks_Supported, | |
1213 | Separate_Interrupt_Clocks_Supported, Clock_For_Interrupts): Add these | |
1214 | definitions to be compliant with AI-0171. | |
1215 | ||
1216 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1217 | ||
1218 | * a-ngelfu.adb: Add comments. | |
1219 | ||
718f39dc AC |
1220 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
1221 | ||
1222 | * a-ngelfu.adb (Tan): Do not raise Constraint_Error if the argument is | |
1223 | the closest machine number to Pi / 2.0. | |
1224 | ||
1225 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1226 | ||
1227 | * impunit.adb (Non_Imp_File_Names_12): Add a-synbar for new Ada 2012 | |
1228 | package Ada.Synchronous_Barriers. | |
1229 | * a-synbar.ads, a-synbar.adb, a-synbar-posix.ads, a-synbar-posix.adb: | |
1230 | Add new specs and bodies for Ada.Synchronous_Barriers. There is a | |
1231 | default implementation using protected objects and another one | |
1232 | a-synbar-posix using POSIX barriers as the underlying support. | |
1233 | * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for Linux (x86, | |
1234 | x86_64, ia64) and MIPS IRIX): Use the a-synbar-posix implementation of | |
1235 | Ada.Synchronous_Barriers which uses POSIX barriers (more efficient). | |
1236 | Clean up dependencies. | |
1237 | * Makefile.rtl (GNATRTL_TASKING_OBJS): Add a-synbar.o | |
1238 | ||
ee2e3f6b AC |
1239 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1240 | ||
1241 | * sem_ch7.adb, make.adb, sem_res.adb, exp_intr.adb, | |
1242 | exp_dist.adb: Minor code reorganization. | |
1243 | Minor reformatting. | |
1244 | ||
1245 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1246 | ||
1247 | * sem_cat.adb (Validate_RACW_Primitive): The return type of an RACW | |
1248 | primitive operation must support external streaming if it is not a | |
1249 | controlling access result. | |
1250 | ||
646e2823 AC |
1251 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1252 | ||
1253 | * sinfo.ads, sem_ch7.adb: Minor reformatting. | |
1254 | ||
1255 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1256 | ||
1257 | * sem_ch4.adb (Analyze_Allocator): Check No_Nested_Finalization | |
1258 | restriction on allocators, as required by AI05-0013-1. | |
1259 | * restrict.ads: Minor comment fix. | |
1260 | ||
5d59eef2 AC |
1261 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1262 | ||
1263 | * a-exexpr.adb, a-except-2005.ads (Jmpbuf_Address): Move to a-exexpr.adb | |
1264 | (To_Jmpbuf_Address): Ditto | |
1265 | (builtin_longjmp): Ditto | |
1266 | ||
1267 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1268 | ||
1269 | * sem_res.adb: Minor reformatting. | |
1270 | ||
1271 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1272 | ||
1273 | * make.adb (Gnatmake): Move special processing for VM targets after the | |
1274 | call to Get_Target_Parameters. | |
1275 | ||
1276 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1277 | ||
1278 | * sem_ch12.adb, par-ch12.adb: Minor reformatting. | |
1279 | ||
949a18cc AC |
1280 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1281 | ||
1282 | * sem_res.adb (Resolve_Allocator): Implement Ada2012-B052. Detect cases | |
1283 | where an anonymous access discriminant of a limited designated type | |
1284 | appears in a non-immutably limited discriminated type and issue an | |
1285 | error message. Add local variable Desig_T and replace all occurrences | |
1286 | of Designated_Type. | |
1287 | ||
1288 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1289 | ||
1290 | * a-rttiev.adb (Set_Handler): Update comment to indicate that our | |
1291 | implementation is compliant to RM D.15(15/2) after the modification | |
1292 | imposed by AI05-0094-1 (binding interpretation). | |
1293 | ||
cb25faf8 AC |
1294 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1295 | ||
1296 | * exp_ch9.adb, s-tasren.adb, exp_sel.adb, exp_sel.ads, exp_ch11.adb, | |
1297 | s-interr-hwint.adb, s-tpobop.adb, sem_ch13.adb: Minor reformatting. | |
1298 | ||
1299 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1300 | ||
1301 | * par-endh.adb (Check_End): For an END where it is mandatory to repeat | |
1302 | the scope name, do not report a missing label as a style violation (it | |
1303 | will be diagnosed as an illegality). | |
1304 | * exp_dist.adb (Add_Params_For_Variant_Components): Fix handling of | |
1305 | variant records: Get_Enum_Lit_From_Pos already returns a usage | |
1306 | occurrence of the literal, no need to use New_Occurrence_Of. Set Etype | |
1307 | on Expr in Integer_Literal case so that it can be used by | |
1308 | Build_To_Any_Call. | |
1309 | ||
1d10f669 AC |
1310 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1311 | ||
1312 | * exp_sel.ads (Build_Abort_BLock_Handler): New function spec. | |
1313 | Adjust comment. | |
1314 | * exp_sel.adb (Build_Abort_Block): Use Build_Abort_Block_Handler. | |
1315 | (Build_Abort_Block_Handler): New function to build an Abort_Signal | |
1316 | exception handler. | |
1317 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Call | |
1318 | Build_Abort_Block_Handler to build the exception handler. Do not | |
1319 | undefer aborts for the Abort_Signal exception handler if back-end | |
1320 | exception mechanism. | |
1321 | * exp_ch11.adb (Expand_Exception_Handlers): Do not undefer aborts if | |
1322 | back_end exceptions for all others and abort_signal. | |
1323 | * s-except.ads (ZCX_By_Default): New constant. | |
1324 | * a-except-2005.adb (Raise_Exception): Do not defer abort if ZCX. | |
1325 | (Raise_Exception_Always): Ditto. | |
1326 | (Raise_From_Signal_Handler): Ditto. | |
1327 | (Raise_With_Location_And_Msg): Ditto. | |
1328 | (Raise_With_Msg): Ditto. | |
1329 | (Reraise): Ditto. | |
1330 | (Reraise_Occurence): Ditto. | |
1331 | (Reraise_Occurrence_Always): Ditto. | |
1332 | * s-tasren.adb (Exceptional_Complete_Rendezvous): Defer aborts if ZCX. | |
1333 | * s-tpobop.adb: (Exceptional_Complete_Body): Undefer abort if ZCX. | |
1d10f669 AC |
1334 | |
1335 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1336 | ||
1337 | * sem_util.ads (Get_Enum_Lit_From_Pos): Clarify documentation. | |
1338 | ||
d986066d AC |
1339 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1340 | ||
1341 | * snames.adb-tmpl, sem_ch13.adb: Minor reformatting | |
1342 | Minor code reorganization. | |
1343 | ||
1344 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1345 | ||
1346 | * usage.adb (-gnatwy): Fix documentation: this switch applies to Ada | |
1347 | 2012, not just Ada 2005. | |
1348 | ||
1349 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1350 | ||
1351 | * gnat_ugn.texi: Indicate that when the compiler is called by gnatmake | |
1352 | with a project file or with gprbuid, if -gnatep= is specified, the | |
1353 | builder may need to be invoked with -x. | |
1354 | ||
1355 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1356 | ||
1357 | * a-exexpr-gcc.adb: Minor comment fix. | |
1358 | ||
ff4f0ed0 AC |
1359 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1360 | ||
1361 | * sem_ch8.adb: Minor reformatting. | |
1362 | ||
1363 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1364 | ||
1365 | * par-ch2.adb (P_Identifier): Warn that "some" is reserved in Ada 2012. | |
1366 | * par-ch4.adb (P_Quantified_Expression): Remove unnecessary code for | |
1367 | treating "some" as unreserved in earlier Ada versions. This is now | |
1368 | handled in Snames.Is_Keyword_Name. Parse "for some" using Tok_Some, | |
1369 | rather than Name_Some, since Tok_Some is now recognized as reserved. | |
1370 | * scans.adb (Initialize_Ada_Keywords): Handle Tok_Some like any other | |
1371 | reserved word. | |
1372 | * scans.ads: Minor comment fixes. | |
1373 | * snames.adb-tmpl (Is_Keyword_Name): Handle Ada 2012 reserved words as | |
1374 | for other language versions. | |
1375 | * scn.adb (Scan_Reserved_Identifier): Remove unnecessary code for | |
1376 | treating "some" as unreserved in earlier Ada versions. This is now | |
1377 | handled in Snames.Is_Keyword_Name. | |
1378 | * par-ch3.adb (P_Defining_Identifier): Warn that "some" is reserved in | |
1379 | Ada 2012. | |
1380 | (P_Subtype_Mark_Resync): Remove unnecessary code for treating "some" as | |
1381 | unreserved in earlier Ada versions. This is now handled in | |
1382 | Snames.Is_Keyword_Name. | |
1383 | * snames.ads-tmpl (Ada_2012_Reserved_Words): Handle Ada 2012 reserved | |
1384 | words as for other language versions. | |
1385 | * gnat_ugn.texi (-gnatwy): Fix documentation: this switch applies to | |
1386 | Ada 2012, not just Ada 2005. | |
1387 | ||
d941cee6 AC |
1388 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1389 | ||
1390 | * sem_ch13.adb: Additional semantic checks for aspects involved in | |
1391 | iterators. | |
1392 | ||
1393 | 2011-08-29 Matthew Heaney <heaney@adacore.com> | |
1394 | ||
1395 | * a-comutr.ads, a-comutr.adb, a-cimutr.ads, a-cimutr.adb, | |
1396 | a-cbmutr.ads, a-cbmutr.adb (Find_In_Subtree): Remove superfluous | |
1397 | Container parameter. | |
1398 | (Ancestor_Find): ditto. | |
1399 | ||
b970af39 TQ |
1400 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1401 | ||
1402 | * par-endh.adb: Minor reformatting. | |
d941cee6 | 1403 | |
92db5dee AC |
1404 | 2011-08-29 Tristan Gingold <gingold@adacore.com> |
1405 | ||
1406 | * a-exexpr-gcc.adb (Unwind_Action) Rewrite as an integer with constants. | |
1407 | (GNAT_GCC_Exception): Remove N_Cleanups_To_Trigger component. | |
1408 | (Adjust_N_CLeanups_For): Remove. | |
1409 | (CleanupUnwind_Handler): Call Unhandled_Exception_Terminate when end of | |
1410 | stack is reached. | |
1411 | (Propgate_Exception): Adjust. | |
1412 | * raise-gcc.c: Add a few static/const. | |
1413 | (Adjust_N_Cleanups_For): Remove declaration. | |
1414 | (PERSONALITY_FUNCTION): Remove code dealing with N_Cleanups_To_Trigger. | |
1415 | ||
1416 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1417 | ||
1418 | * sem_ch8.adb: Use type of function return when rewriting as object | |
1419 | declaration. | |
1420 | ||
1378bf10 AC |
1421 | 2011-08-29 Gary Dismukes <dismukes@adacore.com> |
1422 | ||
1423 | * sem_type.adb: Minor reformatting. | |
1424 | ||
1425 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1426 | ||
1427 | * makeutl.adb: Minor reformatting. | |
1428 | ||
1429 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1430 | ||
1431 | * sem_ch8.adb (Analyze_Object_Renaming): If the renamed object is a | |
1432 | function call of a limited type, the expansion of the renaming is | |
1433 | complicated by the presence of various temporaries and subtypes that | |
1434 | capture constraints of the renamed object. | |
1435 | Rewrite node as an object declaration, whose expansion is simpler. | |
1436 | Given that the object is limited there is no copy involved and no | |
1437 | performance hit. | |
1438 | ||
164e06c6 AC |
1439 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1440 | ||
1441 | * exp_ch5.adb, sinfo.ads, make.adb, s-pooglo.adb, sem_ch12.adb, | |
1442 | freeze.adb, sem_ch6.adb, par-ch12.adb: Minor reformatting. | |
1443 | ||
1444 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1445 | ||
1446 | * system-darwin-x86.ads, system-linux-s390x.ads, system-linux-alpha.ads, | |
1447 | system-tru64.ads, system-irix-n32.ads, system-vxworks-arm.ads, | |
1448 | system-linux-hppa.ads, system-linux-s390.ads, | |
1449 | system-solaris-sparcv9.ads, system-mingw.ads, system-linux-ia64.ads, | |
1450 | system-vms_64.ads, system-vxworks-sparcv9.ads, system-linux-ppc.ads, | |
1451 | system-aix64.ads, system-lynxos-ppc.ads, system-linux-sh4.ads, | |
1452 | system-solaris-x86.ads, system-linux-x86_64.ads, system-linux-x86.ads, | |
1453 | system-vxworks-ppc.ads, system-hpux.ads, system-darwin-ppc.ads, | |
1454 | system-solaris-sparc.ads, system-lynxos-x86.ads, | |
1455 | system-vxworks-m68k.ads, system-hpux-ia64.ads, system-irix-o32.ads, | |
1456 | system-solaris-x86_64.ads, system-mingw-x86_64.ads, | |
1457 | system-vxworks-mips.ads, system-linux-sparc.ads, system-vms-ia64.ads, | |
1458 | system-freebsd-x86.ads, system-aix.ads, system-darwin-x86_64.ads, | |
1459 | system-vxworks-x86.ads: Remove GCC_ZCX_Support | |
1460 | * s-taprop-posix.adb, s-taprop-irix.adb, s-taprop-vxworks.adb, | |
1461 | s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb: Ditto. | |
1462 | * opt.ads: Adjust comment. | |
1463 | * targparm.ads, targparm.adb: Remove GCC_ZCX_Support_On_Target. | |
1464 | * gnat1drv.adb: Do not check for GCC_ZCX_Support_On_Target. | |
1465 | * system.ads: Move GCC_ZCX_Support to obsolete entries. | |
1466 | ||
1467 | 2011-08-29 Emmanuel Briot <briot@adacore.com> | |
1468 | ||
1469 | * makeutl.adb (Do_Complete): Resolve symbolic links when a relative | |
1470 | file name is specified on the gnatmake or gprbuild command line, and | |
1471 | before we search for that file in the project. | |
1472 | ||
1473 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1474 | ||
1475 | * sem_type.adb (Within_Instance): New predicate in Collect_Interps, | |
1476 | used to determine whether a possible interpretation for an overloadable | |
1477 | entity is declared within the current instantiation and should be | |
1478 | included in the candidate set. | |
1479 | ||
1480 | 2011-08-29 Vasiliy Fofanov <fofanov@adacore.com> | |
1481 | ||
1482 | * gnat_rm.texi, gnat_ugn.texi: Clean ups. | |
1483 | ||
97216ca8 ES |
1484 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1485 | ||
1486 | * sem_res.adb (Resolve_Actuals): Use base type to determine whether an | |
1487 | access subtype is access_to_subprogram, when applying checks for | |
1488 | RM 3.10.2 (27). | |
1489 | ||
d3cb4cc0 AC |
1490 | 2011-08-29 Matthew Heaney <heaney@adacore.com> |
1491 | ||
1492 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check | |
1493 | for sibling when common parent. | |
1494 | ||
1495 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1496 | ||
1497 | * get_scos.adb: Literals of Pragma_Id are pragma names prefixed with | |
1498 | "pragma_". | |
1499 | ||
1500 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1501 | ||
1502 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions | |
1503 | for the return type when in ASIS mode. | |
1504 | ||
1505 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1506 | ||
1507 | * make.adb (Gnatmake): Get the default search dirs, then the target | |
1508 | parameters after getting the Builder switches, as the Builder switches | |
1509 | may include --RTS= and that could change the default search dirs. | |
1510 | ||
1511 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1512 | ||
1513 | * exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of | |
1514 | Make_Final_Call. Move the processing for class-wide types before the | |
1515 | processing for derivations from [Limited_]Controlled. | |
1516 | (Make_Final_Call): Move the processing for class-wide types before the | |
1517 | processing for derivations from [Limited_]Controlled. | |
1518 | * s-stposu.adb (Allocate_Any_Controlled): Correct the membership check. | |
1519 | Add code to account for alignments larger than the list header. Add a | |
1520 | comment illustrating the structure of the allocated object + padding + | |
1521 | header. | |
1522 | (Deallocate_Any_Controlled): Add code to account for alignments larger | |
1523 | than the list header. | |
1524 | ||
1525 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1526 | ||
1527 | * sinfo.ads, sinfo.adb: New node kind | |
1528 | N_Formal_Incomplete_Type_Definition, related flags. | |
1529 | par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition): | |
1530 | Parse formal incomplete types. | |
1531 | * sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in | |
1532 | sem_ch12. | |
1533 | * sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body): | |
1534 | Formal incomplete types do not need completion. | |
1535 | * sem_ch12.adb (Analyze_Formal_Incomplete_Type, | |
1536 | Validate_Incomplete_Type_Instance): New procedures to handle formal | |
1537 | incomplete types. | |
1538 | * freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual | |
1539 | that corresponds to a formal incomplete type. | |
1540 | * sprint.adb: Handle formal incomplete type declarations. | |
1541 | * exp_util.adb (Insert_Actions): An incomplete_type_definition is not | |
1542 | an insertion point. | |
1543 | ||
d3f70b35 AC |
1544 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1545 | ||
1546 | * a-fihema.ads, a-fihema.adb: Unit removed. | |
1547 | * a-undesu.ads, a-undesu.adb: New unit implementing | |
1548 | Ada.Unchecked_Deallocate_Subpool. | |
1549 | * einfo.adb: Remove Associated_Collection from the node usage. | |
1550 | Add Finalization_Master to the node usage. | |
1551 | (Associated_Collection): Removed. | |
1552 | (Finalization_Master): New routine. | |
1553 | (Set_Associated_Collection): Removed. | |
1554 | (Set_Finalization_Master): New routine. | |
1555 | (Write_Field23_Name): Remove Associated_Collection from the output. Add | |
1556 | Finalization_Master to the output. | |
1557 | * einfo.ads: Remove attribute Associated_Collection and its uses in | |
1558 | entities. | |
1559 | Add new attribute Finalization_Master along with its uses in entitites. | |
1560 | (Associated_Collection): Removed along with its pragma import. | |
1561 | (Finalization_Master): New routine along with a pragma import. | |
1562 | (Set_Associated_Collection): Removed along with its pragma import. | |
1563 | (Set_Finalization_Master): New routine along with a pragma import. | |
1564 | * exp_ch3.adb (Expand_Freeze_Array_Type): Replace call to | |
1565 | Build_Finalization_Collection with Build_Finalization_Master. | |
1566 | (Expand_Freeze_Record_Type): Move the generation of Finalize_Address | |
1567 | before the bodies of the predefined routines. Add comment explaining | |
1568 | this. Replace call to Build_Finalization_Collection with | |
1569 | Build_Finalization_Master. | |
1570 | (Freeze_Type): Replace call to Build_Finalization_Collection with | |
1571 | Build_Finalization_Master. | |
1572 | (Make_Finalize_Address_Body): Comment reformatting. | |
1573 | (Make_Predefined_Primitive_Specs): Code reformatting. | |
1574 | (Stream_Operation_OK): Update comment mentioning finalization | |
1575 | collections. Replace RE_Finalization_Collection with | |
1576 | RE_Finalization_Master. | |
1577 | * exp_ch4.adb (Complete_Controlled_Allocation): Replace call to | |
1578 | Associated_Collection with Finalization_Master. Replace call to | |
1579 | Build_Finalization_Collection with Build_Finalization_Master. | |
1580 | (Expand_Allocator_Expression): Replace call to Associated_Collection | |
1581 | with Finalization_Master. Replace call to Set_Associated_Collection with | |
1582 | Set_Finalization_Master. Remove the generation of | |
1583 | Set_Finalize_Address_Ptr. | |
1584 | (Expand_N_Allocator): Replace call to Associated_Collection with | |
1585 | Finalization_Master. Remove the generation of Set_Finalize_Address_Ptr. | |
1586 | * exp_ch6.adb (Add_Collection_Actual_To_Build_In_Place_Call): Renamed to | |
1587 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Update the | |
1588 | comment on usage. Replace call to Needs_BIP_Collection with | |
1589 | Needs_BIP_Finalization_Master Remplace BIP_Collection with | |
1590 | BIP_Finalization_Master. Update all comments which mention finalization | |
1591 | collections. Replace Associated_Collection with | |
1592 | Finalization_Master. Replace Build_Finalization_Collection with | |
1593 | Build_Finalization_Master. | |
1594 | (BIP_Formal_Suffix): Update BIP_Collection's case. | |
1595 | (Build_Heap_Allocator): Update the related comment. Rename local | |
1596 | variable Collect to Fin_Mas_Id and update its occurrences. Update | |
1597 | comments which mention finalization collections. Replace | |
1598 | Set_Associated_Collection with Set_Finalization_Master. | |
1599 | (Expand_Call): Update the code which detects a special piece of library | |
1600 | code for .NET/JVM. | |
1601 | (Make_Build_In_Place_Call_In_Allocator): Replace the call to | |
1602 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1603 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. Remove the code | |
1604 | which generates a call to Make_Set_Finalize_Address_Ptr_Call. | |
1605 | (Make_Build_In_Place_Call_In_Anonymous_Context): Replace call to | |
1606 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1607 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1608 | (Make_Build_In_Place_Call_In_Assignment): Replace call to | |
1609 | Add_Collection_Actual_To_Build_In_Place_Call with | |
1610 | Add_Finalization_Master_Actual_To_Build_In_Place_Call. | |
1611 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1612 | * exp_ch6.ads: Rename BIP_Collection to BIP_Finalization_Master. | |
1613 | (Needs_BIP_Collection): Renamed to Needs_BIP_Finalization_Master. | |
1614 | * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Update comment on usage. | |
1615 | Rename local variable Collect to Fin_Mas_Id and update its occurrences. | |
1616 | Replace call to Set_Associated_Collection with Set_Finalization_Master. | |
1617 | (Build_Finalization_Collection): Renamed to Build_Finalization_Master. | |
1618 | Replace the call to Associated_Collection with Finalization_Master. | |
1619 | Rename local variable Coll_Id to Fin_Mas_Id and update its occurrences. | |
1620 | Update the way finalization master names are generated. Update the | |
1621 | retrieval of the correct access type which will carry the pool and | |
1622 | master attributes. | |
1623 | (Make_Final_Call): Reimplement the way [Deep_]Finalize is retrieved. | |
1624 | (Make_Finalize_Address_Body): Abstract types do not need | |
1625 | Finalize_Address. Code reformatting. | |
1626 | (Make_Finalize_Address_Stmts): Update comment on usage. | |
1627 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1628 | (Process_Declarations): Update comments. | |
1629 | * exp_ch7.ads (Build_Finalization_Collection): Renamed to | |
1630 | Build_Finalization_Master. Update associated comment. | |
1631 | (Make_Set_Finalize_Address_Ptr_Call): Removed. | |
1632 | * exp_ch13.adb: Update comments which mention finalization collections. | |
1633 | (Expand_N_Free_Statement): Replace the call to Associated_Collection | |
1634 | with Finalization_Master. | |
1635 | * exp_util.adb (Build_Allocate_Deallocate_Proc): Reimplemented to | |
1636 | create calls to routines Allocate_Any_Controlled and | |
1637 | Deallocate_Any_Controlled. | |
1638 | (Find_Finalize_Address): New routine. | |
1639 | (Is_Allocate_Deallocate_Proc): Update the RTE entities used in the | |
1640 | comparison. | |
1641 | (Requires_Cleanup_Actions): Update the comment on freeze node | |
1642 | inspection. | |
1643 | * exp_util.ads: Remove comment on generated code for | |
1644 | Build_Allocate_Deallocate_Proc. The code is now quite complex and it | |
1645 | is better to simply look in the body. | |
1646 | * freeze.adb (Freeze_All): Update the comment of finalization | |
1647 | collections. Replace the call to Associated_Collection with | |
1648 | Finalization_Master. Replace the call to Build_Finalization_Collection | |
1649 | with Build_Finalization_Master. | |
1650 | * impunit.adb: Add a-undesu and s-stposu to the list of units. | |
1651 | * Makefile.rtl: Add files a-undesu, s-finmas and s-stposu. Remove file | |
1652 | a-fihema. | |
1653 | * rtsfind.adb (Get_Unit_Name): Remove the processing for children of | |
1654 | Ada.Finalization. Add processing for children of System.Storage_Pools. | |
1655 | * rtsfind.ads: Remove the naming of second level children of | |
1656 | Ada.Finalization. | |
1657 | Remove Ada_Finalization_Heap_Management from the list of units. | |
1658 | Remove subtype Ada_Finalization_Child. | |
1659 | Remove the following subprogram entities: | |
1660 | ||
1661 | RE_Allocate | |
1662 | RE_Deallocate | |
1663 | RE_Finalization_Collection | |
1664 | RE_Finalization_Collection_Ptr | |
1665 | RE_Set_Finalize_Address_Ptr | |
1666 | ||
1667 | Add the naming of second level children of System.Storage_Pools. | |
1668 | Add System_Finalization_Masters and System_Storage_Pools_Subpools to | |
1669 | the list of units. | |
1670 | Add subtype System_Storage_Pools_Child. | |
1671 | Add the following subprogram entities to System.Finalization_Masters: | |
1672 | ||
1673 | RE_Finalization_Master | |
1674 | RE_Finalization_Master_Ptr | |
1675 | ||
1676 | Add the following subprogram entities to System.Storage_Pools.Subpools: | |
1677 | ||
1678 | RE_Allocate_Any_Controlled | |
1679 | RE_Deallocate_Any_Controlled | |
1680 | RE_Root_Storage_Pool_With_Subpools | |
1681 | RE_Root_Subpool | |
1682 | RE_Subpool_Handle | |
1683 | ||
1684 | Move the following subprogram entities from | |
1685 | Ada.Finalization.Heap_Management to System.Finalization_Masters: | |
1686 | ||
1687 | RE_Add_Offset_To_Address | |
1688 | RE_Attach | |
1689 | RE_Base_Pool | |
1690 | RE_Detach | |
1691 | ||
1692 | * sem_ch3.adb (Access_Type_Declaration): Replace the call to | |
1693 | Set_Associated_Collection with Set_Finalization_Master. | |
1694 | * sem_ch6.adb (Create_Extra_Formals): Update the way extra formal | |
1695 | BIP_Finalization_Master is created. | |
1696 | * s-finmas.adb: New unit System.Finalization_Masters. | |
1697 | * s-finmas.ads: New unit System.Finalization_Masters. | |
1698 | * s-stopoo.ads, s-stopoo.adb: Minor code reformatting. | |
1699 | * s-stposu.ads, s-stposu.adb: New unit implementing | |
1700 | System.Storage_Pools.Subpools. | |
1701 | ||
1702 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1703 | ||
1704 | * tbuild.adb: Add assertion. | |
1705 | ||
8c889ae4 AC |
1706 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1707 | ||
1708 | * s-pooglo.adb: Minor reformatting. | |
1709 | ||
1710 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1711 | ||
1712 | * exp_ch5.adb (Expand_N_Assignment_Statement): if the left-hand side is | |
1713 | an indexed component of a packed array whose element type is a record | |
1714 | with a representation clause different from that of the right-hand | |
1715 | side, generate a temporary to minimuze the number of bit-field | |
1716 | operations generated. | |
1717 | ||
1718 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1719 | ||
1720 | * exp_util.adb (Insert_Actions): Use clauses can be part of lists of | |
1721 | declarations, and thus are likely insertion points for actions. | |
1722 | ||
1723 | 2011-08-29 Bob Duff <duff@adacore.com> | |
1724 | ||
1725 | * einfo.ads: Minor comment fix. | |
1726 | ||
1a07a71a AC |
1727 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1728 | ||
1729 | * frontend.adb, gnat1drv.adb: Minor reformatting. | |
1730 | ||
1731 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1732 | ||
1733 | * s-pooglo.adb (Allocate, Deallocate): Take into account the alignment. | |
1734 | * a-fihema.adb (Allocate, Deallocate): Ditto. Possibly add padding | |
1735 | space in front of the header. | |
1736 | ||
4bcd6411 JK |
1737 | 2011-08-29 Johannes Kanig <kanig@adacore.com> |
1738 | ||
1739 | * frontend.adb (Frontend): Exit after creating Standard package when | |
1740 | -gnatd.H is present. | |
1741 | * gnat1drv.adb (Gnat1drv): Call Backend right away when -gnatd.H is | |
1742 | present. | |
1743 | ||
f0f88eb6 RD |
1744 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1745 | ||
1746 | * exp_ch9.adb, mlib-prj.adb, prj.adb, prj.ads, ttypes.ads, sem_ch4.adb, | |
1747 | makeutl.adb, makeutl.ads, atree.ads, snames.adb-tmpl, | |
1748 | snames.ads-tmpl: Minor reformatting. | |
1749 | ||
3e37be71 PG |
1750 | 2011-08-29 Philippe Gil <gil@adacore.com> |
1751 | ||
1752 | * prj.adb (Reset_Units_In_Table): New procedure. | |
1753 | Reset units to avoid access to freed memory. | |
1754 | ||
94fb7608 AC |
1755 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1756 | ||
1757 | * get_scos.adb: When reading a P statement SCO without a pragma name | |
1758 | (from an older ALI file), ensure that the Pragma_Name component is set | |
1759 | to Unknown_Pragma (not left uninitialized). | |
1760 | ||
1761 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
1762 | ||
1763 | * makeutl.adb (Get_Directories): New procedure moved from Buildgpr and | |
1764 | modified to compute correctly the object path of a SAL project that is | |
1765 | extending another library project. | |
1766 | (Write_Path_File): New procedure. | |
1767 | * makeutl.ads (Directories): New table moved from Buildgpr | |
1768 | (Get_Directories): New procedure moved from Buildgpr | |
1769 | (Write_Path_File): New procedure | |
1770 | * mlib-prj.adb (Build_Library): Use Makeutl.Get_Directories to set the | |
1771 | paths before binding SALs, instead of Set_Ada_Paths. | |
1772 | * prj-env.adb (Set_Path_File_Var): Procedure has been moved to package | |
1773 | Prj. | |
1774 | * prj.adb (Set_Path_File_Var): New procedure moved from Prj.Env | |
1775 | (Current_Source_Path_File_Of): New function | |
1776 | (Set_Current_Object_Path_File_Of): New procedure | |
1777 | (Current_Source_Object_File_Of): New function | |
1778 | (Set_Current_Object_Path_File_Of): New procedure | |
1779 | * prj.ads (Set_Path_File_Var): New procedure moved from Prj.Env | |
1780 | (Current_Source_Path_File_Of): New function | |
1781 | (Set_Current_Object_Path_File_Of): New procedure | |
1782 | (Current_Source_Object_File_Of): New function | |
1783 | (Set_Current_Object_Path_File_Of): New procedure | |
1784 | ||
1785 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1786 | ||
1787 | * exp_ch5.adb (Expand_N_Assignment_Statement): For an assignment to a | |
1788 | packed entity, use a bit-field assignment only if there is no change of | |
1789 | representation. | |
1790 | ||
c5ecd6b7 AC |
1791 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1792 | ||
1793 | * rtsfind.ads, exp_ch3.adb (In_Runtime): Minor code improvement, use | |
1794 | Is_RTU instead of using Chars comparisons. | |
1795 | ||
1796 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1797 | ||
1798 | * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do not create a | |
1799 | temporary object if the actual is constrained, and the discriminants | |
1800 | read from the stream don't match. | |
1801 | ||
1802 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1803 | ||
1804 | * sem_attr.adb, exp_attr.adb: Add handling of | |
1805 | Attribute_System_Allocator_Alignment | |
1806 | * snames.ads-tmpl: Add Name_System_Allocator_Alignment and | |
1807 | Attribute_System_Allocator_Alignment. | |
1808 | * ttypes.ads, get_targ.ads: Add Get_System_Allocator_Alignment. | |
1809 | * gcc-interface/targtyps.c, gcc-interface/utils2.c, | |
1810 | gcc-interface/gigi.h: Renames get_target_default_allocator_alignment to | |
1811 | get_target_system_allocator_alignment. | |
1812 | ||
1813 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1814 | ||
1815 | * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update | |
1816 | dependencies. | |
1817 | ||
8abdac29 AC |
1818 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1819 | ||
1820 | * exp_ch3.adb (In_Runtime): Fix typo. | |
1821 | ||
df170605 AC |
1822 | 2011-08-29 Bob Duff <duff@adacore.com> |
1823 | ||
1824 | * sem_ch4.adb (Analyze_Allocator): Analyze the subpool specification. | |
1825 | ||
1826 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1827 | ||
1828 | * exp_ch3.adb (Expand_N_Object_Declaration): If the entity is tagged | |
1829 | and a separate tag assignment is generated, ensure that the tag | |
1830 | assignment is analyzed. | |
1831 | ||
864a4236 ES |
1832 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> |
1833 | ||
1834 | * atree.ads, atree.adb (Copy_Separate_List): New function that applies | |
1835 | Copy_Separate_Tree to a list of nodes. Used to create disjoint copies | |
1836 | of statement lists that may contain local declarations. | |
df170605 AC |
1837 | * exp_ch9.adb (Expand_N_Timed_Entry_Call): Use Copy_Separate_List to |
1838 | duplicate the triggering statements needed for the expansion of this | |
1839 | construct, when the trigger is a dispatching call to a synchronized | |
1840 | primitive. | |
864a4236 | 1841 | |
7f394c1d AC |
1842 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1843 | ||
1844 | * gnat_rm.texi: Add doc for 'Elab_Subp_Body. | |
1845 | * bindgen.adb: Add comments. | |
1846 | * snames.adb-tmpl (Is_Attribute_Name): Only recognize 'Elab_Subp_Body | |
1847 | in CodePeer mode. | |
1848 | ||
2c1a2cf3 RD |
1849 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1850 | ||
1851 | * exp_attr.adb: Minor reformatting. | |
1852 | Minor code reorganization and commenting. | |
1853 | * par_sco.adb, checks.adb, sem_attr.adb, get_scos.adb: Minor | |
1854 | reformatting. | |
1855 | ||
0bfc9a64 AC |
1856 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1857 | ||
1858 | * get_scos.adb: Ignore chaining indicators not currently supported | |
1859 | by Ada. | |
1860 | ||
1861 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1862 | ||
1863 | * system.ads: Minor editing. | |
1864 | ||
1865 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> | |
1866 | ||
1867 | * bindgen.adb (Gen_Elab_Calls): Generate calls to subp'Elab_Subp_Body in | |
1868 | CodePeer mode. | |
1869 | * sem_attr.ads, sem_attr.adb, exp_Attr.adb, sem_ch6.adb: Add handling of | |
1870 | Attribute_Elab_Subp_Body. | |
1871 | * snames.ads-tmpl (Attribute_Elab_Subp_Body, Name_Elab_Subp_Body): New. | |
1872 | * sem_util.adb: Update comments. | |
1873 | ||
828d4cf0 TQ |
1874 | 2011-08-29 Thomas Quinot <quinot@adacore.com> |
1875 | ||
1876 | * par_sco.adb, scos.adb, scos.ads, put_scos.adb, get_scos.adb: Record | |
1877 | pragma name for each SCO statement corresponding to a pragma. | |
1878 | ||
5cd7bb15 AC |
1879 | 2011-08-29 Arnaud Charlet <charlet@adacore.com> |
1880 | ||
1881 | * opt.ads: Minor editing. | |
1882 | ||
1883 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1884 | ||
1885 | * gnat1drv.adb (Adjust_Global_Switches): Remove options for ALFA mode | |
1886 | that only made sense for CodePeer mode. | |
1887 | ||
1888 | 2011-08-29 Jose Ruiz <ruiz@adacore.com> | |
1889 | ||
1890 | * targparm.ads (Support_64_Bit_Divides_On_Target): Remove this flag | |
1891 | which is no longer used. | |
1892 | * targparm.adb (S64, S64_Str, Get_Target_Parameters): Remove the | |
1893 | handling of the 64-bit division check. | |
1894 | * exp_ch4.adb (Expand_N_Op_Divide): Remove the check for 64-bit | |
1895 | division available. | |
1896 | * system*.ads (Support_64_Bit_Divides): Remove this flag which is no | |
1897 | longer used. | |
1898 | ||
1899 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1900 | ||
1901 | * get_scos.adb: Minor reformatting. | |
1902 | ||
25b589cb AC |
1903 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> |
1904 | ||
1905 | * exp_util.adb (Process_Statements_For_Controlled_Objects): Whenever a | |
1906 | statement list is wrapped in a block, the block is explicitly analyzed | |
1907 | in order to properly redecorate the entities and create a servicing | |
1908 | finalizer. | |
1909 | ||
1910 | 2011-08-29 Tristan Gingold <gingold@adacore.com> | |
1911 | ||
1912 | * sinfo.ads, sinfo.adb (Zero_Cost_Handling): Remove. | |
1913 | (Set_Zero_Cost_Handling): Remove. | |
1914 | ||
1915 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1916 | ||
1917 | * par_sco.adb, scos.ads, put_scos.adb, get_scos.adb: Minor reformatting | |
1918 | ||
1197ddb1 AC |
1919 | 2011-08-29 Geert Bosch <bosch@adacore.com> |
1920 | ||
1921 | * s-vaflop-vms-alpha.adb (Neg_F): Use subtraction instead of negation | |
1922 | instruction, as the latter may produce -0.0, which is not a valid VAX | |
1923 | F float number. | |
1924 | (Neg_G): Likewise for VAX F float. | |
1925 | ||
1926 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1927 | ||
1928 | * exp_util.adb: Minor reformatting. | |
1929 | ||
1930 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1931 | ||
1932 | * sem_ch3.adb: Minor comment update. | |
1933 | ||
1934 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1935 | ||
1936 | * checks.adb (Apply_Type_Conversion_Checks): Use the Underlying_Type of | |
1937 | the operand type. | |
1938 | ||
1939 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
1940 | ||
1941 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not flush | |
1942 | current statement sequence on a generic instantiation or a subprogram | |
1943 | declaration. | |
1944 | ||
8f66cda7 AC |
1945 | 2011-08-29 Robert Dewar <dewar@adacore.com> |
1946 | ||
1947 | * sem_type.adb, einfo.ads, freeze.adb, exp_ch4.adb, sem_ch13.adb: | |
1948 | Minor reformatting. | |
1949 | ||
1950 | 2011-08-29 Hristian Kirtchev <kirtchev@adacore.com> | |
1951 | ||
1952 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
1953 | Correct the check which involves the freeze node of a controlled or | |
1954 | access-to-controlled type. | |
1955 | ||
1956 | 2011-08-29 Geert Bosch <bosch@adacore.com> | |
1957 | ||
1958 | * sem_warn.adb (Check_Code_Statement): Remove check for consecutive Asm | |
1959 | statements. | |
1960 | * s-vaflop-vms-alpha.adb: Remove bogus Volatile => True arguments from | |
1961 | Asm statements. | |
1962 | ||
cf161d66 AC |
1963 | 2011-08-29 Yannick Moy <moy@adacore.com> |
1964 | ||
1965 | * sem_ch3.adb (Array_Type_Declaration): Insert a subtype declaration | |
1966 | for every index type and component type that is not a subtype_mark. | |
1967 | (Process_Subtype): Set Etype of subtype. | |
1968 | ||
1969 | 2011-08-29 Robert Dewar <dewar@adacore.com> | |
1970 | ||
1971 | * a-cbmutr.adb, a-cimutr.adb, a-comutr.adb, prj-nmsc.adb: Minor code | |
1972 | reorganization. Minor reformatting. | |
1973 | ||
7cc83cd8 AC |
1974 | 2011-08-29 Steve Baird <baird@adacore.com> |
1975 | ||
1976 | * exp_ch4.adb (Expand_N_Op_Expon): Suppress N_Op_Expon node expansion | |
1977 | for CodePeer and ALFA modes. | |
1978 | ||
1979 | 2011-08-29 Ed Schonberg <schonberg@adacore.com> | |
1980 | ||
1981 | * sem_type.adb (Collect_Interps): Within an instance, collect a homonym | |
1982 | that comes from an enclosing scope if it is not the renaming of an | |
1983 | actual, to handle properly a spurious ambiguity in an instance. | |
1984 | ||
76af4137 AC |
1985 | 2011-08-29 Eric Botcazou <ebotcazou@adacore.com> |
1986 | ||
1987 | * sem_ch13.adb (Alignment_Check_For_Esize_Change): Rename to... | |
1988 | (Alignment_Check_For_Size_Change): ...this. Add SIZE parameter and | |
1989 | use it instead of the Esize of the first parameter. | |
1990 | (Analyze_Attribute_Definition_Clause) <Object_Size>: Adjust call to | |
1991 | above change. | |
1992 | <Size>: Likewise. Call it for composite types on the RM size. | |
1993 | ||
1994 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
1995 | ||
1996 | * exp_ch4.adb (Expand_N_Op_Not): Do not expand not on array. | |
1997 | * sem_util.adb (Unique_Name): Correct behaviour for names of | |
1998 | compilation units. | |
1999 | ||
9b20e59b AC |
2000 | 2011-08-29 Yannick Moy <moy@adacore.com> |
2001 | ||
2002 | * sem_prag.adb (Check_Precondition_Postcondition): In formal | |
2003 | verification mode, analyze pragma expression for correctness, for | |
2004 | pre/post on library-level subprogram, as it is not expanded later. | |
2005 | ||
2006 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2007 | ||
2008 | * exp_aggr.adb (Expand_Array_Aggregate): Do not expand array aggregates | |
2009 | in formal verification. | |
2010 | ||
2011 | 2011-08-29 Thomas Quinot <quinot@adacore.com> | |
2012 | ||
2013 | * sem_util.adb: Minor reformatting. | |
2014 | * freeze.adb, sem_ch13.adb: Fix comment: Bit_Order is an attribute, | |
2015 | there's no pragma. | |
2016 | * par_sco.ads, par_sco.adb: Update comments. | |
2017 | ||
2018 | 2011-08-29 Yannick Moy <moy@adacore.com> | |
2019 | ||
2020 | * einfo.adb, einfo.ads: Remove flag Is_Postcondition_Proc and | |
2021 | associated getter/setter. | |
2022 | * sem_ch6.adb: Remove reference to Is_Postcondition_Proc. | |
2023 | ||
2024 | 2011-08-29 Vincent Celier <celier@adacore.com> | |
2025 | ||
2026 | * prj-attr.adb: New Compiler attribute Dependency_Kind and Language_Kind | |
2027 | * prj-conf.adb: Add_Default_GNAT_Naming_Scheme: Add a package Compiler | |
2028 | with declarations for Language_Kind and Dependency_Kind for Ada. | |
2029 | * prj-nmsc.adb (Check_Unit_Name): New name of procedure Check_Ada_Name | |
2030 | (Process_Compiler): Take into account the new attributes Dependency_Kind | |
2031 | and Language_Kind. | |
2032 | (Check_Configuration): Check if language kind is unit based, not if the | |
2033 | language name is Ada. | |
2034 | (Process_Exceptions_Unit_Based): Ditto | |
2035 | (Add_Language): Remove default additions of language and dependency kind | |
2036 | * prj.ads: Minor comment change | |
2037 | * snames.ads-tmpl: New standard names Dependency_Kind and Language_Kind | |
2038 | ||
2039 | 2011-08-29 Johannes Kanig <kanig@adacore.com> | |
2040 | ||
2041 | * debug.adb: Update comments. | |
2042 | ||
c5bc3df6 JM |
2043 | 2011-08-24 Joseph Myers <joseph@codesourcery.com> |
2044 | ||
2045 | * gcc-interface/Make-lang.in (CFLAGS-ada/tracebak.o) | |
2046 | (CFLAGS-ada/targext.o, CFLAGS-ada/cio.o, CFLAGS-ada/init.o) | |
2047 | (CFLAGS-ada/initialize.o, CFLAGS-ada/raise.o): New. | |
2048 | (ada/tracebak.o, ada/targext.o, ada/cio.o, ada/init.o) | |
2049 | (ada/initialize.o, ada/raise.o): Remove explicit compilation rules. | |
2050 | ||
e3aa9eba RO |
2051 | 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2052 | ||
2053 | * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. | |
2054 | (GNATLIBCFLAGS_FOR_C): Replace | |
2055 | TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. | |
2056 | (gnatlib-shared-default, gnatlib-shared-dual-win32) | |
2057 | (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) | |
2058 | (gnatlib-sjlj, gnatlib-zcx): Likewise. | |
2059 | ||
f446d60e EB |
2060 | 2011-08-07 Eric Botcazou <ebotcazou@adacore.com> |
2061 | ||
2062 | * gcc-interface/Makefile.in (raise-gcc.o): Fix previous change. | |
2063 | ||
588c8f48 EB |
2064 | * gcc-interface/gigi.h (enumerate_modes): Fix formatting. |
2065 | ||
2066 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Revert latest change. | |
2067 | ||
28d711bf NR |
2068 | 2011-08-05 Nicolas Roche <roche@adacore.com> |
2069 | ||
2070 | * gcc-interface/Makefile.in: Don't use directly ../xgcc to build shared | |
2071 | libgnat. Use rather the value of GCC_FOR_TARGET. Fix issue with | |
2072 | canadian cross. | |
2073 | * gcc-interface/Make-lang.in: Add support for canadian cross setting. | |
2074 | ||
993f8920 AC |
2075 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
2076 | ||
2077 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Child_Count, Child_Depth): | |
2078 | subprogram bodies declared out-of-order. | |
2079 | ||
2080 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2081 | ||
2082 | * sem_util.adb (Unique_Name): only prefix with "standard" the names of | |
2083 | entities directly in package Standard, otherwise skip the standard | |
2084 | prefix. | |
2085 | ||
9b3956dd RD |
2086 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2087 | ||
2088 | * a-cbmutr.adb: Minor reformatting | |
2089 | (Allocate_Node): refactor node allocation algorithm | |
2090 | ||
2091 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2092 | ||
2093 | * opt.ads, opt.adb (Debug_Pragmas_Disabled): New switch. | |
2094 | * sem_prag.adb (Analyze_Pragma, case Debug_Policy): Implement Disable | |
2095 | mode. | |
2096 | (Analyze_Pragma, case Check_Policy): Ditto. | |
2097 | * sem_prag.ads (Check_Disabled): New function | |
2098 | * snames.ads-tmpl: Add Name_Disable. | |
2099 | ||
2100 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2101 | ||
2102 | * gnat_rm.texi: Document implementation-defined policy DISABLE for | |
2103 | pragmas Assertion_Policy, Check_Policy, Debug_Policy. | |
2104 | ||
79e705d6 AC |
2105 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2106 | ||
2107 | * sem_prag.adb (Analyze_Pragma, case Inline): reject an Inline pragma | |
2108 | that appears in a generic formal part and applies to a formal | |
2109 | subprogram. | |
2110 | ||
2111 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2112 | ||
2113 | * a-cbmutr.ads: Minor reformatting. | |
2114 | ||
23b6deca AC |
2115 | 2011-08-05 Matthew Heaney <heaney@adacore.com> |
2116 | ||
2117 | * a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Read): do not use T'Valid | |
2118 | to check count, check sign of value instead. | |
2119 | * a-comutr.adb, a-cimutr.adb (Write): return immediately if tree empty | |
2120 | (Copy_Subtree): allocate copy of source element | |
2121 | (Equal_Subtree): compare elements, not access objects | |
2122 | ||
2123 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2124 | ||
2125 | * gnat_ugn.texi: Fix VMS alternative. | |
2126 | ||
a2773bd3 AC |
2127 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
2128 | ||
2129 | * sem_ch11.adb: Add comment. | |
2130 | ||
2131 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2132 | ||
2133 | * exp_util.adb: Minor comment fix. | |
2134 | ||
2135 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2136 | ||
2137 | * scng.adb (Error_Unterminated_String): Improve flag position when | |
2138 | comma present. | |
2139 | ||
2140 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
2141 | ||
2142 | * Makefile.rtl, impunit.adb: Added a-cbmutr.ad[sb] (bounded multiway | |
2143 | tree containers). | |
2144 | * a-cbmutr.ads, a-cbmutr.adb: This is the new Ada 2012 unit for bounded | |
2145 | multiway tree containers. | |
2146 | ||
2147 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2148 | ||
2149 | * styleg.adb (Check_Comment): Implement comment spacing of 1 or 2 | |
2150 | * stylesw.adb: Implement -gnatyC to control comment spacing | |
2151 | * stylesw.ads (Style_Check_Comments_Spacing): New switch (set by | |
2152 | -gnatyc/C). | |
2153 | * usage.adb: Add line for -gnatyC. | |
2154 | ||
2155 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2156 | ||
f446d60e | 2157 | * gnat_ugn.texi: Document -gnatyC. |
a2773bd3 AC |
2158 | * vms_data.ads: Implement COMMENTS1/COMMENTS2 (retaining COMMENTS as a |
2159 | synonym for COMMENTS2). | |
2160 | ||
dedac3eb RD |
2161 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2162 | ||
2163 | * par_sco.adb, sem_ch3.adb, scos.ads, a-iteint.ads, sem_ch12.adb, | |
2164 | a-cimutr.adb, a-cimutr.ads, sem_util.ads, sem_res.adb, a-fihema.adb, | |
2165 | sem_ch4.adb, lib-xref-alfa.adb, exp_disp.adb, a-comutr.adb, | |
2166 | a-comutr.ads, lib-xref.adb: Minor reformatting. | |
2167 | ||
2168 | 2011-08-05 Robert Dewar <dewar@adacore.com> | |
2169 | ||
2170 | * sem_ch11.adb (Analyze_Raise_Statement): Kill assignment to formal | |
2171 | warning if there is an exception handler present. | |
2172 | ||
7c62a85a AC |
2173 | 2011-08-05 Pascal Obry <obry@adacore.com> |
2174 | ||
2175 | * a-iteint.ads: Fix copyright year. | |
2176 | ||
2177 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2178 | ||
2179 | * par_sco.adb (Traverse_Declarations_Or_Statements): Do not generate a | |
2180 | statement SCO for a USE clause or a representation clause. | |
2181 | ||
2182 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2183 | ||
2184 | * lib-xref-alfa.adb (Collect_ALFA): generate the proper relation | |
2185 | between body and spec for stub. | |
2186 | (Detect_And_Add_ALFA_Scope): take into account subprogram stub | |
2187 | * lib-xref.adb (Enclosing_Subprogram_Or_Package): in the case of a | |
2188 | pragma precondition or postcondition, for which the enclosing | |
2189 | subprogram or package in the AST is not the desired one, return empty. | |
2190 | ||
e49208a9 AC |
2191 | 2011-08-05 Thomas Quinot <quinot@adacore.com> |
2192 | ||
2193 | * g-expect.adb: Minor reformatting. | |
2194 | ||
2195 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2196 | ||
2197 | * a-fihema.adb: Comment out OS_Lib. | |
2198 | ||
2199 | 2011-08-05 Matthew Heaney <heaney@adacore.com> | |
2200 | ||
2201 | * Makefile.rtl, impunit.adb: Added a-c[oi]mutr.ad[sb] | |
2202 | (unbounded multiway tree containers) and a-iteint.ads. | |
2203 | * a-comutr.ads, a-comutr.adb: | |
2204 | This is the new Ada 2012 unit for unbounded multiway tree containers | |
2205 | * a-cimutr.ads, a-cimutr.adb | |
2206 | This is the new Ada 2012 unit for indefinite multiway tree containers | |
2207 | * a-iteint.ads: New file. | |
2208 | ||
201cdb74 RO |
2209 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2210 | ||
f446d60e | 2211 | * gcc-interface/Makefile.in (raise-gcc.o): Search $(srcdir)/../libgcc. |
201cdb74 | 2212 | |
d50f4827 AC |
2213 | 2011-08-05 Bob Duff <duff@adacore.com> |
2214 | ||
2215 | * sinfo.ads, sinfo.adb (Subpool_Handle_Name): New attribute for | |
2216 | subpools. | |
2217 | * par-ch4.adb (P_Allocator): Parse new subpool specification syntax. | |
2218 | ||
2219 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2220 | ||
2221 | * sem_ch4.adb (Try_Container_Indexing): New procedure to implement the | |
2222 | general indexing aspects of Ada2012. Called when analyzing indexed | |
2223 | components when other interpretations fail. | |
2224 | * sem_ch8.adb (Find_Direct_Name): check for implicit dereference only | |
2225 | in an expression context where overloading is meaningful. This excludes | |
2226 | the occurrence in an aspect specification (efficiency only). | |
2227 | * sem_attr.adb (Analyze_Attribute): indicate that the attributes | |
2228 | related to iterators can be set by an attribute specification, but | |
2229 | cannot be queried. | |
2230 | * sem_ch13.adb (Analyze_Aspect_Specifications): handle | |
2231 | Constant_Indexing and Variable_Indexing. | |
2232 | (Check_Indexing_Functions): New procedure to perform legality checks. | |
2233 | Additional semantic checks at end of declarations. | |
2234 | ||
efe05dfc AC |
2235 | 2011-08-05 Sergey Rybin <rybin@adacore.com> |
2236 | ||
2237 | * tree_io.ads: Update ASIS_Version_Number because of the change of the | |
2238 | order of calling Tree_Write/Tree_Read routines made for aspects. | |
2239 | ||
2240 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2241 | ||
2242 | * a-fihema.adb (Finalize): Fix race condition. | |
2243 | ||
5f9cdefe AC |
2244 | 2011-08-05 Yannick Moy <moy@adacore.com> |
2245 | ||
2246 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
2247 | Need_Subprogram_Instance_Body): do not generate instance bodies in ALFA | |
2248 | mode. | |
2249 | ||
2250 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2251 | ||
2252 | * sem_type.adb (Specific_Type): in an instance, the type-specific | |
2253 | operand of an equality check that involves null may have a private | |
2254 | type. Use full view to determine legality of construct. | |
2255 | ||
822868aa AC |
2256 | 2011-08-05 Vincent Celier <celier@adacore.com> |
2257 | ||
2258 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
2259 | delete or close the file when the call to gnatmake was successful. | |
2260 | ||
2261 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2262 | ||
2263 | * gnat1drv.adb (Adjust_Global_Switches): in ALFA mode, set | |
2264 | Global_Discard_Names. | |
2265 | ||
2266 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2267 | ||
2268 | * sinfo.ads: comments on use of entity field for aspect specifications. | |
2269 | ||
2270 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2271 | ||
2272 | * sem_ch12.adb (Reset_Entity): If the entity field of the associated | |
2273 | node is not itself an entity but a selected component, it is a | |
2274 | rewritten parameterless call to an en enclosing synchronized operation, | |
2275 | and this expansion will be performed again in the instance, so there is | |
2276 | no global information to preserve. | |
2277 | ||
44a10091 AC |
2278 | 2011-08-05 Javier Miranda <miranda@adacore.com> |
2279 | ||
2280 | * exp_disp.adb (Set_All_DT_Position): Cleanup code and improve support | |
2281 | for renamings of predefined primitives. | |
2282 | (In_Predef_Prims_DT): New subprogram. | |
2283 | ||
2284 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2285 | ||
2286 | * sem_util.adb, sem_util.ads (Check_Implicit_Dereference): If a | |
2287 | possible interpretation of name is a reference type, add an | |
2288 | interpretation that is the designated type of the reference | |
2289 | discriminant of that type. | |
2290 | * sem_res.adb (resolve): If the interpretation imposed by context is an | |
2291 | implicit dereference, rewrite the node as the deference of the | |
2292 | reference discriminant. | |
2293 | * sem_ch3.adb (Analyze_Subtype_Declaration, Build_Derived_Record_Type, | |
2294 | Build_Discriminated_Subtype): Inherit Has_Implicit_Dereference from | |
2295 | parent type or base type. | |
2296 | * sem_ch4.adb (Process_Indexed_Component, | |
2297 | Process_Overloaded_Indexed_Component, Indicate_Name_And_Type, | |
2298 | Analyze_Overloaded_Selected_Component, Analyze_Selected_Component): | |
2299 | Check for implicit dereference. | |
2300 | (List_Operand_Interps): Indicate when an implicit dereference is | |
2301 | ambiguous. | |
2302 | * sem_ch8.adb (Find_Direct_Name): Check for implicit dereference. | |
2303 | ||
2304 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2305 | ||
2306 | * scos.ads: Update documentation of SCO table. Pragma statements can now | |
2307 | be marked as disabled (using 'p' instead of 'P' as the statement kind). | |
2308 | * par_sco.ads, par_sco.adb: Implement the above change. | |
2309 | (Process_Decisions_Defer): Generate a P decision for the first parameter | |
2310 | of a dyadic pragma Debug. | |
2311 | * sem_prag.adb (Analyze_Pragma, case Debug): Mark pragma as enabled if | |
2312 | necessary. | |
2313 | * put_scos.adb: Code simplification based on above change. | |
2314 | ||
bb3c784c AC |
2315 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2316 | ||
2317 | * sem_ch3.adb, gnatcmd.adb, switch-c.adb, exp_attr.adb, make.adb, | |
2318 | bindgen.adb, einfo.adb, sem_ch12.adb, sem_attr.adb, a-fihema.adb, | |
2319 | a-fihema.ads, sem_elab.adb, sem_elab.ads, aspects.adb, opt.ads, | |
2320 | prj-conf.adb, sem_ch13.adb, s-ficobl.ads: Minor reformatting | |
2321 | ||
2322 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2323 | ||
2324 | * a-stunau.ads, g-spipat.adb: Update comments. | |
2325 | ||
36f686f9 BD |
2326 | 2011-08-05 Bob Duff <duff@adacore.com> |
2327 | ||
2328 | * a-fihema.ads: Minor comment fix. | |
2329 | * a-fihema.adb (Allocate, Deallocate): Assert that the alignment is | |
2330 | correct. | |
2331 | (Attach, Detach): Remove some unnecessary code. | |
2332 | (Finalize): Remove Node_Ptr_To_Address, replace with a constant. | |
2333 | ||
7882673f BD |
2334 | 2011-08-05 Bob Duff <duff@adacore.com> |
2335 | ||
2336 | * a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap | |
2337 | allocation for Objects component. This simplifies the code somewhat. It | |
2338 | is also a little more efficient in the not-so-unusual case where there | |
2339 | are no controlled objects allocated. | |
2340 | Make Finalization_Started flag atomic. | |
2341 | (Finalize): Avoid unnecessary detachment of items from the list. | |
2342 | (pcol): Minor cleanup. | |
2343 | ||
d34cd274 AC |
2344 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2345 | ||
2346 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): reject a formal | |
2347 | package whose name is the same as that of the generic unit, or its | |
2348 | ultimate prefix. | |
2349 | ||
2350 | 2011-08-05 Bob Duff <duff@adacore.com> | |
2351 | ||
2352 | * a-fihema.adb, a-fihema.ads: Minor comment improvements. | |
2353 | * sem_ch3.adb, exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb: | |
2354 | Minor comment fixes. | |
2355 | ||
00332244 AC |
2356 | 2011-08-05 Arnaud Charlet <charlet@adacore.com> |
2357 | ||
2358 | * make.adb (Linking_Phase): No longer need to set source search path | |
2359 | before calling gnatlink in CodePeer mode. | |
2360 | * gnatlink.adb (Gnatlink): No longer pass -gnat83/95/05/12 switch to | |
2361 | gcc in CodePeer mode, since the binder generated file no longer has a | |
2362 | 'with Main'. | |
2363 | * switch.ads, switch.adb (Is_Language_Switch): Removed. | |
2364 | * switch-c.adb: Update comment. | |
2365 | ||
2366 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2367 | ||
2368 | * exp_strm.adb, bindgen.adb, s-ficobl.ads: Minor reformatting. | |
2369 | ||
2370 | 2011-08-05 Nicolas Roche <roche@adacore.com> | |
2371 | ||
2372 | * gnat_ugn.texi: Fix minor syntax error issue. | |
2373 | ||
2374 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2375 | ||
2376 | * gnatcmd.adb (Get_Closure): Do not crash when it is not possible to | |
2377 | delete or close the file when the call to gnatmake returns a non | |
2378 | successful return code. | |
2379 | ||
2380 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2381 | ||
2382 | * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate | |
2383 | check, indicate that the copy of the original node does not come from | |
2384 | source, to prevent an infinite recursion of the expansion. | |
2385 | ||
2386 | 2011-08-05 Johannes Kanig <kanig@adacore.com> | |
2387 | ||
2388 | * debug.adb: document switch -gnatd.G for gnat2why, which deactivates | |
2389 | VC generation for subprogram bodies. | |
2390 | ||
2391 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2392 | ||
2393 | * einfo.ads: Typo. | |
2394 | * sem_ch3.adb (Signed_Integer_Type_Declaration): in ALFA mode, define | |
2395 | the base type with the smallest allowed base type. | |
2396 | ||
2397 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
2398 | ||
2399 | * tree_gen.adb, tree_in.adb, aspects.adb: Fix tree read-write for | |
2400 | aspects. | |
2401 | ||
2402 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2403 | ||
2404 | * sem_ch12.ads: minor comment updates. | |
2405 | ||
2406 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2407 | ||
2408 | * sem_ch12.adb (Analyze_Formal_Package_Declaration): in an | |
2409 | instantiation and a formal package the compiler generates a package | |
2410 | renaming declaration so that the generic name within the declaration | |
2411 | is interpreted as a renaming of the instance. At the end of a formal | |
2412 | package declaration, this renaming must become invisible. | |
2413 | ||
0da80d7d AC |
2414 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> |
2415 | ||
2416 | * exp_ch7.adb (Is_Init_Call): Reimplemented to avoid character | |
2417 | comparison and rely on concrete entities instead. | |
2418 | ||
2419 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2420 | ||
2421 | * einfo.ads, einfo.adb (Has_Implicit_Dereference): new flag on types | |
2422 | and discriminants, to indicate that the type has an access discriminant | |
2423 | that supports implicit dereference. | |
2424 | * snames.ads-tmpl: Add names of aspects and attributes related to | |
2425 | Ada2012 iterators: constant_indexing, default_iterator, | |
2426 | iterator_element, implicit_dereference, variable_indexing. | |
2427 | * aspects.ads, aspects.adb: entries for iterator-related aspects. | |
2428 | * sem_ch13.adb (Analyze_aspect_specifications): dummy entries for | |
2429 | iterator-related aspects. | |
2430 | * sem_attr.adb, exp_attr.adb Dummy entries for iterator-related aspects. | |
2431 | ||
2432 | 2011-08-05 Sergey Rybin <rybin@adacore.com> | |
2433 | ||
2434 | * gnat_ugn.texi, vms_data.ads: Extend the subsection about coupling | |
2435 | metrics in gnatmetric to cover new kinds of coupling mentrics. | |
2436 | ||
2437 | 2011-08-05 Steve Baird <baird@adacore.com> | |
2438 | ||
2439 | * bindgen.adb (Gen_CodePeer_Wrapper): Call Ada_Main_Program instead | |
2c7f9cc0 | 2440 | of calling the user-defined main subprogram. |
0da80d7d AC |
2441 | (Gen_Main): Declare Ada_Main_Program and (if CodePeer_Mode |
2442 | is set) Call_Main_Subprogram ahead of, as opposed to | |
2443 | inside of, Main. | |
2444 | (Gen_Output_File_Ada): Remove CodePeer_Mode-conditional | |
2445 | generation of a "with" of the user-defined main subprogram. | |
2446 | Remove CodePeer_Mode-conditional call to Gen_CodePeer_Wrapper | |
2447 | (which is now called from Gen_Main instead). | |
2448 | ||
73242473 AC |
2449 | 2011-08-05 Emmanuel Briot <briot@adacore.com> |
2450 | ||
2451 | * projects.texi: Added reference to the Makefile package. | |
2452 | ||
2453 | 2011-08-05 Thomas Quinot <quinot@adacore.com> | |
2454 | ||
2455 | * exp_ch7.adb: Minor comment rewording. | |
2456 | ||
2457 | 2011-08-05 Ed Falis <falis@adacore.com> | |
2458 | ||
2459 | * env.c: Fix comment. | |
2460 | ||
2461 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
2462 | ||
2463 | * sem_elab.adb (Is_Finalization_Procedure): Reimplemented to avoid | |
2464 | character comparison and rely on concrete entities instead. | |
2465 | ||
97ed5872 AC |
2466 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> |
2467 | ||
2468 | * sem_ch3.adb: (Check_Private_Overriding): better error message, | |
2469 | suggested by AI95-0068. | |
2470 | ||
2471 | 2011-08-05 Hristian Kirtchev <kirtchev@adacore.com> | |
2472 | ||
2473 | * exp_ch7.adb (Find_Last_Init): Use Next_Suitable_Statement to retrieve | |
2474 | the two potential initialization calls. This accounts for any | |
2475 | access-before-elaboration checks which may precede the initialization | |
2476 | calls. | |
2477 | (Next_Suitable_Statement): New routine. Returns the next real statement | |
2478 | after the input node while skipping generated checks. | |
2479 | * sem_elab.adb (Check_A_Call): New formal parameter In_Init_Proc along | |
2480 | with comment on usage. | |
2481 | Do not generate Elaborate_All when the trigger is a finalization call | |
2482 | coming from a type init proc. | |
2483 | (Check_Elab_Call): Propagate the initialization procedure context to | |
2484 | subsequent calls to Check_A_Call. | |
2485 | (Check_Internal_Call_Continue): Propagate the initialization procedure | |
2486 | context to subsequent calls to Check_Elab_Call. | |
2487 | (Is_Finalization_Procedure): New routine. Returns True if the input | |
2488 | entity denotes a [Deep_]Finalize routine. | |
2489 | * sem_elab.ads (Check_Elab_Call): New formal parameter In_Init_Proc | |
2490 | along with comment on usage. | |
2491 | ||
2492 | 2011-08-05 Vadim Godunko <godunko@adacore.com> | |
2493 | ||
2494 | * s-atocou.ads: Add list of supported platforms. | |
2495 | ||
2496 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2497 | ||
2498 | * sem_prag.adb, restrict.adb: Correct style for or'ing Boolean variables | |
2499 | ||
2500 | * opt.ads (Disable_ALI_File): new Boolean flag | |
2501 | * lib-writ.adb (Write_ALI): when Disable_ALI_File is set, do nothing | |
2502 | ||
2503 | 2011-08-05 Ed Falis <falis@adacore.com> | |
2504 | ||
2505 | * env.c (__gnat_environ): Fix includes for RTPs and VTHREADS so that | |
2506 | environ is properly defined. | |
2507 | ||
2508 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2509 | ||
2510 | * make.adb (Compilation_Phase): Exit immediately when all objects have | |
2511 | been found up to date, to avoid multiple exit messages. | |
2512 | * prj-nmsc.adb (Add_Source): Allow duplicate source file names in the | |
2513 | same project for languages with no compiler. | |
2514 | * gnat_ugn.texi: Document compiler switch -gnateI and gnatmake switch | |
2515 | -eI. | |
9aff36e9 RD |
2516 | 2011-08-05 Robert Dewar <dewar@adacore.com> |
2517 | ||
2518 | * exp_ch7.ads, sem_type.adb, make.adb, sem_prag.adb, sem_util.adb, | |
2519 | sem_util.ads, sem_attr.adb, restrict.ads, sem_ch6.adb, prj-conf.adb, | |
2520 | prj-conf.ads, s-atocou.ads, s-atocou.adb, s-atocou-x86.adb, | |
2521 | s-atocou-builtin.adb: Minor reformatting. | |
2522 | ||
406935b6 AC |
2523 | 2011-08-05 Yannick Moy <moy@adacore.com> |
2524 | ||
2525 | * exp_ch7.adb (Establish_Transient_Scope): in formal verification mode, | |
2526 | if the node to wrap is a pragma check, this node and enclosed | |
2527 | expression are not expanded, so do not apply any transformations here. | |
2528 | * exp_prag.adb (Expand_Pragma_Check): document the need to avoid | |
2529 | introducing transient scopes. | |
2530 | ||
2531 | 2011-08-05 Jose Ruiz <ruiz@adacore.com> | |
2532 | ||
2533 | * adaint.c (__gnat_set_writable, __gnat_set_readable, | |
2534 | __gnat_set_executable, __gnat_set_non_writable, __gnat_set_non_readable, | |
2535 | __gnat_copy_attribs): On VxWorks 6.x and later, the required chmod | |
2536 | routine is available, so we use the default implementation of these | |
2537 | functions. | |
2538 | * s-os_lib.ads (Copy_File, Copy_Time_Stamps): Document that there is | |
2539 | support for copying attributes on VxWorks 6. | |
2540 | ||
2541 | 2011-08-05 Yannick Moy <moy@adacore.com> | |
2542 | ||
2543 | * debug.adb: Remove use of -gnatd.D. | |
2544 | * gnat1drv.adb (Adjust_Global_Switches): adjust switches for ALFA mode | |
2545 | * opt.ads: Simplify variables for ALFA mode, to keep one only | |
2546 | * restrict.adb, sem_prag.adb: Adapt treatment done for CodePeer mode | |
2547 | to ALFA mode. | |
2548 | ||
2549 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2550 | ||
2551 | * prj-conf.adb (Do_Autoconf): Look also for --RTS in | |
2552 | Builder'Default_Switches. | |
2553 | ||
2554 | 2011-08-05 Vincent Celier <celier@adacore.com> | |
2555 | ||
2556 | * makeusg.adb: Add lines for --create-map-file switches. | |
2557 | ||
2558 | 2011-08-05 Ed Schonberg <schonberg@adacore.com> | |
2559 | ||
2560 | * freeze.adb (Freeze_Entity): For a subprogram, if a type in the | |
2561 | profile is incomplete and the full view is available, replace it with | |
2562 | the full view. | |
2563 | * sem_ch6.adb (Possible_Freeze): if a type in the profile is | |
2564 | incomplete, freezing the subprogram is delayed until the full view is | |
2565 | frozen. | |
2566 | * sem_type.adb (Disambiguate): an ambiguity between a user-defined | |
2567 | fixed-point multiplication operator and the predefined operator is | |
2568 | resolved in favor of the user-defined one. | |
2569 | ||
96c891b3 RO |
2570 | 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2571 | ||
2572 | * init.c [__alpha__ && __osf__] (__gnat_error_handler): Use | |
2573 | CONST_CAST. | |
2574 | ||
276e7ed0 AC |
2575 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
2576 | ||
2577 | * sem_util.ads, sem_unit.adb (Type_Without_Stream_Operation): determine | |
2578 | whether a type lacks user-defined Read or Write operations, or has a | |
2579 | component that lacks them. | |
2580 | * sem_attr.adb (Check_Stream_Attribute): if restriction | |
2581 | No_Default_Stream_Attributes is active, verify that all subcomponent | |
2582 | types of the target have user-defined stream operations, and report | |
2583 | error otherwise. | |
2584 | * exp_ch3.adb (Stream_Operqtion_OK): use Type_Without_Stream_Operation. | |
2585 | * exp_strm.adb: Build_Elementary_Input_Call, | |
2586 | Build_Elementary_Write_Call): remove checks for restriction | |
2587 | No_Default_Stream_Attributes, now checked in semantics. | |
2588 | ||
2589 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2590 | ||
2591 | * prj-conf.ads, prj-conf.adb (Do_Autoconf): If there is no --RTS | |
2592 | switches on the command line, look for all valid --RTS switches in the | |
2593 | Builder switches and for each language use the first runtime name found | |
2594 | to invoke gprconfig. | |
2595 | (Get_Or_Create_Configuration_File): Warn if --RTS is specified on the | |
2596 | command line and there is no auto-configuration. | |
2597 | (Runtime_Name_Set_For): New function. | |
2598 | ||
2599 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2600 | ||
2601 | * exp_ch7.adb (Build_Object_Declarations): Do not generate the | |
2602 | elaborate initialization expression for variable Abort when processing | |
2603 | a package body or a declaration. | |
2604 | (Create_Finalizer): Propagate the package context when creating the | |
2605 | exception-related variables. | |
2606 | * exp_ch7.ads (Build_Object_Declarations): New formal parameter | |
2607 | For_Package along with usage comment. | |
2608 | ||
19172ae9 AC |
2609 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2610 | ||
2611 | * gcc-interface/Makefile.in: Clean up targets. | |
2612 | Enable new package for atomic counters and copy-on-write implementation | |
2613 | of unbounded strings on x86 platforms. | |
2614 | * gcc-interface/Make-lang.in: Update dependencies. | |
2615 | ||
0319cacc AC |
2616 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2617 | ||
2618 | * exp_ch7.adb: Minor reformatting. | |
2619 | ||
2620 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2621 | ||
2622 | * exp_strm.adb: Minor reformatting. | |
2623 | ||
2624 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2625 | ||
2626 | * s-atocou.adb: Replace by dummy version and use on targets where atomic | |
2627 | operations are not supported. | |
2628 | * s-atocou-builtin.adb: Renamed from s-atocou.adb. | |
2629 | * s-atocou-x86.adb: New file. | |
2630 | * Makefile.rtl: Add s-atocou.o file | |
2631 | ||
2632 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2633 | ||
2634 | * make.adb (Compile): Move setting of CodePeer_Mode to ... | |
2635 | (Compilation_Phase): ... here. | |
2636 | (Scan_Make_Arg): Now bind and link by default in CodePeer mode. | |
2637 | ||
2638 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2639 | ||
2640 | * Make-generated.in: Fix minor typo in comment. | |
2641 | ||
26e7e1a0 AC |
2642 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
2643 | ||
2644 | * gnatls.adb: Use Prj.Env.Initialize_Default_Project_Path to retrieve | |
2645 | the project path. | |
2646 | ||
2647 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2648 | ||
2649 | * a-coinho.adb: Minor reformatting. | |
2650 | ||
2651 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2652 | ||
2653 | * a-coinho.ads: Minor reformatting. | |
2654 | ||
2655 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2656 | ||
2657 | * s-atocou.ads, s-atocou.adb: New files. | |
2658 | * a-strunb-shared.ads, a-strunb-shared.adb, a-stwiun-shared.ads, | |
2659 | a-stwiun-shared.adb, a-stzunb-shared.ads, a-stzunb-shared.adb: Remove | |
2660 | direct use of GCC's atomic builtins and replace them by use of new | |
2661 | atomic counter package. | |
2662 | ||
2663 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2664 | ||
2665 | * exp_strm.adb: better error message for No_Default_Stream_Attributes. | |
2666 | ||
2667 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2668 | ||
2669 | * a-tags.adb (Unregister_Tag): Replace the complex address arithmetic | |
2670 | with a call to Get_External_Tag. | |
2671 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on | |
2672 | subprogram usage. Remove the guard against package declarations and | |
2673 | bodies since Build_Cleanup_Statements is no longer invoked in that | |
2674 | context. | |
2675 | (Build_Components): Initialize Tagged_Type_Stmts when the context | |
2676 | contains at least one library-level tagged type. | |
2677 | (Build_Finalizer): New local variables Has_Tagged_Types and | |
2678 | Tagged_Type_Stmts along with associated comments on usage. Update the | |
2679 | logic to include tagged type processing. | |
2680 | (Create_Finalizer): Insert all library-level tagged type unregistration | |
2681 | code before the jump block circuitry. | |
2682 | (Expand_N_Package_Body): Remove the call to Build_Cleanup_Statements. | |
2683 | (Expand_N_Package_Declaration): Remove the call to | |
2684 | Build_Cleanup_Statements. | |
2685 | (Process_Tagged_Type_Declaration): New routine. Generate a call to | |
2686 | unregister the external tag of a tagged type. | |
2687 | (Processing_Actions): Reimplemented to handle tagged types. | |
2688 | (Process_Declarations): Detect the declaration of a library-level | |
2689 | tagged type and carry out the appropriate actions. | |
2690 | (Unregister_Tagged_Types): Removed. The machinery has been directly | |
2691 | merged with Build_Finalizer. | |
2692 | ||
7483c888 AC |
2693 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2694 | ||
2695 | * bindgen.ads, gnatlink.adb, sem_ch4.adb, gnatbind.adb, put_alfa.adb, | |
2696 | gnatls.adb, exp_ch3.adb: Minor reformatting. | |
2697 | ||
2698 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2699 | ||
2700 | * sem_attr.adb (Analyze_Attribute): Replace the message | |
2701 | "invisible attribute of}" of the spark restriction violation in | |
2702 | attribute reference by the simple message "invisible attribute of type". | |
2703 | Indeed, the node value Error_Msg_Node_1 used is in conflit with the | |
2704 | two insertion characters: '&' and '}'. | |
2705 | ||
2706 | 2011-08-04 Vadim Godunko <godunko@adacore.com> | |
2707 | ||
2708 | * impunit.adb (Non_Imp_File_Names_12): Add "a-coinho". | |
2709 | * a-coinho.ads, a-coinho.adb: New file. | |
2710 | * Makefile.rtl: Add Ada.Containers.Indefinite_Holders. | |
2711 | ||
5207696c AC |
2712 | 2011-08-04 Nicolas Roche <roche@adacore.com> |
2713 | ||
2714 | * alfa_test.adb: Not all ali files are containing alfa information even | |
2715 | if compiled with -gnatd.F. So suppress warning about missing ALFA | |
2716 | information. | |
2717 | ||
2718 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2719 | ||
2720 | * lib-xref-alfa.adb (Add_ALFA_Scope): use non-empty unique name for | |
2721 | scope. | |
2722 | * put_alfa.adb: Check that scope name is not empty. | |
2723 | ||
2724 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
2725 | ||
2726 | * exp_ch3.adb (Stream_Operation_Ok): new predicate | |
2727 | Needs_Elementary_Stream_Operation, to determine whether user-defined | |
2728 | Read and Write attributes are available for the elementary components | |
2729 | of the given type. If only the predefined attributes are available, | |
2730 | then when restriction No_Default_Stream_Attributes is active the | |
2731 | predefined stream attributes for the composite type cannot be created. | |
2732 | ||
2733 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
2734 | ||
2735 | * bindgen.adb: Fix obsolete comments and names from Ada/C days. | |
2736 | Put routines in alpha order | |
2737 | ||
2bd2d858 JR |
2738 | 2011-08-04 Jose Ruiz <ruiz@adacore.com> |
2739 | ||
2740 | * gcc-interface/Makefile.in: Remove xenomai specific versions of system. | |
2741 | * gcc-interface/Make-lang.in: Update dependencies. | |
2742 | ||
8fae6016 AC |
2743 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
2744 | ||
2745 | * gcc-interface/lang.opt: Add AdaWhy language, simimlar to Ada. | |
2746 | * gcc-interface/lang-specs.h: Add handling of AdaWhy specs (calls | |
2747 | gnat1why). | |
2748 | ||
a54d0eb4 AC |
2749 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2750 | ||
2751 | * sem_ch3.adb, make.adb, a-cohata.ads, sem_prag.adb, makeutl.adb, | |
2752 | lib-xref-alfa.adb: Minor reformatting. | |
2753 | ||
2754 | 2011-08-04 Marc Sango <sango@adacore.com> | |
2755 | ||
2756 | * sem_ch12.adb (Analyze_Generic_Package_Declaration, | |
2757 | Analyze_Generic_Subprogram_Declaration, Analyze_Package_Instantiation, | |
2758 | Analyze_Subprogram_Instantiation): Check absence of generic in SPARK | |
2759 | mode. | |
2760 | ||
2761 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2762 | ||
2763 | * bindgen.adb (Gen_Adainit_C): Remove. | |
2764 | (Gen_Adafinal_C): Ditto. | |
2765 | (Gen_Elab_Externals_C): Ditto. | |
2766 | (Gen_Elab_Calls_C): Ditto. | |
2767 | (Gen_Elab_Order_C): Ditto. | |
2768 | (Gen_Elab_Defs_C): Ditto. | |
2769 | (Gen_Finalize_Library_C): Ditto. | |
2770 | (Gen_Finalize_Library_Defs_C): Ditto. | |
2771 | (Gen_Main_C): Ditto. | |
2772 | (Gen_Output_File_C): Ditto. | |
2773 | (Gen_Restrictions_C): Ditto. | |
2774 | (Gen_Versions_C): Ditto. | |
2775 | (Write_Info_Ada_C): Ditto. | |
2776 | (Gen_Object_Files_Options): Call WBI instead of Write_Info_Ada_C | |
2777 | (Gen_Output_File): Do not force Ada_Bind_File anymore. | |
2778 | Always call Gen_Output_File_Ada. | |
2779 | * gnatlink.adb (Begin_Info): Now a constant. | |
2780 | (End_Info): Ditto. | |
2781 | (Ada_Bind_File): Remove | |
2782 | (Process_Args): Do not handle -A/-C. Remove not Ada_Bind_File cases. | |
2783 | * switch-b.adb (Scan_Binder_Switches): Do not handle -C. | |
2784 | * gnatbind.adb (Gnatbind): Remove not Ada_Bind_File cases. | |
2785 | * opt.ads (Ada_Bind_File): Remove. | |
2786 | ||
2787 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2788 | ||
2789 | * projects.texi: Document target-specific directory in default project | |
2790 | path for gnatmake. | |
2791 | ||
2792 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
2793 | ||
2794 | * gnatls.adb, prj-env.adb: Add $prefix/share/gpr to default project | |
2795 | path in all cases . | |
2796 | ||
24558db8 AC |
2797 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2798 | ||
2799 | * sem_ch3.adb, sem_ch5.adb, sem_util.adb, sem_ch4.adb, sem_ch8.adb, | |
2800 | opt.ads, lib-xref.ads: Code clean up. | |
2801 | ||
2802 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2803 | ||
2804 | * gnat_rm.texi: Update description of Test_Case | |
2805 | * gnat_ugn.texi: Typo. | |
2806 | ||
2807 | 2011-08-04 Ed Falis <falis@adacore.com> | |
2808 | ||
2809 | * adaint.c (__gnat_get_number_of_cpus): fix typo in last checkin. | |
2810 | ||
2811 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2812 | ||
2813 | * exp_ch4.adb (Suitable_Element): Skip field _parent on .NET/JVM when | |
2814 | it is of type Root_Controlled. This action eliminates fields Prev and | |
2815 | Next from type equality. | |
2816 | ||
2817 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2818 | ||
2819 | * lib-xref-alfa.adb: Correct typo. | |
2820 | ||
2821 | 2011-08-04 Matthew Heaney <heaney@adacore.com> | |
2822 | ||
2823 | * a-cohata.ads (Hash_Table_Type): default-initialize the Nodes | |
2824 | component. | |
2825 | ||
1f9939b5 AC |
2826 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2827 | ||
2828 | * sem_prag.adb (Check_Arg_Is_String_Literal): remove useless procedure | |
2829 | (Analyze_Pragma): allow static string expression for name of Test_Case, | |
2830 | instead of simply string literals. | |
2831 | * sem_util.adb (Get_Name_From_Test_Case_Pragma): adapt to static string | |
2832 | expressions. | |
2833 | ||
2834 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
2835 | ||
2836 | * makeutl.adb (Complete_Mains.Find_File_Add_Extension): Use canonical | |
2837 | case suffixes to find truncated main sources. | |
2838 | ||
2839 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2840 | ||
2841 | * impunit.adb (Non_Imp_File_Names_95): Add g-tastus. | |
2842 | s-stusta.adb (Compute_All_Task): Use Put_Line instead of Put. | |
2843 | (Compute_Current_Task): Ditto. | |
2844 | ||
2845 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2846 | ||
2847 | * gnat_ugn.texi: Mention GNAT.Task_Stack_Usage. | |
2848 | ||
2849 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2850 | ||
2851 | * lib-xref-alfa.adb (Is_Global_Constant): new function that detects | |
2852 | library-level constant. | |
2853 | (Add_ALFA_Xrefs): ignore global constants in ALFA xref. | |
2854 | * sem_res.adb (Resolve_Actuals): do not add cross-reference to Formal | |
2855 | used as selector of parameter association, in ALFA mode. | |
2856 | ||
15d8a51d AC |
2857 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
2858 | ||
2859 | * exp_ch5.adb, exp_ch7.adb, exp_util.adb, bindgen.adb, sem_prag.adb, | |
2860 | s-tassta.adb, exp_ch4.adb, exp_disp.adb, s-stausa.adb: Minor | |
2861 | reformatting. | |
2862 | ||
2863 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2864 | ||
2865 | * make.adb (Linking_Phase): Set source search path before calling | |
2866 | gnatlink in CodePeer mode. | |
2867 | ||
f46faa08 AC |
2868 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
2869 | ||
2870 | * exp_ch7.adb (Expand_N_Package_Body, Expand_N_Package_Declaration): | |
2871 | Remove code which takes care of building TSDs. | |
2872 | * rtsfind.ads (RE_Check_Interface_Conversion): New entity. | |
2873 | * exp_ch4.adb (Apply_Accessibility_Check): Add support for generating | |
2874 | the accessibility check in VM targets. | |
2875 | * exp_disp.adb (Make_VM_TSD): Spec moved to exp_disp.ads | |
2876 | (Building_Static_DT): Now returns false for VM targets. | |
2877 | (Build_VM_TSDs): Removed. | |
2878 | (Expand_Interface_Conversion): Generate missing runtime check for | |
2879 | conversions to interface types whose target type is unknown at compile | |
2880 | time. | |
2881 | (Make_VM_TSD): Add missing code to disable the generation of calls to | |
2882 | Check_TSD if the tagged type is not defined at library level, or not | |
2883 | has a representation clause specifying its external tag, or -gnatdQ is | |
2884 | active. | |
2885 | * exp_disp.ads (Build_VM_TSDs): Removed. | |
2886 | (Make_VM_TSDs): Spec relocated from exp_disp.adb | |
2887 | * sem_disp.adb (Check_Dispatching_Operation): No code required to | |
2888 | register primitives in the dispatch tables in VM targets. | |
2889 | * exp_ch3.adb (Expand_N_Object_Declaration): Remove wrong expansion of | |
2890 | initialization of class-wide interface objects in VM targets. | |
2891 | (Expand_Freeze_Record_Type): For VM targets call Make_VM_TSD (instead | |
2892 | of Make_DT). | |
2893 | ||
2894 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
2895 | ||
2896 | * gnatlink.adb (Gnatlink): Correct missleading error message displayed | |
2897 | when dotnet-ld cannot be found. | |
2898 | ||
2899 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
2900 | ||
2901 | * bindgen.adb: Simplify significantly generation of binder body file in | |
2902 | CodePeer mode. | |
2903 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Prevent assert failure | |
2904 | when compiling binder generated file in CodePeer mode (xxx'Elab_Spec | |
2905 | not expanded). | |
2906 | ||
2ba7e31e AC |
2907 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2908 | ||
2909 | * sem_prag.adb, sem.ads: Code cleanup. | |
2910 | ||
2911 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
2912 | ||
2913 | * s-tassta.adb (Task_Wrapper): Rewrite the dynamic stack usage part. | |
2914 | * s-stausa.adb, s-stausa.ads: Major rewrite. Now provides accurate | |
2915 | results if possible. | |
2916 | * s-stusta.adb (Print): Adjust after changes in s-stausa. | |
2917 | * gnat_ugn.texi: Update dynamic stack usage section. | |
2918 | ||
2919 | 2011-08-04 Steve Baird <baird@adacore.com> | |
2920 | ||
2921 | * bindgen.adb (Gen_CodePeer_Wrapper): new procedure. | |
2922 | Generate (if CodePeer_Mode is set) a "wrapper" subprogram which | |
2923 | contains only a call to the user-defined main subprogram. | |
2924 | (Gen_Main_Ada) - If CodePeer_Mode is set, then | |
2925 | call the "wrapper" subprogram instead of directly | |
2926 | calling the user-defined main subprogram. | |
2927 | ||
2928 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
2929 | ||
2930 | * exp_ch5.adb (Expand_N_Case_Statement): Check the statements of all | |
2931 | alternatives of a case statement for controlled objects. Rename local | |
2932 | variable A to Dead_Alt. | |
2933 | (Expand_N_If_Statement): Check the then and else statements of an if | |
2934 | statement for controlled objects. Check the then statements of all | |
2935 | elsif parts of an if statement for controlled objects. | |
2936 | (Expand_N_Loop_Statement): Check the statements of a loop for controlled | |
2937 | objects. | |
2938 | * exp_ch7.adb (Process_Transient_Objects): Rewrite the condition which | |
2939 | detects a loop associated with the expansion of an array object. | |
2940 | Augment the processing of the loop statements to account for a possible | |
2941 | wrap done by Process_Statements_For_Controlled_Objects. | |
2942 | * exp_ch9.adb (Expand_N_Asynchronous_Select): Check the triggering | |
2943 | statements and abortable part of an asynchronous select for controlled | |
2944 | objects. | |
2945 | (Expand_N_Conditional_Entry_Call): Check the else statements of a | |
2946 | conditional entry call for controlled objects. | |
2947 | (Expand_N_Selective_Accept): Check the alternatives of a selective | |
2948 | accept for controlled objects. | |
2949 | (Expand_N_Timed_Entry_Call): Check the entry call and delay | |
2950 | alternatives of a timed entry call for controlled objects. | |
2951 | * exp_ch11.adb (Expand_Exception_Handlers): Check the statements of an | |
2952 | exception handler for controlled objects. | |
2953 | * exp_util.adb (Requires_Cleanup_Actions (List_Id, Boolean, Boolean)): | |
2954 | Add formal parameter Nested_Constructs along with its associated | |
2955 | comment. | |
2956 | (Requires_Cleanup_Actions (Node_Id)): Update all calls to | |
2957 | Requires_Cleanup_Actions. | |
2958 | (Process_Statements_For_Controlled_Objects): New routine. | |
2959 | * exp_util.ads (Process_Statements_For_Controlled_Objects): New | |
2960 | routine. Inspect a node which contains a non-handled sequence of | |
2961 | statements for controlled objects. If such an object is found, the | |
2962 | statements are wrapped in a block. | |
2963 | ||
1bf773bb AC |
2964 | 2011-08-04 Bob Duff <duff@adacore.com> |
2965 | ||
2966 | * sem_type.adb (Covers): If T2 is a subtype of a class-wide type, we | |
2967 | need to compare with Class_Wide_Type (T2), in order to get at the | |
2968 | original class-wide type node. | |
2969 | * sem_type.ads (Covers): Improve the comment. | |
2970 | * einfo.ads (Class_Wide_Type): Improve the comment. | |
2971 | * exp_intr.adb (Expand_Unc_Deallocation): Remove unnecessary setting of | |
2972 | the type of the Deref. | |
2973 | ||
2974 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
2975 | ||
2976 | * gnat_rm.texi: Document that Test_Case pragma can only appear on | |
2977 | separate declarations. | |
2978 | * sem_prag.adb (procedure Check_Identifier_Is_One_Of): new procedure to | |
2979 | check identifier of pragma argument. | |
2980 | (Chain_TC): check that no other test case associated to the same entity | |
2981 | share the same name. | |
2982 | (Check_Test_Case): disallow test case inside subprogram body | |
2983 | (Analyze_Pragma): correct call to check identifier and not argument | |
2984 | * sem_util.adb, sem_util.ads (Get_Name_From_Test_Case_Pragma): new | |
2985 | function gets name from test case pragma. | |
2986 | ||
dac3bede YM |
2987 | 2011-08-04 Yannick Moy <moy@adacore.com> |
2988 | ||
2989 | * gnat_rm.texi: Document new pragma and aspect. | |
2990 | * aspects.adb, aspects.ads (Aspect_Id): new value Aspect_Test_Case | |
2991 | (No_Duplicates_Allowed): new constant array defining whether duplicates | |
2992 | aspects of each kind can appear on the same declaration. | |
2993 | * einfo.adb, einfo.ads (Spec_PPC_List): replace field with Contract | |
2994 | field, which points to a node holding the previous Spec_PPC_List. | |
2995 | * exp_ch9.adb, sem_ch6.adb, sem_prag.adb: Reach to Spec_PPC_List | |
2996 | through the indirection with Contract. | |
2997 | * exp_util.adb (Insert_Actions): raise Program_Error on N_Contract node | |
2998 | * par-prag.adb (Prag): do nothing on Test_Case pragma | |
2999 | * sem.adb (Analyze): abort on N_Contract, on which Analyze should not | |
3000 | be called directly. | |
3001 | * sem_attr.adb (Analyze_Attribute): allow attribute 'Result in | |
3002 | component Ensures of Test_Case. | |
3003 | * sem_ch12.adb, sem_ch6.adb, sem_ch9.adb | |
3004 | (Analyze_Generic_Subprogram_Declaration, | |
3005 | Analyze_Subprogram_Instantiation, | |
3006 | Analyze_Abstract_Subprogram_Declaration, | |
3007 | Analyze_Subprogram_Body_Helper, | |
3008 | Analyze_Subprogram_Specification, Analyze_Entry_Declaration): | |
3009 | insert contract in subprogram node at point of definition | |
3010 | * sem_ch13.adb | |
3011 | (Aspect_Loop): do not raise error on duplicate Test_Case aspect | |
3012 | (Analyze_Aspect_Specifications): analyze Test_Case aspect and create | |
3013 | corresponding pragma | |
3014 | (Check_Aspect_At_Freeze_Point): raise Program_Error on Test_Case aspect | |
3015 | * sem_ch3.adb (Analyze_Declarations): insert analysis of test-cases, | |
3016 | similar to the analysis of pre/post | |
3017 | (Derive_Subprogram): insert contract in subprogram node at point of | |
3018 | derivation. | |
3019 | * sem_prag.adb, sem_prag.ads | |
3020 | (Check_Arg_Is_String_Literal, Check_Identifier): | |
3021 | new checking procedures to be called in treatment of pragmas | |
3022 | (Check_Test_Case): new procedure to check that a Test_Case aspect or | |
3023 | pragma is well-formed. This does not check currently that 'Result is | |
3024 | used only in the Ensures component of a Test_Case. | |
3025 | (Analyze_Pragma): add case for Test_Case | |
3026 | (Analyze_TC_In_Decl_Part): pre-analyze the Requires and Ensures | |
3027 | components of a Test_Case. | |
3028 | (Preanalyze_TC_Args): new procedure to preanalyze the boolean | |
3029 | expressions in the 3rd (and 4th if present) arguments of a Test_Case | |
3030 | pragma, treated as spec expressions. | |
3031 | (Sig_Flags): add value -1 for Test_Case. | |
3032 | * sem_util.adb, sem_util.ads (Get_Ensures_From_Test_Case_Pragma, | |
3033 | Get_Requires_From_Test_Case_Pragma): getters for both expression | |
3034 | components of a Test_Case. | |
3035 | * sinfo.adb, sinfo.ads (N_Contract): new kind of node used as | |
3036 | indirection between an entry or [generic] subprogram entity and its | |
3037 | pre/post + test-cases. | |
3038 | (Spec_PPC_List, Spec_TC_List, Set_Spec_PPC_List, Set_Spec_TC_List): | |
3039 | get/set for fields of an N_Contract node. | |
3040 | * snames.ads-tmpl (Name_Test_Case, Name_Ensures, Name_Mode, | |
3041 | Name_Normal, Name_Requires, Name_Robustness, Pragma_Test_Case): new | |
3042 | names and pragma for Test_Case. | |
3043 | * sprint.adb (Sprint_Node): raise Program_Error on N_Contract node | |
3044 | ||
6a2e5d0f AC |
3045 | 2011-08-04 Vincent Celier <celier@adacore.com> |
3046 | ||
3047 | * gnat_ugn.texi: Improve documentation of gnatmake switch | |
3048 | --source-info-file=. | |
3049 | ||
3050 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3051 | ||
3052 | * exp_ch7.adb (Make_Final_Call): Add local variable Atyp (assertion | |
3053 | type). Initialize Atyp to the appropriate type which is later checked | |
3054 | for completion. Rewrite the assertion associated with private type | |
3055 | completion. | |
3056 | ||
3057 | 2011-08-04 Ed Falis <falis@adacore.com> | |
3058 | ||
3059 | * adaint.c: Add call to vxCpuConfiguredGet for VxWorks SMP to | |
3060 | initialize the number of CPUs. | |
3061 | ||
3062 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3063 | ||
3064 | * sem_type.adb (Disambiguate): New subsidiary routine | |
3065 | In_Same_Declaration_List, to implement AI05-0020: a user-defined | |
3066 | equality on an anonymous access type whose designated type is private | |
3067 | does not lead to an ambiguity with the universal access equality | |
3068 | operator in the body or child units of the defining package. The same | |
3069 | is true for a multiplication operator on a private type completed with | |
3070 | a fixed-point-type. | |
3071 | ||
3072 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3073 | ||
3074 | * opt.ads (Init_Or_Norm_Scalars_Config): Removed. | |
3075 | (Normalize_Scalars_Config): Removed. | |
3076 | * opt.adb | |
3077 | (Register_Opt_Config_Switches): Remove registering config values of | |
3078 | Init_Or_Norm_Scalars_Config and Normalize_Scalars_Config. | |
3079 | (Restore_Opt_Config_Switches): Remove code which restores the values of | |
3080 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
3081 | Init_Or_Norm_Scalars. | |
3082 | (Save_Opt_Config_Switches): Remove code which saves values of | |
3083 | Init_Or_Norm_Scalars and Normalize_Scalars. | |
3084 | (Set_Opt_Config_Switches): Remove code which restores config values of | |
3085 | Init_Or_Norm_Scalars and Normalize_Scalars. Recalculate value of | |
3086 | Init_Or_Norm_Scalars. | |
3087 | ||
3088 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3089 | ||
3090 | * frontend.adb (Frontend): remove previous patch to avoid full | |
3091 | qualification in ALFA mode. | |
3092 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): use unique name for variables. | |
3093 | * sem_util.adb, sem_util.ads (Unique_Name): new function to define a | |
3094 | unique name for an entity, which could be used to identify the entity | |
3095 | across compilation units. | |
3096 | ||
3097 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3098 | ||
3099 | * prj-env.adb | |
3100 | (Initialize_Default_Project_Path): Add target specific directory | |
3101 | ($prefix/$target/lib/gnat) in front of project path in all cases | |
3102 | (making gnatmake's behaviour consistent with gprbuild). | |
3103 | * gnatcmd.adb, make.adb, prj-makr.adb, clean.adb: | |
3104 | Pass target name from Sdefault to project subsystem. | |
3105 | * gnatls.adb: Show new target specific default project directory. | |
3106 | ||
3107 | 2011-08-04 Johannes Kanig <kanig@adacore.com> | |
3108 | ||
3109 | * cstand.adb: Add Information to Identifier in Standard | |
3110 | (Identifer_For): Set Entity to the corresponding entity | |
3111 | ||
483361a6 AC |
3112 | 2011-08-04 Sergey Rybin <rybin@adacore.com> |
3113 | ||
3114 | * gnat_ugn.texi: Update doc on gnatcheck. | |
3115 | ||
3116 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3117 | ||
3118 | * lib-xref-alfa.adb (Add_ALFA_Xrefs): correct definition of ranges of | |
3119 | xrefs in a scope. | |
3120 | ||
3121 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3122 | ||
3123 | * exp_prag.adb (Expand_Pragma_Check): in ALFA mode, return without | |
3124 | performing expansion. | |
3125 | * sem_ch6.adb (Analyze_Subprogram_Body_Helper, | |
3126 | Analyze_Generic_Subprogram_Body): protect call to Process_PCCs so that | |
3127 | it is not called in ALFA mode. | |
3128 | ||
ef5569c6 AC |
3129 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3130 | ||
3131 | * make.adb, osint.adb, osint.ads (Reset_Command_Line_Files): not used | |
3132 | after all, so removed. | |
3133 | ||
3134 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
3135 | ||
3136 | * vms_data.ads: Add missing VMS qualifiers. | |
3137 | ||
1ab4a286 EB |
3138 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3139 | ||
3140 | * make.adb, makeutl.adb, osint.adb, osint.ads (Check_Mains): rebuild | |
3141 | the list of files on the command line after processing it through | |
3142 | Complete_Mains. | |
3143 | ||
7ae0d98c AC |
3144 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3145 | ||
3146 | * exp_ch7.adb (Build_Raise_Statement): Remove the specialized | |
3147 | processing for .NET/JVM. These targets can now benefit from | |
3148 | Raise_From_Controlled_Operation and they share the same processing with | |
3149 | standard targets. | |
3150 | (Establish_Transient_Scope): Remove the restriction for .NET/JVM. | |
3151 | These targets need transient scopes in order to properly finalize short | |
3152 | lived controlled objects. | |
3153 | (Make_Handler_For_Ctrl_Operation): Remove the specialized processing for | |
3154 | NET/JVM. These targets can now benefit from | |
3155 | Raise_From_Controlled_Operation and they share the same processing with | |
3156 | standard targets. | |
3157 | ||
3158 | 2011-08-04 Geert Bosch <bosch@adacore.com> | |
3159 | ||
3160 | * tracebak.c (STOP_FRAME): Stop at any next pointer outside the stack | |
3161 | ||
3162 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3163 | ||
3164 | * exp_aggr.adb (Has_Visible_Private_Ancestor): subsidiary routine to | |
3165 | Expand_Record_Aggregate, to determine whether aggregate must be | |
3166 | expanded into assignments. This is the case if the ancestor part is | |
3167 | private, regarless of the setting of the flag Has_Private_Ancestor. | |
3168 | ||
3169 | 2011-08-04 Ed Falis <falis@adacore.com> | |
3170 | ||
3171 | * vxaddr2line.adb: Add support for e500v2 and for Linux hosts | |
3172 | ||
3173 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3174 | ||
3175 | * sinfo.ads: Fix comment. | |
3176 | ||
3177 | 2011-08-04 Steve Baird <baird@adacore.com> | |
3178 | ||
3179 | * bindgen.adb (Get_Ada_Main_Name): If CodePeer_Mode is set, then | |
3180 | choose a package name in much the same way as is | |
3181 | done for JGNAT when VM_Target /= No_VM, except that | |
3182 | a slightly more distinctive prefix string is used. | |
3183 | ||
3184 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3185 | ||
3186 | * makeutl.adb (Complete_Mains): no longer accept unit names on the | |
3187 | gnatmake command line. | |
3188 | This behavior was never documented (and was supported only because of | |
3189 | an early bug in the code). This case might lead to ambiguous cases | |
3190 | (between unit names and truncated base names without suffixes). | |
3191 | ||
87729e5a AC |
3192 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3193 | ||
3194 | * a-tags.ads, a-tags.adb (Unregister_Tag): New routine. | |
3195 | Remove the external tag of a tagged type from the internal hash table. | |
3196 | * exp_ch7.adb (Build_Cleanup_Statements): Update the comment on the | |
3197 | expanded usage of the routine. Strenghten the check for Is_Master. Add | |
3198 | processing for tagged types. | |
3199 | (Build_Finalizer): Create all the necessary lists used in finalizer | |
3200 | creation when the processed context is a package that may contain | |
3201 | tagged types. | |
3202 | (Expand_Cleanup_Actions): Rename the call to Has_Controlled_Objects to | |
3203 | Requires_Cleanup_Actions. | |
3204 | (Expand_N_Package_Body): Package bodies may need clean up code | |
3205 | depending on whether they contain tagged types. | |
3206 | (Expand_N_Package_Declaration): Package declarations may need clean up | |
3207 | code depending on whether they contain tagged types. | |
3208 | (Unregister_Tagged_Types): New routine. Search through a list of | |
3209 | declarations or statements, looking for non-abstract Ada tagged types. | |
3210 | For each such type, generate code to unregister the external tag. | |
3211 | * exp_util.adb (Has_Controlled_Objects (Node_Id)): Renamed to | |
3212 | Requires_Cleanup_Actions. | |
3213 | (Requires_Cleanup_Actions (List_Id, Boolean)): New routine. Search | |
3214 | through a list of declarations or statements looking for non-abstract | |
3215 | Ada tagged types or controlled objects. | |
3216 | * exp_util.ads (Has_Controlled_Objects (Node_Id)): Renamed to | |
3217 | Requires_Cleanup_Actions. | |
3218 | (Has_Controlled_Objects (List_Id, Boolean)): Removed. | |
3219 | * rtsfind.ads: Add entry RE_Unregister_Tag to tables RE_Id and | |
3220 | RE_Unit_Table. | |
3221 | ||
3222 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3223 | ||
3224 | * prj-env.adb (For_All_Source_Dirs.For_Project): Check if project Prj | |
3225 | has Ada sources, not project Project, because if the root project | |
3226 | Project has no sources of its own, all projects will be deemed without | |
3227 | sources. | |
3228 | ||
3229 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3230 | ||
3231 | * bindgen.adb (Gen_Adainit_Ada): Move the generation of the declaration | |
3232 | of the No_Param_Proc acc-to-subp type used for initialization of | |
3233 | __gnat_finalize_library_objects so that it's declared at library level | |
3234 | rather than nested inside of the adainit routine. | |
3235 | ||
3236 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3237 | ||
3238 | * exp_disp.adb (Make_DT): Generate code to check the external tag ONLY | |
3239 | if the tagged type has a representation clause which specifies its | |
3240 | external tag. | |
3241 | ||
3242 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3243 | ||
3244 | * einfo.ads, einfo.adb (Has_Private_Ancestor): now a flag on types. | |
3245 | Remove previous procedure with that name. | |
3246 | * sem_ch3.adb (Build_Derived_Record_Type): set Has_Private_Ancestor | |
3247 | when appropriate. | |
3248 | * sem_aggr.adb (Resolve_Extension_Aggregate): if the ancestor part is a | |
3249 | subtype mark, the ancestor cannot have unknown discriminants. | |
3250 | (Resolve_Record_Aggregate): if the type has invisible components | |
3251 | because of a private ancestor, the aggregate is illegal. | |
3252 | ||
3253 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3254 | ||
3255 | * switch-m.adb (Normalize_Compiler_Switches): Recognize and take into | |
3256 | account switches -gnat2005, -gnat12 and -gnat2012. | |
3257 | ||
3258 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3259 | ||
3260 | * s-tasdeb.ads: Minor comment fix. | |
3261 | ||
3262 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
3263 | ||
3264 | * gnatlink.adb (Gnatlink): Pass -gnat83/95/05/12 switch to gcc in | |
3265 | CodePeer mode. | |
3266 | * switch.ads, switch.adb (Is_Language_Switch): New function. | |
3267 | ||
3268 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3269 | ||
3270 | * switch-c.adb: Minor comment addition. | |
3271 | ||
3272 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3273 | ||
3274 | * vms_conv.adb (Process_Argument): Fail graciously when qualifier | |
3275 | ending with '=' is followed by a space (missing file name). | |
3276 | ||
3277 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
3278 | ||
3279 | * g-regist.ads: Fix size of HKEY on x86_64-windows. | |
3280 | ||
3281 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3282 | ||
3283 | * sem_ch12.adb (Analyze_Associations): New routine | |
3284 | Check_Overloaded_Formal_Subprogram to reject a formal package when | |
3285 | there is a named association or a box initialisation for an overloaded | |
3286 | formal subprogram of the corresponding generic. | |
3287 | ||
3288 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3289 | ||
3290 | * alfa.ads (ALFA_Xref_Record): add component for type of entity | |
3291 | * get_alfa.adb, put_alfa.adb: Read and write new component of | |
3292 | cross-reference. | |
3293 | * lib-xref-alfa.adb (Collect_ALFA): generate new component. | |
3294 | ||
88f47280 AC |
3295 | 2011-08-04 Pascal Obry <obry@adacore.com> |
3296 | ||
3297 | * urealp.adb: Minor reformatting. | |
3298 | ||
3299 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3300 | ||
3301 | * exp_ch7.adb (build_finalizer.process_declarations.processing_actions): | |
3302 | Handle the case when Cleanup_Protected_Object returns Empty. | |
3303 | ||
3304 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3305 | ||
3306 | * frontend.adb (Frontend): only qualify names in non-ALFA mode | |
3307 | ||
3308 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3309 | ||
3310 | * sem_ch4.adb (Try_Class_Wide_Operation): if the context is a procedure | |
3311 | call, ignore functions. | |
3312 | ||
05c53a69 GB |
3313 | 2011-08-04 Geert Bosch <bosch@adacore.com> |
3314 | ||
3315 | * urealp.adb (Equivalent_Decimal_Exponent): Avoid the use of floating | |
3316 | point. | |
3317 | ||
23cc1ace EB |
3318 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3319 | ||
3320 | * makeutl.adb (Compute_Builder_Switches): no longer accept a unit name | |
3321 | as an index for Builder'Switches. This conforms to the documentation. | |
3322 | * make.adb (Insert_Project_Sources): avoid duplicate code | |
3323 | ||
cef14201 AC |
3324 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3325 | ||
3326 | * makeutl.adb (Complete_Mains): if the user has passed a relative file | |
3327 | name on the command line (for instance "../dummy"), never assume it can | |
3328 | be a unit name. | |
3329 | ||
3330 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3331 | ||
3332 | * bindgen.adb: Remove code the reference or create the | |
3333 | Break_Start/__gnat_break_start procedure. | |
3334 | * s-stalib.adb (Break_Start): Removed. | |
3335 | ||
e2fee30d EB |
3336 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3337 | ||
3338 | * make.adb, makeutl.adb, makeutl.ads (Compute_Builder_Switches): now | |
3339 | shared with gprbuild. | |
3340 | ||
2d395256 AC |
3341 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3342 | ||
3343 | * par-ch4.adb (P_Primary): preferentially issue an error message about | |
3344 | a missing parenthesis arount a conditional or case expression in Ada | |
3345 | 2012 mode, if we detect that the alignment is not correct for a | |
3346 | statement. | |
3347 | ||
3348 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3349 | ||
3350 | * exp_ch7.adb (Process_Declarations): Do not consider the result of a | |
3351 | tag-to-class-wide conversion as needing finalization actions. | |
3352 | * exp_util.adb (Has_Controlled_Objects): Do not consider the result of | |
3353 | a tag-to-class-wide conversion as needing finalization actions. | |
3354 | (Is_Finalizable_Transient): The result of a tag-to-class-wide | |
3355 | conversion does not need finalization actions. | |
3356 | (Is_Tag_To_CW_Conversion): New routine. | |
3357 | * exp_util.ads (Is_Tag_To_CW_Conversion): New routine. Determines | |
3358 | whether an object is the result of a tag-to-class-wide conversion. | |
3359 | ||
3360 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3361 | ||
3362 | * sem_ch13.adb (Analyze_Aspect_Specifications): correct order in which | |
3363 | the left-hand-side and right-hand-side of a conjunct are inserted when | |
3364 | translating a pre- or postcondition | |
3365 | * sem_ch6.adb: Correct typo in comment | |
3366 | ||
3367 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3368 | ||
3369 | * gnat_rm.texi: Ravenscar does not prohibit dependence on | |
3370 | Unchecked_Conversion and Unchecked_Deallocation. | |
3371 | ||
3372 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3373 | ||
3374 | * make.adb: Minor reformatting. | |
3375 | ||
767ab2fd EB |
3376 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3377 | ||
3378 | * prj.adb, prj.ads, makeutl.adb (Complete_Mains): search for the | |
3379 | sources in the project and its imported projects, but not in the whole | |
3380 | tree. | |
3381 | ||
8fb3f5df AC |
3382 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3383 | ||
3384 | * make.adb: Remove debug trace. | |
3385 | ||
3386 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3387 | ||
3388 | * makeutl.adb (Do_Complete): Get the absolute path name of a relative | |
3389 | path in canonical form, to be able to compare path names on platforms | |
3390 | such as Windows or Darwin. | |
3391 | ||
3392 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3393 | ||
3394 | * par_sco.adb (Traverse_Declarations_Or_Statements.Set_Statement_Entry): | |
3395 | For a pragma (statement with C1 = 'P'), record the sloc of the pragma. | |
3396 | * scos.ads: Update documentation accordingly. | |
3397 | * put_scos.adb (Output_SCO_Line): Omit statement SCOs for disabled | |
3398 | pragmas. | |
3399 | ||
9515740f AC |
3400 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3401 | ||
3402 | * sem_attr.adb (Bad_Attribute_For_Predicate): flag illegal use of | |
3403 | attribute only if prefix type is scalar. | |
3404 | ||
3405 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3406 | ||
3407 | * make.adb, makeutl.adb, prj-env.adb (Check_Mains): put back support | |
3408 | in gnatmake for specifying mains on the command line that do not belong | |
3409 | to the main project. These mains must currently all belong to the same | |
3410 | project, though. | |
3411 | (Ultimate_Extension_Of): removed, since duplicated | |
3412 | Ultimate_Extending_Project. | |
3413 | ||
92966893 AC |
3414 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3415 | ||
3416 | * make.adb (Do_Codepeer_Globalize_Step): Removed. Use CodePeer_Mode | |
3417 | instead. | |
3418 | (CodePeer_Mode_String): New. | |
3419 | (Linking_Phase, Binding_Phase): Call gnatlink with -P switch in | |
3420 | CodePeer mode. | |
3421 | (Scan_Make_Arg): Do not disable binding/linking phase in CodePeer mode. | |
3422 | * bindgen.adb (Gen_Elab_Calls_Ada): Ignore subprograms in CodePeer | |
3423 | mode, since no useful elaboration subprogram is needed by CodePeer. | |
3424 | * gnatlink.adb (Gnatlink): Add support for -P switch (CodePeer mode). | |
3425 | In this mode, compile binder file with -gnatC and do stop after this | |
3426 | step. | |
3427 | ||
3428 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3429 | ||
3430 | * exp_ch7.adb: Minor comment fix. | |
3431 | ||
5969611f RD |
3432 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3433 | ||
3434 | * exp_ch7.adb, make.adb, sem_ch10.adb, bindgen.adb, sem_res.adb, | |
3435 | exp_ch4.adb, makeutl.adb: Minor reformatting. | |
3436 | ||
6367dd30 AC |
3437 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3438 | ||
3439 | * make.adb, makeutl.adb, makeutl.ads (Make): major refactoring. | |
3440 | Create several new subprograms to move code out of Make. This makes the | |
3441 | code more readable, removes code duplication, and is a preparation work | |
3442 | for adding support for aggregate projects. | |
3443 | ||
3444 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3445 | ||
3446 | * s-po32gl.ads, s-po32gl.adb: New files. | |
3447 | * exp_ch7.ads (Get_Global_Pool_For_Access_Type): New function. | |
3448 | * exp_ch7.adb (Get_Global_Pool_For_Access_Type): New function. | |
3449 | (Build_Finalization_Collection): Use it. | |
3450 | * exp_ch4.adb (Complete_Controlled_Allocation): Ditto. | |
3451 | * rtsfind.ads: System_Pool_32_Global, Re_Global_Pool_32_Object: New | |
3452 | literals. | |
3453 | * gcc-interface/Makefile.in: Use s-po32gl.o on VMS. | |
3454 | * gcc-interface/Make-lang.in: Update dependencies. | |
3455 | ||
cd8bfe35 EB |
3456 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3457 | ||
3458 | * makeutl.adb (Complete_Mains): add support for specs with no suffix on | |
3459 | the command line. | |
3460 | ||
7db29ea7 EB |
3461 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3462 | ||
3463 | * make.adb, makeutl.adb (Complete_Mains): if a main specified on the | |
3464 | command line is not a file name, also check whether it could be a unit | |
3465 | name. | |
3466 | ||
d9b056ea AC |
3467 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3468 | ||
3469 | * bindgen.adb (Gen_Finalize_Library_Ada): Factor out code to generate | |
3470 | the header of the finalization routine. | |
3471 | If the unit has no finalizer but is a body whose spec has one, then | |
3472 | generate the decrement of the elaboration entity only. | |
3473 | If the unit has a finalizer and is a spec, then do not generate the | |
3474 | decrement of the elaboration entity. | |
3475 | (Gen_Finalize_Library_C): Likewise. | |
3476 | ||
3477 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3478 | ||
3479 | * exp_ch7.adb (Alignment_Of): New subsidiary routine. | |
3480 | (Bounds_Size_Expression): Removed. | |
3481 | (Double_Alignment_Of): New subsidiary routine. | |
3482 | (Make_Finalize_Address_Stmts): New local variable Index_Typ. Account | |
3483 | for a hole in the dope vector of unconstrained arrays due to different | |
3484 | index and element alignments. | |
3485 | ||
3486 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3487 | ||
3488 | * sem_res.adb (Resolve_Allocator): diagnose task allocator that will | |
3489 | raise program_error because body has not been seen yet. | |
3490 | ||
3491 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3492 | ||
3493 | * sem_ch10.adb (Analyze_With_Clause): Protect against child unit with | |
3494 | an unresolved name. | |
3495 | ||
3496 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3497 | ||
3498 | * makeutl.adb (Do_Complete): Check absolute paths in canonical forms | |
3499 | ||
3500 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3501 | ||
3502 | * alfa.adb, alfa.ads (Unique_Defining_Entity): move function from here | |
3503 | * sem_util.adb, sem_util.ads (Unique_Defining_Entity): ...to here | |
3504 | ||
3505 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3506 | ||
3507 | * sem_ch12.adb (Analyze_Package_Instantiation): Do not omit body for | |
3508 | instantiation in RCI. | |
3509 | ||
3510 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3511 | ||
3512 | * make.adb: Share more code with gprbuild | |
3513 | ||
f5fc5b9d AC |
3514 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3515 | ||
3516 | * projects.texi: Added documentation for the IDE'Gnat project file | |
3517 | attribute. | |
3518 | ||
3519 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
3520 | ||
3521 | * gnat_rm.texi: Minor editing. | |
3522 | ||
3523 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3524 | ||
3525 | * bindgen.adb (Gen_Adafinal_Ada): Do not differentiate the main case | |
3526 | and the library case for VM targets. | |
3527 | (Gen_Adainit_Ada): Likewise. | |
3528 | ||
3529 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3530 | ||
3531 | * g-altive.ads: Minor comment updates. | |
3532 | * prj-nmsc.adb: Minor reformatting. | |
3533 | ||
3534 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3535 | ||
3536 | * opt.ads | |
3537 | (Normalize_Scalars_Config): Value of the configuration switch set by | |
3538 | pragma Normalize_Scalars when it appears in the gnat.adc file. | |
3539 | (Normalize_Scalars): New field for record Config_Switches_Type. Used | |
3540 | to save and restore settings of this pragma. | |
3541 | * opt.adb | |
3542 | (Register_Opt_Config_Switches, Save_Opt_Config_Switches, | |
3543 | Restore_Opt_Config_Switches): Add missing support for Normalize_Scalars. | |
3544 | ||
3545 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3546 | ||
3547 | * gnat_ugn.texi: Document gnatlink options -M and -M=mapfile | |
3548 | ||
0c4683cf AC |
3549 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3550 | ||
3551 | * makeutl.adb: Minor reformatting. | |
3552 | ||
3553 | 2011-08-04 Olivier Hainque <hainque@adacore.com> | |
3554 | ||
3555 | * g-altive.ads: Update comments to reflect that only the soft | |
3556 | binding is available today. | |
3557 | ||
2598ee6d RD |
3558 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3559 | ||
3560 | * bindgen.adb, einfo.adb, sem_ch12.adb, s-tasren.adb, sem_res.adb, | |
3561 | makeutl.adb, prj-nmsc.adb, opt.ads, prj-env.adb: Minor reformatting | |
3562 | * gcc-interface/Make-lang.in: Update dependencies. | |
3563 | ||
c2db4b32 AC |
3564 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3565 | ||
3566 | * prj-env.adb: Remove local debug traces. | |
3567 | ||
3568 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3569 | ||
3570 | * checks.adb (Apply_Float_Conversion_Check): correct a typo where Lo_OK | |
3571 | was used instead of Hi_OK, which could cause a read of an uninitialized | |
3572 | value later on. Detected while working on the new warning. | |
3573 | * exp_ch9.adb (Expand_N_Entry_Declaration): remove useless assignment | |
3574 | to local variable. | |
3575 | * sem_ch5.adb (Analyze_Assignment): set the last assignment component | |
3576 | in more cases, in order to detect more unreferenced values. | |
3577 | * sem_util.adb, sem_util.ads (Get_Enclosing_Object): return enclosing | |
3578 | object for expression, if any. | |
3579 | ||
3580 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
3581 | ||
3582 | * exp_intr.adb (Expand_Binary_Operator_Call): Look at the RM size of | |
3583 | the operand types instead of the Esize. | |
3584 | ||
3585 | 2011-08-04 Steve Baird <baird@adacore.com> | |
3586 | ||
3587 | * switch-b.adb (Scan_Binder_Switches): Add -P binder switch, used to | |
3588 | enable CodePeer_Mode. | |
3589 | * bindusg.adb (Display): Add help message describing -P binder switch. | |
3590 | * gnat_ugn.texi: Document -P binder switch. | |
3591 | * bindgen.adb (Gen_Main_Ada): If CodePeer_Mode is set, then call the | |
3592 | user-defined main program directly. | |
3593 | (Gen_Output_File_Ada): If CodePeer_Mode is set, generate a with of the | |
3594 | user-defined main program in the context clause of the package body. | |
3595 | ||
ad05f2e9 AC |
3596 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3597 | ||
3598 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): remove function, partial | |
3599 | duplicate of Defining_Entity | |
3600 | (Get_Unique_Entity_For_Decl): rename function into | |
3601 | Unique_Defining_Entity | |
3602 | * einfo.adb, einfo.ads (Is_In_ALFA, Body_Is_In_ALFA): remove flags | |
3603 | (Formal_Proof_On): remove synthesized flag | |
3604 | * cstand.adb, sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
3605 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_res.adb, sem_util.adb, | |
3606 | sem_util.ads, stand.ads: Remove treatment associated to entities in ALFA | |
3607 | * sem_prag.adb (Analyze_Pragma): remove special treatment for pragma | |
3608 | Annotate (Formal_Proof) | |
3609 | ||
3610 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3611 | ||
3612 | * prj-env.adb (Create_Config_Pragmas_File): fix handling of multi-unit | |
3613 | source files with non-standard naming schemes, in imported projects | |
3614 | ||
756ef2a0 AC |
3615 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3616 | ||
3617 | * makeutl.adb (Complete_Mains): when a multi-unit source file is | |
3618 | specified on the gprbuild command line, we need to compile all units | |
3619 | within that file, not just the first one we find | |
3620 | Fix error message for mains that are not found. | |
3621 | ||
3622 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3623 | ||
3624 | * sem_ch6.adb: Update comment. | |
3625 | * sem_ch12.adb: Minor reformatting. | |
3626 | ||
3627 | 2011-08-04 Bob Duff <duff@adacore.com> | |
3628 | ||
3629 | * s-tasren.adb (Task_Do_Or_Queue): Previous code was reading | |
3630 | Acceptor.Terminate_Alternative without locking Acceptor, which causes a | |
3631 | race condition whose symptom is to fail to lock Parent. That, in turn, | |
3632 | causes Parent.Awake_Count to be accessed without locking Parent, which | |
3633 | causes another race condition whose symptom is that Parent.Awake_Count | |
3634 | can be off by 1 (either too high or too low). The solution is to lock | |
3635 | Parent unconditionally, and then lock Acceptor, before reading | |
3636 | Acceptor.Terminate_Alternative. | |
3637 | ||
4fdebd93 AC |
3638 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> |
3639 | ||
3640 | * debug.adb: Update comment. | |
3641 | ||
3642 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3643 | ||
3644 | * par_sco.adb, exp_util.adb, make.adb, a-tags.adb, sem_prag.adb, | |
3645 | sem_util.adb, sem_attr.adb, exp_ch4.adb, g-comlin.adb, g-comlin.ads, | |
3646 | exp_ch6.adb: Minor reformatting. | |
3647 | ||
3648 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3649 | ||
3650 | * gnat_ugn.texi: Add sentence about the case of compile-time-detected | |
3651 | checks for -gnateE. | |
3652 | ||
3653 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3654 | ||
3655 | * gnat_rm.texi: update Ravenscar desription to reflect Ada2012 RM. | |
3656 | ||
3657 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3658 | ||
3659 | * sinfo.ads: Minor reformatting. | |
3660 | ||
3661 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3662 | ||
3663 | * makeutl.adb, makeutl.ads, prj-nmsc.adb (Complete_Mains): report error | |
3664 | even if there is no location. | |
3665 | ||
6aaa0587 ES |
3666 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3667 | ||
3668 | * sem_res.adb, sem_ch4.adb: move check for restriction | |
3669 | No_Task_Hierarchy to resolve_allocator. | |
3670 | ||
35a1c212 AC |
3671 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3672 | ||
3673 | * sinfo.adb, sinfo.ads, sem_prag.adb, sem_ch12.adb (Pragma_Enabled): | |
3674 | This flag of N_Pragma nodes is not used, remove it as well as all of | |
3675 | the associated circuitry. | |
3676 | ||
3677 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3678 | ||
3679 | * exp_disp.adb (Make_DT): Switch -gnatdQ disables the generation of the | |
3680 | runtime check on duplicated externa tags | |
3681 | * debug.adb Document switch -gnatdQ. | |
3682 | ||
3683 | 2011-08-04 Gary Dismukes <dismukes@adacore.com> | |
3684 | ||
3685 | * a-fihema.ads: Minor typo fix. | |
3686 | ||
3687 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3688 | ||
3689 | * sem_ch10.adb: Minor comment update. | |
3690 | ||
3691 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3692 | ||
3693 | * einfo.adb: Update the node field usage to reflect the renaming of | |
3694 | Return_Flag to Return_ Flag_Or_Transient_Decl. | |
3695 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. | |
3696 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. | |
3697 | (Write_Field15_Name): Change Return_Flag to | |
3698 | Return_Flag_Or_Transient_Decl. | |
3699 | * einfo.ads: Rename node field Return_Flag to | |
3700 | Return_Flag_Or_Transient_Decl. Update the associated comment and all | |
3701 | occurrences in entities. | |
3702 | (Return_Flag): Renamed to Return_Flag_Or_Transient_Decl. Update | |
3703 | associated Inline pragma. | |
3704 | (Set_Return_Flag): Renamed to Set_Return_Flag_Or_Transient_Decl. Update | |
3705 | associated Inline pragma. | |
3706 | * exp_ch4.ads, exp_ch4.adb (Expand_N_Expression_With_Actions): New | |
3707 | routine. | |
3708 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Update the calls to | |
3709 | Return_Flag and Set_Return_Flag. | |
3710 | * exp_ch7.adb (Process_Declarations): Add code to recognize hook | |
3711 | objects generated for controlled transients declared inside an | |
3712 | Exception_With_Actions. Update the calls to Return_Flag. | |
3713 | (Process_Object_Declaration): Add code to add a null guard for hook | |
3714 | objects generated for controlled transients declared inside an | |
3715 | Exception_With_Actions. Update related comment. | |
3716 | * exp_util.adb (Has_Controlled_Objects): Add code to recognize hook | |
3717 | objects generated for controlled transients declared inside an | |
3718 | Exception_With_Actions. Update the calls to Return_Flag. | |
3719 | * expander.adb (Expand): Add new case for N_Expression_With_Actions. | |
3720 | ||
3721 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3722 | ||
3723 | * sem_util.adb:(Wrong_Type): Improve error message on a one-element | |
3724 | positional aggregate. | |
3725 | ||
3726 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3727 | ||
3728 | * par_sco.adb (Process_Decisions.Output_Header): Check and record pragma | |
3729 | SLOC only for pragmas. | |
3730 | ||
3731 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3732 | ||
3733 | * projects.texi: Minor typo fix. | |
3734 | ||
3735 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3736 | ||
3737 | * prj-nmsc.adb (Check_File): Minor change to traces, to help debugging | |
3738 | on case-sensitive file systems. | |
3739 | ||
c2873f74 TQ |
3740 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
3741 | ||
3742 | * put_scos.adb (Put_SCOs): Do not emit decision SCO for an X decision | |
3743 | nested in a disabled pragma. | |
3744 | * scos.ads, scos.adb, par_sco.ads, par_sco.adb: Record sloc of | |
3745 | enclosing pragma, if any, for X decisions. | |
3746 | ||
3747 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3748 | ||
3749 | * sem_prag.adb: Minor reformatting. | |
3750 | ||
46414266 VC |
3751 | 2011-08-04 Vincent Celier <celier@adacore.com> |
3752 | ||
3753 | * a-tags.adb (Check_TSD): Avoid concatenation of strings, as it is not | |
3754 | allowed in no run time mode. | |
3755 | ||
3756 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3757 | ||
3758 | * make.adb (Check): When -gnatc is used, check for the source file | |
3759 | inside the ALI file with a canonical case file name. | |
3760 | ||
afab164f EB |
3761 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
3762 | ||
3763 | * g-comlin.adb, g-comlin.ads (Add_Switch): Put back support for | |
3764 | overriding the separator. | |
3765 | ||
fe0ec02f AC |
3766 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3767 | ||
3768 | * sem_aggr.adb, par_sco.adb, sem_type.adb, exp_util.adb, exp_ch9.adb, | |
3769 | prj-nmsc.adb, sem_ch13.adb, exp_strm.adb: Minor reformatting. | |
3770 | ||
3771 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
3772 | ||
3773 | * gnat_rm.texi: Minor documentation fix for pragma Annotate. | |
3774 | ||
3775 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3776 | ||
3777 | * sem_attr.adb (Analyze_Attribute): add check during pre-analysis that | |
3778 | 'Result only appears in postcondition of function. | |
3779 | ||
3780 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3781 | ||
3782 | * a-tags.adb (Check_TSD): When raising PROGRAM_ERROR for a duplicated | |
3783 | external tag, include the value of the external tag in the exception | |
3784 | message. | |
3785 | ||
0180fd26 AC |
3786 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3787 | ||
3788 | * sem_attr.adb (Result): modify error message for misplaced 'Result | |
3789 | ||
3790 | 2011-08-04 Sergey Rybin <rybin@adacore.com> | |
3791 | ||
3792 | * gnat_rm.texi (pragma Annotate): Fix syntax description to make it | |
3793 | clear that the second argument must be an identifier. | |
3794 | ||
3795 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3796 | ||
3797 | * exp_ch9.adb (Build_Barrier_Function): When compiling with | |
3798 | -fpreserve-control-flow, insert an IF statement on the barrier | |
3799 | condition to ensure that a conditional branch instruction is generated. | |
3800 | ||
3801 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3802 | ||
3803 | * prj-part.adb, prj.adb, prj.ads, prj-tree.ads | |
3804 | (Processing_Flags.Ignore_Missing_With): new flag. | |
3805 | ||
3806 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
3807 | ||
3808 | * prj-nmsc.adb (Find_Sources, Path_Name_Of): Fix handling of | |
3809 | Source_List_File on case-insensitive systems where the file is actually | |
3810 | on a case-sensitive file system (NFS,...). | |
3811 | ||
3812 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3813 | ||
3814 | * sem_ch6.adb (Analyze_Function_Return): In a rare case where a | |
3815 | function return contains a controlled [extension] aggregate and the | |
3816 | return statement is not part of a handled sequence of statements, wrap | |
3817 | the return in a block. This ensures that all controlled temporaries | |
3818 | generated during aggregate resolution will be picked up by the | |
3819 | finalization machinery. | |
3820 | ||
3821 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3822 | ||
3823 | * sem_aggr.adb (Resolve_Aggregate): If aggregate has box-initialized | |
3824 | components, freeze type before resolution, to ensure that default | |
3825 | initializations are present for all components. | |
3826 | * sem_res.adb (Resolve_Actuals): the designated object of an | |
3827 | accces-to-constant type is a legal actual in a call to an | |
3828 | initialization procedure. | |
3829 | ||
3830 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
3831 | ||
3832 | * exp_util.adb (Extract_Renamed_Object): Add N_Type_Conversion and | |
3833 | N_Unchecked_Type_Conversion to the possible containers of a renamed | |
3834 | transient variable. | |
3835 | ||
78efd712 AC |
3836 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3837 | ||
3838 | * par-ch13.adb (Aspect_Specifications_Present): recognize | |
3839 | "with Identifier'Class =>" as an aspect, so that a meaningful warning | |
3840 | is issued in Strict mode. | |
3841 | * par.adb: Fix typos in comments. | |
3842 | ||
3843 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3844 | ||
3845 | * sem_attr.adb (Result): modify error message to take into account Post | |
3846 | aspect when compiling Ada 2012 (or newer) code. | |
3847 | ||
3848 | 2011-08-04 Nicolas Roche <roche@adacore.com> | |
3849 | ||
3850 | * env.c (__gnat_clearenv): Avoid use of dynamic size array in order to | |
2c7f9cc0 | 3851 | remove need for GCC exceptions. |
78efd712 AC |
3852 | |
3853 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
3854 | ||
3855 | * makeutl.adb (Do_Complete): Call Debug_Output with the name of the | |
3856 | project, not the source file name. | |
3857 | * prj.adb (Find_Sources.Look_For_Sources): If the source has been | |
3858 | excluded, continue looking. This excluded source will only be returned | |
3859 | if there is no other source with the same base name that is not locally | |
3860 | removed. | |
3861 | ||
3862 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3863 | ||
3864 | * sem_res.adb (Resolve_Intrinsic_Operator): if the result type is | |
3865 | private and one of the operands is a real literal, use a qualified | |
3866 | expression rather than a conversion which is not meaningful to the | |
3867 | back-end. | |
3868 | ||
0170a691 AC |
3869 | 2011-08-04 Yannick Moy <moy@adacore.com> |
3870 | ||
3871 | * sem_ch13.adb (Aspect_Loop): when an aspect X and its classwise | |
3872 | corresponding aspect X'Class are allowed, proceed with analysis of the | |
3873 | aspect instead of skipping it. | |
3874 | ||
3875 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3876 | ||
3877 | * s-flocon.adb, s-flocon.ads: Add a body for s-flocon.ads | |
3878 | This will allow to have an Ada implementation for the subprogram. | |
3879 | ||
deb4f5ba ES |
3880 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
3881 | ||
3882 | * sem_ch3.adb (Analyze_Full_Type_Declaration): If the declaration is a | |
3883 | completion and aspects are present, apply them to the entity for the | |
3884 | type which is currently the partial view, but which is the one that | |
3885 | will be frozen. | |
3886 | * sem_ch13.adb (Analyze_Aspect_Specifications): if the predicate | |
3887 | applies to a partial view, indicate that the full view has predicates | |
3888 | and delayed aspects. | |
3889 | (Replace_Type_Reference): Handle properly predicates that apply to the | |
3890 | full view of a private completion. | |
3891 | ||
fc893455 AC |
3892 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3893 | ||
3894 | * layout.adb (Layout_Type): For composite types, do not set Esize. | |
3895 | * freeze.adb (Set_Small_Size): Remove test on alignment and do not | |
3896 | set Esize. | |
3897 | (Size_Known): Look at the RM size of components instead of the Esize. | |
3898 | (Freeze_Record_Type): Look at the RM size instead of the Esize to | |
3899 | issue warning and activate Implicit_Packing. | |
3900 | (Freeze_Entity): Likewise. Do not issue a warning for alias/atomic | |
3901 | if the Esize is not known. | |
3902 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause) <Size>: Set Esize | |
3903 | for elementary types only. | |
3904 | (Analyze_Record_Representation_Clause): Look at the RM size instead | |
3905 | of the Esize to issue errors. | |
3906 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set Esize if it | |
3907 | is not known. | |
3908 | <E_Record_Type>: Look at the RM size instead of the Esize. Remove | |
2c7f9cc0 | 3909 | obsolete block. |
fc893455 AC |
3910 | Look at the RM size instead of the Esize for types if the latter is |
3911 | not known. | |
3912 | (gnat_to_gnu_field): Use Known_Esize instead of Known_Static_Esize. | |
3913 | ||
3914 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3915 | ||
3916 | * sem_type.adb: proper handling of equality not involving anonymous | |
3917 | access types. | |
3918 | ||
b37d5bc6 AC |
3919 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
3920 | ||
3921 | * exp_ch7.adb (Create_Finalizer): Remove local variables Spec_Nod and | |
3922 | Vis_Decls. When creating a library-level finalizer for a package spec, | |
3923 | both the declaration and body of the finalizer are inserted either in | |
3924 | the visible or private declarations of the package spec. | |
3925 | ||
3926 | 2011-08-04 Javier Miranda <miranda@adacore.com> | |
3927 | ||
3928 | * sem_ch3.adb (Derive_Subprograms): Complete assertion to request the | |
3929 | use of the full-view of a type when invoking Is_Ancestor. | |
3930 | * sem_type.adb (Is_Ancestor): For consistency, when the traversal of | |
3931 | the full-view of private parents is requested, then use also the | |
3932 | full-view of the parent of the first derivation. | |
3933 | ||
7ab4d95a AC |
3934 | 2011-08-04 Tristan Gingold <gingold@adacore.com> |
3935 | ||
3936 | * s-taprop-vxworks.adb (Enter_Task): Use System.Float_Control.Reset | |
3937 | instead of the locally imported procedure. | |
3938 | * s-taprop-mingw.adb (Enter_Task): Ditto. | |
3939 | * s-valrea.adb (Scan_Real): Ditto. | |
3940 | * s-imgrea.adb (Set_Image_Real): Ditto. | |
3941 | * s-flocon.ads: Make the package pure. | |
3942 | ||
3943 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3944 | ||
3945 | * sinfo.ads, sinfo.adb (Debug_Statement, Set_Debug_Statement): Remove. | |
3946 | * tbuild.ads, tbuild.adb (Make_Pragma): Adjust accordingly. | |
3947 | * sinfo-cn.ads, sinfo-cn.adb (Change_Name_To_Procedure_Call_Statement): | |
3948 | New subprogram, moved here from... | |
3949 | * par.adb, par-ch5.adb (P_Statement_Name): ... here. | |
3950 | * par-prag.adb (Par.Prag, case Pragma_Debug): Do not perform any | |
3951 | rewriting of the last argument into a procedure call statement here... | |
3952 | * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): ...do it there | |
3953 | instead. | |
3954 | ||
3955 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3956 | ||
3957 | * par_sco.adb: Minor reformatting. | |
3958 | ||
51c400f5 AC |
3959 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
3960 | ||
3961 | * erroutc.adb: Minor reformatting. | |
3962 | ||
3963 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
3964 | ||
3965 | * par_sco.adb: Comment update. | |
3966 | ||
3967 | 2011-08-04 Tristan Gingold <gingold@adacore.com> | |
3968 | ||
3969 | * s-flocon.ads: New file. | |
3970 | * g-flocon.ads: Now a renaming of s-flocon. | |
3971 | * Makefile.rtl: Add s-flocon.o | |
3972 | ||
6a49f110 AC |
3973 | 2011-08-04 Javier Miranda <miranda@adacore.com> |
3974 | ||
3975 | * exp_strm.adb (Build_Array_Input_Function): if the array type is | |
3976 | constrained, do not attempt to build a subtype of it. | |
3977 | ||
3978 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3979 | ||
3980 | * errout.ads Change comments: remove 'R'M as an example where quotes | |
3981 | are needed; add ALFA as another case where quotes are not needed | |
3982 | * erroutc.adb (Set_Msg_Insertion_Reserved_Word): add ALFA as another | |
3983 | case where quotes are not needed. | |
3984 | * sem_ch11.adb, sem_ch13.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, | |
3985 | sem_ch5.adb, sem_ch6.adb, sem_ch9.adb, sem_prag.adb, sem_res.adb: | |
3986 | Remove all occurrences of 'A'L'F'A | |
3987 | ||
3988 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> | |
3989 | ||
3990 | * sem_ch13.adb: check legality of invariant pragma. | |
3991 | ||
a4640a39 AC |
3992 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
3993 | ||
3994 | * bindgen.adb: Add comments. | |
3995 | ||
3996 | 2011-08-04 Yannick Moy <moy@adacore.com> | |
3997 | ||
3998 | * einfo.adb, einfo.ads: Free Flag254 and make Formal_Proof_On a | |
3999 | synthesized flag. | |
4000 | * sem_prag.adb (Analyze_Pragma): record the pragma Annotate | |
4001 | (Formal_Proof, On/Off) in the Rep_Item list of the current subprogram. | |
4002 | ||
4003 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4004 | ||
4005 | * exp_ch7.adb, exp_ch6.adb, sem_ch3.adb, layout.adb, sem_ch5.adb, | |
4006 | osint-c.ads, sem_util.ads, gnat1drv.adb, targparm.ads, sem_ch6.adb, | |
4007 | sem_ch13.adb, s-pooloc.adb: Minor reformatting. | |
4008 | ||
39ade2f9 AC |
4009 | 2011-08-04 Thomas Quinot <quinot@adacore.com> |
4010 | ||
4011 | * s-pooloc.ads, s-pooglo.ads: Minor reformatting | |
4012 | ||
4013 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4014 | ||
4015 | PR ada/47880 | |
4016 | * s-pooloc.adb (Deallocate): Fix the case of deallocating the only | |
4017 | allocated object. | |
4018 | ||
4019 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4020 | ||
4021 | * einfo.ads, exp_ch4.adb: Minor reformatting. | |
4022 | ||
4023 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
4024 | ||
4025 | * back_end.ads (Gen_Or_Update_Object_File): Add more comments. | |
4026 | ||
7efc3f2d AC |
4027 | 2011-08-04 Ed Schonberg <schonberg@adacore.com> |
4028 | ||
4029 | * exp_ch4.adb (Expand_Composite_Equality): code cleanup: use component | |
4030 | type in all cases to compute list of primitive operations, because full | |
4031 | view may be an itype that is not attached to the list of declarations. | |
4032 | ||
4033 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
4034 | ||
4035 | * bindgen.adb (Gen_Adafinal_Ada): Generate an early return if the | |
4036 | library has already been finalized. | |
4037 | (Gen_Adafinal_C): Likewise. | |
4038 | (Gen_Adainit_Ada): Generate an early return if the library has | |
4039 | already been elaborated. | |
4040 | (Gen_Adainit_C): Likewise. | |
4041 | (Gen_Output_File_Ada): Generate an elaboration flag. | |
4042 | (Gen_Output_File_C): Likewise. | |
4043 | ||
f65df609 HK |
4044 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> |
4045 | ||
4046 | * exp_ch4.adb (Expand_Allocator_Expression): Disable the generation of | |
4047 | Set_Finalize_Address_Ptr for CodePeer because Finalize_Address was not | |
4048 | built in the first place. | |
4049 | (Expand_N_Allocator): Disable the generation of Set_Finalize_Address_Ptr | |
4050 | for CodePeer because Finalize_Address was not built to begin with. | |
4051 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Ditto. | |
4052 | ||
a0fb8fe8 AC |
4053 | 2011-08-04 Pascal Obry <obry@adacore.com> |
4054 | ||
4055 | * adaint.c (__gnat_tmp_name): Use current process id to create temp | |
4056 | filenames, this ensures unicity of filenames across processes. | |
4057 | ||
4058 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4059 | ||
4060 | * bindgen.adb (Gen_Finalize_Library_Ada): Rename generated routine | |
4061 | Raise_Controlled to Raise_From_Controlled_Operation. Update the | |
4062 | signature of Raise_From_Controlled_Operation by adding flag From_Abort. | |
4063 | Add False as the actual to From_Abort in the generated call to | |
4064 | Raise_From_Controlled_Operation. | |
4065 | ||
4066 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> | |
4067 | ||
4068 | * osint-c.ads, osint-c.adb (Set_Library_Info_Name): Move to declaration | |
4069 | so that the ali file name can be retrieved from outside of this package. | |
4070 | * back_end.ads, back_end.adb (Gen_Or_Update_Object_File): New method | |
4071 | doing nothing in the general case, but used to update the object file | |
4072 | timestamp if directly generated by the backend. | |
4073 | * gnat1drv.adb (Gnat1drv): Make sure the object file's timestamp is set | |
4074 | to a later time than the ali file one. | |
4075 | ||
9534ab17 AC |
4076 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4077 | ||
4078 | * einfo.adb, einfo.ads (Formal_Proof_On): new flag set on subprogram | |
4079 | entities whose body contains an Annotate pragma which forces formal | |
4080 | proof on this body. | |
4081 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
4082 | sem_ch6.adb, sem_ch9.adb, sem_res.adb: Adapt call to | |
4083 | Mark_Non_ALFA_Subprogram to pass in a message and node. | |
4084 | * sem_prag.adb (Analyze_Pragma): add treatment of pragma Annotate | |
4085 | (Forma_Proof, On) which sets the flag Formal_Proof_On in the | |
4086 | surrounding subprogram. | |
4087 | * sem_util.adb, sem_util.ads (Mark_Non_ALFA_Subprogram, | |
4088 | Mark_Non_ALFA_Subprogram_Unconditional): if the subprogram being marked | |
4089 | as not in ALFA is annotated with Formal_Proof being On, then an error | |
4090 | is issued based on the additional parameters for message and node. | |
4091 | * snames.ads-tmpl (Name_Formal_Proof): new name for annotation. | |
4092 | * gcc-interface/Make-lang.in: Update dependencies. | |
4093 | ||
4094 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4095 | ||
4096 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Do not generate | |
4097 | Finalize_Address when CodePeer is enabled. | |
4098 | ||
4099 | 2011-08-04 Pascal Obry <obry@adacore.com> | |
4100 | ||
4101 | * adaint.c (__gnat_tmp_name): Use _tempnam() instead of tempnam() as | |
4102 | the latter returns a pointer to a static buffer which is deallocated | |
4103 | at the end of the routine. | |
4104 | ||
5c0e97dd AC |
4105 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4106 | ||
4107 | * sem_ch3.adb (Array_Type_Declaration): move test for type in ALFA | |
4108 | after index creation; mark unconstrained base array type generated as | |
4109 | being in/not in ALFA as well | |
4110 | (Make_Index): mark subtype created as in/not in ALFA | |
4111 | * sem_ch5.adb (Analyze_Iteration_Scheme): mark entity for iterating | |
4112 | over a loop as in/not in ALFA, depending on its type and form of loop | |
4113 | iteration. | |
4114 | ||
4115 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4116 | ||
4117 | * exp_ch7.adb (Build_Object_Declarations): Initialize flag Abort | |
4118 | directly to False on .NET and JVM. | |
4119 | ||
7a93c64b YM |
4120 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4121 | ||
4122 | * sem_ch3.adb (Constrain_Enumeration, Constrain_Integer): remove | |
4123 | constraint that subtype must come from source code to be in ALFA, so | |
4124 | that anonymous subtypes can be in ALFA too. | |
4125 | ||
e9a1ed9b YM |
4126 | 2011-08-04 Yannick Moy <moy@adacore.com> |
4127 | ||
4128 | * sem_ch3.adb (Analyze_Object_Declaration): remove obsolete addition of | |
4129 | reference for ALFA mode. | |
4130 | * lib-xref-alfa.adb, lib-xref.ads (Traverse_Compilation_Unit): make | |
4131 | procedure public so as to use it from formal verification back-end. | |
4132 | ||
8e293fbd AC |
4133 | 2011-08-04 Jerome Lambourg <lambourg@adacore.com> |
4134 | ||
4135 | * g-comlin.adb (For_Each_Simple_Switch.Is_In_Config): Remove the | |
4136 | invalid checks of the Parameter, making Remove_Switch not working | |
4137 | correctly. | |
4138 | ||
4139 | 2011-08-04 Arnaud Charlet <charlet@adacore.com> | |
4140 | ||
4141 | * targparm.ads: Update header: no run-time exception is needed on this | |
4142 | file. | |
4143 | ||
4144 | 2011-08-04 Vincent Celier <celier@adacore.com> | |
4145 | ||
4146 | * a-fihema.adb: Use System.IO instead of GNAT.IO | |
4147 | ||
4148 | 2011-08-04 Thomas Quinot <quinot@adacore.com> | |
4149 | ||
4150 | * sem_ch3.adb (Access_Definition): Anonymous access to subprogram types | |
4151 | are forbidden in Compiler_Unit mode. | |
4152 | ||
cfae2bed AC |
4153 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4154 | ||
4155 | * sem_util.adb: Minor reformatting. | |
4156 | ||
4157 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4158 | ||
4159 | * bindgen.adb (Gen_Finalize_Library_Ada): Update the import string for | |
4160 | library-level finalizers. | |
4161 | (Gen_Finalize_Library_C): Update the import string for library-level | |
4162 | finalizers. | |
4163 | (Gen_Finalize_Library_Defs_C): Update the definition name of a | |
4164 | library-level finalizer. | |
4165 | * exp_ch7.adb: Remove with and use clauses for Stringt. | |
4166 | (Create_Finalizer): Remove local variables Conv_Name, Prag_Decl, | |
4167 | Spec_Decl. Add local variable Body_Id. The names of library-level | |
4168 | finalizers are now manually fully qualified and are no longer external. | |
4169 | A single name is now capable of servicing .NET, JVM and non-VM targets. | |
4170 | Pragma Export is no longer required to provide visibility for the name. | |
4171 | (Create_Finalizer_String): Removed. | |
4172 | (New_Finalizer_Name): New routine which mimics New_..._Name. | |
4173 | ||
01f0729a AC |
4174 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> |
4175 | ||
4176 | * sem_elab.adb (Check_Internal_Call_Continue): Change the type of the | |
4177 | elaboration counter to Standard_Short_Integer. | |
4178 | * sem_util.adb (Build_Elaboration_Entity): Likewise. | |
4179 | * bindgen.adb (Gen_Elab_Externals_Ada): Adjust to above change. | |
4180 | (Gen_Elab_Externals_C): Likewise. | |
4181 | ||
4182 | 2011-08-04 Ed Falis <falis@adacore.com> | |
4183 | ||
4184 | * system-vxworks-arm.ads, system-vxworks-sparcv9.ads, | |
4185 | system-vxworks-ppc.ads, system-vxworks-m68k.ads, | |
4186 | system-vxworks-mips.ads, system-vxworks-x86.ads | |
4187 | (Always_Compatible_Rep): set to False for all VxWorks targets. | |
4188 | ||
2c1b72d7 AC |
4189 | 2011-08-04 Robert Dewar <dewar@adacore.com> |
4190 | ||
4191 | * par_sco.adb, prj-proc.adb, make.adb, bindgen.adb, prj.adb, prj.ads, | |
4192 | makeutl.adb, makeutl.ads, prj-nmsc.adb, exp_ch5.adb, exp_ch12.adb, | |
4193 | exp_ch7.ads, exp_util.ads, sem_util.ads, g-comlin.ads, exp_ch6.adb, | |
4194 | exp_ch6.ads, lib-xref.ads, exp_ch7.adb, exp_util.adb, exp_dist.adb, | |
4195 | exp_strm.adb, gnatcmd.adb, freeze.adb, g-comlin.adb, lib-xref-alfa.adb, | |
4196 | sem_attr.adb, sem_prag.adb, sem_util.adb, sem_elab.adb, sem_ch8.adb, | |
4197 | sem_ch11.adb, sem_eval.adb, sem_ch13.adb, sem_disp.adb, a-fihema.adb: | |
4198 | Minor reformatting and code reorganization. | |
4199 | ||
4200 | 2011-08-04 Emmanuel Briot <briot@adacore.com> | |
4201 | ||
4202 | * projects.texi: Added doc for aggregate projects. | |
4203 | ||
824e9320 AC |
4204 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4205 | ||
4206 | * prj-proc.adb, prj-nmsc.adb, prj-env.adb (Process_Declarative_Items): | |
4207 | Add support for overriding the Project_Path in aggregate projects. | |
4208 | ||
4209 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4210 | ||
4211 | * a-cofove.ads: Minor reformatting. | |
4212 | ||
4213 | 2011-08-04 Hristian Kirtchev <kirtchev@adacore.com> | |
4214 | ||
4215 | * exp_ch7.adb (Build_Adjust_Or_Finalize_Statements): Update the comment | |
4216 | on the generated code. | |
4217 | (Build_Finalize_Statements): Update the comment on the generated code. | |
4218 | (Build_Initialize_Statements): Update the comment on the generated code. | |
4219 | (Build_Object_Declarations): Add local variable Result. The object | |
4220 | declarations are now built in sequence. | |
4221 | * rtsfind.ads: Add RE_Exception_Occurrence_Access to tables RE_Id and | |
4222 | RE_Unit_Table. | |
4223 | ||
4224 | 2011-08-04 Robert Dewar <dewar@adacore.com> | |
4225 | ||
4226 | * checks.adb, alfa.adb, alfa.ads: Minor reformatting. | |
4227 | ||
4228 | 2011-08-04 Eric Botcazou <ebotcazou@adacore.com> | |
4229 | ||
4230 | * einfo.ads (Elaboration_Entity): Document new definition and use. | |
4231 | (Elaboration_Entity_Required): Adjust to above change. | |
4232 | * exp_attr.adb (Expand_N_Attribute_Reference): Likewise. | |
4233 | * exp_ch12.adb: And with and use for Snames. | |
4234 | (Expand_N_Generic_Instantiation): Test 'Elaborated attribute. | |
4235 | * exp_util.adb (Set_Elaboration_Flag): Likewise. | |
4236 | * sem_attr.adb (Analyze_Attribute) <Check_Library_Unit>: Delete. | |
4237 | <Check_Unit_Name>: Deal with N_Expanded_Name. | |
4238 | <Attribute_Elaborated>: Extend to all unit names. | |
4239 | * sem_elab.adb: And with and use for Uintp. | |
4240 | (Check_Internal_Call_Continue): Adjust to Elaboration_Entity change. | |
4241 | * sem_util.ads (Build_Elaboration_Entity): Adjust comment. | |
4242 | * sem_util.adb (Build_Elaboration_Entity): Change type to Integer. | |
4243 | * bindgen.adb (Gen_Elab_Externals_Ada): New local subprogram taken | |
4244 | from Gen_Adainit_Ada. | |
4245 | (Gen_Elab_Externals_C): Likewise, but taken from Gen_Adainit_C. | |
4246 | (Gen_Adafinal_Ada): Remove redundant test. In the non-main program | |
4247 | case, do not call System.Standard_Library.Adafinal; instead call | |
4248 | finalize_library if needed. | |
4249 | (Gen_Adafinal_C): Likewise. | |
4250 | (Gen_Adainit_Ada): Do not set SSL.Finalize_Library_Objects in the | |
4251 | non-main program case. | |
4252 | (Gen_Adainit_C): Generate a couple of external declarations here. | |
4253 | In the main program case, set SSL.Finalize_Library_Objects. | |
4254 | (Gen_Elab_Calls_Ada): Adjust to Elaboration_Entity change. | |
4255 | (Gen_Elab_Calls_C): Likewise. | |
4256 | (Gen_Finalize_Library_Ada): Likewise. Skip SAL interface units. | |
4257 | (Gen_Finalize_Library_C): Likewise. Generate a full function. | |
4258 | (Gen_Main_C): Put back call to Ada_Final and don't finalize library | |
4259 | objects here. | |
4260 | (Gen_Output_File_Ada): Generate pragma Linker_Destructor for Ada_Final | |
4261 | if -a is specified. Call Gen_Elab_Externals_Ada. Move around call to | |
4262 | Gen_Adafinal_Ada. | |
4263 | (Gen_Output_File_C): Generate __attribute__((destructor)) for Ada_Final | |
4264 | if -a is specified. Call Gen_Elab_Externals_C. Remove useless couple | |
2c7f9cc0 | 4265 | of external declarations. Call Gen_Finalize_Library_C. |
824e9320 | 4266 | |
316d9d4f EB |
4267 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4268 | ||
4269 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads (Complete_Mains, | |
4270 | Compute_Compilation_Phases): new subprogram. | |
4271 | (Builder_Data, Builder_Project_Tree_Data): new subprogram and type | |
4272 | The number of mains as well as the various compilation phases that | |
4273 | need to be run are now project tree specific, since various | |
4274 | aggregated trees might have different requirements. In particular, | |
4275 | they do not all require bind or link phases. | |
4276 | ||
9434c32e EB |
4277 | 2011-08-04 Emmanuel Briot <briot@adacore.com> |
4278 | ||
4279 | * prj.adb, prj.ads, makeutl.adb, makeutl.ads, prj-env.adb | |
4280 | (Project_Tree_Appdata): New type. | |
4281 | It is now possible to associate application-specific data to a project | |
4282 | tree. In particular, this is used in the gprbuild builder to avoid a | |
4283 | number of global tables and htables, especially now that there can be | |
4284 | several project trees loaded at once because of aggregate projects. | |
4285 | (Debug_Name): new procedure. | |
4286 | * projects.texi: Clarify syntax of "**" for Source_Dirs | |
4287 | ||
41ba34db EB |
4288 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
4289 | ||
4290 | * prj.ads, makeutl.adb, makeutl.ads (Queue.Insert): now also inserts | |
4291 | the "roots" for a main. | |
4292 | (Fill_From_Project): add support for aggregate projects. Main units | |
4293 | in aggregated projects are now automatically added in the list of | |
4294 | files to build (although this fails later on in gprbuild, because | |
4295 | these files are not using the root proejct tree, so this needs | |
4296 | further cleanup) | |
4297 | * gcc-interface/Make-lang.in: Update dependencies. | |
4298 | ||
fccd42a9 AC |
4299 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4300 | ||
4301 | * sem_ch4.adb (Analyze_Conditional_Expression): only allow boolean | |
4302 | conditional expression in ALFA. | |
4303 | * sem_res.adb (Resolve_Conditional_Expression): mark non-boolean | |
4304 | expressions as not in ALFA. | |
4305 | ||
4306 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4307 | ||
4308 | * a-cofove.adb: Minor reformatting. | |
4309 | ||
4310 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4311 | ||
4312 | * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads | |
4313 | (Insert_Project_Sources, Insert_withed_Sources_For): moved from the | |
4314 | gprbuild sources. | |
4315 | These packages are more logically placed in the Queue package, since | |
4316 | they manipulate the queue. It is also likely that they can be adapted | |
4317 | for gnatmake, thus sharing more code. | |
4318 | (Finish_Program, Fail_Program): moved from the gprbuild sources, so | |
4319 | that we could move the above. | |
4320 | ||
4321 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4322 | ||
4323 | * errutil.adb (Finalize): clean up the list of error messages on exit. | |
4324 | Calling this subprogram multiple times will no longer show duplicate | |
4325 | error messages on stderr. | |
4326 | ||
4327 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
4328 | ||
4329 | * g-comlin.adb, g-comlin.ads (Set_Command_Line): ignore the parameter | |
4330 | Getopt_Switches when we have already define a command line | |
4331 | configuration. | |
4332 | ||
5e8c8e44 YM |
4333 | 2011-08-03 Yannick Moy <moy@adacore.com> |
4334 | ||
4335 | * sem_ch11.adb (Analyze_Raise_xxx_Error): do not mark such nodes as not | |
4336 | in ALFA. Instead, they are considered as assertions to prove. | |
4337 | * sem_ch4.adb (Analyze_Conditional_Expression): do not always mark such | |
4338 | nodes as not in ALFA. Instead, include conditional expressions in ALFA | |
4339 | if they have no ELSE part, or if they occur in pre- and postconditions, | |
4340 | where the Condition cannot have side-effects in ALFA | |
4341 | (Analyze_Membership_Op): do not mark such nodes as not in ALFA | |
4342 | (Analyze_Type_Conversion): do not always mark such nodes as not in ALFA. | |
4343 | Instead, include type conversion between scalar types in ALFA. | |
4344 | * sem_ch6.adb (Process_Formals): correctly mark a parameter in ALFA | |
4345 | if-and-only-if its type is in ALFA. | |
4346 | ||
5ffe0bab AC |
4347 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
4348 | ||
4349 | * scos.adb, get_scos.adb, put_scos.adb | |
4350 | New code letter for decisions: G (entry guard) | |
4351 | * par_sco.adb | |
4352 | (Traverse_Subprogram_Body): Rename to... | |
4353 | (Traverse_Subprogram_Or_Task_Body): New subrpogram. | |
4354 | (Traverse_Protected_Body): New subprogram | |
4355 | (Traverse_Declarations_Or_Statements): Add traversal of task bodies, | |
4356 | protected bodies and entry bodies. | |
4357 | ||
4358 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4359 | ||
4360 | * einfo.adb, einfo.ads (Is_Postcondition_Proc): new flag for procedure | |
4361 | entities with get/set subprograms, which is set on procedure entities | |
4362 | generated by the compiler for a postcondition. | |
4363 | * sem_ch6.adb (Process_PPCs): set new flag on postcondition procedures | |
4364 | * alfa.adb, alfa.ads (Get_Entity_For_Decl): new function returning the | |
4365 | entity for a declaration | |
4366 | (Get_Unique_Entity_For_Decl): new function returning an entity which | |
4367 | represents a declaration, so that matching spec and body have the same | |
4368 | entity. | |
4369 | ||
4370 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4371 | ||
4372 | * a-except-2005.adb, a-cfhama.adb, a-cfhase.adb, a-cfhase.ads, | |
4373 | a-cforma.adb, a-cforse.ads, a-cforse.adb: Minor reformatting | |
4374 | ||
4375 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
4376 | ||
4377 | * lib-xref-alfa.adb (Detect_And_Add_ALFA_Scope): make the subprogram | |
4378 | library-level because retriction No_Implicit_Dynamic_Code in the | |
4379 | front-end prevents its definition as a local subprogram | |
4380 | (Traverse_Compilation_Unit): extract new procedure from Add_ALFA_File, | |
4381 | for reuse in other contexts | |
4382 | (Traverse_Declarations_Or_Statements, | |
4383 | Traverse_Handled_Statement_Sequence, Traverse_Package_Body, | |
4384 | Traverse_Package_Declaration, Traverse_Subprogram_Body): make all these | |
4385 | procedures take a callback parameter to be called on all declarations | |
4386 | * lib-xref.ads | |
4387 | (Traverse_All_Compilation_Units): new generic function to traverse a | |
4388 | compilation unit and call a callback parameter on all declarations | |
4389 | ||
f9ad6b62 AC |
4390 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
4391 | ||
4392 | * sem_prag.adb (Process_Interface_Name): Allow duplicated export names | |
4393 | in Java since they are always enclosed in a namespace that | |
4394 | differentiates them, and overloaded entities are supported by the VM. | |
4395 | ||
4396 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4397 | ||
4398 | * checks.adb (Determine_Range): If a computed bound of an operation is | |
4399 | outside the range of the base type of the expression, and overflow | |
4400 | checks are enabled, the result is unknown and cannot be used for any | |
4401 | subsequent constant folding. | |
4402 | * sem_eval.adb (Compile_Time_Compare): if the bounds of one operand are | |
4403 | unknown, so is the result of the comparison. | |
4404 | ||
4405 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4406 | ||
4407 | * a-except-2005.adb (Raise_From_Controlled_Operation): Add new formal | |
4408 | From_Abort. When finalization was triggered by an abort, propagate | |
4409 | Standard'Abort_Signal rather than Program_Error. | |
4410 | * a-except-2005.ads (Raise_From_Controlled_Operation): Add new formal | |
4411 | From_Abort. | |
4412 | * a-except.adb (Raise_From_Controlled_Operation): Add new formal | |
4413 | From_Abort. When finalization was triggered by an abort, propagate | |
4414 | Standard'Abort_Signal rather than Program_Error. | |
4415 | * a-except.ads:(Raise_From_Controlled_Operation): Add new formal | |
4416 | From_Abort. | |
4417 | * exp_ch7.adb:(Build_Adjust_Or_Finalize_Statements): New local variable | |
4418 | Abort_Id. Update the calls to Build_Object_Declarations and | |
4419 | Build_Raise_Statement to include Abort_Id. | |
4420 | (Build_Adjust_Statements): New local variable Abort_Id. Update the | |
4421 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4422 | Abort_Id. | |
4423 | (Build_Finalize_Statements): New local variable Abort_Id. Update the | |
4424 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4425 | Abort_Id. | |
4426 | (Build_Components): Create an entity for Abort_Id when exceptions are | |
4427 | allowed on the target. | |
4428 | (Build_Finalizer): New local variable Abort_Id. | |
4429 | (Build_Initialize_Statements): New local variable Abort_Id. Update the | |
4430 | calls to Build_Object_Declarations and Build_Raise_Statement to include | |
4431 | Abort_Id. | |
4432 | (Build_Object_Declarations): Add new formal Abort_Id. Create the | |
4433 | declaration of flag Abort_Id to preserve the original abort status | |
4434 | before finalization code is executed. | |
4435 | (Build_Raise_Statement): Add new formal Abort_Id. Pass Abort_Id to | |
4436 | runtime routine Raise_From_Controlled_Operation. | |
4437 | (Create_Finalizer): Update the call to Build_Raise_Statement to include | |
4438 | Abort_Id. Update the call to Build_Object_Declarations to include | |
4439 | Abort_Id. Update the layout of the finalizer body. | |
4440 | (Make_Handler_For_Ctrl_Operation): Add an actual for From_Abort. | |
4441 | (Process_Transient_Objects): New local variable Abort_Id. Remove the | |
4442 | clunky code to create all flags and objects related to | |
4443 | exception propagation and replace it with a call to | |
4444 | Build_Object_Declarations. Update the call to Build_Raise_Statement to | |
4445 | include Abort_Id. | |
4446 | * exp_ch7.ads (Build_Object_Declarations): Moved from body to spec. | |
4447 | Add new formal Abort_Id and associated comment on its use. | |
4448 | (Build_Raise_Statement): Add new formal Abort_Id and associated comment | |
4449 | on its use. | |
4450 | * exp_intr.adb (Expand_Unc_Deallocation): New local variable Abort_Id. | |
4451 | Remove the clunky code to create all flags and objects related to | |
4452 | exception propagation and replace it with a call to | |
4453 | Build_Object_Declarations. Update the call to Build_Raise_Statement. | |
4454 | ||
4455 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
4456 | ||
4457 | * s-tassta.adb: Fix minor typos. | |
4458 | ||
4459 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
4460 | ||
4461 | * rtsfind.ads, makeutl.ads, prj.ads, prj.adb, make.adb, | |
4462 | lib-writ.adb, makeutl.adb, s-soflin.ads, clean.adb: Minor reformatting. | |
4463 | ||
1cdfa9be AC |
4464 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4465 | ||
4466 | * exp_ch7.adb (Create_Finalizer): Treat freeze nodes in similar fashion | |
4467 | to packages. This ensures that the finalizer body will not end up | |
4468 | inside the freeze node. | |
4469 | (Process_Declarations): Add code to detect whether a freeze node has a | |
4470 | nested finalization collection. | |
4471 | ||
4472 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
4473 | ||
4474 | * g-awk.adb, g-awk.ads: Make GNAT.AWK API compatible with Ada 2005. | |
4475 | (Current_Session): Return a not null access to Session_Type. | |
4476 | (Default_Session): Likewise. | |
4477 | ||
243cae0a AC |
4478 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
4479 | ||
4480 | * a-cfdlli.adb, bindgen.adb, exp_ch4.adb, exp_ch13.adb, sem_warn.adb, | |
4481 | exp_ch3.adb, exp_ch3.ads: Minor reformatting. | |
4482 | ||
4483 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
4484 | ||
4485 | * g-awk.ads: Minor comment fix. | |
4486 | ||
4487 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
4488 | ||
4489 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
4490 | the tree structure related to discriminant constraints. | |
4491 | Original_Discriminant cannot be used any more for computing the | |
4492 | defining name for the reference to a discriminant. | |
4493 | ||
4494 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4495 | ||
4496 | * sem_disp.adb (Is_Tag_Indeterminate): If the return type of the | |
4497 | function is not visibly tagged, this is not a dispatching call and | |
4498 | therfore is not Tag_Indeterminate, even if the function is marked as | |
4499 | dispatching on result. | |
4500 | ||
f553e7bc AC |
4501 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4502 | ||
4503 | * exp_ch13.adb: Add with and use clauses for Restrict and Rident. | |
4504 | (Expand_N_Free_Statement): Add a guard to protect against run-times | |
4505 | which do not support controlled types. | |
4506 | * exp_ch3.adb (Expand_Freeze_Class_Wide_Type): Add a guard to protect | |
4507 | against run-times which do not support controlled types. | |
4508 | * exp_ch4.adb (Complete_Controlled_Allocation): Add a guard to protect | |
4509 | against run-times which do not support controlled types. | |
4510 | * exp_ch7.adb (Build_Finalization_Collection): Add a guard to protect | |
4511 | against run-times which do not support controlled types. | |
4512 | * exp_util.adb (Needs_Finalization): Code reformatting. Add a guard to | |
4513 | protect against run-times which do not support controlled types. | |
4514 | ||
4515 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
4516 | ||
4517 | * exp_intr.adb: Put back with and use clauses for Exp_Ch11. | |
4518 | (Expand_Unc_Deallocation): Expand the AT_END handler at the very end. | |
4519 | ||
e4982b64 AC |
4520 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
4521 | ||
4522 | * exp_ch5.adb (Expand_Iterator_Loop): indicate that the cursor is | |
4523 | modified in the source, to prevent spurious warnings when compiling | |
4524 | with -gnatg. | |
4525 | ||
4526 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
4527 | ||
4528 | * a-except-2005.adb: Minor reformatting. | |
4529 | ||
4530 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4531 | ||
4532 | * sem_warn.adb (Check_One_Unit): if the only mention of a withed unit | |
4533 | is a renaming declaration in the private part of a package, do not emit | |
4534 | a warning that the with_clause could be moved because the renaming may | |
4535 | be used in the body or in a child unit. | |
4536 | ||
4537 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4538 | ||
4539 | * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): | |
4540 | Propagate the Comes_From_Source attribute from the original return | |
4541 | object to the renaming. | |
4542 | ||
4543 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
4544 | ||
4545 | * exp_ch7.adb (Build_Raise_Statement): Do not call | |
4546 | Raise_From_Controlled_Operation when this routine is not present in | |
4547 | the run-time library. | |
4548 | (Cleanup_Protected_Object, Cleanup_Task): For restricted run-time | |
4549 | libraries (Ravenscar), tasks are non-terminating, and protected objects | |
4550 | and tasks can only appear at library level, so we do not want | |
4551 | finalization of protected objects nor tasks. | |
4552 | * exp_intr.adb: Minor clarification in comment. | |
4553 | bindgen.adb (Gen_Adainit_Ada, Gen_Main_C, Gen_Output_File_Ada, | |
4554 | Gen_Output_File_C): Remove references to finalization of library-level | |
4555 | objects when using restricted run-time libraries. | |
4556 | ||
4557 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
4558 | ||
4559 | * sem_ch3.adb (Build_Discriminant_Constraints): Set | |
4560 | Original_Discriminant only if the parent type is a generic formal. | |
4561 | ||
deb8dacc HK |
4562 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4563 | ||
4564 | * exp_ch13.adb: Add with and use clause for Targparm; | |
4565 | (Expand_N_Free_Statement): Prevent the generation of a custom | |
4566 | Deallocate on .NET/JVM targets since this requires pools and address | |
4567 | arithmetic. | |
4568 | * exp_ch4.adb (Expand_Allocator_Expression): When compiling for | |
4569 | .NET/JVM targets, attach the newly allocated object to the access | |
4570 | type's finalization collection. Do not generate a call to | |
4571 | Set_Finalize_Address_Ptr on .NET/JVM because this routine does not | |
4572 | exist in the runtime. | |
4573 | (Expand_N_Allocator): When compiling for .NET/JVM targets, do not | |
4574 | create a custom Allocate for object that do not require initialization. | |
4575 | Attach a newly allocated object to the access type's finalization | |
4576 | collection on .NET/JVM. | |
4577 | * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add special processing for | |
4578 | assignment of controlled types on .NET/JVM. The two hidden pointers | |
4579 | Prev and Next and stored and later restored after the assignment takes | |
4580 | place. | |
4581 | * exp_ch6.adb (Expand_Call): Add local constant Curr_S. Add specialized | |
4582 | kludge for .NET/JVM to recognize a particular piece of code coming from | |
4583 | Heap_Management and change the call to Finalize into Deep_Finalize. | |
4584 | * exp_ch7.adb (Build_Finalization_Collection): Allow the creation of | |
4585 | finalization collections on .NET/JVM only for types derived from | |
4586 | Controlled. Separate the association of storage pools with a collection | |
4587 | and only allow it on non-.NET/JVM targets. | |
4588 | (Make_Attach_Call): New routine. | |
4589 | (Make_Detach_Call): New routine. | |
4590 | (Process_Object_Declarations): Suppress the generation of | |
4591 | build-in-place return object clean up code on .NET/JVM since it uses | |
4592 | pools. | |
4593 | * exp_ch7.ads (Make_Attach_Call): New routine. | |
4594 | (Make_Detach_Call): New routine. | |
4595 | * exp_intr.adb Add with and use clause for Targparm. | |
4596 | (Expand_Unc_Deallocation): Detach a controlled object from a collection | |
4597 | on .NET/JVM targets. | |
4598 | * rtsfind.ads: Add entries RE_Attach, RE_Detach and | |
4599 | RE_Root_Controlled_Ptr to tables RE_Id and RE_Unit_Table. | |
4600 | * snames.ads-tmpl: Add name Name_Prev. Move Name_Prev to the special | |
4601 | names used in finalization. | |
4602 | ||
4603 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> | |
4604 | ||
4605 | * a-fihema.adb: Add with and use clauses for System.Soft_Links. | |
4606 | (Attach, Detach): Lock the current task when chaining an object onto a | |
4607 | collection. | |
4608 | ||
df3e68b1 HK |
4609 | 2011-08-03 Hristian Kirtchev <kirtchev@adacore.com> |
4610 | ||
4611 | * a-except.adb, a-except-2005.adb (Raise_From_Controlled_Operation): | |
4612 | Rewritten to create the message strings when the exception is not | |
4613 | raised by an abort during finalization. | |
4614 | * a-except.ads, a-except-2005.ads: Add pragma Export for procedure | |
4615 | Raise_From_Controlled_Operation and update its associated comment. | |
4616 | * a-fihema.ads, a-fihema.adb: New GNAT unit. | |
4617 | Ada.Finalization.Heap_Management provides key functionality | |
4618 | associated with controlled objects on the heap, their creation, | |
4619 | finalization and reclamation. Type Finalization_Collection is | |
4620 | effectively a wrapper which sits ontop of a storage pool and performs | |
4621 | all necessary bookkeeping for all the objects it contains. Each | |
4622 | access-to-controlled or access-to-class-wide type receives a collection | |
4623 | as part of its expansion. The compiler generates buffer code and | |
4624 | invokes Allocate / Deallocate to create and destroy allocated | |
4625 | controlled objects. | |
4626 | * a-finali.adb ("="): Removed. | |
4627 | * a-finali.ads ("="): Removed. Controlled types no longer carry hidden | |
4628 | fields Prev and Next. | |
4629 | * ali.adb (Scan_ALI): Add parsing code to process PF / Has_Finalizer. | |
4630 | A library unit with at least one controlled object on the library level | |
4631 | has a special finalizer which is invoked by the binder. To signal this, | |
4632 | ali files carry field PF. | |
4633 | * ali.ads: New field in type Unit_Record called Has_Finalizer. Add | |
4634 | associated comment on field usage. | |
4635 | * a-tags.adb (Get_RC_Offset): Removed. | |
4636 | (Needs_Finalization): New routine. | |
4637 | * a-tags.ads: Update the structure of the GNAT dispatch tables. | |
4638 | Dispatch tables now carry field Needs_Finalization which provides | |
4639 | runtime indication whether a type is controlled or has controlled | |
4640 | components or both. Remove field RC_Offset. | |
4641 | (Get_RC_Offset): Removed along with its associated pragma Export. | |
4642 | Since tagged types with controlled components no longer carry hidden | |
4643 | field _controller, the special mechanism to retrieve its location is no | |
4644 | longer needed. | |
4645 | (Needs_Finalization): New routine. | |
4646 | * atree.ads, atree.adb (Elist24): New routine. | |
4647 | (Set_Elist24): New routine. | |
4648 | * atree.h: Add a define clause for Elist24. | |
4649 | * bindgen.adb New library-level variable Lib_Final_Built. | |
4650 | (Gen_Adafinal_Ada): Reimplemented. Depending on the restrictions or the | |
4651 | presence of a VM target, the routine generates calls to the proper | |
4652 | library finalization routine. | |
4653 | (Gen_Adainit_Ada): Import Finalize_Library_Objects only on non-VM | |
4654 | targets. Set the correct library finalization routine depending on | |
4655 | whether the library has controlled objects or this is a VM compilation. | |
4656 | (Gen_Finalize_Library_Ada): New routine. This procedure generates calls | |
4657 | to library-level finalizers of compiled units in reverse order of | |
4658 | elaboration. It also produces exception management code and reraises a | |
4659 | potential exception after all units have been finalized. | |
4660 | (Gen_Finalize_Library_C): New routine. This procedure generates calls to | |
4661 | library-level finalizers of compiled units in reverse order of | |
4662 | elaboration. | |
4663 | (Gen_Finalize_Library_Defs_C): New routine. This procedure generates the | |
4664 | definitions of all library-level finalizers available to the compilation | |
4665 | (Gen_Main_Ada): Directly call Adafinal which now contails all target | |
4666 | dependent code. | |
4667 | (Gen_Main_C): Add new local constant Needs_Library_Finalization. Call | |
4668 | System.Standard_Library.Adafinal directly. If the library needs | |
4669 | finalization actions, create the sequence of finalization calls. | |
4670 | (Gen_Output_File_Ada): Alphabetize local variables and constants. | |
4671 | Generate a with clause for System.Soft_Links when compiling for a VM. | |
4672 | Remove the code which imports System.Standard_Library.Adafinal as | |
4673 | Do_Finalize. Generate the library finalization routine. | |
4674 | (Gen_Output_File_C): Add new local constant Needs_Library_Finalization. | |
4675 | If the library needs finalization actions, create all the definitions | |
4676 | of library- level finalizers. | |
4677 | (Has_Finalizer): New routine. Determines whether at least one compiled | |
4678 | unit has a library-level finalizer. | |
4679 | Add type Qualification_Mode. | |
4680 | (Set_Unit_Name): Add a formal which controls the replacement of a dot. | |
4681 | * einfo.adb: New usage of field 15 as Return_Flag. | |
4682 | Remove Finalization_Chain_Entity from the usages of field 19. | |
4683 | Remove Associated_Final_Chain from the usages of field 23. | |
4684 | New usage of field 23 as Associated_Collection. | |
4685 | New usage of field 24 as Finalizer. | |
4686 | New usage of flag 252 as Is_Processed_Transient. | |
4687 | (Associated_Final_Chain): Removed. | |
4688 | (Associated_Collection): New routine. | |
4689 | (Finalization_Chain_Entity): Removed. | |
4690 | (Finalizer): New routine. | |
4691 | (Is_Finalizer): New routine. | |
4692 | (Is_Processed_Transient): New routine. | |
4693 | (Return_Flag): New routine. | |
4694 | (Set_Associated_Final_Chain): Removed. | |
4695 | (Set_Associated_Collection): New routine. | |
4696 | (Set_Finalization_Chain_Entity): Removed. | |
4697 | (Set_Finalizer): New routine. | |
4698 | (Set_Is_Processed_Transient): New routine. | |
4699 | (Set_Return_Flag): New routine. | |
4700 | (Write_Entity_Flags): Include Is_Processed_Transient to the list of | |
4701 | displayed flags. | |
4702 | (Write_Field8_Name): Alphabetize the output. | |
4703 | (Write_Field11_Name): Alphabetize the output. | |
4704 | (Write_Field12_Name): Alphabetize the output. | |
4705 | (Write_Field13_Name): Alphabetize the output. | |
4706 | (Write_Field14_Name): Alphabetize the output. | |
4707 | (Write_Field15_Name): Alphabetize the output. | |
4708 | (Write_Field16_Name): Alphabetize the output. | |
4709 | (Write_Field17_Name): Alphabetize the output. | |
4710 | (Write_Field18_Name): Alphabetize the output. | |
4711 | (Write_Field19_Name): Alphabetize the output. Remove the output of | |
4712 | Finalization_Chain_Entity. | |
4713 | (Write_Field20_Name): Alphabetize the output. | |
4714 | (Write_Field21_Name): Alphabetize the output. | |
4715 | (Write_Field22_Name): Alphabetize the output. | |
4716 | (Write_Field23_Name): Alphabetize the output. Remove the output of | |
4717 | Associated_Final_Chain. Add output for Associated_Collection. | |
4718 | (Write_Field24_Name): Alphabetize the output. | |
4719 | (Write_Field25_Name): Add output for Finalizer. | |
4720 | (Write_Field26_Name): Alphabetize the output. | |
4721 | (Write_Field27_Name): Alphabetize the output. | |
4722 | (Write_Field28_Name): Alphabetize the output. | |
4723 | * einfo.ads: Add new field description for Associated_Collection and | |
4724 | its uses in nodes. | |
4725 | Remove Associated_Final_Chain and its uses in nodes. | |
4726 | Remove Finalization_Chain_Entity and its uses in nodes. | |
4727 | Add new field description for Finalizer and its uses in nodes. | |
4728 | Add new synthesized attribute Is_Finalizer. | |
4729 | Add new flag description for Is_Processed_Transient and its uses in | |
4730 | nodes. | |
4731 | Add new field description for Return_Flag and its uses in nodes. | |
4732 | (Associated_Final_Chain): Removed along with its pragma Inline. | |
4733 | (Associated_Collection): New routine and pragma Inline. | |
4734 | (Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4735 | (Finalizer): New routine and pragma Inline. | |
4736 | (Is_Finalizer): New routine and pragma Inline. | |
4737 | (Is_Processed_Transient): New routine and pragma Inline. | |
4738 | (Return_Flag): New routine and pragma Inline. | |
4739 | (Set_Associated_Final_Chain): Removed along with its pragma Inline. | |
4740 | (Set_Associated_Collection): New routine and pragma Inline. | |
4741 | (Set_Finalization_Chain_Entity): Removed along with its pragma Inline. | |
4742 | (Set_Finalizer): New routine and pragma Inline. | |
4743 | (Set_Is_Processed_Transient): New routine and pragma Inline. | |
4744 | (Set_Return_Flag): New routine and pragma Inline. | |
4745 | * exp_aggr.adb: Alphabetize subprograms. | |
4746 | (Build_Array_Aggr_Code): Remove formal Flist and its associated comment. | |
4747 | (Build_Record_Aggr_Code): Remove formals Flist and Obj along with their | |
4748 | associated comments. Remove local variables External_Final_List and | |
4749 | Attach. | |
4750 | Rename Ctrl_Stuff_Done to Finalization_Done. Rename local variable A to | |
4751 | Ancestor. Remove the retrieval of finalization lists. Update the call to | |
4752 | Make_Adjust_Call. | |
4753 | (Convert_Aggr_In_Allocator): Remove the retrieval of finalization | |
4754 | lists. Update the call to Late_Expansion. | |
4755 | (Convert_Aggr_In_Assignment): Update the call to Late_Expansion. | |
4756 | (Convert_Aggr_In_Object_Decl): Update the call to Late_Expansion. | |
4757 | (Gen_Assign): Remove the retrieval of the finalization list used to | |
4758 | build the assignment. Update the calls to Make_Init_Call and | |
4759 | Make_Adjust_Call. | |
4760 | (Gen_Ctrl_Actions_For_Aggr): Renamed to Generate_Finalization_Actions. | |
4761 | Remove the mechanism to determine attachment levels and finalization | |
4762 | list retrieval. Remove the processing for coextensions. | |
4763 | (Init_Controller): Removed. Controllers no longer exist. | |
4764 | (Late_Expansion): Remove formals Flist and Obj along with their | |
4765 | associated comments. Update the calls to Build_Record_Aggr_Code and | |
4766 | Build_Array_Aggr_Code. | |
4767 | * exp_ch13.adb (Expand_N_Free_Statement): New routine. | |
4768 | (Expand_N_Freeze_Entity): Add special processing for finalizers which | |
4769 | appear in entry bodies, protected subprograms and task bodies. | |
4770 | * exp_ch13.ads (Expand_N_Free_Statement): New routine. | |
4771 | * exp_ch3.adb (Add_Final_Chain): Removed. | |
4772 | (Build_Array_Init_Proc): Alphabetize local variables. | |
4773 | (Build_Assignment): Alphabetize local variables. Update the call to | |
4774 | Maked_Adjust_Call. | |
4775 | (Build_Class_Wide_Master): Rename local variables to better reflect | |
4776 | their role. | |
4777 | (Build_Discriminant_Assignments): Code reformatting. | |
4778 | (Build_Init_Call_Thru): Code reformatting. | |
4779 | (Build_Init_Procedure): Code reformatting. Generate a special version | |
4780 | of Deep_Finalize which is capable of finalizing all initialized | |
4781 | components and ignore the rest. | |
4782 | (Build_Init_Statements): Rename local variables to better reflect their | |
4783 | role. | |
4784 | Reimplement the mechanism to include the creation and update of an index | |
4785 | variable called a "counter". It is used as a bookmark for tracing | |
4786 | initialized and non-initialized components. | |
4787 | (Build_Initialization_Call): Remove local variable Controller_Typ. | |
4788 | Alphabetize all local variables. Remove the initialization of the | |
4789 | record controller and update the call to Make_Init_Call. | |
4790 | (Build_Record_Init_Proc): Rename formal Pe to Rec_Ent. | |
4791 | New local variable Counter. | |
4792 | (Constrain_Array): Alphabetize. | |
4793 | (Expand_Freeze_Array_Type): Create a collection instead of a | |
4794 | finalization list. | |
4795 | (Expand_Freeze_Class_Wide_Type): New routine. Creates TSS primitive | |
4796 | Finalize_Address which is used in conjunction with allocated controlled | |
4797 | objects. | |
4798 | (Expand_N_Object_Declaration): Remove the creation of a finalization | |
4799 | list for anonymous access types. Update the calls to Make_Init_Call and | |
4800 | Make_Adjust_Call. | |
4801 | (Expand_Freeze_Record_Type): Remove local variable Flist. Remove the | |
4802 | retrieval of finalization lists. Remove the expansion of the record | |
4803 | controller. Create TSS primitive Finalize_Address used in conjunction | |
4804 | with controlled objects on the heap. Create finalization collections | |
4805 | for access-to-controlled record components. | |
4806 | (Expand_Record_Controller): Removed. | |
4807 | (Freeze_Type): Remove the freezing of record controllers. Freezing of | |
4808 | class-wide types now requires additional processing. Create | |
4809 | finalization collections for access-to-controlled types. | |
4810 | (Increment_Counter): New routine. | |
4811 | (Make_Counter): New routine. | |
4812 | (Make_Eq_If): Remove the mention of Name_uController. | |
4813 | (Make_Predefined_Primitive_Specs): There is no longer need to skip | |
4814 | types coming from System.Finalization_Root. | |
4815 | (Predef_Deep_Spec): Reimplemented to reflect the new parameter profiles. | |
4816 | (Predefined_Primitive_Bodies): There is no longer need to skip types | |
4817 | coming from System.Finalization_Root. | |
4818 | (Stream_Operation_OK): Do not generate stream routines for | |
4819 | type Ada.Finalization.Heap_Management.Finalization_Collection. | |
4820 | * exp_ch3.ads: Alphabetize subprograms. | |
4821 | * exp_ch4.adb: Remove with and use clause for Sem_Ch8. | |
4822 | Add with and use clause for Lib. | |
4823 | (Complete_Coextension_Finalization): Removed. | |
4824 | (Complete_Controlled_Allocation): New routine. Create a finalization | |
4825 | collection for anonymous access-to-controlled types. Create a custom | |
4826 | Allocate which interfaces with the back end and the machinery in | |
4827 | Heap_Management. | |
4828 | (Expand_Allocator_Expression): Add necessary calls to | |
4829 | Complete_Controlled_Allocation. Remove the retrieval of finalization | |
4830 | lists. Update the calls to Make_Adjust_Call. Generate a call to | |
4831 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4832 | the associated collection. | |
4833 | (Expand_N_Allocator): Remove the processing for dynamic coextensions. | |
4834 | Code clean up. Remove the retrieval of finalization lists and | |
4835 | attachment levels. | |
4836 | Update the call to Make_Init_Call. Generate a call to | |
4837 | Ada.Finalization.Heap_Management.Set_Finalize_Address_Ptr to decorate | |
4838 | the associated collection. | |
4839 | (Get_Allocator_Final_List): Removed. Finalization lists are not | |
4840 | available. | |
4841 | (Suitable_Element): Remove the mention of Name_uController. | |
4842 | * exp_ch5.adb: Remove with and use clauses for Ttypes and Uintp. | |
4843 | (Make_Tag_Ctrl_Assignment): Rewritten to simply do a finalization of | |
4844 | the left hand side, carry out the assignment and adjust the left hand | |
4845 | side. | |
4846 | * exp_ch6.adb (Add_Final_List_Actual_To_Build_In_Place_Call): Removed. | |
4847 | (Add_Collection_Actual_To_Build_In_Place_Call): New routine. | |
4848 | (BIP_Formal_Suffix): Rename BIP_Final_List and BIPfinallist to | |
4849 | BIP_Collection and BIPcollection. | |
4850 | (Build_Heap_Allocator): New routine used to allocate the return object | |
4851 | of a build-in-place function onto a collection. | |
4852 | (Expand_Ctrl_Function_Call): Moved from Exp_Ch7. | |
4853 | (Expand_Call): Do not replace direct calls to Deep routines with their | |
4854 | aliases. | |
4855 | (Expand_N_Extended_Return_Statement): Give all variables shorter names | |
4856 | and update their occurrences. Add a special return flag to monitor the | |
4857 | [ab]normal execution of the function. The flag is set right before the | |
4858 | return statement. | |
4859 | Rewrite the mechanism used to allocate a build-in-place return object | |
4860 | on the heap or on a storage pool. | |
4861 | (Is_Direct_Deep_Call): New routine. | |
4862 | (Make_Build_In_Place_Call_In_Allocator): Add a collection to a | |
4863 | build-in-place function call instead of a final list. Build a call to | |
4864 | Set_Finalize_Address_Ptr to decorate the associated collection. | |
4865 | (Make_Build_In_Place_Call_In_Anonymous_Context): Create a temporary in | |
4866 | order to name the build-in-place function call's result for later | |
4867 | finalization. Add a collection to a build-in-place function call | |
4868 | instead of a final list. | |
4869 | (Make_Build_In_Place_Call_In_Assignment): Add a collection to a | |
4870 | build-in-place function call instead of a final list. Remove the code | |
4871 | which moves one final list and transforms it into the actual in a | |
4872 | nested build-in-place call. | |
4873 | (Make_Build_In_Place_Call_In_Object_Declaration): Add a collection to a | |
4874 | build-in-place function call instead of a final list. | |
4875 | (Move_Final_List): Removed. | |
4876 | (Needs_BIP_Collection): New routine. | |
4877 | (Needs_BIP_Final_List): Removed. | |
4878 | * exp_ch6.ads: Replace BIP_Final_List with BIP_Collection in | |
4879 | enumeration type BIP_Formal_Kind. | |
4880 | Update the related comment. | |
4881 | (Needs_BIP_Collection): New routine. | |
4882 | (Needs_BIP_Final_List): Removed. | |
4883 | * exp_ch7.adb: Add with and use clauses for Elists, Exp_Ch6, Stringt | |
4884 | and Ttypes. Remove with and use clauses for Sem_Type. Alphabetize the | |
4885 | majority of subprograms in this unit. Add Name_Finalize_Address to | |
4886 | array Name_Of and TSS_Finalize_Address to array Deep_Name_Of. | |
4887 | (Build_Adjust_Or_Finalize_Statements): Create the adjust or finalization | |
4888 | statements for an array type. | |
4889 | (Build_Adjust_Statements): Create the adjust statements for a record | |
4890 | type. | |
4891 | (Build_Cleanup_Statements): New routine. A procedure which given any | |
4892 | construct containing asynchronous calls, references to _master, or is a | |
4893 | task body, a task allocation or a protected body produces the necessary | |
4894 | runtime calls to clean up these constructs. | |
4895 | (Build_Exception_Handler): New routine. | |
4896 | (Build_Final_List): Removed. | |
4897 | (Build_Finalization_Collection): New routine. A core procedure which | |
4898 | creates a collection to service heap allocated controlled objects | |
4899 | associated with an access-to-controlled type. | |
4900 | (Build_Finalize_Statements): Create the finalization statements for a | |
4901 | record types. | |
4902 | (Build_Finalizer): New routine. A core procedure which given any | |
4903 | construct with declarations and/or statements detects all objects which | |
4904 | need any type of clean up (controlled objects, protected objects) and | |
4905 | generates all necessary code to clean up the said objects in the proper | |
4906 | order. | |
4907 | (Build_Finalizer_Call): New routine. | |
4908 | (Build_Initialize_Statements): Create the initialization statements for | |
4909 | an array type. The generated routine contains code to finalize partially | |
4910 | initialized arrays. | |
4911 | (Build_Object_Declarations): New routine. | |
4912 | (Build_Raise_Statement): New routine. | |
4913 | (Clean_Simple_Protected_Objects): Removed. | |
4914 | (Controller_Component): Removed. | |
4915 | (Enclosing_Function): New routine. | |
4916 | (Expand_Cleanup_Actions): Create a finalizer for a construct which has | |
4917 | either declarations or statements or both. | |
4918 | (Expand_N_Package_Body): Create a finalizer for a non-generic package. | |
4919 | (Expand_N_Package_Declaration): Create a finalizer for a non-generic | |
4920 | package. | |
4921 | (Find_Final_List): Removed. | |
4922 | (Global_Flist_Ref): Removed. | |
4923 | (In_Finalization_Root): Removed. | |
4924 | (Insert_Actions_In_Scope_Around): Determine the range of the transient | |
4925 | scope in terms of tree nodes. Process all transient variables within | |
4926 | that range. | |
4927 | (Make_Adjust_Call): Rewritten. There is no longer an attach call | |
4928 | generated after the adjust. | |
4929 | (Make_Attach_Call): Removed. | |
4930 | (Make_Call): New routine. | |
4931 | (Make_Clean): Removed. | |
4932 | (Make_Deep_Array_Body): Rewritten to simply invoke the appropriate | |
4933 | build routines. | |
4934 | (Make_Deep_Proc): Rewritten to generate the new profile signature used | |
4935 | in Deep routines. | |
4936 | (Make_Deep_Record_Body): Rewritten to simply invoke the appropriate | |
4937 | build routines. | |
4938 | (Make_Final_Call): Modified to simply create a call to either | |
4939 | Deep_Finalize or Finalize. | |
4940 | (Make_Finalize_Address_Body): New routine. | |
4941 | (Make_Finalize_Address_Stmts): New routine. A function which produces | |
4942 | TSS primitive Finalize_Address used in conjunction with heap allocated | |
4943 | controlled objects. | |
4944 | (Make_Handler_For_Ctrl_Operation): Add specialized code for .NET/JVM. | |
4945 | (Make_Init_Call): Rewritten. There is no longer an attach call | |
4946 | generated after initialization. | |
4947 | (Make_Local_Deep_Finalize): New routine. | |
4948 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
4949 | (Make_Transient_Block): Remove the finalization list retrieval and | |
4950 | manipulation. | |
4951 | (Needs_Finalization): Moved to Exp_Util. | |
4952 | (Parent_Field_Type): New routine. | |
4953 | (Preprocess_Components): New routine. | |
4954 | (Process_Transient_Objects): New routine. | |
4955 | (Wrap_HSS_In_Block): New routine. | |
4956 | (Wrap_Transient_Declaration): Remove finalization list management and | |
4957 | controller insertion. | |
4958 | (Wrap_Transient_Expression): Code reformatting. | |
4959 | (Wrap_Transient_Statement): Code reformatting. | |
4960 | * exp_ch7.ads (Build_Final_List): Removed. | |
4961 | (Build_Finalization_Collection): New routine. | |
4962 | (Build_Raise_Statement): New routine. | |
4963 | (Controller_Component): Removed. | |
4964 | (Expand_Ctrl_Function_Call): Moved to Exp_Ch6. | |
4965 | (Find_Final_List): Removed. | |
4966 | (In_Finalization_Root): Removed. | |
4967 | (Is_Simple_Protected_Type): Update related comment. | |
4968 | (Make_Adjust_Call): New parameter profile and associated comments. | |
4969 | (Make_Attach_Call): Removed. | |
4970 | (Make_Final_Call): New parameter profile and associated comments. | |
4971 | (Make_Finalize_Address_Body): New routine. | |
4972 | (Make_Init_Call): New parameter profile and associated comments. | |
4973 | (Make_Local_Deep_Finalize): New routine. | |
4974 | (Make_Set_Finalize_Address_Ptr_Call): New routine. | |
4975 | (Needs_Finalization): Moved to Exp_Util. | |
4976 | * exp_ch9.adb (Add_Object_Pointer): Code reformatting. | |
4977 | (Expand_N_Protected_Body): Remove the handling of finalization lists. | |
4978 | (Find_Protection_Type): Moved to Exp_Util. | |
4979 | * exp_disp.adb: Remove with and use clauses for Exp_Ch7. | |
4980 | (Make_DT): Update sequence of dispatch table initialization. Remove the | |
4981 | initialization of field RC_Offset. Add initialization of field Needs_ | |
4982 | Finalization. | |
4983 | * exp_intr.adb (Expand_Unc_Deallocation): Code reformatting. | |
4984 | Reimplement how an object is first finalized, then deallocated. | |
4985 | * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): | |
4986 | Code reformatting. | |
4987 | * exp_tss.ads: Add special suffix for TSS primitive Finalize_Address. | |
4988 | Register TSS_Finalize_Address with type TSS_Names. | |
4989 | * exp_util.adb (Build_Allocate_Deallocate_Proc): New routine. This core | |
4990 | procedure provides the interface between an allocation / deallocation | |
4991 | and the support machinery in Ada.Finalization.Heap_Management. | |
4992 | (Find_Init_Call): Code reformatting. | |
4993 | (Find_Init_Call_In_List): Code reformatting. | |
4994 | (Find_Protection_Type): Moved from Exp_Ch9. | |
4995 | (Find_Prim_Op): Reimplement to add preference of recovered primitive. | |
4996 | (Has_Controlled_Coextensions): Removed. | |
4997 | (Has_Controlled_Objects): New routine. | |
4998 | (In_Library_Level_Package_Body): New routine. | |
4999 | (Insert_Action_After): New routine. | |
5000 | (Is_Finalizable_Transient): New routine. This predicate determines | |
5001 | whether an object declaration is one of the many variants of controlled | |
5002 | transients. | |
5003 | (Is_Null_Access_BIP_Func_Call): New routine. | |
5004 | (Is_Non_BIP_Func_Call): New routine. | |
5005 | (Is_Related_To_Func_Return): New routine. | |
5006 | (Needs_Finalization): Moved from Exp_Ch7. | |
5007 | * exp_util.ads (Build_Allocate_Deallocate_Proc): New routine. | |
5008 | (Find_Protection_Type): Moved from Exp_Ch9. | |
5009 | (Has_Controlled_Coextensions): Removed. | |
5010 | (Has_Controlled_Objects): New routine. | |
5011 | (In_Library_Level_Package_Body): New routine. | |
5012 | (Insert_Action_After): New routine. | |
5013 | (Is_Finalizable_Transient): New routine. | |
5014 | (Is_Null_Access_BIP_Func_Call): New routine. | |
5015 | (Is_Non_BIP_Func_Call): New routine. | |
5016 | (Is_Related_To_Func_Return): New routine. | |
5017 | (Needs_Finalization): Moved from Exp_ch7. | |
5018 | * expander.adb (Expand): Add a case for N_Free_Statement. | |
5019 | * freeze.adb (Freeze_All): Replace the generation of a finalization | |
5020 | list with a collection for access-to-controlled types. | |
5021 | (Freeze_Entity): Code reformatting. | |
5022 | (Freeze_Record_Type): Remove the freezing of a record controller | |
5023 | component. | |
5024 | (Freeze_Subprogram): Code reformatting. | |
5025 | * inline.adb (Cleanup_Scopes): Remove the reset of the scope | |
5026 | finalization list. | |
5027 | * lib-writ.adb (Write_Unit_Information): Output "PF" when a package | |
5028 | has a library-level finalizer. | |
5029 | * lib-writ.ads: Add "PF" to the sequence of unit attributes. | |
5030 | * a-filico.ads, a-filico.adb, s-finimp.ads, s-finimp.adb: Removed. | |
5031 | * Makefile.rtl: Remove a-filico and s-finimp from the list of object | |
5032 | files. Add a-fihema to the list of object files. | |
5033 | * par-ch4.adb: | |
5034 | Alphabetize the associations in type Is_Parameterless_Attribute. | |
5035 | * rtsfind.ads: Ada.Finalization_List.Controller and | |
5036 | System.Finalization_Implementation are no longer a GNAT unit. | |
5037 | Update the range of type Ada_Finalization_Child. Remove the following | |
5038 | recoverable entities: | |
2c7f9cc0 | 5039 | |
df3e68b1 HK |
5040 | RE_Attach_To_Final_List |
5041 | RE_Deep_Tag_Attach | |
5042 | RE_Finalize_List | |
5043 | RE_Finalize_One | |
5044 | RE_Finalizable_Ptr_Ptr | |
5045 | RE_Global_Final_List | |
5046 | RE_Limited_Record_Controller | |
5047 | RE_List_Controller | |
5048 | RE_Move_Final_List | |
5049 | RE_Record_Controller | |
5050 | RE_Simple_List_Controller | |
2c7f9cc0 | 5051 | |
df3e68b1 | 5052 | Add the following recoverable entities: |
2c7f9cc0 | 5053 | |
df3e68b1 HK |
5054 | RE_Add_Offset_To_Address |
5055 | RE_Allocate | |
5056 | RE_Base_Pool | |
5057 | RE_Deallocate | |
5058 | RE_Exception_Identity | |
5059 | RE_Finalization_Collection | |
5060 | RE_Finalization_Collection_Ptr | |
5061 | RE_Needs_Finalization | |
5062 | RE_Save_Library_Occurrence | |
5063 | RE_Set_Finalize_Address_Ptr | |
5064 | RE_Set_Storage_Pool_Ptr | |
5065 | RE_Storage_Count | |
5066 | * sem_aggr.adb (Resolve_Record_Aggregate): Remove mention of | |
5067 | Name_uController. | |
5068 | * sem_aux.adb (First_Discriminant): Remove mention of Name_uController. | |
5069 | (First_Stored_Discriminant): Remove the mention of Name_uController. | |
5070 | * sem_aux.ads: Comment reformatting. | |
5071 | * sem_ch10.adb (Build_Chain): Signal the class-wide creation machinery | |
5072 | to redecorate an already existing class-wide type. | |
5073 | (Decorate_Tagged_Type): New parameter profile and associated comment. | |
5074 | Create a "shadow class-wide type" for a shadow entity. | |
5075 | * sem_ch11.adb (Analyze_Exception_Handlers): Remove the dubious setting | |
5076 | of the final chain along with the associated comment. | |
5077 | * sem_ch3.adb (Access_Type_Declaration): Add new local variable | |
5078 | Full_Desig and set it to the full view of the designated type. | |
5079 | Initialize the finalization collection to empty. | |
5080 | (Build_Derived_Record_Type): Alphabetize local variables. Code | |
5081 | reformatting. | |
5082 | (Collect_Fixed_Components): Remove the mention of Name_uController. | |
5083 | (Create_Constrained_Components): Remove the mention of Name_uController. | |
5084 | (Make_Class_Wide_Type): Add specialized code to redecorate an existing | |
5085 | class-wide type of a shadow entity. | |
5086 | (Process_Full_View): Update the machinery which marks type | |
5087 | Limited_Controlled's entity as limited. | |
5088 | * sem_ch4.adb (Analyze_One_Call): Code reformatting. | |
5089 | * sem_ch6.adb (Create_Extra_Formals): Do not generate a finalization | |
5090 | list, instead make a collection build-in-place formal. | |
5091 | * sem_ch8.adb (Analyze_Object_Renaming): Look at the available view of | |
5092 | a designated type in order to establish a match between the renaming | |
5093 | and the renamed entity. | |
5094 | (Find_Selected_Component): Add guard to prevent spurious exceptions | |
5095 | from being raised on .NET/JVM. | |
5096 | * sem_disp.adb (Check_Dispatching_Operation): Include Finalize_Address | |
5097 | to the list of primitive that need special processing. Update arrays | |
5098 | C_Names and D_Names. | |
5099 | (Replace_Types): Handle class-wide types. | |
5100 | * sem_elab.adb (Check_A_Call): Since Deep_Initialize now has a | |
5101 | different parameter profile, look at the first formal. | |
5102 | * sem_prag.adb: Remove with and use clauses for Exp_Ch7. Add with and | |
5103 | use clauses for Exp_Util. | |
5104 | * sem_res.adb: Remove with and use clauses for Elists. | |
5105 | (Propagate_Coextensions): Removed. | |
5106 | (Resolve_Allocator): Do not propagate the list of coextensions from one | |
5107 | allocator to another. | |
5108 | * sem_util.adb (Build_Actual_Subtype_Of_Component): Rename variable | |
5109 | Deaccessed_T to Desig_Typ. | |
5110 | (Enter_Name): Remove the mention of Name_uController. | |
5111 | (Gather_Components): Remove the mention of Name_uController. | |
5112 | (Incomplete_Or_Private_View): New routine. | |
5113 | (Is_Coextension_Root): Removed. | |
5114 | (Is_Fully_Initialized_Type): Remove the mention of Name_uController. | |
5115 | * sem_util.ads (Incomplete_Or_Private_View): New routine. | |
5116 | (Is_Coextension_Root): Removed. | |
5117 | * s-finroo.ads: Remove with clause for Ada.Unchecked_Conversion. | |
5118 | Controlled types are now derived from a null tagged record. Remove | |
5119 | types Finalizable_Ptr, Finalizable and Empty_Root_Controlled. | |
5120 | * sinfo.adb (Coextensions): Removed. | |
5121 | (Set_Coextensions): Removed. | |
5122 | * sinfo.ads: Remove Coextensions from the explanation of node fields | |
5123 | and its uses in nodes. | |
5124 | Update the field usage of N_Allocator. | |
5125 | (Coextensions): Removed along with its pragma Inline. | |
5126 | (Set_Coextensions): Removed along with its pragma Inline. | |
5127 | * snames.ads-tmpl: Remove names | |
2c7f9cc0 | 5128 | |
df3e68b1 HK |
5129 | Name_uClean |
5130 | Name_uController | |
5131 | Name_uFinal_List | |
5132 | Name_uLocal_Final_List | |
5133 | Name_Finalization_Root | |
5134 | Name_Next | |
5135 | Name_Prev | |
2c7f9cc0 | 5136 | |
df3e68b1 | 5137 | Add names |
2c7f9cc0 | 5138 | |
df3e68b1 HK |
5139 | Name_uFinalizer |
5140 | Name_Finalize_Address | |
5141 | * s-pooglo.adb (Allocate): Add overriding indicator. | |
5142 | (Deallocate): Add overriding indicator. | |
5143 | (Storage_Size): Add overriding indicator. | |
5144 | * s-soflin.adb (Adafinal_NT): Invoke Finalize_Library_Objects rather | |
5145 | than Finalize_Global_List. | |
5146 | (Null_Finalize_Global_List): Removed. | |
5147 | (Save_Library_Occurrence): New routine. | |
5148 | * s-soflin.ads: Remove variable Finalize_Global_List along with its | |
5149 | initialization. Add variable Finalize_Library_Objects along with its | |
5150 | pragma Export. Add variables Library_Exception and | |
5151 | Library_Exception_Set along with their pragma Export. | |
5152 | (Null_Finalize_Global_List): Removed. | |
5153 | (Save_Library_Occurrence): New routine. | |
5154 | * s-tassta.adb (Finalize_Global_Tasks): Call Finalize_Library_Objects | |
5155 | rather than Finalize_Global_List. | |
5156 | * tbuild.adb (Unchecked_Convert_To): Capture and set the parent field | |
5157 | of the constructed node. | |
5158 | ||
2ee06322 RO |
5159 | 2011-08-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
5160 | ||
5161 | * link.c: Include "auto-host.h" before system headers. | |
5162 | ||
f77b022b VC |
5163 | 2011-08-03 Vincent Celier <celier@adacore.com> |
5164 | ||
5165 | * make.adb (Gnatmake): Add to table Library_Projs only library projects | |
5166 | that are not extended. Do not check if a library project that is | |
5167 | extended should be regenerated. Do not add to table Library_Paths the | |
5168 | libraries that are in extended projects. Link only with libraries that | |
5169 | are in libray projects that are not extended. | |
5170 | * prj-nmsc.adb (Check_Library_Attributes): Do not reset flag Library | |
5171 | for a library project that is extended. | |
5172 | ||
0187b60e AC |
5173 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5174 | ||
5175 | * sem_ch6.adb (Find_Corresponding_Spec): When in an instance, skip | |
5176 | conforming subprogram renamings that appear to be completions if they | |
5177 | are not fully conformant. | |
5178 | Such renamings are homographs but not completions. | |
5179 | * sem_type.adb (Disambiguate): Handle disambiguation of overloaded | |
5180 | names in a subprogram renaming that appears in an instance. | |
5181 | ||
5182 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5183 | ||
5184 | * exp_util.adb (Expand_Subtype_From_Expr): if the type is limited but | |
5185 | not immutably limited, build actual subtype from expression to provide | |
5186 | proper bounds to caller. | |
5187 | ||
5188 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
5189 | ||
5190 | * sem_ch8.adb: Minor comment correction. | |
5191 | ||
5192 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5193 | ||
5194 | * exp_strm.adb (Build_Array_Input_Function): In Ada 2005 mode, when | |
5195 | returning a limited array, use an extended return statement. | |
5196 | ||
5197 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
5198 | ||
5199 | * make.adb (Initialize): If --subdirs= is used, but no project file is | |
5200 | specified, attempt to create the specify subdir if it does not already | |
5201 | exist and use it as the object directory as if -D had been specified. | |
5202 | ||
5203 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5204 | ||
5205 | * s-tpopsp-vms.adb: New file. | |
5206 | * s-taprop-vms.adb: Put back ATCB_Key, since needed by this file on VMS. | |
5207 | * gcc-interfaces/Makefile.in: Use s-taprop-vms.adb on VMS. | |
5208 | ||
e280f981 AC |
5209 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5210 | ||
5211 | * make.adb, makeutl.adb, makeutl.ads, clean.adb (Makeutl.Queue): new | |
5212 | package. | |
5213 | ||
5214 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5215 | ||
5216 | * cstand.adb (Create_Standard): select Universal_Integer as an ALFA type | |
5217 | * sem_ch3.adb (Array_Type_Declaration): detect array types in ALFA | |
5218 | * sem_util.adb, sem_util.ads (Has_Static_Array_Bounds): new function to | |
5219 | detect that an array has static bounds. | |
5220 | ||
98c99a5a AC |
5221 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
5222 | ||
5223 | * exp_dist.adb: Minor reformatting. | |
5224 | ||
5225 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5226 | ||
5227 | * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-vms.adb | |
5228 | (ATCB_Key): Removed, not always used. | |
5229 | ||
5230 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5231 | ||
5232 | * gnatcmd.adb, make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads, | |
5233 | clean.adb, prj-conf.adb, prj-env.adb, prj-env.ads (Makeutl): remove | |
5234 | most remaining global variables. | |
5235 | ||
686d0984 AC |
5236 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5237 | ||
5238 | * gnatcmd.adb, prj-proc.adb, mlib-prj.adb, prj.adb, makeutl.ads, | |
5239 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-env.adb: Minor | |
5240 | reformatting. | |
5241 | ||
5242 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5243 | ||
5244 | * exp_util.adb (Is_VM_By_Copy_Actual): Include N_Slide nodes as actuals | |
5245 | that must be passed by copy in VM targets. | |
5246 | ||
5247 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5248 | ||
5249 | * prj.ads, prj-nmsc.adb (Files_Htable): removed this htable, which | |
5250 | duplicates a similar htable now in the project tree. | |
5251 | ||
5252 | 2011-08-03 Claire Dross <dross@adacore.com> | |
5253 | ||
5254 | * a-cfdlli.adb, a-cfhama.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb, | |
5255 | a-cofove.adb ("=", Length, Is_Empty, Clear, Assign, Copy, Element, | |
5256 | Replace_Element, Query_Element, Update_Element, Move, Insert, Prepend, | |
5257 | Append, Delete, Delete_First, Delete_Last, Reverse_Element, Swap, | |
5258 | Splice, First, First_Element, Last, Last_Element, Next, Previous, Find, | |
5259 | Reverse_Find, Contains, Has_Element, Iterate, Reverse_Iterate, Capacity, | |
5260 | Reserve_Length, Length, Strict_Equal, Left, Right): Data-structure | |
5261 | update. | |
5262 | ||
5263 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5264 | ||
5265 | * s-taprop-posix.adb, s-taprop-linux.adb, s-taprop-tru64.adb | |
5266 | (ATCB_Key): Removed, not always used. | |
5267 | * s-tpopsp-posix.adb, s-tpopsp-posix-foreign.adb (ATCB_Key): Moved from | |
5268 | s-taprop-posix.adb. | |
5269 | * s-tpopsp-tls.adb: New file. | |
5270 | * gcc-interface/Makefile.in: Use TLS implementation of s-tpopsp.adb on | |
5271 | x86/x64/ia64/powerpc/sparc Linux. | |
5272 | ||
5273 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5274 | ||
5275 | * system-aix.ads, system-aix64.ads: Set ZCX_By_Default to True. | |
5276 | * gcc-interface/Makefile.in: Switch to ZCX by default on AIX ports. | |
5277 | ||
5278 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5279 | ||
5280 | * rtsfind.ads, exp_dist.adb, exp_dist.ads | |
5281 | (Build_From_Any_Call, Build_To_Any_Call, Build_TypeCode_Call): | |
5282 | Fix type selection for mapping integer types to PolyORB types. | |
5283 | ||
5284 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5285 | ||
5286 | * sem_ch7.adb: Minor comment clarification. | |
5287 | ||
5288 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5289 | ||
5290 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): If we get | |
5291 | an error analyzing a choice, skip further processing. Further | |
5292 | processing could cause a crash or cascade errors. | |
5293 | ||
40ecf2f5 EB |
5294 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5295 | ||
5296 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, mlib-prj.adb, | |
5297 | prj.adb, prj.ads, makeutl.adb, makeutl.ads, clean.adb, prj-nmsc.adb, | |
5298 | prj-util.adb, prj-util.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, | |
5299 | prj-env.ads (Shared_Project_Tree_Data): new type | |
5300 | An aggregate project and its aggregated trees need to share the common | |
5301 | data structures used for lists of strings, packages,... This makes the | |
5302 | code simpler since otherwise we have to pass the root tree (also used | |
5303 | for the configuration file data) in addition to the current project | |
5304 | tree. This also avoids ambiguities as to which tree should be used. | |
5305 | And finally this saves a bit of memory. | |
5306 | (For_Every_Project_Imported): new parameter Tree. | |
5307 | Since aggregated projects are using a different tree, we need to let | |
5308 | the caller know which tree to use to manipulate the returned project. | |
5309 | ||
9fde638d RD |
5310 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5311 | ||
5312 | * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, | |
5313 | prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, | |
5314 | lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, | |
5315 | prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. | |
5316 | ||
95eb8b69 AC |
5317 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
5318 | ||
5319 | * exp_util.adb, sem_aux.adb, exp_util.ads, sem_aux.ads: | |
5320 | Move routine Is_VM_By_Copy_Actual from sem_aux to exp_util. | |
5321 | ||
5322 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5323 | ||
5324 | * sem_ch8.adb (Is_Primitive_Operator_In_Use): Always check In_Use on | |
5325 | the Base_Type. | |
5326 | ||
5327 | 2011-08-03 Joel Brobecker <brobecker@adacore.com brobecker> | |
5328 | ||
5329 | * g-sha256.ads, g-sha512.ads, g-sha1.ads, g-sha224.ads, g-sha384.ads, | |
5330 | g-sehash.ads: Fix typo. Update header. | |
5331 | ||
5332 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5333 | ||
5334 | * exp_ch6.adb (Expand_Actuals): Remove Ada_2005 guard on build-in-place | |
5335 | expansion. | |
5336 | ||
5337 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> | |
5338 | ||
5339 | * sem_ch4.adb (Analyze_Overloaded_Selected_Component): Consider | |
5340 | prefixes of private types along with records, since the selector may be | |
5341 | a discriminant. | |
5342 | * sem_res.adb (Resolve_Selected_Component): Consider prefixes of | |
5343 | private types along with records, since the selector may be a | |
5344 | discriminant. | |
5345 | ||
92e77027 AC |
5346 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5347 | ||
b2f7ebc1 | 5348 | * prj-pp.adb (Pretty_Print): Remove trailing blank line. |
92e77027 AC |
5349 | |
5350 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5351 | ||
5352 | * sem_aux.adb (Is_VM_By_Copy_Actual): Fix wrong use of | |
5353 | Tagged_Type_Expansion. | |
5354 | ||
5355 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5356 | ||
b2f7ebc1 GP |
5357 | * sem_res.adb (Resolve_Op_Concat_Arg): Do not issue a SPARK |
5358 | violation when the argument of concatenation is the name of a | |
5359 | constant. | |
92e77027 | 5360 | |
ab29a348 EB |
5361 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5362 | ||
5363 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, prj-env.adb, prj-env.ads, | |
5364 | prj-tree.adb, prj-tree.ads (Initialize_And_Copy, Copy): new subprograms | |
5365 | (Process_Declarative_Items): new parameter Child_Env. | |
5366 | ||
9466892f AC |
5367 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5368 | ||
589ef536 GP |
5369 | * alfa.ads: Update format of ALFA section in ALI file in order to |
5370 | add a mapping from bodies to specs when both are present. | |
5371 | (ALFA_Scope_Record): Add components for spec file/scope. | |
5372 | * get_alfa.adb (Get_ALFA): Read the new file/scope for spec when | |
5373 | present. | |
5374 | * lib-xref-alfa.adb (Collect_ALFA): After all scopes have been | |
5375 | collected, fill in the spec information when relevant. | |
5376 | * put_alfa.adb (Put_ALFA): Write the new file/scope for spec when | |
9466892f AC |
5377 | present. |
5378 | ||
5379 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5380 | ||
5381 | * inline.adb (Add_Inlined_Subprogram): Do not consider the enclosing | |
5382 | code unit to decide whether to add internally generated subprograms. | |
2c7f9cc0 | 5383 | |
9466892f AC |
5384 | 2011-08-03 Javier Miranda <miranda@adacore.com> |
5385 | ||
5386 | * sem_aux.ads, sem_aux.adb (Is_VM_By_Copy_Actual): New subprogram. | |
589ef536 GP |
5387 | * exp_ch9.adb (Build_Simple_Entry_Call): Handle actuals that must |
5388 | be handled by copy in VM targets. | |
9466892f AC |
5389 | |
5390 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5391 | ||
589ef536 | 5392 | * make.adb, makeutl.adb, makeutl.ads (Make.Switches_Of): Share |
9466892f AC |
5393 | code with Makeutl.Get_Switches. |
5394 | * prj-tree.adb: Update comment. | |
5395 | ||
b5ea9143 AC |
5396 | 2011-08-03 Thomas Quinot <quinot@adacore.com> |
5397 | ||
5398 | * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Reject a remote | |
5399 | subprogram with a limited formal that does not support external | |
5400 | streaming. | |
5401 | ||
5402 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5403 | ||
5404 | * get_alfa.adb (Get_ALFA): add missing Skip_Spaces at start of | |
5405 | continuation line | |
5406 | * lib-xref-alfa.adb (Add_ALFA_File): split removal of scopes that are | |
5407 | not from current unit in two phases, because it is not possible to | |
5408 | change the table while iterating over its content. | |
5409 | * put_alfa.adb (Put_ALFA): reset current file/scope at each new entity | |
5410 | ||
5411 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5412 | ||
5413 | * vms_data.ads: Add qualifier for gnatmetric --no-static-loop option | |
5414 | * gnat_ugn.texi: Update description of complexity metrics (gnatmetric) | |
5415 | ||
668a19bc ES |
5416 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5417 | ||
5418 | * sem_res.adb (Resolve_Op_Concat_Arg): if the argument is an aggregate | |
5419 | and the component type is composite, this is ambiguous for predefined | |
5420 | concatenation, but if the node is not overloaded and the entity is a use | |
5421 | -defined function its profile can be used to resolve that aggregate. | |
5422 | ||
170b2989 AC |
5423 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5424 | ||
5425 | * exp_ch4.adb: Minor code cleanup. | |
5426 | ||
5427 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5428 | ||
5429 | * exp_dist.adb: Do not generate distribution stubs if serious errors | |
5430 | have been diagnosed. | |
5431 | ||
5432 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5433 | ||
5434 | * sem_ch4.adb (Try_Primitive_Operation): when checking the validity of | |
5435 | the first formal of a primitive operation, go to the base type to | |
5436 | handle properly an access to a derived type with constrained | |
5437 | discriminants. | |
5438 | * sem_type.adb (Disambiguate): an immediately visible operator hides a | |
5439 | user-defined function that is only use-visible. | |
170b2989 | 5440 | |
e917aec2 RD |
5441 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5442 | ||
5443 | * sem_aggr.adb, sem_ch3.adb, lib.ads, gnatcmd.adb, prj-proc.adb, | |
5444 | make.adb, lib-writ.adb, prj-part.adb, prj-part.ads, prj-ext.adb, | |
5445 | fname-uf.adb, prj-ext.ads, prj.adb, prj.ads, sem_attr.adb, alfa.adb, | |
5446 | prj-makr.adb, errout.adb, makeutl.adb, makeutl.ads, restrict.ads, | |
5447 | sem_ch6.adb, g-pehage.adb, clean.adb, put_alfa.adb, lib-xref-alfa.adb, | |
5448 | prj-nmsc.adb, prj-nmsc.ads, sem_ch8.adb, prj-pars.ads, exp_aggr.adb, | |
5449 | prj-attr.ads, sem_ch13.adb, get_alfa.adb, prj-env.adb, prj-env.ads, | |
5450 | alfa_test.adb, prj-tree.adb, prj-tree.ads, einfo.ads: Minor reformatting | |
5451 | ||
5452 | 2011-08-03 Robert Dewar <dewar@adacore.com> | |
5453 | ||
5454 | * repinfo.adb (List_Mechanism): Add handling of | |
5455 | Convention_Ada_Pass_By_XXX. | |
5456 | * sem_mech.adb (Set_Mechanism): Ditto. | |
5457 | * sem_prag.adb (Process_Convention): Add entries for | |
5458 | Convention_Ada_Pass_By_XXX. | |
5459 | * snames.adb-tmpl, snames.ads-tmpl: Ditto. | |
5460 | ||
49bfcf43 AC |
5461 | 2011-08-03 Pascal Obry <obry@adacore.com> |
5462 | ||
5463 | * makeutl.adb: Minor reformatting. | |
5464 | ||
5465 | 2011-08-03 Vincent Celier <celier@adacore.com> | |
5466 | ||
5467 | * fname-uf.adb | |
5468 | (Get_File_Name) If the file cannot be found when there are no config | |
5469 | pragmas file and May_Fail is True, return No_File instead of the file | |
5470 | name, to be consistent. | |
5471 | ||
5472 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5473 | ||
5474 | * adaint.c (__gnat_is_executable_file_attr): Avoid access | |
5475 | to null pointer. | |
5476 | ||
5477 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5478 | ||
5479 | * sem_ch13.adb | |
5480 | (Same_Representation): In VM targets the representation of arrays with | |
5481 | aliased components differs from arrays with non-aliased components. | |
5482 | ||
34798441 EB |
5483 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5484 | ||
5485 | * prj-proc.adb, prj-attr.adb, prj-attr.ads (Get_Attribute_Index): do | |
5486 | not systematically lower case attribute indexes that contain no "." | |
5487 | Fix definition of several Naming attributes, which take | |
5488 | a unit name as index and therefore should be case insensitive. | |
5489 | Minor refactoring (reduce length of variable names). | |
5490 | ||
5491 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5492 | ||
5493 | * makeutl.adb, makeutl.ads (Get_Switches): new subprogram. | |
5494 | ||
4437a530 EB |
5495 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5496 | ||
5497 | * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb, | |
5498 | prj-part.ads, switch-m.adb, switch-m.ads, prj-makr.adb, clean.adb, | |
5499 | prj-pars.adb, prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb, | |
5500 | prj-tree.ads (Prj.Tree.Environment): new type. | |
5501 | ||
804fe3c4 EB |
5502 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5503 | ||
5504 | * prj-proc.adb, prj.ads, makeutl.adb, makeutl.ads, prj-conf.adb, | |
5505 | prj-tree.adb, prj-tree.ads (Environment): new type. | |
5506 | ||
c565bc66 AC |
5507 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5508 | ||
5509 | * prj-tree.ads: Remove unused variable. | |
5510 | ||
5511 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5512 | ||
5513 | * restrict.adb (Restriction_Msg): set "SPARK" all in upper case for | |
5514 | issuing messages related to SPARK restriction violation. | |
5515 | ||
4ee646da AC |
5516 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5517 | ||
5518 | * sem_ch6.adb: guard against error nodes in return statements. | |
5519 | ||
5520 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5521 | ||
5522 | * errout.adb (Error_Msg_Internal): the main unit has not been read yet, | |
5523 | a warning can only appear on a configuration file, so emit warning | |
5524 | without further checks. | |
5525 | ||
5526 | 2011-08-03 Arnaud Charlet <charlet@adacore.com> | |
5527 | ||
5528 | * s-interr.ads: add overriding keyword. | |
5529 | ||
5530 | 2011-08-03 Geert Bosch <bosch@adacore.com> | |
5531 | ||
5532 | * exp_attr.adb: Fix minor typo. | |
5533 | ||
5534 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5535 | ||
5536 | * par-ch4.adb: improve error recovery. | |
5537 | ||
c0e538ad AC |
5538 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5539 | ||
5540 | * prj-part.adb, prj-part.ads, prj-makr.adb, prj-pars.adb, prj-conf.adb, | |
5541 | prj-env.adb (Prj.Part.Parse): change parameter Always_Errout_Finalize | |
5542 | to Errout_Handling. | |
5543 | ||
5544 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5545 | ||
5546 | * prj-dect.adb (Parse_Attribute_Declaration): make sure we can use | |
5547 | "external" as an attribute name in aggregate projects. | |
5548 | ||
5549 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5550 | ||
5551 | * s-taprop-vxworks.adb: (Create_Task, Initialize): Ada 2012 pragma CPU | |
5552 | uses CPU numbers starting 1, while VxWorks uses CPU numbers starting | |
5553 | from 0, so we need to adjust. | |
5554 | ||
5555 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5556 | ||
5557 | * prj-proc.adb, prj-ext.adb, prj-ext.ads, makeutl.adb, prj-tree.adb, | |
5558 | prj-tree.ads, gnatcmd.adb, clean.adb (External_References): new type. | |
5559 | ||
c4d67e2d AC |
5560 | 2011-08-03 Yannick Moy <moy@adacore.com> |
5561 | ||
5562 | * sem_ch6.adb (New_Overloaded_Entity): only issue error for SPARK | |
5563 | restriction on overloaded entity if the entity is not an operator. | |
5564 | ||
5565 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5566 | ||
5567 | * sem_ch7.adb, sem_res.adb, sem_attr.adb, restrict.adb, | |
5568 | restrict.ads: Rename remaining Check_Formal_Restriction* into | |
5569 | Check_SPARK_Restriction*. | |
5570 | ||
5571 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5572 | ||
5573 | * prj-proc.adb, prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, | |
5574 | prj-nmsc.ads, prj-err.adb (Project_Data): now discriminated on its | |
5575 | qualifier. | |
5576 | (Project_Empty): removed | |
5577 | (Empty_Project): new parameter Qualifier | |
5578 | This is used to have fields specific to aggregate projects, cleaner | |
5579 | New field to store the list of aggregated projects. | |
5580 | (Check_Aggregate_Project): removed | |
5581 | (Process_Aggregated_Projects, Free): new subprograms. | |
5582 | ||
3f5a8fee AC |
5583 | 2011-08-03 Olivier Hainque <hainque@adacore.com> |
5584 | ||
5585 | * tracebak.c (STOP_FRAME ppc AIX): Stop at null return address as well. | |
5586 | ||
5587 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5588 | ||
5589 | * sem_ch8.adb (Analyze_Object_Renaming): if the renamed object is an | |
5590 | explicit dereference of an unconstrained type, create a constrained | |
5591 | subtype for it, as is done for function calls that return an | |
5592 | unconstrained type. | |
5593 | ||
5594 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5595 | ||
5596 | * g-pehage.adb (Finalize): Avoid possible double-free. | |
5597 | ||
5598 | 2011-08-03 Steve Baird <baird@adacore.com> | |
5599 | ||
5600 | * exp_attr.adb (Expand_N_Attribute_Reference): Don't expand | |
5601 | Elab_Spec/Body attrs in CodePeer_Mode. | |
5602 | ||
5603 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5604 | ||
5605 | * exp_aggr.adb (Flatten): Convert to positional form aggregates whose | |
5606 | low bound is not known at compile time but they have no others choice. | |
5607 | Done because in this case the bounds can be obtained directly from the | |
5608 | aggregate. | |
5609 | ||
5610 | 2011-08-03 Ed Falis <falis@adacore.com> | |
5611 | ||
5612 | * s-tasinf-vxworks.ads: Update comment to reflect 0 indexing of CPUs | |
5613 | on VxWorks SMP. Remove unusable constant ANY_CPU. | |
5614 | ||
a96ca600 EB |
5615 | 2011-08-03 Emmanuel Briot <briot@adacore.com> |
5616 | ||
5617 | * gnatcmd.adb, make.adb, prj-part.adb, prj-part.ads, prj-makr.adb, | |
5618 | clean.adb, prj-nmsc.adb, prj-pars.adb, prj-conf.adb, prj-env.adb, | |
5619 | prj-env.ads (Prj.Env.Initialize_Default_Project_Path, | |
5620 | Prj.Env.Initialize_Empty): new subprograms | |
5621 | (Get_Env, Find_Project): remove parameter Target_Name. | |
5622 | ||
3e582869 AC |
5623 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5624 | ||
5625 | * sem_ch3.adb (Build_Derived_Record_Type): Test the Derive_Subps formal | |
5626 | as a condition for the delayed call to Derived_Subprograms done for the | |
5627 | case of the rewriting of a derived type that constrains the | |
5628 | discriminants of its parent type. | |
5629 | Avoids redundant subprogram derivations for private subtype derivations. | |
5630 | ||
5631 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5632 | ||
5633 | * exp_aggr.adb (Init_Hidden_Discriminants): New subprogram of | |
5634 | Build_Record_Aggr_Code. | |
5635 | (Build_Record_Aggr_Code): Add missing support to initialize hidden | |
5636 | discriminants in extension aggregates. | |
5637 | ||
5638 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5639 | ||
5640 | * prj-pp.adb (Print): also output project qualifiers, since in | |
5641 | particular "aggregate" is mandatory in an aggregate project. | |
5642 | ||
5643 | 2011-08-03 Emmanuel Briot <briot@adacore.com> | |
5644 | ||
5645 | * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb: | |
5646 | (Debug_Output): new function. | |
5647 | ||
56e94186 AC |
5648 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> |
5649 | ||
5650 | * gnat_ugn.texi: Document -Wstack-usage. | |
5651 | * gcc-interface/misc.c (enumerate_modes): Add guard for ghost FP modes. | |
5652 | ||
5653 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5654 | ||
5655 | * sem_prag.adb Issue an error (not a warning) when a C++ type does not | |
5656 | have keyword LIMITED. | |
5657 | ||
5658 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5659 | ||
5660 | * alfa.adb, alfa.ads, alfa_test.adb: New files. | |
5661 | * ali.adb (Known_ALI_Lines): add 'C' lines (SCO) and 'F' lines (ALFA) | |
5662 | (Scan_ALI): do not issue a fatal error if parsing known lines after Xref | |
5663 | section (does not happen in compiler, only if code directly calls | |
5664 | Scan_ALI). | |
5665 | * get_alfa.adb, get_alfa.ads: New files. | |
5666 | * lib-writ.adb, lib-writ.ads (Write_ALI): output ALFA information if | |
5667 | needed. | |
5668 | * lib-xref-alfa.adb: New file. | |
5669 | * lib-xref.adb, lib-xref.ads | |
5670 | (Xref_Entry): redefine information needed in cross-references for ALFA. | |
5671 | Push ALFA treatments in separated local package. | |
5672 | (Enclosing_Subpragram_Or_Package): treat specially subprogram | |
5673 | identifiers. Return entity of package body instead of spec. Return | |
5674 | Empty for a scope with no location. | |
5675 | (Generate_Reference): adapt to new components for ALFA information. | |
5676 | Remove the need for D references on definitions. | |
5677 | (Is_Local_Reference): moved to ALFA local package | |
5678 | (Output_References): extract subfunction as Extract_Source_Name | |
5679 | (Output_Local_References): remove procedure, replaced by filtering of | |
5680 | cross-references in package ALFA and printing in Put_ALFA. | |
5681 | (Write_Entity_Name): remove procedure | |
5682 | * lib.adb, lib.ads (Extract_Source_Name): extract here function to | |
5683 | print exact name of entity as it appears in source file | |
5684 | (Unit_Ref_Table): make type public for use in Lib.Xref.ALFA | |
5685 | * put_alfa.adb, put_alfa.ads: New files. | |
5686 | * xref_lib.adb (Search_Xref): protect read of cross-references against | |
5687 | reading other sections of the ALI file, in gnatxref | |
5688 | (Search): protect read of cross-references against reading other | |
5689 | sections of the ALI file, in gnatfind. | |
5690 | * gcc-interface/Make-lang.in: Update dependencies. | |
5691 | ||
5692 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5693 | ||
5694 | * sem_ch3.adb: Minor reformatting. | |
5695 | ||
5696 | 2011-08-03 Jose Ruiz <ruiz@adacore.com> | |
5697 | ||
5698 | * s-inmaop-vxworks.adb (Setup_Interrupt_Mask): Do nothing instead of | |
5699 | raising an exception. | |
5700 | ||
5701 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5702 | ||
5703 | * sem_res.adb (Set_String_Literal_Subtype): if index type is an integer | |
5704 | type, always use 1 as the lower bound or string, even if lower bound of | |
5705 | context is not static, to handle properly null strings in a non-static | |
5706 | context. | |
5707 | ||
5708 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5709 | ||
5710 | * sem_prag.adb (Resolve_Aggregate): An array aggregate with 'others' is | |
5711 | always legal on the right-hand side of an assignment statement; there | |
5712 | is always an applicable index constraint in this case. Therefore, the | |
5713 | check for Pkind = N_Assignment_Statement is now unconditional -- it | |
5714 | doesn't depend on whether Is_Constrained (Typ). | |
5715 | ||
4317e442 AC |
5716 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5717 | ||
5718 | * exp_ch5.adb, sem_prag.adb, exp_ch4.adb: Minor reformatting. | |
5719 | ||
5720 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5721 | ||
5722 | * sem_ch3.adb (Build_Itype_Reference): do not create an itype reference | |
5723 | for an itype created within a generic unit. | |
5724 | ||
5725 | 2011-08-03 Eric Botcazou <ebotcazou@adacore.com> | |
5726 | ||
5727 | * gnat_ugn.texi (Switches for gcc): Make it clearer that -fno-inline | |
5728 | suppresses all inlining. | |
5729 | ||
53f29d4f AC |
5730 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5731 | ||
5732 | * sem_ch3.adb, sem_res.adb, exp_ch13.adb, exp_disp.adb, | |
5733 | exp_aggr.adb: Minor reformatting. | |
5734 | ||
5735 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5736 | ||
5737 | * exp_ch5.adb (Expand_N_Assignment_Statement): Do not force inlining of | |
5738 | tagged assignment when discriminant checks are suppressed. This is | |
5739 | useless and extremely costly in terms of static stack usage. | |
5740 | ||
5741 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5742 | ||
5743 | * sem_prag.adb (Get_Base_Subprogram): Do not follow Alias for instances | |
5744 | of generics, because this leads to the wrong entity in the wrong scope, | |
5745 | causing (e.g.) pragma Export_Procedure to get an error if the entity is | |
5746 | an instance. | |
5747 | (Process_Interface_Name): Follow Alias for instances of generics, to | |
5748 | correct for the above change. | |
5749 | ||
5750 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5751 | ||
5752 | * exp_ch4.adb (Expand_N_Selected_Component): If the discriminant value | |
5753 | is an integer literal it is always safe to replace the reference. In | |
5754 | addition, if the reference appears in the generated code for an object | |
5755 | declaration it is necessary to copy because otherwise the reference | |
5756 | might be to the uninitilized value of the discriminant of the object | |
5757 | itself. | |
5758 | ||
5759 | 2011-08-03 Pascal Obry <obry@adacore.com> | |
5760 | ||
5761 | * adaint.c (__gnat_is_executable_file_attr): Fix Win32 circuitry when no | |
5762 | ACL used, in this case we want to check for ending .exe, not .exe | |
5763 | anywhere in the path. | |
5764 | ||
5765 | 2011-08-03 Sergey Rybin <rybin@adacore.com> | |
5766 | ||
5767 | * tree_io.ads (ASIS_Version_Number): Update because of the changes in | |
5768 | the tree structure (semantic decoration of references to record | |
5769 | discriminants). | |
5770 | ||
c0b11850 AC |
5771 | 2011-08-03 Gary Dismukes <dismukes@adacore.com> |
5772 | ||
5773 | * sem_aggr.adb (Analyze_Array_Aggregate): When checking the discrete | |
5774 | choices of a named array aggregate, bail out when any choices are | |
5775 | marked as Errors_Posted. | |
5776 | ||
5777 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5778 | ||
5779 | * exp_ch13.adb (Expand_N_Freeze_Entity): cleanup determination of scope | |
5780 | in which entity is frozen, to handle properly loop variables in | |
5781 | iterators. | |
5782 | ||
5783 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5784 | ||
5785 | * sem_res.adb (Set_String_Literal_Subtype): if the lower bound of the | |
5786 | subtype is not static, compute the upper bound using attributes, to | |
5787 | handle properly index types that are not integer types. | |
5788 | ||
5789 | 2011-08-03 Bob Duff <duff@adacore.com> | |
5790 | ||
5791 | * gnat_rm.texi, gnat_ugn.texi: Fix some dangling URLs. | |
5792 | Update copyright notice. | |
5793 | ||
5794 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5795 | ||
5796 | * sem_ch3.adb (Build_Discriminant_Constraints): Only use | |
5797 | Original_Discriminant if within an instance. | |
5798 | * sem_ch4.adb (Analyze_Selected_Component): Ditto. | |
5799 | ||
5800 | 2011-08-03 Thomas Quinot <quinot@adacore.com> | |
5801 | ||
5802 | * einfo.ads: Minor reformatting. | |
5803 | ||
5804 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5805 | ||
5806 | * exp_disp.adb (Check_Premature_Freezing): diagnose the presence of a | |
5807 | composite type with an unfrozen subcomponent, in the profile of a | |
5808 | primitive operation. | |
5809 | ||
5c34e9cd AC |
5810 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5811 | ||
5812 | * sem_util.ads, exp_aggr.adb, exp_ch3.adb: Minor reformatting. | |
5813 | ||
5814 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> | |
5815 | ||
5816 | * sem_ch3.adb (Analyze_Object_Declaration): if a constant object of an | |
5817 | unconstrained type with discriminants is initialized with an aggregate, | |
5818 | use the constrained subtype of the aggregate as the type of the object, | |
5819 | because it is immutable, and this allows the back-end to generate no | |
5820 | code for the object declaration. | |
5821 | ||
abcd9db2 AC |
5822 | 2011-08-03 Robert Dewar <dewar@adacore.com> |
5823 | ||
5824 | * exp_ch4.adb (Optimize_Length_Check): Fix bad handling of case where | |
5825 | comparison operand is variable, and turns out to be zero or negative. | |
5826 | ||
5827 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5828 | ||
5829 | * exp_intr.adb | |
5830 | (Expand_Dispatching_Constructor_Call): Disable expansion of | |
5831 | code required for native targets. Done to avoid generating | |
5832 | references to unavailable runtime entities in VM targets. | |
5833 | * exp_ch3.adb | |
5834 | (Expand_N_Object_Declaration): Add missing support to handle | |
5835 | the explicit initialization of class-wide interface objects. | |
5836 | Fix documentation. | |
5837 | ||
5838 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5839 | ||
5840 | * a-cobove.adb (Merge): Move source onto target, instead of using Assign | |
5841 | ||
5842 | 2011-08-03 Matthew Heaney <heaney@adacore.com> | |
5843 | ||
5844 | * a-cbdlli.adb (Splice): move source items from first to last | |
5845 | ||
5846 | 2011-08-03 Yannick Moy <moy@adacore.com> | |
5847 | ||
5848 | * sem_util.ads: comment added. | |
5849 | ||
5850 | 2011-08-03 Javier Miranda <miranda@adacore.com> | |
5851 | ||
5852 | * exp_aggr.adb | |
5853 | (Expand_Record_Aggregate): In VM targets disable the expansion into | |
5854 | assignments of aggregates whose type is not known at compile time. | |
5855 | ||
b474d6c3 ES |
5856 | 2011-08-03 Ed Schonberg <schonberg@adacore.com> |
5857 | ||
5858 | * exp_ch9.adb (Build_Renamed_Formal_Declaration): common procedure for | |
5859 | protected entries and task entries, to build the proper renaming | |
5860 | declaration for entry formals, used in debugging. | |
5861 | * exp_ch2.adb (Expand_Entry_Parameter): handle task and entry | |
5862 | parameters in the same way. | |
5863 | ||
0580d807 AC |
5864 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
5865 | ||
5866 | * a-direct.adb, sinfo.ads, exp_ch9.adb, scng.adb, sem_util.adb, | |
5867 | sem_util.ads, restrict.ads, par-prag.adb: Minor reformatting and/or | |
5868 | code reorganization. | |
5869 | ||
5870 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
5871 | ||
5872 | * debug.adb: Debug flag d.P to suppress length comparison optimization | |
5873 | * exp_ch4.adb (Optimize_Length_Comparison): New routine to optimize | |
5874 | comparison of Length by comparing First/Last instead. | |
5875 | ||
5876 | 2011-08-02 Matthew Heaney <heaney@adacore.com> | |
5877 | ||
5878 | * a-cobove.ads: Code clean up. | |
5879 | ||
b191a125 AC |
5880 | 2011-08-02 Vincent Celier <celier@adacore.com> |
5881 | ||
5882 | * adaint.c (file_names_case_sensitive_cache): New static int. | |
5883 | (__gnat_get_file_names_case_sensitive): Cache the return value in | |
5884 | file_names_case_sensitive_cache at the first invocation, to avoid | |
5885 | multiple calls to getenv. | |
5886 | ||
5887 | 2011-08-02 Bob Duff <duff@adacore.com> | |
5888 | ||
5889 | * sem_ch12.adb (Validate_Derived_Type_Instance): Implement AI05-0218-1. | |
5890 | ||
316a0661 AC |
5891 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5892 | ||
5893 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_prag.adb, sem.ads, | |
5894 | sem_util.adb, sem_util.ads, sem_res.adb, sem_ch2.adb, sem_ch4.adb, | |
5895 | sem_ch6.adb, sem_ch11.adb: Add semantic flag In_Pre_Post_Expression to | |
5896 | indicate that we are in a precondition or postcondition. This is used in | |
5897 | Mark_Non_ALFA_Subprogram (renaming of Mark_Non_ALFA_Subprogram_Body) to | |
5898 | decide whether to flag the spec or body of the current subprogram as | |
5899 | not in ALFA. | |
5900 | ||
5901 | 2011-08-02 Fabien Chouteau <chouteau@adacore.com> | |
5902 | ||
5903 | * impunit.adb: Add Ada.Execution_Time.Interrupts in the Ada2012 package | |
5904 | list. | |
5905 | * a-extiin.ads: New file. | |
5906 | ||
5907 | 2011-08-02 Bob Duff <duff@adacore.com> | |
5908 | ||
5909 | * a-direct.adb (Rename): Implement AI05-0231-1. In particular, Rename | |
5910 | now raises Name_Error instead of Use_Error in certain cases. The other | |
5911 | parts of this AI were already implemented properly. | |
5912 | ||
f9adb9d4 AC |
5913 | 2011-08-02 Vincent Celier <celier@adacore.com> |
5914 | ||
5915 | * link.c: Only import "auto-host.h" when building the gnattools. | |
5916 | ||
5917 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5918 | ||
5919 | * sem_util.adb: Inter-unit inlining does not work for a subprogram | |
5920 | which calls a local subprogram, so extract subprogram | |
5921 | from Mark_Non_ALFA_Subprogram_Body. | |
5922 | ||
5923 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
5924 | ||
5925 | * exp_ch9.adb | |
5926 | (Extract_Dispatching_Call): If the type of the dispatching object is an | |
5927 | access type then return an explicit dereference in the Object out-mode | |
5928 | parameter. | |
5929 | ||
5930 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
5931 | ||
5932 | * sem_ch3.adb (Analyze_Subtype_Declaration): Generate range | |
5933 | compatibility checks for all indexes of an array subtype, not just the | |
5934 | first. Reset Has_Dynamic_Range_Check on the subtype before each | |
5935 | potential check to ensure that Insert_Range_Checks will not elide any | |
5936 | of the dynamic checks. | |
5937 | ||
5938 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5939 | ||
5940 | * par-prag.ad (Process_Restrictions_Or_Restriction_Warnings): recognize | |
5941 | SPARK restriction at parsing time. | |
5942 | * scng.adb (Scan): Generate a token Tok_SPARK_Hide for a SPARK HIDE | |
5943 | directive only if the SPARK restriction is set for this unit. | |
5944 | ||
83f33150 YM |
5945 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5946 | ||
5947 | * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb, sem_util.ads, | |
5948 | sem_res.adb, sem_ch2.adb, sem_ch4.adb, sem_ch6.adb, | |
5949 | sem_ch11.adb: Protect call to Current_Subprogram which might be costly | |
5950 | when repeated. Rename Current_Subprogram_Is_Not_In_ALFA into | |
5951 | Mark_Non_ALFA_Subprogram_Body. | |
5952 | Split body of Mark_Non_ALFA_Subprogram_Body to get body small and | |
5953 | inlined. | |
5954 | ||
7b98672f YM |
5955 | 2011-08-02 Yannick Moy <moy@adacore.com> |
5956 | ||
5957 | * sem_res.adb: Protect calls to Matching_Static_Array_Bounds which | |
5958 | might be costly. | |
5959 | ||
052e0603 AC |
5960 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
5961 | ||
5962 | * exp_ch9.adb, exp_sel.adb, restrict.ads, exp_disp.adb, erroutc.ads, | |
5963 | exp_ch3.adb: Minor reformatting. | |
5964 | ||
5965 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
5966 | ||
5967 | * adaint.c (__gnat_locate_exec_on_path): only returns executable | |
5968 | files, not any regular file. | |
5969 | (__gnat_locate_file_with_predicate): new subprogram. | |
5970 | ||
5971 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
5972 | ||
5973 | * sinfo.adb, sinfo.ads: Restrict the use of flags | |
5974 | Has_Dynamic_Length_Check and Has_Dynamic_Range_Check to expression | |
5975 | nodes, plus N_Subtype_Declaration for the 2nd one. | |
5976 | ||
4fbad0ba AC |
5977 | 2011-08-02 Sergey Rybin <rybin@adacore.com> |
5978 | ||
5979 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
5980 | - fix bugs in the description of Source_Trace; | |
5981 | - get rid of UNIT_NAME; | |
5982 | ||
052e0603 AC |
5983 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
5984 | ||
5985 | * exp_ch9.adb | |
5986 | (Build_Dispatching_Requeue): Adding support for VM targets | |
5987 | since we cannot directly reference the Tag entity. | |
5988 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
5989 | (Build_S_Assignment): Adding support for VM targets. | |
5990 | * exp_disp.adb | |
5991 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
5992 | of predefined interface primitives to compiling in Ada 2005 mode. | |
5993 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
5994 | restricted to compiling in Ada 2005 mode. | |
5995 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
5996 | record. Needed to support dispatching calls through synchronized | |
5997 | interfaces. | |
5998 | * exp_ch3.adb | |
5999 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
6000 | primitives associated with synchronized interfaces. | |
6001 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
6002 | primitives associated with synchronized interfaces. | |
6003 | ||
6004 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6005 | ||
6006 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
6007 | statements hidden in SPARK if preceded by the HIDE directive | |
6008 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
6009 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
6010 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
6011 | if starting with the HIDE directive | |
6012 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
6013 | starting with the HIDE directive; mark the declarations in a private | |
6014 | part as hidden in SPARK if the private part starts with the HIDE | |
6015 | directive | |
6016 | * restrict.adb, restrict.ads | |
6017 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
6018 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
6019 | argument node belongs to a part which is hidden in SPARK | |
6020 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
6021 | parts in SPARK; protect the possibly costly call to | |
6022 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
6023 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
6024 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
6025 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
6026 | Tok_SPARK_Hide. | |
6027 | (Scan): recognize special comment starting with '#' and followed by | |
6028 | SPARK keyword "hide" as a HIDE directive. | |
6029 | ||
6030 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6031 | ||
6032 | * types.ads, erroutc.ads: Minor reformatting. | |
6033 | ||
6034 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6035 | ||
6036 | * link.c: Add response file support for cross platforms. | |
6037 | ||
6038 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6039 | ||
6040 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
6041 | in an association, set parent field of copy before partial analysis. | |
6042 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
6043 | expansion is enabled. | |
6044 | ||
6045 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6046 | ||
6047 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
6048 | for new flag denoting which subprogram bodies are in ALFA | |
6049 | * restrict.adb, sem_ch7.adb: Update comment | |
6050 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
6051 | sem_ch9.adb, sem_res.adb: Add calls to | |
6052 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
6053 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
6054 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
6055 | middle of the body, and extended return. | |
6056 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
6057 | False when missing return. | |
6058 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
6059 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
6060 | on the entity used for a subprogram body when there exists a separate | |
6061 | declaration. | |
6062 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
6063 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
6064 | False, otherwise do nothing. | |
6065 | ||
6066 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6067 | ||
6068 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
6069 | ||
6070 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6071 | ||
6072 | * sem_ch4.ads: minor formatting. | |
6073 | ||
6074 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6075 | ||
6076 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
6077 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
6078 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
6079 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
6080 | opt.ads: cleanup of SPARK mode | |
6081 | ||
6082 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6083 | ||
6084 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
6085 | types. | |
6086 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
6087 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
6088 | * sem_ch3.adb | |
6089 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
6090 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
6091 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
6092 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
6093 | types. | |
6094 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
6095 | non-static range. | |
6096 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
6097 | functions whose return type is not in ALFA. | |
6098 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
6099 | specifications. | |
6100 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
6101 | parameter's type is not in ALFA. | |
6102 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
6103 | types are in ALFA. | |
6104 | ||
6105 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6106 | ||
6107 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
6108 | Inline_Always, and introduce a subprogram declaration for it when it is | |
6109 | not a completion. | |
6110 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
6111 | expression functions, so that the back-end can determine whether they | |
6112 | can in fact be inlined. | |
6113 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
6114 | a function body comes from an expression function. | |
6115 | ||
6116 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6117 | ||
6118 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
6119 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
6120 | of the formals rather than testing the formals themselves. Exclude this | |
6121 | check in cases where the Old_Formal is marked as a controlling formal, | |
6122 | to avoid issuing spurious errors for bodies completing dispatching | |
6123 | operations (due to the flag not getting set on controlling access | |
6124 | formals in body specs). | |
6125 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
6126 | subprogram bodies in instances, pass Designated and E in that order, for | |
6127 | consistency with the expected order of the formals (New_Id followed by | |
6128 | Old_Id). | |
6129 | ||
6130 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6131 | ||
6132 | * sem_ch8.adb: Minor reformatting. | |
6133 | ||
6134 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6135 | ||
6136 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
6137 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
6138 | primitive operations of class-wide actuals. | |
6139 | ||
6140 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6141 | ||
6142 | * exp_atag.ads, exp_atag.adb | |
6143 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
6144 | since its value is implicitly passed in argument Typ. | |
6145 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
6146 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
6147 | Build_Common_Dispatching_Select_Statements. | |
6148 | ||
6149 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6150 | ||
6151 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
6152 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
6153 | Minor reformatting. | |
6154 | ||
6155 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6156 | ||
6157 | * sem_res.adb: Minor reformatting. | |
6158 | * sem_prag.adb: Minor reformatting. | |
6159 | ||
6160 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6161 | ||
6162 | * exp_atag.adb, exp_atags.ads | |
6163 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
6164 | by the tagged type Entity. Required to use this routine in the VM | |
6165 | targets since we do not have available the Tag entity in the VM | |
6166 | platforms. | |
6167 | * exp_ch6.adb | |
6168 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
6169 | Ada.Tags has not been previously loaded. | |
6170 | * exp_ch7.adb | |
6171 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
6172 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
6173 | * sem_aux.adb | |
6174 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
6175 | view of enclosing scopes. Required to handle enclosing scopes that | |
6176 | are synchronized types whose full view is a task type. | |
6177 | * exp_disp.adb | |
6178 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
6179 | analyzing lists with empty nodes. | |
6180 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
6181 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
6182 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
6183 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
6184 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
6185 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
6186 | the TSD. | |
6187 | ||
6188 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6189 | ||
6190 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
6191 | cross-references section in ALI. | |
6192 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
6193 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
6194 | Sub). | |
6195 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
6196 | subprogram or package entity of a node | |
6197 | (Is_Local_Reference_Type): new function returns True for references | |
6198 | selected in local cross-references. | |
6199 | (Lt): function extracted from Lt in Output_References | |
6200 | (Write_Entity_Name): function extracted from Output_References | |
6201 | (Generate_Definition): generate reference with type 'D' for definition | |
6202 | of objects (object declaration and parameter specification), with | |
6203 | appropriate locations and units, for use in local cross-references. | |
6204 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
6205 | references of type 'I' for initialization in object definition. | |
6206 | (Output_References): move part of function Lt and procedure | |
6207 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
6208 | and 'I' introduced for local cross-references. | |
6209 | (Output_Local_References): new procedure to output the local | |
6210 | cross-references sections. | |
6211 | (Lref_Entity_Status): new array defining whether an entity is a local | |
6212 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
6213 | with 'I' type when initialization expression is present. | |
6214 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
6215 | ||
6216 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6217 | ||
6218 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
6219 | the JVM target. | |
6220 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
6221 | the JVM target. | |
6222 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
6223 | TSD support. | |
6224 | ||
6225 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6226 | ||
6227 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
6228 | (No_Space_Img): New function | |
6229 | (Find_Excluded_Sources): When reading from a file, record the file name | |
6230 | and the line number for each excluded source. | |
6231 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
6232 | sources were read from a file, include file name and line number in | |
6233 | the error message. | |
6234 | ||
6235 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6236 | ||
6237 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
6238 | ||
6239 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6240 | ||
6241 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
6242 | ||
6243 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6244 | ||
6245 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
6246 | generation of TSDs to the DOTNET compiler. | |
6247 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
6248 | generation of TSDs to the DOTNET compiler. | |
6249 | ||
6250 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6251 | ||
6252 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
6253 | record of all the tagged types declared inside library level package | |
6254 | declarations, library level package bodies or library level subprograms. | |
6255 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
6256 | associated with a given tagged type. | |
6257 | (Build_VM_TSDs): New subprogram. | |
6258 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
6259 | compilation units that are subprograms. | |
6260 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
6261 | compilation units that are package bodies. | |
6262 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
6263 | units that are a package declaration or a package instantiation. | |
6264 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
6265 | reorganization to improve the error generated by the frontend when the | |
6266 | function Ada.Tags.Secondary_Tag is not available. | |
6267 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
6268 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
6269 | ||
6270 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6271 | ||
6272 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
6273 | ||
6274 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6275 | ||
6276 | * s-imenne.ads: Minor reformatting. | |
6277 | ||
6278 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6279 | ||
6280 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
6281 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
6282 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
6283 | ||
6284 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6285 | ||
6286 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
6287 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
6288 | required debug information in the case where we transform the object | |
6289 | declaration into a renaming declaration. | |
6290 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
6291 | object | |
6292 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
6293 | Materialize_Entity. | |
6294 | ||
6295 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6296 | ||
6297 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
6298 | Suppress_Init_Procs. | |
6299 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
6300 | Suppress_Initialization/Initialization_Suppressed. | |
6301 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
6302 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
6303 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
6304 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
6305 | ||
6306 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6307 | ||
6308 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
6309 | Minor reformatting. | |
6310 | ||
6311 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6312 | ||
6313 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
6314 | only have inheritable classwide pre/postconditions. | |
6315 | ||
6316 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6317 | ||
6318 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
6319 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
6320 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
6321 | checks if the external tag of a type is the same as the external tag | |
6322 | of some other declaration. | |
6323 | ||
6324 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6325 | ||
6326 | * s-taskin.ads: Minor reformatting. | |
6327 | ||
6328 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
6329 | ||
6330 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
6331 | short help and the general usage. | |
6332 | ||
6333 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6334 | ||
6335 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
6336 | the aspect declarations and attach them to the generic copy for | |
6337 | subsequent analysis. | |
6338 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
6339 | declarations of the generic tree to the new subprogram declarations. | |
6340 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
6341 | conditions that apply to a subprogram instance. | |
6342 | ||
6343 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6344 | ||
6345 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
6346 | ||
6347 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6348 | ||
6349 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
6350 | private type with a tagged full view is not derived in the immediate | |
6351 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
6352 | ||
6353 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6354 | ||
6355 | * exp_ch4.adb: Minor reformatting. | |
6356 | ||
6357 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6358 | ||
6359 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
6360 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
6361 | while loop with a cursor and an element declaration. Do not analyze the | |
6362 | body in this case, because if the container is for indefinite types the | |
6363 | actual subtype of the elements will only be determined when the cursor | |
6364 | declaration is analyzed. | |
6365 | ||
6366 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6367 | ||
6368 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
6369 | size/alignment related attributes in CodePeer_Mode. | |
6370 | ||
6371 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6372 | ||
6373 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
6374 | Prepend_Element, since this can result in the operation getting the | |
6375 | wrong slot in the full type's dispatch table if the full type has | |
6376 | inherited operations. The incomplete type's operation will get added | |
6377 | to the proper position in the full type's primitives | |
6378 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
6379 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
6380 | dispatching operations, since there are cases where nonprimitive | |
6381 | subprograms can get added to the list of incomplete dependents (such | |
6382 | as subprograms in nested packages). | |
6383 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
6384 | private part when determining whether to add a primitive with a | |
6385 | parameter of a tagged incomplete type to the Private_Dependents list. | |
6386 | Such primitives can also occur in the visible part, and should not have | |
6387 | been excluded from being private dependents. | |
6388 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
6389 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
6390 | list of a Taft-amendment incomplete type is a primitive before issuing | |
6391 | an error that the full type must appear in the same unit. There are | |
6392 | cases where nonprimitives can be in the list (such as subprograms in | |
6393 | nested packages). | |
6394 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
6395 | a formal's type is derived from the type of the corresponding formal in | |
6396 | the parent subprogram (the condition was completely wrong). Add | |
6397 | checking that was missing for controlling result types being derived | |
6398 | from the result type of the parent operation. | |
6399 | ||
6400 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6401 | ||
6402 | * errout.adb (First_Node): minor renaming | |
6403 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
6404 | first node. | |
6405 | ||
6406 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6407 | ||
6408 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
6409 | before accessing operands. | |
6410 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
6411 | decide whether an initialization expression respects SPARK rules, as | |
6412 | the plain node is the expanded one. This allows for more valid warnings | |
6413 | to be issued. | |
6414 | * gnat_rm.texi: Minor update. | |
6415 | ||
6416 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6417 | ||
6418 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
6419 | previous change. | |
6420 | ||
6421 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6422 | ||
6423 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
6424 | ||
6425 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6426 | ||
6427 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
6428 | loop statements and the element renaming declaration with a block when | |
6429 | the element type is controlled. | |
6430 | ||
6431 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6432 | ||
6433 | * sinfo.ads: Minor formatting. | |
6434 | ||
6435 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6436 | ||
6437 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
6438 | expression, use the Sloc of the aggregate itself for the new | |
6439 | association. | |
6440 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
6441 | the Original_Node. | |
6442 | ||
6443 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6444 | ||
6445 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
6446 | When a container is provided via a function call, generate a renaming | |
6447 | of the function result. This avoids the creation of a transient scope | |
6448 | and the premature finalization of the container. | |
6449 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
6450 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
6451 | of the list controller when the declaration denotes a container cursor, | |
6452 | it is not needed. | |
6453 | ||
6454 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6455 | ||
6456 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
6457 | node is from source, instead of the original node being from source. | |
6458 | * sem_aggr.adb | |
6459 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
6460 | recognize also static ranges | |
6461 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
6462 | Array_Type_Declaration): postpone the test for the type being a subtype | |
6463 | mark after the type has been resolved, so that component-selection and | |
6464 | expanded-name are discriminated. | |
6465 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
6466 | to distinguish the case of an iteration scheme, so that an error is | |
6467 | issed on a non-static range in SPARK except in an iteration scheme. | |
6468 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
6469 | In_Iter_Schm = True. | |
6470 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
6471 | user-defined operators so that they are allowed in renaming | |
6472 | * sem_ch8.adb | |
6473 | (Find_Selected_Component): refine the check for prefixing of operators | |
6474 | so that they are allowed in renaming. Move the checks for restrictions | |
6475 | on selector name after analysis discriminated between | |
6476 | component-selection and expanded-name. | |
6477 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
6478 | concatenation argument of string type if it is static. | |
6479 | * sem_util.adb, sem_util.ads | |
6480 | (Check_Later_Vs_Basic_Declarations): add a new function | |
6481 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
6482 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
6483 | mode, add that renamings are considered as later items. | |
6484 | (Enclosing_Package): new function to return the enclosing package | |
6485 | (Enter_Name): correct the rule for homonyms in SPARK | |
6486 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
6487 | from source (result of expansion) to avoid issuing wrong warnings. | |
6488 | ||
6489 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6490 | ||
6491 | * errout.adb: On anything but an expression First_Node returns its | |
6492 | argument. | |
6493 | ||
6494 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
6495 | ||
6496 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
6497 | ||
6498 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
6499 | ||
6500 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
6501 | Set the associated loop as the related expression of internally | |
6502 | generated cursors. | |
6503 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
6504 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
6505 | controller when the declaration denotes a container cursor. | |
6506 | ||
6507 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6508 | ||
6509 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
6510 | command line now. | |
6511 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
6512 | expression is a simple expression. This check cannot be performed in | |
6513 | the semantics, so just drop it. | |
6514 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
6515 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
6516 | semantics. Other cases were previously checked in the semantics. | |
6517 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
6518 | character literal or an operator symbol to Find_Selected_Component in | |
6519 | the semantics | |
6520 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
6521 | declarations are not placed after later declarations in a separate | |
6522 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
6523 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
6524 | SPARK mode. | |
6525 | * par-endh.adb (Check_End): move check that end label is not missing | |
6526 | to Process_End_Label in the semantics | |
6527 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
6528 | the special case for SPARK restriction | |
6529 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
6530 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
6531 | parameter Force to issue the error message even on internal node (used | |
6532 | for generated end label). Call Check_Restriction to check when an error | |
6533 | must be issued. In SPARK mode, issue an error message even if the | |
6534 | restriction is not set. | |
6535 | (Check_Restriction): new procedure with an additional out parameter to | |
6536 | inform the caller that a message has been issued | |
6537 | * sem_aggr.adb: Minor modification of message | |
6538 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
6539 | instead of issuing an error message directly | |
6540 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
6541 | declarations are not placed after later declarations, by calling | |
6542 | Check_Later_Vs_Basic_Declarations | |
6543 | (Analyze_Subtype_Declaration): move here the check that an index or | |
6544 | discriminant constraint must be a subtype mark. Change the check that | |
6545 | a subtype of String must start at one so that it works on subtype marks. | |
6546 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
6547 | association cannot follow a positional one in a call | |
6548 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
6549 | instead of issuing an error message directly | |
6550 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
6551 | selector name is not a character literal or an operator symbol. Move | |
6552 | here the check that the prefix of an expanded name cannot be a | |
6553 | subprogram or a loop statement. | |
6554 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
6555 | procedure called from parsing and semantics to check that basic | |
6556 | declarations are not placed after later declarations | |
6557 | (Process_End_Label): move here the check that end label is not missing | |
6558 | ||
6559 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6560 | ||
6561 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
6562 | representation clause in codepeer mode, since it confuses CodePeer and | |
6563 | does not bring useful info. | |
6564 | ||
6565 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6566 | ||
6567 | * init.c: initialize fp hw on MILS. | |
6568 | ||
6569 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6570 | ||
6571 | * errout.adb (First_Node): for bodies, return the node itself (small | |
6572 | optimization). For other nodes, do not check source_unit if the node | |
6573 | comes from Standard. | |
6574 | ||
6575 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6576 | ||
6577 | * exp_ch3.adb: Minor comment additions. | |
6578 | * sem_ch13.adb: Minor reformatting. | |
6579 | ||
6580 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
6581 | ||
6582 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
6583 | ||
6584 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6585 | ||
6586 | * sem_attr.adb: Minor reformatting. | |
6587 | ||
6588 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6589 | ||
6590 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
6591 | (Has_Default_Component_Value): Removed | |
6592 | * einfo.ads Comment updates | |
6593 | (Has_Default_Aspect): Replaces Has_Default_Value | |
6594 | (Has_Default_Component_Value): Removed | |
6595 | * exp_ch13.adb | |
6596 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
6597 | * exp_ch3.adb | |
6598 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
6599 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
6600 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
6601 | * exp_ch3.ads: Needs_Simple_Initialization | |
6602 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
6603 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
6604 | * sem_ch13.adb | |
6605 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
6606 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
6607 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
6608 | ||
6609 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6610 | ||
6611 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
6612 | package containing iteration primitives. | |
6613 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
6614 | ||
6615 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6616 | ||
6617 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
6618 | "of", pre-analyze expression in case it is a function call with | |
6619 | finalization actions that must be placed ahead of the loop. | |
6620 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
6621 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
6622 | ||
6623 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6624 | ||
6625 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
6626 | Long_Long_Float, in addition to double. | |
6627 | ||
6628 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6629 | ||
6630 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
6631 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
6632 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
6633 | Minor reformatting. | |
6634 | ||
6635 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6636 | ||
6637 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
6638 | indexed component. | |
6639 | ||
6640 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6641 | ||
6642 | * einfo.ads, einfo.adb | |
6643 | (Original_Access_Type): Move this attribute to Node26 since there was | |
6644 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
6645 | which causes conflicts and breaks the generation of the .NET compiler. | |
6646 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
6647 | this attribute. | |
6648 | ||
6649 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6650 | ||
6651 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
6652 | (Find_Back_End_Float_Type): Likewise | |
6653 | (Create_Back_End_Float_Types): Likewise | |
6654 | (Create_Float_Types): Likewise | |
6655 | (Register_Float_Type): Likewise | |
6656 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
6657 | Nlist and split out type selection in new local Find_Base_Type function. | |
6658 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
6659 | Nlist | |
6660 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
6661 | ||
6662 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6663 | ||
6664 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
6665 | alpha order). | |
6666 | * opt.ads: Minor comment change. | |
6667 | * sem_ch12.adb: Minor code reorganization. | |
6668 | ||
6669 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
6670 | ||
6671 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
6672 | subtype's list of rep items to the list on the full subtype in the case | |
6673 | where the lists are the same. | |
6674 | ||
6675 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6676 | ||
6677 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
6678 | using the one from System.Strings, which also deallocates all strings. | |
6679 | ||
6680 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6681 | ||
6682 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
6683 | function. | |
6684 | * gcc-interface/Make-lang.in: Update dependencies. | |
6685 | ||
6686 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
6687 | ||
6688 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
6689 | end_locus. | |
6690 | ||
6691 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6692 | ||
6693 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
6694 | associated with anonymous access to subprograms. | |
6695 | ||
6696 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6697 | ||
6698 | * opt.ads | |
6699 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
6700 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
6701 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
6702 | (Add_Symbol_Definition): Move to switch-c.adb | |
6703 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
6704 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
6705 | (Add_Symbol_Definition): Move to switch-c.adb. | |
6706 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
6707 | * sem_warn.adb | |
6708 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6709 | Move to warnsw.adb. | |
6710 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
6711 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
6712 | Move to warnsw.adb. | |
6713 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
6714 | (Add_Symbol_Definition): Moved from Prepcomp. | |
6715 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
6716 | Argument_List, removing dependency on System.OS_Lib. | |
6717 | ||
6718 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6719 | ||
6720 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
6721 | mode on initialization expression which does not respect SPARK | |
6722 | restrictions. | |
6723 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
6724 | if the tree referenced by its argument represents an initialization | |
6725 | expression in SPARK, suitable for initializing an object in an object | |
6726 | declaration. | |
6727 | ||
6728 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6729 | ||
6730 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
6731 | internally generated access to subprogram with its associated protected | |
6732 | subprogram type. | |
6733 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
6734 | ||
6735 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6736 | ||
6737 | * cstand.adb (Register_Float_Type): Print information about type to | |
6738 | register, if the Debug_Flag_Dot_B is set. | |
6739 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
6740 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
6741 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
6742 | with a requested precision of more than Max_Digits digits and no more | |
6743 | than Max_Base_Digits digits, if a range specification is present and the | |
6744 | Predefined_Float_Types list has a suitable type to derive from. | |
6745 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
6746 | case of type completion with pragma Import | |
6747 | * sem_prag.adb | |
6748 | (Process_Import_Predefined_Type): Processing to complete a type | |
6749 | with pragma Import. Currently supports floating point types only. | |
6750 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
6751 | (Process_Convention): Guard against absence of underlying type, | |
6752 | which may happen when importing incomplete types. | |
6753 | (Process_Import_Or_Interface): Handle case of importing predefined | |
6754 | types. Tweak error message. | |
6755 | ||
6756 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6757 | ||
6758 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
6759 | functions to previous change. Reorganize code slightly. | |
6760 | ||
6761 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6762 | ||
6763 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
6764 | allowing the back end to provide information about available types. | |
6765 | (Register_Back_End_Types): New procedure to register back end types. | |
6766 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
6767 | available types. | |
6768 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
6769 | supported by the back end. | |
6770 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
6771 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
6772 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
6773 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
6774 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
6775 | (Create_Float_Types): New procedure to create entities for floating | |
6776 | point types predefined in Standard, and put these and any remaining | |
6777 | BEFTs on the Predefined_Float_Types list. | |
6778 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
6779 | point types that do not have declarations in package Standard. | |
6780 | ||
6781 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6782 | ||
6783 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
6784 | entity node for the unit containing the parameter. | |
6785 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
6786 | (Add_Inlined_Subprogram): Likewise. | |
6787 | * gcc-interface/Make-lang.in: Update dependencies. | |
6788 | ||
6789 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
6790 | ||
6791 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
6792 | suitable value. | |
6793 | ||
6794 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
6795 | ||
6796 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
6797 | ||
6798 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6799 | ||
6800 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
6801 | computed value of Base_Type. | |
6802 | ||
6803 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6804 | ||
6805 | * restrict.adb (Check_Restriction): issue an error for any use of | |
6806 | class-wide, even if the No_Dispatch restriction is not set. | |
6807 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
6808 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
6809 | when completing a private extension, the type named in the private part | |
6810 | is not the same as that named in the visible part. | |
6811 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
6812 | of an inherited primitive operations of a tagged type or type extension | |
6813 | that returns the tagged type. | |
6814 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
6815 | function which returns True for an implicit operation inherited by the | |
6816 | derived type declaration for the argument type. | |
6817 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
6818 | order. | |
6819 | ||
6820 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6821 | ||
6822 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
6823 | Process_Bounds, to perform analysis with expansion of a range or an | |
6824 | expression that is the iteration scheme for a loop. | |
6825 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
6826 | function call with a controlled result, as is the case if call returns | |
6827 | a predefined container, ensure that finalization actions are properly | |
6828 | generated. | |
6829 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
6830 | ||
6831 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6832 | ||
6833 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
6834 | * gcc-interface/Make-lang.in: Update dependencies. | |
6835 | ||
6836 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6837 | ||
6838 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
6839 | determine if the analysis is performed using N or Original_Node (N). | |
6840 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
6841 | functionality of routine Is_Variable avoids code duplication. | |
6842 | * checks.adb (Determine_Range): Handle temporaries generated by | |
6843 | Remove_Side_Effects. | |
6844 | ||
6845 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6846 | ||
6847 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
6848 | expansion of the condition. Required since the previous analysis was | |
6849 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
6850 | hence checks were not inserted and record comparisons have not been | |
6851 | expanded. | |
6852 | ||
6853 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6854 | ||
6855 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
6856 | Update header. | |
6857 | ||
6858 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6859 | ||
6860 | * opt.ads: Minor comment fix. | |
6861 | ||
6862 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6863 | ||
6864 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
6865 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
6866 | analyzing an instance. Whatever style checks that apply to the generic | |
6867 | unit should apply, so it makes no sense to apply them in an instance. | |
6868 | This was causing trouble when compiling an instance of a runtime | |
6869 | unit that violates the -gnatyO switch. | |
6870 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
6871 | one of the two case statements, causing spurious errors. | |
6872 | ||
6873 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6874 | ||
6875 | * uname.adb: Minor reformatting. | |
6876 | * gnatcmd.adb: Minor reformatting. | |
6877 | * exp_attr.adb: Minor reformatting. | |
6878 | ||
6879 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6880 | ||
6881 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
6882 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
6883 | predefined primitives are not created in this case. | |
6884 | ||
6885 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6886 | ||
6887 | * stylesw.ads: Minor comment fixes. | |
6888 | ||
6889 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6890 | ||
6891 | * freeze.adb (Add_To_Result): New procedure. | |
6892 | ||
6893 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
6894 | ||
6895 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
6896 | time, if the specific run-time routines for handling streams of strings | |
6897 | are not available, use the default mechanism. | |
6898 | ||
6899 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
6900 | ||
6901 | * s-regpat.ads: Fix typo. | |
6902 | ||
6903 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
6904 | ||
6905 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
6906 | not null, call it to create the in memory config project file without | |
6907 | parsing an existing default config project file. | |
6908 | ||
6909 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6910 | ||
6911 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
6912 | ||
6913 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6914 | ||
6915 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
6916 | pragma for its descendant to be eliminable. | |
6917 | ||
6918 | 2011-08-02 Ed Falis <falis@adacore.com> | |
6919 | ||
6920 | * init.c: revert to handling before previous checkin for VxWorks | |
6921 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
6922 | using Ada interrupt facilities for handling signals. | |
6923 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
6924 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
6925 | Initialize_Interrupts. | |
6926 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
6927 | (Abort_Handler): change construction of mask to unblock exception | |
6928 | signals. | |
6929 | ||
6930 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
6931 | ||
6932 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
6933 | Debug_Raise_Exception before propagation starts. | |
6934 | ||
6935 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
6936 | ||
6937 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
6938 | to Restriction_Check_Required. | |
6939 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
6940 | * sem_res.adb (Resolve_Call): Likewise. | |
6941 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
6942 | ||
6943 | 2011-08-02 Bob Duff <duff@adacore.com> | |
6944 | ||
6945 | * stylesw.ads: Update comment. | |
6946 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
6947 | * errout.ads: Remove obsolete comment. | |
6948 | ||
6949 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
6950 | ||
6951 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
6952 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
6953 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
6954 | assignment is allowed on safe-to-reevaluate variables. | |
6955 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
6956 | temporary created to remove side effects in expressions that use | |
6957 | the secondary stack as safe-to-reevaluate. | |
6958 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
6959 | variables that are not true constants. | |
6960 | ||
6961 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
6962 | ||
6963 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
6964 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
6965 | ||
6966 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
6967 | ||
6968 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
6969 | ||
6970 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
6971 | ||
6972 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
6973 | not set Overridden_Operation if subprogram is an initialization | |
6974 | procedure. | |
6975 | ||
6976 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
6977 | ||
6978 | * par-ch6.adb: Correct obsolete name in comments | |
6979 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
6980 | which takes two message arguments (existing function takes one), with | |
6981 | second message used for continuation. | |
6982 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
6983 | block statements that originate from a source block statement, not | |
6984 | generated block statements | |
6985 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
6986 | symmetry with procedure case | |
6987 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
6988 | function to issue an error in formal mode if a package specification | |
6989 | contains more than one tagged type or type extension. | |
6990 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
6991 | parameters matching formals of tagged types are objects (or ancestor | |
6992 | type conversions of objects), not general expressions. Issue an error | |
6993 | on view conversions that are not involving ancestor conversion of an | |
6994 | extended type. | |
6995 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
6996 | operand of an ancestor type conversion which is not an object | |
6997 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
6998 | procedure so that it works also for actuals of function calls | |
6999 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
7000 | argument is an actual parameter of a formal of tagged type in a | |
7001 | subprogram call | |
7002 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
7003 | referenced by its argument represents an object in SPARK | |
7004 | ||
7005 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7006 | ||
7007 | * sem_ch3.adb: Minor reformatting | |
7008 | Minor comment addition | |
7009 | Minor error msg text change | |
7010 | ||
7011 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7012 | ||
7013 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
7014 | function. Used to be more precise when we generate a variable plus one | |
7015 | assignment to remove side effects in the evaluation of the Bound | |
7016 | expressions. | |
7017 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
7018 | of the bound expression to force its re-analysis and thus expand the | |
7019 | associated transient scope (if required). Code cleanup replacing the | |
7020 | previous code that declared the constant entity by an invocation to | |
7021 | routine Force_Evaluation which centralizes this work in the frontend. | |
7022 | ||
7023 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7024 | ||
7025 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
7026 | (Base_Type): Now uses improved Is_Base_Type function | |
7027 | * einfo.ads (Base_Type): Inline this function | |
7028 | ||
7029 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7030 | ||
7031 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
7032 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
7033 | ||
7034 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7035 | ||
7036 | * gcc-interface/Make-lang.in: Update dependencies. | |
7037 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
7038 | targets. | |
7039 | ||
7040 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7041 | ||
7042 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
7043 | non-simple expression used in delta constraint | |
7044 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
7045 | index constraint which is not a subtype mark | |
7046 | * par.adb: With and use Restrict | |
7047 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
7048 | mode on component type which is not a subtype mark and default | |
7049 | expression on component | |
7050 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
7051 | of string which does not have a lower index bound equal to 1 | |
7052 | (Array_Type_Declaration): issue an error in formal mode on index or | |
7053 | component type which is not a subtype mark, and on aliased keyword on | |
7054 | component | |
7055 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
7056 | limited or abstract type | |
7057 | (Record_Type_Declaration): issue an error in formal mode on interface | |
7058 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
7059 | and type extensions not declared in the specification of a library unit | |
7060 | package; on null non-tagged record; on variant part | |
7061 | ||
7062 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7063 | ||
7064 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
7065 | not declared for qualified library project when Library_Name is not | |
7066 | declared, but Library_Dir is. | |
7067 | ||
7068 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7069 | ||
7070 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
7071 | pragmas (affects aspects [Component_]Default_Value | |
7072 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
7073 | component type for the resolution | |
7074 | ||
7075 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7076 | ||
7077 | * einfo.adb (Base_Type): Tune implementation for speed. | |
7078 | ||
7079 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7080 | ||
7081 | * freeze.adb: Minor reformatting. | |
7082 | ||
7083 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
7084 | ||
7085 | * scos.ads: Update comments. | |
7086 | ||
7087 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7088 | ||
7089 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
7090 | base type, because the parent may be a subtype of a private type whose | |
7091 | convention is established in a private part. | |
7092 | ||
7093 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
7094 | ||
7095 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
7096 | statement in a block when the expansion of the return expression has | |
7097 | created a finalization chain. | |
7098 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
7099 | with the parent node. | |
7100 | Add N_Extended_Return_Statement to handle the case where a transient | |
7101 | object declaration appears in the Return_Object_Declarations list of | |
7102 | an extended return statement. | |
7103 | ||
7104 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
7105 | ||
7106 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
7107 | unused parameter 'name'. | |
7108 | ||
7109 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7110 | ||
7111 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
7112 | inherited operation, check whether its alias, which is the source | |
7113 | operastion that it renames, has been marked eliminated. | |
7114 | ||
7115 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7116 | ||
7117 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
7118 | in-mode parameter whose type is an access type since it can be used to | |
7119 | modify its designated object. Enforce code that handles as safe an | |
7120 | access type that is not access-to-constant but it is the result of a | |
7121 | previous removal of side-effects. | |
7122 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
7123 | no action. Done to incorporate documentation on new cases uncovered | |
7124 | working in this ticket: no action needed if this routine was invoked | |
7125 | too early and the nodes are not yet decorated. | |
7126 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
7127 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
7128 | were issued with actuals that are implicitly provided by | |
7129 | Force_Evaluation. | |
7130 | ||
7131 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7132 | ||
7133 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
7134 | ||
7135 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7136 | ||
7137 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
7138 | to issue an error in formal mode on attribute not supported in this mode | |
7139 | (Analyze_Attribute): issue errors on standard attributes not supported | |
7140 | in formal mode. | |
7141 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
7142 | comment, and issue error in formal mode on modulus which is not a power | |
7143 | of 2. | |
7144 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
7145 | range. | |
7146 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
7147 | subtype mark. | |
7148 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
7149 | operator on modular type (except 'not'). | |
7150 | ||
7151 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7152 | ||
7153 | * gnat_rm.texi: Minor reformatting. | |
7154 | ||
7155 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
7156 | ||
7157 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
7158 | * i-cexten.ads: Make this unit pure, as for its parent. | |
7159 | Will allow its usage in more contexts if needed. | |
7160 | ||
7161 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7162 | ||
7163 | * s-utf_32.ads: Minor comment fix. | |
7164 | ||
7165 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7166 | ||
7167 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
7168 | operation of a tagged synchronized type, handle the case where the | |
7169 | controlling argument is overloaded. | |
7170 | ||
7171 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7172 | ||
7173 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
7174 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
7175 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
7176 | SPARK mode and formal verification mode on processing SPARK restriction | |
7177 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
7178 | requiring consistency checking. | |
7179 | ||
7180 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7181 | ||
7182 | * sem_res.adb: Minor reformatting. | |
7183 | ||
7184 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7185 | ||
7186 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7187 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
7188 | Remove commented out pragma Inline's | |
7189 | Move specifications of new subprograms to the actual specs | |
7190 | ||
7191 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7192 | ||
7193 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7194 | a-cforse.ads: Update comments. | |
7195 | ||
7196 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7197 | ||
7198 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
7199 | ||
7200 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7201 | ||
7202 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
7203 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
7204 | ||
7205 | 2011-08-02 Claire Dross <dross@adacore.com> | |
7206 | ||
7207 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
7208 | a-cofove.ads: Add comments. | |
7209 | ||
7210 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7211 | ||
7212 | * gnat_rm.texi: Document formal containers. | |
7213 | ||
7214 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
7215 | ||
7216 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
7217 | are empty sections. | |
7218 | ||
7219 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7220 | ||
7221 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
7222 | reformatting. | |
7223 | ||
7224 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7225 | ||
7226 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
7227 | New format of Aspect_Names table checks for omitted entries | |
7228 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
7229 | handling of boolean aspects for derived types. | |
7230 | New aspects Default_Value and Default_Component_Value | |
7231 | New format of Aspect_Names table checks for omitted entries | |
7232 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
7233 | (Has_Default_Value): New flag | |
7234 | (Has_Default_Component_Value): New flag | |
7235 | (Has_Default_Value): New flag | |
7236 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
7237 | table. | |
7238 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
7239 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
7240 | Default_Value and Default_Component_Value | |
7241 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
7242 | New aspects Default_Value and Default_Component_Value | |
7243 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
7244 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
7245 | ||
7246 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7247 | ||
7248 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
7249 | inherit library kind. | |
7250 | ||
7251 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7252 | ||
7253 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
7254 | Minor reformatting. | |
7255 | ||
7256 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7257 | ||
7258 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
7259 | ||
7260 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7261 | ||
7262 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
7263 | ||
7264 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7265 | ||
7266 | * impunit.adb: Add comment. | |
7267 | ||
7268 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7269 | ||
7270 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
7271 | qualification of aggregates in formal mode | |
7272 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
7273 | another aggregate | |
7274 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
7275 | qualified in formal mode | |
7276 | ||
7277 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
7278 | ||
7279 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
7280 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
7281 | (Build_Library): Supress all warnings when compiling the binder | |
7282 | generated file. | |
7283 | ||
7284 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7285 | ||
7286 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure | |
7287 | from here... | |
7288 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
7289 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
7290 | Add with/use clauses to make Check_Formal_Restriction visible | |
7291 | ||
7292 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7293 | ||
7294 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
7295 | in-parameters when type of the generic formal is private in the generic | |
7296 | spec and non-private in the body. | |
7297 | ||
7298 | 2011-08-02 Claire Dross <dross@adacore.com> | |
7299 | ||
7300 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
7301 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
7302 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
7303 | * impunit.adb, Makefile.rtl: Take new files into account. | |
7304 | ||
7305 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7306 | ||
7307 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
7308 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
7309 | ||
7310 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7311 | ||
7312 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
7313 | formal mode | |
7314 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
7315 | matching static array bounds, taking into account the special case of | |
7316 | string literals | |
7317 | * sem_ch3.adb: Typo in comment. | |
7318 | ||
7319 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7320 | ||
7321 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
7322 | which issues an error in formal mode if its argument node is originally | |
7323 | from source | |
7324 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
7325 | has a discriminant specification so that it does not include the case | |
7326 | of derived types | |
7327 | (Derived_Type_Declaration): move here the test that a derived type has a | |
7328 | discriminant specification | |
7329 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
7330 | first element of a component association before accessing its choices | |
7331 | (presence of component association is not enough) | |
7332 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
7333 | declaration is a library item before accessing the next element in a | |
7334 | list, as library items are not member of lists | |
7335 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
7336 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
7337 | Check_Formal_Restriction whenever possible. | |
7338 | ||
7339 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7340 | ||
7341 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
7342 | reference when needed. | |
7343 | ||
7344 | 2011-08-02 Bob Duff <duff@adacore.com> | |
7345 | ||
7346 | * gnat_ugn.texi: Fix typo. | |
7347 | ||
7348 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7349 | ||
7350 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
7351 | archive file name. Do not use the full path name of archives for Open | |
7352 | VMS. | |
7353 | ||
7354 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7355 | ||
7356 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
7357 | Analyze_Aspect_Specifications | |
7358 | * sem_ch13.adb | |
7359 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
7360 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
7361 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
7362 | sequence for Analyze_Aspect_Specifications | |
7363 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
7364 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
7365 | ||
7366 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7367 | ||
7368 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
7369 | aspects, since these no longer exist. | |
7370 | ||
7371 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7372 | ||
7373 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
7374 | semicolon, do not try to see if there are aspects following it. | |
7375 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
7376 | aspect spec. | |
7377 | ||
7378 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7379 | ||
7380 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
7381 | ||
7382 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
7383 | ||
7384 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
7385 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
7386 | extracted from... | |
7387 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
7388 | ||
7389 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7390 | ||
7391 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
7392 | mode on subprogram declaration outside of package specification, unless | |
7393 | it is followed by a pragma Import | |
7394 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
7395 | Access_Type_Declaration): issue error in formal mode on access type | |
7396 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
7397 | incomplete type | |
7398 | (Analyze_Object_Declaration): issue error in formal mode on object | |
7399 | declaration which does not respect SPARK restrictions | |
7400 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
7401 | declaration which does not respect SPARK restrictions | |
7402 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
7403 | error in formal mode on digits or delta constraint | |
7404 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
7405 | decimal fixed point type | |
7406 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
7407 | other than type extensions of tagged record types | |
7408 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
7409 | with check on access definition | |
7410 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
7411 | mode on protected definition. | |
7412 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
7413 | ||
7414 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7415 | ||
7416 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
7417 | ||
7418 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7419 | ||
7420 | * sem_ch6.adb (Can_Override_Operator): New function. | |
7421 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
7422 | indicator in operators. Fixes regression. | |
7423 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
7424 | code that evaluates if the subprogram can override an operator by | |
7425 | invocations to the above new function. | |
7426 | * einfo.adb | |
7427 | (Write_Field26_Name): Add missing code to ensure that, following | |
7428 | the documentation in einfo.ads, this field is not shown as attribute | |
7429 | "Static_Initialization" on non-dispatching functions. | |
7430 | ||
7431 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
7432 | ||
7433 | * sem_res.adb (Resolve_Call): A call to | |
7434 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
7435 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
7436 | i.e., when the second parameter is of type Time_Span. | |
7437 | ||
7438 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7439 | ||
7440 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
7441 | with an archive instead of -L<library dir> -l<library name>. | |
7442 | ||
7443 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7444 | ||
7445 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
7446 | mark the base types In_Use in addition to making the operations | |
7447 | use_visible. | |
7448 | ||
7449 | 2011-08-02 Ed Falis <falis@adacore.com> | |
7450 | ||
7451 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
7452 | * s-inmaop-vxworks.adb: new file. | |
7453 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
7454 | simplify remaining | |
7455 | * s-intman-vxworks.ads: remove unnecessary variable | |
7456 | * s-taprop-vxworks.adb: simplify signal initialization | |
7457 | ||
7458 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7459 | ||
7460 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
7461 | ||
7462 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7463 | ||
7464 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
7465 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
7466 | here from Sem_Res. | |
7467 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
7468 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
7469 | ||
7470 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7471 | ||
7472 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
7473 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
7474 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
7475 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
7476 | constructs. | |
7477 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
7478 | Ada2012 Use_All_Type clause. | |
7479 | (Use_Class_Wide_Operations): new procedure. | |
7480 | ||
7481 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7482 | ||
7483 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
7484 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
7485 | expression to expression function. | |
7486 | ||
7487 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7488 | ||
7489 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
7490 | if types are compatible. | |
7491 | ||
7492 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7493 | ||
7494 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
7495 | returns True if its argument array types have same dimension and same | |
7496 | static bounds at each index. | |
7497 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
7498 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
7499 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
7500 | multiplication or division with operands of fixed point types which are | |
7501 | not qualified or explicitly converted. | |
7502 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
7503 | Boolean or array type (except String) operands. | |
7504 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
7505 | operators for array types other than String with non-matching static | |
7506 | bounds. | |
7507 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
7508 | for array types with non-matching static bounds. Factorize the code in | |
7509 | Matching_Static_Array_Bounds. | |
7510 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
7511 | qualified expressions for array types with non-matching static bounds. | |
7512 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
7513 | conversion for array types with non-matching static bounds | |
7514 | ||
7515 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7516 | ||
7517 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
7518 | ||
7519 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
7520 | ||
7521 | * par-ch9.adb: save location of entry for proper error message. | |
7522 | ||
7523 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
7524 | ||
7525 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
7526 | (Use_Full_View) which permits this routine to climb through the | |
7527 | ancestors using the full-view of private parents. | |
7528 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
7529 | Use_Full_View to true in calls to Is_Ancestor. | |
7530 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
7531 | true in call to Is_Ancestor. | |
7532 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
7533 | Use_Full_View to true in call to Is_Ancestor. | |
7534 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
7535 | call to Is_Ancestor. | |
7536 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
7537 | Use_Full_View to true in calls to Is_Ancestor. | |
7538 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
7539 | Make_Select_Specific_Data_Table, Register_Primitive, | |
7540 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
7541 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
7542 | to true in call to Is_Ancestor. | |
7543 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
7544 | Use_Full_View to true in calls to Is_Ancestor. | |
7545 | * exp_cg.adb | |
7546 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
7547 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
7548 | ||
7549 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7550 | ||
7551 | * gnat_rm.texi: Minor reformatting. | |
7552 | * sem_prag.adb: Minor reformatting. | |
7553 | ||
7554 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
7555 | ||
7556 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
7557 | ||
7558 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
7559 | ||
7560 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
7561 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
7562 | decl/instantiation. | |
7563 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
7564 | (End_Statements): Add Is_Sloc parameterr | |
7565 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
7566 | (Check_End): Ad Is_Sloc parameter | |
7567 | (End_Statements): Add Is_Sloc parameterr | |
7568 | ||
7569 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
7570 | ||
7571 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
7572 | /SYMBOL_PREPROCESSING. | |
7573 | ||
7574 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
7575 | ||
7576 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
7577 | grouping of digits is 4 to represent 2 bytes. | |
7578 | A procedure spec which is split into several lines is indented two | |
7579 | characters. | |
7580 | ||
7581 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
7582 | ||
7583 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
7584 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
7585 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
7586 | properly qualified | |
7587 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
7588 | choice in array aggregate | |
7589 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
7590 | mark as ancestor | |
7591 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
7592 | positional and named aggregate for record, or others in record | |
7593 | aggregate, or multiple choice in record aggregate | |
7594 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
7595 | array operands to logical operations AND, OR and XOR do not have the | |
7596 | same static lower and higher bounds | |
7597 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
7598 | ||
7599 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7600 | ||
7601 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
7602 | Replaces Last_Source_Node_In_Sequence. | |
7603 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
7604 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
7605 | parens and blank in string (this was inconsistently implemented). | |
7606 | * errout.ads | |
7607 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
7608 | blank in string (this was inconsistently implemented). | |
7609 | * gnat1drv.adb | |
7610 | (Set_Global_Switches): Set formal mode switches appropriately | |
7611 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
7612 | * par-prag.adb | |
7613 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
7614 | call Set_Error_Msg_Lang to set "spark" as language name. | |
7615 | * par.adb: Remove unnecessary call to set formal language for errout | |
7616 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
7617 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
7618 | name. | |
7619 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
7620 | calls to it, moved after resolution so that types are known | |
7621 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
7622 | result of concatenation is not of type String | |
7623 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
7624 | concatenation is not properly restricted | |
7625 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
7626 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
7627 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
7628 | * gcc-interface/Make-lang.in: Update dependencies. | |
7629 | ||
7630 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7631 | ||
7632 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
7633 | condition that detects if the overridden operation must replace an | |
7634 | existing entity. | |
7635 | ||
7636 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7637 | ||
7638 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
7639 | code declarations inserted by Insert_Actions in each alternative of the | |
7640 | N_Case_Expression node. | |
7641 | ||
7642 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7643 | ||
7644 | * sem_ch6.adb: Minor code reorganization. | |
7645 | * sem_util.adb: Minor reformatting. | |
7646 | ||
7647 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7648 | ||
7649 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
7650 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
7651 | ||
7652 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7653 | ||
7654 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
7655 | literal or operator symbol which is prefixed | |
7656 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
7657 | mode on access attributes. | |
7658 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
7659 | that concatenation operands are properly restricted in formal mode | |
7660 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
7661 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
7662 | result of the concatenation has a type different from String. | |
7663 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
7664 | Analyze_Quantified_Expression, Analyze_Slice, | |
7665 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
7666 | * sem_ch5.adb | |
7667 | (Analyze_Block_Statement): only issue error on source block statement | |
7668 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
7669 | function which returns the last node in a list of nodes for which | |
7670 | Comes_From_Source returns True, if any | |
7671 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
7672 | Last_Source_Node_In_Sequence | |
7673 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
7674 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
7675 | mode on unsupported constructs | |
7676 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
7677 | rest of the actions may be needed later on since the error is marked as | |
7678 | not serious. | |
7679 | * sinfo.ads: Typos in comments. | |
7680 | ||
7681 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7682 | ||
7683 | * projects.texi: Minor editing. | |
7684 | ||
7685 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7686 | ||
7687 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
7688 | insertion character ~~ | |
7689 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
7690 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
7691 | with insertion character ~~ | |
7692 | (Set_Msg_Text): treat insertion character ~~ | |
7693 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
7694 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
7695 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
7696 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
7697 | errors related to the formal language restriction not serious | |
7698 | (insertion character |). | |
7699 | * par.adb (Par): set formal language for error messages if needed | |
7700 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
7701 | generated statements at the end of the function | |
7702 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
7703 | enumeration value to define a new pragma SPARK_95 | |
7704 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
7705 | SPARK_Version): new type and variables to store the SPARK version | |
7706 | (none by default). | |
7707 | (SPARK_Mode): return True when SPARK_Version is set | |
7708 | * par-prag.adb: Correct indentation | |
7709 | (Prag): take Pragma_SPARK_95 into account | |
7710 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
7711 | into account. | |
7712 | ||
7713 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7714 | ||
7715 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
7716 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
7717 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
7718 | ||
7719 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7720 | ||
7721 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
7722 | Target_Name to Get_Path call. | |
7723 | (Parse_Single_Project): Likewise. | |
7724 | (Post_Parse_Context_Clause): Likewise. | |
7725 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
7726 | Call Initialise_Project_Path with the proper Target_Name. | |
7727 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
7728 | search path. | |
7729 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
7730 | with the proper Target_Name. | |
7731 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
7732 | Part.Parse routine. | |
7733 | (Parse_Project_And_Apply_Config): Likewise. | |
7734 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
7735 | This is fine as this part of the code is supporting only native | |
7736 | compilation. | |
7737 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
7738 | is fine as this part of the code is supporting only native compilation. | |
7739 | ||
7740 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7741 | ||
7742 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
7743 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
7744 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
7745 | package declaration occurring after a body. | |
7746 | ||
7747 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
7748 | ||
7749 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
7750 | ||
7751 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7752 | ||
7753 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7754 | (Dispatch_Table_Wrappers): Fix documentation. | |
7755 | ||
7756 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
7757 | ||
7758 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
7759 | ||
7760 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7761 | ||
7762 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
7763 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
7764 | procedures out of these packages. | |
2c7f9cc0 | 7765 | * errout.ads, errout.adb |
052e0603 AC |
7766 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
7767 | procedures in of this package | |
7768 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
7769 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
7770 | on misplaced later vs initial declarations, like in Ada 83 | |
7771 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
7772 | formal mode on attribute of private type whose full type declaration | |
7773 | is not visible | |
7774 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
7775 | package declaration inside a package specification | |
7776 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
7777 | controlled type or discriminant type | |
7778 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
7779 | user-defined operator means that it should come from the source | |
7780 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
7781 | entity. | |
7782 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
7783 | ||
7784 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7785 | ||
7786 | * atree.adb: Minor reformatting. | |
7787 | * checks.adb: Minor reformatting. | |
7788 | ||
7789 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
7790 | ||
7791 | * s-parame-vms-ia64.ads: Fix typo in comment | |
7792 | Minor reformatting | |
7793 | * s-parame-vms-restrict.ads: Removed, unused. | |
7794 | ||
7795 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7796 | ||
7797 | * exp_ch3.adb | |
7798 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
7799 | * sem_ch3.adb | |
7800 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
7801 | * sem_ch3.ads, sem_ch3.adb | |
7802 | (Is_Constant_Bound): New extended version of the subprogram that was | |
7803 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
7804 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
7805 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
7806 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
7807 | array objects with constant bounds, generates the runtime check | |
7808 | referencing the bounds of the array type. For other cases this routine | |
7809 | provides its previous behavior obtaining such values from the array | |
7810 | object. | |
7811 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
7812 | parent type. | |
7813 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
7814 | we cannot have semantic interpretations of the new node. | |
7815 | ||
7816 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7817 | ||
7818 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
7819 | expressions. | |
7820 | ||
7821 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7822 | ||
7823 | * sem_ch8.adb: Minor code editing. | |
7824 | * s-vxwext.adb: Remove trailing space. | |
7825 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
7826 | consistency with other files. | |
7827 | ||
7828 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7829 | ||
7830 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
7831 | ||
7832 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7833 | ||
7834 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
7835 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
7836 | then_clause and no else_clause. | |
7837 | ||
7838 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
7839 | ||
7840 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
7841 | like done by System.Aux_DEC. | |
7842 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
7843 | ||
7844 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7845 | ||
7846 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
7847 | missing label at end of declaration (subprogram or package) | |
7848 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
7849 | of positional and named parameter association | |
7850 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
7851 | Error_Msg_SP which adds a prefix to the error message giving the name | |
7852 | of the formal language analyzed | |
7853 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
7854 | access result type in subprogram, unconstrained array as result type,. | |
7855 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
7856 | procedure | |
7857 | * sem_ch8.adb: Code clean up. | |
7858 | ||
7859 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
7860 | ||
7861 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
7862 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
7863 | (Dispatch_Table_Wrappers): Fix documentation. | |
7864 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
7865 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
7866 | to enforce the documentation of this attribute. | |
7867 | (Set_Is_Interface): Cleanup the assertion. | |
7868 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
7869 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
7870 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
7871 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
7872 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
7873 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
7874 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
7875 | Locate the Underlying_Type entity before reading attribute | |
7876 | Access_Disp_Table. | |
7877 | ||
7878 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7879 | ||
7880 | * s-poosiz.ads: Additional overriding indicators. | |
7881 | ||
7882 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7883 | ||
7884 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
7885 | formal mode. | |
7886 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
7887 | parameter specification does not include a subtype mark. | |
7888 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
7889 | formal mode on abstract subprogram. | |
7890 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
7891 | user-defined operator. | |
7892 | (Process_Formals): issue error in formal mode on access parameter and | |
7893 | default expression. | |
7894 | * sem_ch9.adb (Analyze_Abort_Statement, | |
7895 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
7896 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
7897 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
7898 | Analyze_Requeue, Analyze_Selective_Accept, | |
7899 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
7900 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
7901 | issue error in formal mode on user-defined raise statement. | |
7902 | ||
7903 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
7904 | ||
7905 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
7906 | declaration being hidden when overriding an implicit inherited | |
7907 | subprogram. | |
7908 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
7909 | (-gnats), do not complain about a source file that contains only a | |
7910 | pragma No_Body. | |
7911 | ||
7912 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
7913 | ||
7914 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
7915 | variable if already set. | |
7916 | ||
7917 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
7918 | ||
7919 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
7920 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
7921 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
7922 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
7923 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
7924 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
7925 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
7926 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
7927 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
7928 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
7929 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
7930 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
7931 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
7932 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
7933 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
7934 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
7935 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
7936 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
7937 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
7938 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
7939 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
7940 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
7941 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
7942 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
7943 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
7944 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
7945 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
7946 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
7947 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
7948 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
7949 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
7950 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
7951 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
7952 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
7953 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
7954 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
7955 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
7956 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
7957 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
7958 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
7959 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
7960 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
7961 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
7962 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
7963 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
7964 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
7965 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
7966 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
7967 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
7968 | Use GNAT instead of GNARL. | |
7969 | ||
7970 | 2011-08-01 Bob Duff <duff@adacore.com> | |
7971 | ||
7972 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
7973 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
7974 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
7975 | reformatting. | |
7976 | ||
7977 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
7978 | ||
7979 | * debug.adb (d.D) reverve flag for the SPARK mode | |
7980 | (d.E) reverve flag for SPARK generation mode | |
7981 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 7982 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
052e0603 AC |
7983 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
7984 | functions which return True when the corresponding modes are set | |
7985 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
7986 | mode. | |
7987 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
7988 | Error_Msg to prefix the error message with a tag giving the formal | |
7989 | language | |
7990 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
7991 | message with a tag giving the formal language | |
7992 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
7993 | block statement | |
7994 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
7995 | with a single "others" case alternative | |
7996 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
7997 | statements which do not respect SPARK restrictions | |
7998 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
7999 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
8000 | formal mode on unreachable code (concerns both code after an infinite | |
8001 | loop and after an unconditional jump, both not allowed in SPARK) | |
8002 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
8003 | Set_Return_Present for a procedure containing a return statement | |
8004 | (already done for functions in Analyze_Function_Return) | |
8005 | (Analyze_Function_Return): issue error in formal mode on extended | |
8006 | return or if return is not last statement in function | |
8007 | (Check_Missing_Return): issue error in formal mode if function does | |
8008 | not end with return or if procedure contains a return | |
8009 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
8010 | function to detect if there is an inner scope of its parameter S which | |
8011 | is a loop. | |
8012 | ||
8013 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8014 | ||
8015 | * sem_ch6.ads: Minor reformatting. | |
8016 | ||
8017 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8018 | ||
8019 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
8020 | processing private type declarations to avoid reading unavailable | |
8021 | attribute. | |
8022 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
8023 | private extension declaration nodes to avoid reading unavailable | |
8024 | attribute. | |
8025 | ||
8026 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8027 | ||
8028 | * sem_ch3.adb: Minor reformatting. | |
8029 | ||
8030 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8031 | ||
8032 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
8033 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
8034 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
8035 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
8036 | for VMS, instead parametrize the common implementation with | |
8037 | System.Parameters declarations. | |
8038 | ||
8039 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> | |
8040 | ||
8041 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
8042 | ||
8043 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
8044 | ||
8045 | * seh_init.c: Fix SEH handler installation on win64. | |
8046 | ||
8047 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8048 | ||
8049 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
8050 | double analysis of an anonymous access to subprogram, because it can | |
8051 | lead to improper sharing of profiles and a back-end crash. | |
8052 | ||
8053 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8054 | ||
8055 | * make.adb, sem_ch4.adb: Minor reformatting. | |
8056 | * gcc-interface/Make-lang.in: Update dependencies. | |
8057 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
8058 | ||
8059 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8060 | ||
8061 | * gnat_rm.texi: Fix definition of Long_Integer. | |
8062 | ||
8063 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8064 | ||
8065 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
8066 | to prevent storage exhaustion. | |
8067 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
8068 | finalized is a function body, insert the cleanup code before the final | |
8069 | return statement, to prevent spurious warnings. | |
8070 | * s-pooglo.ads: add overriding indicator. | |
8071 | ||
8072 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8073 | ||
8074 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
8075 | with_clause and a use_clause are needed to make operator usage legal. | |
8076 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
8077 | determine whether a compilation unit is visible within an other, | |
8078 | either through a with_clause in the current unit, or a with_clause in | |
8079 | its library unit or one one of its parents. | |
8080 | ||
8081 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8082 | ||
8083 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
8084 | over an arbitrary expression of an array or container type. | |
8085 | * lib-xref.adb: clarify comment. | |
8086 | ||
8087 | 2011-08-01 Bob Duff <duff@adacore.com> | |
8088 | ||
8089 | * einfo.ads: Minor reformatting. | |
8090 | * debug.adb: Minor comment improvement. | |
8091 | ||
8092 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
8093 | ||
8094 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
8095 | consider hidden subprograms as valid candidates. | |
8096 | ||
8097 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
8098 | ||
8099 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
8100 | ||
8101 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
8102 | ||
8103 | * gnat_ugn.texi: Fix typo. | |
8104 | ||
8105 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8106 | ||
8107 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
8108 | lib-xref.adb: Minor reformatting | |
8109 | ||
8110 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
8111 | ||
8112 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
8113 | when to generate a call to Move_Final_List. | |
8114 | (Has_Controlled_Parts): Remove this function. | |
8115 | ||
8116 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8117 | ||
8118 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
8119 | "," in choice list. | |
8120 | ||
8121 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8122 | ||
8123 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
8124 | explicit raise of a predefined exception as Comes_From_Source if the | |
8125 | original N_Raise_Statement comes from source. | |
8126 | ||
8127 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8128 | ||
8129 | * sinfo.ads: Add comment. | |
8130 | * sem_ch6.adb: Minor reformatting. | |
8131 | ||
8132 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8133 | ||
8134 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
8135 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
8136 | ||
8137 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8138 | ||
8139 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
8140 | better determine whether an entity reference is a write. | |
8141 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
8142 | subcomponent. | |
8143 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
8144 | the same location as an immediately preceeding modify-reference, to | |
8145 | handle properly in-out actuals. | |
8146 | ||
8147 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
8148 | ||
8149 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
8150 | ||
8151 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
8152 | ||
8153 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
8154 | heap to compute the result. | |
8155 | ||
8156 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8157 | ||
8158 | * atree.ads: Minor reformatting. | |
8159 | ||
8160 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
8161 | ||
8162 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
8163 | ||
8164 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8165 | ||
8166 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
8167 | predefined fpt types. | |
8168 | (P_Mixed_Name): New procedure to print a name using mixed case | |
8169 | (Print_Standard): Use P_Float_Type for printing floating point types | |
8170 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
8171 | precision IEEE float. | |
8172 | ||
8173 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8174 | ||
8175 | * sem_ch3.adb: Minor reformatting. | |
8176 | ||
8177 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8178 | ||
8179 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
8180 | the completion of a generic function, insert the new body rather than | |
8181 | rewriting the original. | |
8182 | ||
8183 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
8184 | ||
8185 | * sinfo.ads, errout.ads: Typos in comments. | |
8186 | ||
8187 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8188 | ||
8189 | * par-endh.adb: Minor reformatting. | |
8190 | ||
8191 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8192 | ||
8193 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
8194 | (Pre_Post_Aspects): New subtype. | |
8195 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
8196 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
8197 | * par-ch7.adb (P_Package): Remove Decl parameter | |
8198 | (P_Package): Handle new syntax for aspects (before IS) | |
8199 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
8200 | new aspect syntax | |
8201 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
8202 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
8203 | (P_Package): Remove Decl parameter | |
8204 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
8205 | aspects | |
8206 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
8207 | specs | |
8208 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
8209 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
8210 | * sprint.adb: Handle new syntax of aspects before IS in package | |
8211 | ||
8212 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8213 | ||
8214 | * atree.ads: Minor reformatting. | |
8215 | * sem_prag.adb: Minor reformatting. | |
8216 | ||
8217 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8218 | ||
8219 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
8220 | case expr alternative. | |
8221 | ||
8222 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8223 | ||
8224 | * sem_ch12.adb: Fix typo. | |
8225 | ||
8226 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8227 | ||
8228 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
8229 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
8230 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
8231 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
8232 | eventual removal of per type constants. | |
8233 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
8234 | size value of subtype E. | |
8235 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
8236 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
8237 | function. | |
8238 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
8239 | * einfo.adb: | |
8240 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
8241 | ||
8242 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8243 | ||
8244 | * cstand.adb: Fix comments. | |
8245 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
8246 | count of arguments. | |
8247 | ||
8248 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8249 | ||
8250 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
8251 | ||
8252 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
8253 | ||
8254 | * atree.ads: Fix comment. | |
8255 | ||
8256 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8257 | ||
8258 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
8259 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
8260 | * par.adb: Add with for Namet.Sp. | |
8261 | * par-tchk.adb: Minor reformatting. | |
8262 | ||
8263 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8264 | ||
8265 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
8266 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
8267 | of the init procedure of a SAL. | |
8268 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
8269 | New procedure. | |
8270 | ||
8271 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8272 | ||
8273 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
8274 | reformatting. | |
8275 | ||
8276 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
8277 | ||
8278 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
8279 | ||
8280 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
8281 | ||
8282 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
8283 | conformant with its spec (return True only for types that have | |
8284 | an overriding Initialize primitive operation that prevents them from | |
8285 | having preelaborable initialization). | |
8286 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
8287 | initialization for controlled types in Ada 2005 or later mode. | |
8288 | ||
8289 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8290 | ||
8291 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
8292 | Postcondition. | |
8293 | (Same_Aspect): New function. | |
8294 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
8295 | Type_Invariant, Precondition, Postcondition. | |
8296 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
8297 | ||
8298 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8299 | ||
8300 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
8301 | here. | |
8302 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
8303 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
8304 | already analyzed, but don't skip entire processing of a declaration, | |
8305 | that's wrong in some cases of declarations being rewritten. | |
8306 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
8307 | Don't delay for integer, string literals | |
8308 | Treat predicates in usual manner for delay, remove special case code, | |
8309 | not needed. | |
8310 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
8311 | (Build_Predicate_Function): Update saved expression in aspect | |
8312 | (Build_Invariant_Procedure): Update saved expression in aspect | |
8313 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
8314 | of replacement of discriminant references if the reference is simple. | |
8315 | ||
8316 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8317 | ||
8318 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
8319 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
8320 | Static_Predicate and Dynamic_Predicate. | |
8321 | (Build_Predicate_Function): Add processing for Static_Predicate | |
8322 | and Dynamic_Predicate. | |
8323 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
8324 | (From_Static_Predicate): New flag | |
8325 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
8326 | ||
8327 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8328 | ||
8329 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
8330 | * expander.adb: Minor reformatting. | |
8331 | ||
8332 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8333 | ||
8334 | * atree.ads: Minor comment fix. | |
8335 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
8336 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
8337 | ||
8338 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
8339 | ||
8340 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
8341 | pointers. Use descrip.h header file for convenience. Add some | |
8342 | comments. | |
8343 | ||
8344 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8345 | ||
8346 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
8347 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
8348 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
8349 | New procedure. | |
8350 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
8351 | (Analye_Aspect_Specification): Minor changes for above procedures | |
8352 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
8353 | specification node as well. | |
8354 | ||
8355 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8356 | ||
8357 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
8358 | Windows files. Use GetFilesAttributes() in this case to check for file | |
8359 | existence instead of returning with an error code. | |
8360 | ||
8361 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8362 | ||
8363 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
8364 | High is above Source length. | |
8365 | ||
8366 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8367 | ||
8368 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
8369 | ||
8370 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
8371 | ||
8372 | * aspects.ads (Boolean_Aspects): New subtype. | |
8373 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
8374 | for derived types in cases where the parent type and derived type have | |
8375 | aspects. | |
8376 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
8377 | with aspects when parent type also has aspects. | |
8378 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
8379 | boolean expression at this point). | |
8380 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
8381 | accordance with final decision on the Ada 2012 feature. | |
8382 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
8383 | ||
8384 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
8385 | ||
8386 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
8387 | ||
8388 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8389 | ||
8390 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
8391 | Fix Replace_Slice when High is above current string size. | |
8392 | (Replace_Slice): Fix DL computation when High is above current | |
8393 | string length. | |
8394 | ||
8395 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
8396 | ||
8397 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
8398 | ||
8399 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
8400 | ||
8401 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
8402 | of node. | |
8403 | ||
8404 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
8405 | ||
8406 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
8407 | reformatting. | |
8408 | ||
8409 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8410 | ||
8411 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
8412 | access to protected subprograms in generic bodies. | |
8413 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
8414 | protected type, indicate that the convention of the subprogram is | |
8415 | Convention_Protected, because it may be used in subsequent declarations | |
8416 | within the protected declaration. | |
8417 | ||
8418 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
8419 | ||
8420 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
8421 | and "final" procedures when the name of the library is "ada", to avoid | |
8422 | duplicate symbols "adainit" and "adafinal" in executables. | |
8423 | ||
8424 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
8425 | ||
8426 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
8427 | quantified expression that appears within a postcondition and uses the | |
8428 | Ada2012 'Result attribute. | |
8429 | ||
8430 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8431 | ||
8432 | * init.c (__gnat_error_handler): Cast reason to int. | |
8433 | (__gnat_install_handler): Explain sa_sigaction use. | |
8434 | ||
8435 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8436 | ||
8437 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
8438 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
8439 | the return type if it is passed in registers. | |
8440 | ||
8441 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8442 | ||
8443 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
8444 | left operand as addressable. | |
8445 | ||
8446 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> | |
8447 | ||
8448 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
8449 | (build_return_expr): Likewise. | |
8450 | (convert_vms_descriptor): Declare. | |
8451 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
8452 | (build_function_stub): Move to... | |
8453 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
8454 | * gcc-interface/trans.c (build_function_stub): ...here. | |
8455 | (build_return_expr): ...here. | |
8456 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
8457 | Disconnect the parameter attributes cache, if any, once done with it. | |
8458 | Call end_subprog_body only after setting the end_locus. | |
8459 | Build the stub associated with the function, if any, at the very end. | |
8460 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
8461 | variables and streamline control flow. | |
8462 | ||
8463 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> | |
8464 | ||
8465 | PR ada/49819 | |
8466 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
8467 | g-trasym-dwarf.adb. | |
8468 | ||
8469 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8470 | ||
8471 | PR bootstrap/49794 | |
8472 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
8473 | Assign to act.sa_sigaction. | |
8474 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
8475 | current->return_address to char * before arithmetic. | |
8476 | ||
8477 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8478 | ||
8479 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
8480 | Correct argument types. | |
8481 | Extract code from reason. | |
8482 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
8483 | ||
8484 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> | |
8485 | ||
8486 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
8487 | (GNAT1_OBJS): ...here. | |
8488 | ||
8489 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> | |
8490 | ||
8491 | PR ada/48711 | |
8492 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
8493 | ||
8494 | * gcc-interface/gigi.h: Move around comment. | |
8495 | ||
8496 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | |
8497 | ||
8498 | PR ada/46350 | |
8499 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
8500 | ||
8501 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> | |
8502 | ||
8503 | PR ada/48711 | |
8504 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
8505 | ||
8506 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> | |
8507 | ||
8508 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
8509 | range comparison if Pmode is SImode. | |
8510 | ||
8511 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> | |
8512 | Eric Botcazou <ebotcazou@adacore.com> | |
8513 | ||
8514 | * adadecode.c: Wrap up in extern "C" block. | |
8515 | * adadecode.h: Likewise. | |
8516 | * adaint.c: Likewise. Remove 'const' keyword. | |
8517 | * adaint.h: Likewise. | |
8518 | * argv.c: Likewise. | |
8519 | * atree.h: Likewise. | |
8520 | * cio.c: Likewise. | |
8521 | * cstreams.c: Likewise. | |
8522 | * env.c: Likewise. | |
8523 | * exit.c: Likewise. | |
8524 | * fe.h: Likewise. | |
8525 | * final.c: Likewise. | |
8526 | * init.c: Likewise. | |
8527 | * initialize.c: Likewise. | |
8528 | * link.c: Likewise. | |
8529 | * namet.h: Likewise. | |
8530 | * nlists.h: Likewise. | |
8531 | * raise.c: Likewise. | |
8532 | * raise.h: Likewise. | |
8533 | * repinfo.h: Likewise. | |
8534 | * seh_init.c: Likewise. | |
8535 | * targext.c: Likewise. | |
8536 | * tracebak.c: Likewise. | |
8537 | * uintp.h: Likewise. | |
8538 | * urealp.h: Likewise. | |
8539 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
8540 | * xsinfo.adb: Likewise. | |
8541 | * xsnamest.adb: Likewise. | |
8542 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
8543 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
8544 | * gcc-interface/misc.c: Likewise. | |
8545 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
8546 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
8547 | ada/targext.o here... | |
8548 | (GNAT_ADA_OBJS): ...and not here. | |
8549 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
8550 | (GNATBIND_OBJS): Reorder. | |
8551 | ||
8552 | 2011-07-07 Richard Henderson <rth@redhat.com> | |
8553 | ||
8554 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
8555 | dwarf2out_frame_init. | |
8556 | ||
8557 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
8558 | ||
8559 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
8560 | ||
8561 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8562 | ||
8563 | PR target/39150 | |
8564 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
8565 | ||
8566 | 2011-07-06 Richard Guenther <rguenther@suse.de> | |
8567 | ||
8568 | * gcc-interface/misc.c (gnat_init): Merge calls to | |
8569 | build_common_tree_nodes and build_common_tree_nodes_2. | |
8570 | Re-initialize boolean_false_node. | |
8571 | ||
8572 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> | |
8573 | Olivier Hainque <hainque@adacore.com> | |
8574 | Nicolas Setton <setton@adacore.com> | |
8575 | ||
8576 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
8577 | the type according to the ARTIFICIAL_P parameter. | |
8578 | (create_type_decl): Likewise. | |
8579 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
8580 | ||
8581 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> | |
8582 | ||
8583 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
8584 | (gnatbind): Likewise. | |
8585 | ||
8586 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | |
8587 | ||
8588 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
8589 | ||
8590 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8591 | ||
8592 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
8593 | local variable throughout. Remove useless call to Base_Type. | |
8594 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
8595 | Take it also into account for the volatileness of the field. Set the | |
8596 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
8597 | ||
8598 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8599 | ||
8600 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
8601 | on a dereference built for a by-ref object if it has an address clause. | |
8602 | ||
8603 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> | |
8604 | ||
8605 | * einfo.ads (Address_Taken): Document use for the second argument of | |
8606 | Asm_Input and Asm_Output attributes. | |
8607 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
8608 | argument is an entity name, then set Address_Taken on it. | |
8609 | <Attribute_Asm_Output>: Likewise. | |
8610 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
8611 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
8612 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
8613 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
8614 | ||
8615 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
8616 | ||
8617 | PR middle-end/46500 | |
8618 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
8619 | ||
8620 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> | |
8621 | ||
8622 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
8623 | (ada/utils.o): Update dependencies. | |
8624 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
8625 | ../../../libcpp/libcpp.a. | |
8626 | * gcc-interface/utils.c: Include common/common-target.h. | |
8627 | (process_attributes): Use targetm_common.have_named_sections. | |
8628 | ||
8629 | 2011-06-07 Richard Guenther <rguenther@suse.de> | |
8630 | ||
8631 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call | |
8632 | set_sizetype. | |
8633 | ||
8634 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8635 | ||
8636 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the | |
8637 | TREE_THIS_NOTRAP flag. | |
8638 | ||
8639 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8640 | ||
8641 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
8642 | Fix thinko. | |
8643 | ||
8644 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8645 | ||
8646 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
8647 | constants whose full view has discriminants specially. | |
8648 | ||
8649 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
8650 | ||
8651 | * gcc-interface/utils.c: Include diagnostic.h. | |
8652 | (gnat_write_global_declarations): Output debug information for all | |
8653 | global type declarations before finalizing the compilation unit. | |
8654 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
8655 | ||
8656 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> | |
8657 | ||
8658 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
8659 | ||
8660 | 2011-05-25 Kai Tietz <ktietz@redhat.com> | |
8661 | ||
8662 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
8663 | initialization instead of const/none-const pointer assignment. | |
8664 | ||
8665 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> | |
8666 | ||
8667 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
8668 | $(EXTRA_GNAT1_OBJS). | |
8669 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
8670 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
8671 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
8672 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
8673 | libcommon-target.a instead of prefix.o. | |
8674 | ||
8675 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> | |
8676 | ||
8677 | PR ada/49097 | |
8678 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). | |
8679 | ||
8680 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> | |
8681 | ||
8682 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. | |
8683 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
8684 | instead of version.o. | |
8685 | ||
8686 | 2011-05-18 Kai Tietz <ktietz@redhat.com> | |
8687 | ||
8688 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
8689 | boolean_false_node instead of integer_zero_node. | |
8690 | (convert_with_check): Likewise. | |
8691 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
8692 | ||
8693 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> | |
8694 | ||
8695 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
8696 | type of the parameter is an unconstrained array, convert the actual to | |
8697 | the type of the formal in the In Out and Out cases as well. | |
8698 | ||
8699 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8700 | ||
8701 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
8702 | call build_function_type_array or build_varargs_function_type_array | |
8703 | instead. | |
8704 | (create_subprog_type): Don't call build_function_type; call | |
8705 | build_function_type_vec instead. | |
8706 | ||
8707 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> | |
8708 | ||
8709 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
8710 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
8711 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
8712 | ||
8713 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> | |
8714 | ||
8715 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. | |
8716 | ||
8717 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. | |
8718 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
8719 | ||
8720 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8721 | ||
8722 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. | |
8723 | ||
8724 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> | |
8725 | ||
8726 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
8727 | instead of accessing TYPE_ARG_TYPES directly. | |
8728 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
8729 | ||
8730 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8731 | ||
8732 | PR ada/48844 | |
8733 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
8734 | * gcc-interface/decl.c (get_variant_part): Make global. | |
8735 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
8736 | types have the same constant size, are record types and T1 has a | |
8737 | variant part while T2 doesn't. | |
8738 | ||
8739 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> | |
8740 | ||
8741 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
8742 | get_pending_sizes. | |
8743 | (end_subprog_body): Likewise. | |
8744 | ||
8745 | 2011-05-04 Richard Guenther <rguenther@suse.de> | |
8746 | ||
8747 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
8748 | int_const_binop. | |
8749 | (pos_to_constructor): Likewise. | |
8750 | ||
8751 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> | |
2c7f9cc0 | 8752 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
8753 | |
8754 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
8755 | of build_function_type. Adjust calls to... | |
8756 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
8757 | Call build_function_type_list instead of build_function_type. | |
8758 | Fix head comment and swap couple of conditional blocks. | |
8759 | ||
8760 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> | |
8761 | ||
8762 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
8763 | (Current_Year): Bump to 2011. | |
8764 | ||
8765 | 2011-04-29 Michael Matz <matz@suse.de> | |
8766 | ||
8767 | * gcc-interface/misc.c (gnat_handle_option): Set | |
8768 | warn_maybe_uninitialized. | |
8769 | ||
8770 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> | |
8771 | ||
8772 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
8773 | the Watson/McCabe paper. | |
8774 | ||
8775 | 2011-04-23 Jim Meyering <meyering@redhat.com> | |
8776 | ||
8777 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
8778 | ||
8779 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8780 | ||
8781 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
8782 | onto the new type. | |
8783 | ||
8784 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> | |
8785 | ||
8786 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
8787 | parameter. | |
8788 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
8789 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
8790 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
8791 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
8792 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
8793 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
8794 | don't need debug info here... | |
8795 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
8796 | (gigi): Adjust calls to create_subprog_decl. | |
8797 | (build_raise_check): Likewise. | |
8798 | (establish_gnat_vms_condition_handler): Likewise. | |
8799 | (Compilation_Unit_to_gnu): Likewise. | |
8800 | (gnat_to_gnu): Likewise. | |
8801 | ||
8802 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> | |
8803 | ||
8804 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
8805 | (NO_REORDER_ADAFLAGS): New variable. | |
8806 | (EXTRA_GNATTOOLS): Always define. | |
8807 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
8808 | Clean up and adjust list of files compiled with special options. | |
8809 | * gcc-interface/Make-lang.in: Likewise. | |
8810 | (ada/decl.o): Cosmetical change. | |
8811 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
8812 | ||
8813 | 2011-04-20 Jim Meyering <meyering@redhat.com> | |
8814 | ||
8815 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
8816 | ||
8817 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8818 | ||
8819 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
8820 | $(CFLAGS) on the link line. | |
8821 | ||
8822 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> | |
8823 | ||
8824 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
8825 | padded type built for the return type if it is unconstrained. | |
8826 | ||
8827 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> | |
8828 | ||
8829 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
8830 | ||
8831 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> | |
8832 | ||
8833 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON | |
8834 | before calling TREE_CHAIN. | |
8835 | * gcc-interface/misc.c (gnat_init_ts): New function. | |
8836 | (LANG_HOOKS_INIT_TS): Define. | |
8837 | ||
8838 | 2011-04-12 Martin Jambor <mjambor@suse.cz> | |
8839 | ||
8840 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node | |
8841 | instead of cgraph_node. | |
8842 | ||
8843 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8844 | ||
8845 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
8846 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
8847 | mechanism. | |
8848 | ||
8849 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> | |
8850 | ||
8851 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
8852 | of aggregate types that contain a placeholder. | |
8853 | ||
8854 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> | |
8855 | ||
8856 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
8857 | TYPE_ARG_TYPES. | |
8858 | (handle_type_generic_attribute): Likewise. | |
8859 | ||
8860 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> | |
8861 | ||
8862 | PR ada/47163 | |
8863 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
8864 | ||
8865 | 2011-04-04 Kai Tietz <ktietz@redhat.com> | |
8866 | ||
8867 | PR ada/47163 | |
8868 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets | |
8869 | to flag value. | |
8870 | ||
8871 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8872 | ||
8873 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
8874 | type case, do not strip a padding type around the array type. | |
8875 | ||
8876 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8877 | ||
8878 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
8879 | types. | |
8880 | ||
8881 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8882 | ||
8883 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
8884 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
8885 | code for -feliminate-unused-debug-types. | |
8886 | (gnat_post_options): Likewise. | |
8887 | ||
8888 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8889 | ||
8890 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
8891 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
8892 | distinct copy. | |
8893 | ||
8894 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8895 | ||
8896 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
8897 | DECL_ARTIFICIAL flag on enumeration types. | |
8898 | ||
8899 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8900 | ||
8901 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
8902 | fat pointer types artificial unconditionally. | |
8903 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
8904 | isn't artificial. | |
8905 | ||
8906 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8907 | ||
8908 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
8909 | (build_dummy_unc_pointer_types): Likewise. | |
8910 | (finish_fat_pointer_type): Likewise. | |
8911 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
8912 | fat pointer type has been built, complete it in place. | |
8913 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
8914 | and thin pointers. Remove useless variable. | |
8915 | (finish_fat_pointer_type): Make global and move to... | |
8916 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
8917 | (get_dummy_type): New function. | |
8918 | (build_dummy_unc_pointer_types): Likewise. | |
8919 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
8920 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
8921 | array case. | |
8922 | ||
8923 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8924 | ||
8925 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
8926 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
8927 | if this is a Taft amendment type and the full declaration is available. | |
8928 | * gcc-interface/trans.c (process_type): Likewise. | |
8929 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
8930 | (process_freeze_entity): Likewise. | |
8931 | * gcc-interface/utils.c (dummy_global): New static variable. | |
8932 | (gnat_write_global_declarations): If there are types declared as used | |
8933 | at the global level, insert them in the global hash table. | |
8934 | ||
8935 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8936 | ||
8937 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
8938 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
8939 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
8940 | copy. | |
8941 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
8942 | flag of the type accordingly. | |
8943 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
8944 | ||
8945 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> | |
8946 | ||
8947 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
8948 | finalizing types when updating the pointers to the designated type. | |
8949 | <all>: Finalize the deferred types even if we didn't defer processing | |
8950 | of incomplete types in this invocation. | |
8951 | ||
8952 | 2011-04-01 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 AS |
8953 | Nicolas Setton <setton@adacore.com> |
8954 | Eric Botcazou <ebotcazou@adacore.com> | |
052e0603 AC |
8955 | |
8956 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
8957 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
8958 | ||
8959 | 2011-03-28 Kai Tietz <ktietz@redhat.com> | |
8960 | ||
8961 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native | |
8962 | Windows targets. | |
8963 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
8964 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
8965 | ||
8966 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. | |
8967 | ||
8968 | 2011-03-28 Tristan Gingold <gingold@adacore.com> | |
8969 | ||
8970 | PR ada/44431 | |
8971 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. | |
8972 | Use ada output of gnatbind. | |
8973 | (ada/b_gnatb.adb): Ditto. | |
8974 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
8975 | (ada.mostlyclean, ada.stage1) | |
8976 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
8977 | (ada.stagefeedback): Adjust. | |
8978 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. | |
8979 | Use ada output of gnatbind. | |
8980 | (b_gnatm.adb): Ditto. | |
8981 | (b_gnatl.o, b_gnatm.o): New rules. | |
8982 | ||
8983 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
8984 | ||
8985 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
8986 | for the padded type built to support a specified size or alignment. | |
8987 | ||
8988 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
8989 | ||
8990 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
8991 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
8992 | unconditionally to the end of the unit when the designated type is | |
8993 | limited_with'ed. | |
8994 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
8995 | for limited_with'ed types as well. | |
8996 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
8997 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
8998 | consistently and remove redundant call to finalize_from_with_types. | |
8999 | ||
9000 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> | |
9001 | ||
9002 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
9003 | subprograms without a previous spec declared in the same unit. | |
9004 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
9005 | subprograms at the end of the unit instead of at the beginning. | |
9006 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
9007 | isn't public for the special handling of non-inline functions nested | |
9008 | inside inline external functions. | |
9009 | ||
9010 | 2011-03-25 Jeff Law <law@redhat.com> | |
9011 | ||
9012 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. | |
9013 | ||
9014 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
9015 | ||
9016 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
9017 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
9018 | to compute Set_Size_Depends_On_Discriminant. | |
9019 | (Layout_Type): Call it on array types in back-end layout mode. | |
9020 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
9021 | types only if the size depends on the value of discriminants. | |
9022 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
9023 | type if the RHS is a call to a function that returns an unconstrained | |
9024 | type with default discriminant. | |
9025 | ||
9026 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> | |
9027 | ||
9028 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
9029 | non-conversion to the nominal result type at the end. | |
9030 | ||
9031 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9032 | ||
9033 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
9034 | (create_init_temporary): ...here. Call it. | |
9035 | (call_to_gnu): Create the temporary for the return value early, if any. | |
9036 | Create it for a function with copy-in/copy-out parameters if there is | |
9037 | no target; in other cases of copy-in/copy-out, use another temporary. | |
9038 | Push the new binding level lazily. Add and rename local variables. | |
9039 | ||
9040 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9041 | ||
9042 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
9043 | error message. | |
9044 | (set_rm_size): Likewise. | |
9045 | ||
9046 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> | |
9047 | ||
9048 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
9049 | for the padded type built in order to support a specified alignment. | |
9050 | Fix incorrect formatting. | |
9051 | ||
9052 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9053 | ||
9054 | PR bootstrap/48216 | |
9055 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
9056 | ||
9057 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9058 | ||
9059 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
9060 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
9061 | to the end of the list. Adjust recursive call. Rename local variable. | |
9062 | If REORDER is true, reorder components of the record type. | |
9063 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
9064 | components_to_record and adjust the parameter list. | |
9065 | ||
9066 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> | |
9067 | ||
9068 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
9069 | disabled, use the variable for bounds of loop iteration scheme. | |
9070 | ||
9071 | 2011-03-21 Kai Tietz <ktietz@redhat.com> | |
9072 | ||
9073 | PR target/12171 | |
9074 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. | |
9075 | ||
9076 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
9077 | ||
9078 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
9079 | out whether the expression is read-only. Short-circuit placeholder | |
9080 | case and rename a couple of local variables. | |
9081 | ||
9082 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> | |
9083 | ||
9084 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
9085 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
9086 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
9087 | (convert): Deal with conversions from a smaller form type specially. | |
9088 | ||
9089 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> | |
9090 | ||
9091 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
9092 | its argument, except for the special -I- switch. | |
9093 | ||
9094 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> | |
9095 | ||
9096 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to | |
9097 | "Ada Issues". | |
9098 | ||
9099 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> | |
9100 | ||
9101 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
9102 | ||
9103 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> | |
9104 | ||
9105 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
9106 | GNAT_FORMAL. | |
9107 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
9108 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
9109 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
9110 | Do not generate the check directly, instead instantiate the template | |
9111 | check present in the descriptor. | |
9112 | (make_descriptor_field): Move around. | |
9113 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
9114 | (build_vms_descriptor): Remove useless suffixes. | |
9115 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
9116 | ||
9117 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> | |
9118 | ||
9119 | PR bootstrap/47467 | |
9120 | * targext.c: Include target files if IN_RTS is defined. | |
9121 | ||
9122 | 2011-01-26 Richard Guenther <rguenther@suse.de> | |
9123 | ||
9124 | PR bootstrap/47467 | |
9125 | * targext.c: Include config.h. | |
9126 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
9127 | dependency. | |
9128 | ||
9129 | 2011-01-04 Pascal Obry <obry@adacore.com> | |
2c7f9cc0 | 9130 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
9131 | |
9132 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
9133 | ||
9134 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9135 | ||
9136 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
9137 | end-of-case on the end label and its associated gotos, if any. | |
9138 | ||
9139 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9140 | ||
9141 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
9142 | expressions of the parameter cache within the statement group of | |
9143 | the CICO mechanism. | |
9144 | ||
9145 | 2011-01-04 Olivier Hainque <hainque@adacore.com> | |
2c7f9cc0 | 9146 | Eric Botcazou <ebotcazou@adacore.com> |
052e0603 AC |
9147 | |
9148 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
9149 | (set_end_locus_from_node): New function. | |
9150 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
9151 | make and the function end_locus. | |
9152 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
9153 | for the elaboration subprogram. | |
9154 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
9155 | set the end_locus of the expression as well. | |
9156 | ||
9157 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> | |
9158 | ||
9159 | PR ada/47131 | |
9160 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
9161 | variables that are referenced in exception handlers volatile. | |
9162 | ||
9163 | ||
9164 | \f | |
9165 | Copyright (C) 2011 Free Software Foundation, Inc. | |
9166 | ||
9167 | Copying and distribution of this file, with or without modification, | |
9168 | are permitted in any medium without royalty provided the copyright | |
9169 | notice and this notice are preserved. | |
9170 | ||
9171 | * gnat_rm.texi: Ramification of pragma Eliminate documentation | |
9172 | - fix bugs in the description of Source_Trace; | |
9173 | - get rid of UNIT_NAME; | |
9174 | ||
4fbad0ba AC |
9175 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9176 | ||
9177 | * exp_ch9.adb | |
9178 | (Build_Dispatching_Requeue): Adding support for VM targets | |
9179 | since we cannot directly reference the Tag entity. | |
9180 | * exp_sel.adb (Build_K): Adding support for VM targets. | |
9181 | (Build_S_Assignment): Adding support for VM targets. | |
9182 | * exp_disp.adb | |
9183 | (Default_Prim_Op_Position): In VM targets do not restrict availability | |
9184 | of predefined interface primitives to compiling in Ada 2005 mode. | |
9185 | (Is_Predefined_Interface_Primitive): In VM targets this service is not | |
9186 | restricted to compiling in Ada 2005 mode. | |
9187 | (Make_VM_TSD): Generate code that declares and initializes the OSD | |
9188 | record. Needed to support dispatching calls through synchronized | |
9189 | interfaces. | |
9190 | * exp_ch3.adb | |
9191 | (Make_Predefined_Primitive_Specs): Enable generation of predefined | |
9192 | primitives associated with synchronized interfaces. | |
9193 | (Make_Predefined_Primitive_Bodies): Enable generation of predefined | |
9194 | primitives associated with synchronized interfaces. | |
9195 | ||
9196 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9197 | ||
9198 | * par-ch11.adb (P_Handled_Sequence_Of_Statements): mark a sequence of | |
9199 | statements hidden in SPARK if preceded by the HIDE directive | |
9200 | (Parse_Exception_Handlers): mark each exception handler in a sequence of | |
9201 | exception handlers as hidden in SPARK if preceded by the HIDE directive | |
9202 | * par-ch6.adb (P_Subprogram): mark a subprogram body hidden in SPARK | |
9203 | if starting with the HIDE directive | |
9204 | * par-ch7.adb (P_Package): mark a package body hidden in SPARK if | |
9205 | starting with the HIDE directive; mark the declarations in a private | |
9206 | part as hidden in SPARK if the private part starts with the HIDE | |
9207 | directive | |
9208 | * restrict.adb, restrict.ads | |
9209 | (Set_Hidden_Part_In_SPARK): record a range of slocs as hidden in SPARK | |
9210 | (Is_In_Hidden_Part_In_SPARK): new function which returns whether its | |
9211 | argument node belongs to a part which is hidden in SPARK | |
9212 | (Check_SPARK_Restriction): do not issue violations on nodes in hidden | |
9213 | parts in SPARK; protect the possibly costly call to | |
9214 | Is_In_Hidden_Part_In_SPARK by a check that the SPARK restriction is on | |
9215 | * scans.ads (Token_Type): new value Tok_SPARK_Hide in enumeration | |
9216 | * scng.adb (Accumulate_Token_Checksum_GNAT_6_3, | |
9217 | Accumulate_Token_Checksum_GNAT_5_03): add case for new token | |
9218 | Tok_SPARK_Hide. | |
9219 | (Scan): recognize special comment starting with '#' and followed by | |
9220 | SPARK keyword "hide" as a HIDE directive. | |
9221 | ||
9222 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9223 | ||
9224 | * types.ads, erroutc.ads: Minor reformatting. | |
9225 | ||
9226 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9227 | ||
9228 | * link.c: Add response file support for cross platforms. | |
9229 | ||
6ff6152d ES |
9230 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9231 | ||
9232 | * sem_aggr.adb (Resolve_Array_Aggregate): when copying the expression | |
9233 | in an association, set parent field of copy before partial analysis. | |
9234 | * sem_res.adb (Resolve_Slice): create reference to itype only when | |
9235 | expansion is enabled. | |
9236 | ||
975c6896 YM |
9237 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9238 | ||
9239 | * einfo.adb, einfo.ads (Body_Is_In_ALFA, Set_Body_Is_In_ALFA): get/set | |
9240 | for new flag denoting which subprogram bodies are in ALFA | |
9241 | * restrict.adb, sem_ch7.adb: Update comment | |
9242 | * sem_ch11.adb, sem_ch2.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, | |
9243 | sem_ch9.adb, sem_res.adb: Add calls to | |
9244 | Current_Subprogram_Body_Is_Not_In_ALFA on unsupported constructs. | |
9245 | * sem_ch6.adb (Analyze_Function_Return): add calls to | |
9246 | Current_Subprogram_Body_Is_Not_In_ALFA on return statement in the | |
9247 | middle of the body, and extended return. | |
9248 | (Check_Missing_Return): add calls to Set_Body_Is_In_ALFA with argument | |
9249 | False when missing return. | |
9250 | (Analyze_Subprogram_Body_Helper): initialize the flag Body_Is_In_ALFA | |
9251 | to True for subprograms whose spec is in ALFA. Remove later on the flag | |
9252 | on the entity used for a subprogram body when there exists a separate | |
9253 | declaration. | |
9254 | * sem_util.adb, sem_util.ads (Current_Subprogram_Body_Is_Not_In_ALFA): | |
9255 | if Current_Subprogram is not Empty, set its flag Body_Is_In_ALFA to | |
9256 | False, otherwise do nothing. | |
9257 | ||
afc8324d AC |
9258 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9259 | ||
9260 | * inline.adb, stand.ads, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
9261 | ||
9262 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9263 | ||
9264 | * sem_ch4.ads: minor formatting. | |
9265 | ||
2ba431e5 YM |
9266 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9267 | ||
9268 | * sem_aggr.adb, err_vars.ads, sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, | |
9269 | debug.adb, sem_util.adb, sem_res.adb, sem_attr.adb, gnat1drv.adb, | |
9270 | errout.adb, errout.ads, exp_ch6.adb, sem_ch4.adb, restrict.adb, | |
9271 | restrict.ads, sem_ch6.adb, sem_ch8.adb, sem_ch11.adb, | |
9272 | opt.ads: cleanup of SPARK mode | |
9273 | ||
0f853035 YM |
9274 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9275 | ||
9276 | * cstand.adb (Create_Standard): sets Is_In_ALFA component of standard | |
9277 | types. | |
9278 | * einfo.adb, einfo.ads (Is_In_ALFA): add flag for all entities | |
9279 | (Is_In_ALFA, Set_Is_In_ALFA): new subprograms to access flag Is_In_ALFA | |
9280 | * sem_ch3.adb | |
9281 | (Analyze_Object_Declaration): set Is_In_ALFA flag for objects | |
9282 | (Constrain_Enumeration): set Is_In_ALFA flag for enumeration subtypes | |
9283 | (Constrain_Integer): set Is_In_ALFA flag for integer subtypes | |
9284 | (Enumeration_Type_Declaration): set Is_In_ALFA flag for enumeration | |
9285 | types. | |
9286 | (Set_Scalar_Range_For_Subtype): unset Is_In_ALFA flag for subtypes with | |
9287 | non-static range. | |
9288 | * sem_ch6.adb (Analyze_Return_Type): unset Is_In_ALFA flag for | |
9289 | functions whose return type is not in ALFA. | |
9290 | (Analyze_Subprogram_Specification): set Is_In_ALFA flag for subprogram | |
9291 | specifications. | |
9292 | (Process_Formals): unset Is_In_ALFA flag for subprograms if a | |
9293 | parameter's type is not in ALFA. | |
9294 | * stand.ads (Standard_Type_Is_In_ALFA): array defines which standard | |
9295 | types are in ALFA. | |
9296 | ||
d2b10647 ES |
9297 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9298 | ||
9299 | * sem_ch6 (Analyze_Expression_Function): treat the function as | |
9300 | Inline_Always, and introduce a subprogram declaration for it when it is | |
9301 | not a completion. | |
9302 | * inline.adb (Add_Inlined_Body): recognize bodies that come from | |
9303 | expression functions, so that the back-end can determine whether they | |
9304 | can in fact be inlined. | |
9305 | * sem_util.adb (Is_Expression_Function): predicate to determine whether | |
9306 | a function body comes from an expression function. | |
9307 | ||
c7b9d548 AC |
9308 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
9309 | ||
9310 | * sem_ch6.adb (Check_Conformance): Revise the check for nonconforming | |
9311 | null exclusions to test Can_Never_Be_Null on the anonymous access types | |
9312 | of the formals rather than testing the formals themselves. Exclude this | |
9313 | check in cases where the Old_Formal is marked as a controlling formal, | |
9314 | to avoid issuing spurious errors for bodies completing dispatching | |
9315 | operations (due to the flag not getting set on controlling access | |
9316 | formals in body specs). | |
9317 | (Find_Corresponding_Spec): When checking full and subtype conformance of | |
9318 | subprogram bodies in instances, pass Designated and E in that order, for | |
9319 | consistency with the expected order of the formals (New_Id followed by | |
9320 | Old_Id). | |
9321 | ||
9322 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9323 | ||
9324 | * sem_ch8.adb: Minor reformatting. | |
9325 | ||
1138cf59 AC |
9326 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9327 | ||
9328 | * sem_ch8.adb (Analyze_Subprogram_Renaming): new procedure | |
9329 | Check_Class_Wide_Actual, to implement AI05-0071, on defaulted | |
9330 | primitive operations of class-wide actuals. | |
9331 | ||
9332 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9333 | ||
9334 | * exp_atag.ads, exp_atag.adb | |
9335 | (Build_Common_Dispatching_Select_Statements): Remove argument Loc | |
9336 | since its value is implicitly passed in argument Typ. | |
9337 | * exp_disp.adb (Make_Disp_Conditional_Select_Body, | |
9338 | Make_Disp_Timed_Select_Body): Remove Loc in calls to routine | |
9339 | Build_Common_Dispatching_Select_Statements. | |
9340 | ||
7b9db926 RD |
9341 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9342 | ||
9343 | * sem_ch3.adb, exp_atag.ads, get_scos.adb, get_scos.ads, | |
9344 | exp_disp.adb, lib-xref.adb, lib-xref.ads: Update comments. | |
9345 | Minor reformatting. | |
9346 | ||
e8374e7a AC |
9347 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9348 | ||
9349 | * sem_res.adb: Minor reformatting. | |
9350 | * sem_prag.adb: Minor reformatting. | |
9351 | ||
9352 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9353 | ||
9354 | * exp_atag.adb, exp_atags.ads | |
9355 | (Build_Common_Dispatching_Select_Statement): Replace argument DT_Ptr | |
9356 | by the tagged type Entity. Required to use this routine in the VM | |
9357 | targets since we do not have available the Tag entity in the VM | |
9358 | platforms. | |
9359 | * exp_ch6.adb | |
9360 | (Expand_N_Subprogram_Body): Do not invoke Build_VM_TSDs if package | |
9361 | Ada.Tags has not been previously loaded. | |
9362 | * exp_ch7.adb | |
9363 | (Expand_N_Package_Declaration, Expand_N_Package_Body): Do not invoke | |
9364 | Build_VM_TSDs if package Ada.Tags has not been previously loaded. | |
9365 | * sem_aux.adb | |
9366 | (Enclosing_Dynamic_Scope): Add missing support to handle the full | |
9367 | view of enclosing scopes. Required to handle enclosing scopes that | |
9368 | are synchronized types whose full view is a task type. | |
9369 | * exp_disp.adb | |
9370 | (Build_VM_TSDs): Minor code improvement to avoid generating and | |
9371 | analyzing lists with empty nodes. | |
9372 | (Make_Disp_Asynchronous_Select_Body): Add support for VM targets. | |
9373 | (Make_Disp_Conditional_Select_Body): Add support for VM targets. | |
9374 | (Make_Disp_Get_Prim_Op_Kind): Add support for VM targets. | |
9375 | (Make_Disp_Timed_Select_Body): Add support for VM targets. | |
9376 | (Make_Select_Specific_Data_Table): Add support for VM targets. | |
9377 | (Make_VM_TSD): Generate code to initialize the SSD structure of | |
9378 | the TSD. | |
9379 | ||
9380 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9381 | ||
9382 | * lib-writ.adb (Write_ALI): when ALFA mode is set, write local | |
9383 | cross-references section in ALI. | |
9384 | * lib-xref.adb, lib-xref.ads (Xref_Entry): add components Sub | |
9385 | (enclosing subprogram), Slc (location of Sub) and Sun (unit number of | |
9386 | Sub). | |
9387 | (Enclosing_Subprogram_Or_Package): new function to return the enclosing | |
9388 | subprogram or package entity of a node | |
9389 | (Is_Local_Reference_Type): new function returns True for references | |
9390 | selected in local cross-references. | |
9391 | (Lt): function extracted from Lt in Output_References | |
9392 | (Write_Entity_Name): function extracted from Output_References | |
9393 | (Generate_Definition): generate reference with type 'D' for definition | |
9394 | of objects (object declaration and parameter specification), with | |
9395 | appropriate locations and units, for use in local cross-references. | |
9396 | (Generate_Reference): update fields Sub, Slc and Sun. Keep newly created | |
9397 | references of type 'I' for initialization in object definition. | |
9398 | (Output_References): move part of function Lt and procedure | |
9399 | Write_Entity_Name outside of the body. Ignore references of types 'D' | |
9400 | and 'I' introduced for local cross-references. | |
9401 | (Output_Local_References): new procedure to output the local | |
9402 | cross-references sections. | |
9403 | (Lref_Entity_Status): new array defining whether an entity is a local | |
9404 | * sem_ch3.adb (Analyze_Object_Declaration): call Generate_Reference | |
9405 | with 'I' type when initialization expression is present. | |
9406 | * get_scos.adb, get_scos.ads: Correct comments and typos | |
9407 | ||
1f6439e3 AC |
9408 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9409 | ||
9410 | * exp_ch6.adb (Expand_N_Subprogram_Body): Enable generation of TSDs in | |
9411 | the JVM target. | |
9412 | * exp_ch7.adb (Expand_N_Package_Body): Enable generation of TSDs in | |
9413 | the JVM target. | |
9414 | * exp_disp.adb (Build_VM_TSDs): No action needed if the runtime has no | |
9415 | TSD support. | |
9416 | ||
9417 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
9418 | ||
9419 | * prj-nmsc.adb (File_Found): New components Excl_File and Excl_Line | |
9420 | (No_Space_Img): New function | |
9421 | (Find_Excluded_Sources): When reading from a file, record the file name | |
9422 | and the line number for each excluded source. | |
9423 | (Mark_Excluded_Sources): When reporting an error, if the excluded | |
9424 | sources were read from a file, include file name and line number in | |
9425 | the error message. | |
9426 | ||
9427 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9428 | ||
9429 | * sem_res.adb (Resolve_Call): implement rule in RM 12.5.1 (23.3/2). | |
9430 | ||
ab027d28 RD |
9431 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9432 | ||
9433 | * exp_ch7.adb exp_ch6.adb, exp_disp.adb: Minor reformatting | |
9434 | ||
b3b28b0c JM |
9435 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9436 | ||
9437 | * exp_ch6.adb (Expand_N_Subprogram_Body): Temporarily restrict the | |
9438 | generation of TSDs to the DOTNET compiler. | |
9439 | * exp_ch7.adb (Expand_N_Package_Body): Temporarily restrict the | |
9440 | generation of TSDs to the DOTNET compiler. | |
9441 | ||
9732e886 JM |
9442 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9443 | ||
9444 | * exp_disp.ads (Build_VM_TSDs): Build the runtime Type Specific Data | |
9445 | record of all the tagged types declared inside library level package | |
9446 | declarations, library level package bodies or library level subprograms. | |
9447 | * exp_disp.adb (Make_VM_TSD): New subprogram that builds the TSD | |
9448 | associated with a given tagged type. | |
9449 | (Build_VM_TSDs): New subprogram. | |
9450 | * exp_ch6.adb (Expand_N_Subprogram_Body): Generate TSDs records of main | |
9451 | compilation units that are subprograms. | |
9452 | * exp_ch7.adb (Expand_N_Package_Body): Generate TSDs of main | |
9453 | compilation units that are package bodies. | |
9454 | (Expand_N_Package_Declaration): Generate TSDs of the main compilation | |
9455 | units that are a package declaration or a package instantiation. | |
9456 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Minor code | |
9457 | reorganization to improve the error generated by the frontend when the | |
9458 | function Ada.Tags.Secondary_Tag is not available. | |
9459 | * rtsfind.ads (RE_Register_TSD): New runtime entity. | |
9460 | * exp_ch4.adb (Expand_N_Type_Conversion): Minor code cleanup. | |
9461 | ||
e526d0c7 AC |
9462 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9463 | ||
9464 | * exp_disp.adb (Make_DT): Generate call to Check_TSD in Ada 2005 mode. | |
9465 | ||
9466 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9467 | ||
9468 | * s-imenne.ads: Minor reformatting. | |
9469 | ||
9470 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9471 | ||
9472 | * a-stunau.ads: Add pragma Suppress_Initialization for Big_String | |
9473 | * freeze.adb (Warn_Overlay): Don't warn if initialization suppressed | |
9474 | * s-stalib.ads: Add pragma Suppress_Initialization for Big_String | |
9475 | ||
9476 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9477 | ||
9478 | * einfo.ads (Materialize_Entity): Document this is only for renamings | |
9479 | * exp_ch3.adb (Expand_N_Object_Declaration): Make sure we generate | |
9480 | required debug information in the case where we transform the object | |
9481 | declaration into a renaming declaration. | |
9482 | * exp_ch4.adb (Expand_Concatenate): Generate debug info for result | |
9483 | object | |
9484 | * exp_dbug.ads (Debug_Renaming_Declaration): Document setting of | |
9485 | Materialize_Entity. | |
9486 | ||
5b1e6aca RD |
9487 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9488 | ||
9489 | * einfo.ads, einfo.adb (Suppress_Initialization): Replaces | |
9490 | Suppress_Init_Procs. | |
9491 | * exp_ch3.adb, exp_disp.adb, freeze.adb: Use | |
9492 | Suppress_Initialization/Initialization_Suppressed. | |
9493 | * gnat_rm.texi: New documentation for pragma Suppress_Initialization | |
9494 | * sem_aux.ads, sem_aux.adb (Initialization_Suppressed): New function | |
9495 | * sem_dist.adb: Use Suppress_Initialization/Initialization_Suppressed | |
9496 | * sem_prag.adb: New processing for pragma Suppress_Initialization. | |
9497 | ||
5ad4969d RD |
9498 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9499 | ||
9500 | * gnat_rm.texi, a-tags.ads, sem_prag.adb, sem_ch12.adb, exp_disp.adb: | |
9501 | Minor reformatting. | |
9502 | ||
8c4ee6f5 AC |
9503 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9504 | ||
9505 | * sem_prag.adb (Chain_PPC): Implement AI04-0230: null procedures can | |
9506 | only have inheritable classwide pre/postconditions. | |
9507 | ||
9508 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9509 | ||
9510 | * a-tags.ads, a-tags.adb (Check_TSD): New subprogram. | |
9511 | * rtsfind.ads (RE_Check_TSD): New runtime entity. | |
9512 | * exp_disp.adb (Make_DT): Generate call to the new runtime routine that | |
9513 | checks if the external tag of a type is the same as the external tag | |
9514 | of some other declaration. | |
9515 | ||
0b3d16c0 AC |
9516 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
9517 | ||
9518 | * s-taskin.ads: Minor reformatting. | |
9519 | ||
9520 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
9521 | ||
9522 | * g-comlin.adb (Display_Help): swap the order in which it prints the | |
9523 | short help and the general usage. | |
9524 | ||
9525 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9526 | ||
9527 | * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): copy properly | |
9528 | the aspect declarations and attach them to the generic copy for | |
9529 | subsequent analysis. | |
9530 | (Analyze_Subprogram_Instantiation): copy explicitly the aspect | |
9531 | declarations of the generic tree to the new subprogram declarations. | |
9532 | * sem_attr.adb (Check_Precondition_Postcondition): recognize | |
9533 | conditions that apply to a subprogram instance. | |
9534 | ||
9535 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9536 | ||
9537 | * gnat_rm.texi: Clarify doc on pragma Source_File_Name[_Project]. | |
9538 | ||
9539 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9540 | ||
9541 | * sem_ch3.adb (Derived_Type_Declaration): When checking that a untagged | |
9542 | private type with a tagged full view is not derived in the immediate | |
9543 | scope of the partial view, (RM 7.3 (7)) use the scope of the base type. | |
9544 | ||
4637729f AC |
9545 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9546 | ||
9547 | * exp_ch4.adb: Minor reformatting. | |
9548 | ||
9549 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9550 | ||
9551 | * sem_ch5.adb (Analyze_Loop_Statement): If the iteration scheme is an | |
9552 | Ada2012 iterator, the loop will be rewritten during expansion into a | |
9553 | while loop with a cursor and an element declaration. Do not analyze the | |
9554 | body in this case, because if the container is for indefinite types the | |
9555 | actual subtype of the elements will only be determined when the cursor | |
9556 | declaration is analyzed. | |
9557 | ||
9558 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9559 | ||
9560 | * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ignore | |
9561 | size/alignment related attributes in CodePeer_Mode. | |
9562 | ||
9563 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> | |
9564 | ||
9565 | * sem_ch3.adb (Check_Ops_From_Incomplete_Type): Remove call to | |
9566 | Prepend_Element, since this can result in the operation getting the | |
9567 | wrong slot in the full type's dispatch table if the full type has | |
9568 | inherited operations. The incomplete type's operation will get added | |
9569 | to the proper position in the full type's primitives | |
9570 | list later in Sem_Disp.Check_Operation_From_Incomplete_Type. | |
9571 | (Process_Incomplete_Dependents): Add Is_Primitive test when checking for | |
9572 | dispatching operations, since there are cases where nonprimitive | |
9573 | subprograms can get added to the list of incomplete dependents (such | |
9574 | as subprograms in nested packages). | |
9575 | * sem_ch6.adb (Process_Formals): First, remove test for being in a | |
9576 | private part when determining whether to add a primitive with a | |
9577 | parameter of a tagged incomplete type to the Private_Dependents list. | |
9578 | Such primitives can also occur in the visible part, and should not have | |
9579 | been excluded from being private dependents. | |
9580 | * sem_ch7.adb (Uninstall_Declarations): When checking the rule of | |
9581 | RM05-3.10.1(9.3/2), test that a subprogram in the Private_Dependents | |
9582 | list of a Taft-amendment incomplete type is a primitive before issuing | |
9583 | an error that the full type must appear in the same unit. There are | |
9584 | cases where nonprimitives can be in the list (such as subprograms in | |
9585 | nested packages). | |
9586 | * sem_disp.adb (Derives_From): Use correct condition for checking that | |
9587 | a formal's type is derived from the type of the corresponding formal in | |
9588 | the parent subprogram (the condition was completely wrong). Add | |
9589 | checking that was missing for controlling result types being derived | |
9590 | from the result type of the parent operation. | |
9591 | ||
4c60de0c YM |
9592 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9593 | ||
9594 | * errout.adb (First_Node): minor renaming | |
9595 | * restrict.adb (Check_Formal_Restriction): put restriction warning on | |
9596 | first node. | |
9597 | ||
f5afb270 AC |
9598 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9599 | ||
9600 | * sem_res.adb (Resolve_Logical_Op): ensure N is a binary operator | |
9601 | before accessing operands. | |
9602 | * sem_util.adb (Is_SPARK_Initialization_Expr): follow original nodes to | |
9603 | decide whether an initialization expression respects SPARK rules, as | |
9604 | the plain node is the expanded one. This allows for more valid warnings | |
9605 | to be issued. | |
9606 | * gnat_rm.texi: Minor update. | |
9607 | ||
9608 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9609 | ||
9610 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Revert | |
9611 | previous change. | |
9612 | ||
9613 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9614 | ||
9615 | * sem_ch3.adb, sem_ch4.adb: Minor reformatting. | |
9616 | ||
9617 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9618 | ||
9619 | * exp_ch5.adb (Expand_Iterator_Loop): Reformatting. Wrap the original | |
9620 | loop statements and the element renaming declaration with a block when | |
9621 | the element type is controlled. | |
9622 | ||
9623 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9624 | ||
9625 | * sinfo.ads: Minor formatting. | |
9626 | ||
9627 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9628 | ||
9629 | * sem_aggr.adb (Add_Association): if the association has a box and no | |
9630 | expression, use the Sloc of the aggregate itself for the new | |
9631 | association. | |
9632 | * errout.adb (First_Node): Exclude nodes with no Sloc, and always use | |
9633 | the Original_Node. | |
9634 | ||
db72f10a AC |
9635 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> |
9636 | ||
9637 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and refactoring. | |
9638 | When a container is provided via a function call, generate a renaming | |
9639 | of the function result. This avoids the creation of a transient scope | |
9640 | and the premature finalization of the container. | |
9641 | * exp_ch7.adb (Is_Container_Cursor): Removed. | |
9642 | (Wrap_Transient_Declaration): Remove the supression of the finalization | |
9643 | of the list controller when the declaration denotes a container cursor, | |
9644 | it is not needed. | |
9645 | ||
9646 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9647 | ||
9648 | * restrict.adb (Check_Formal_Restriction): only issue a warning if the | |
9649 | node is from source, instead of the original node being from source. | |
9650 | * sem_aggr.adb | |
9651 | (Resolve_Array_Aggregate): refine the check for a static expression, to | |
9652 | recognize also static ranges | |
9653 | * sem_ch3.adb, sem_ch3.ads (Analyze_Component_Declaration, | |
9654 | Array_Type_Declaration): postpone the test for the type being a subtype | |
9655 | mark after the type has been resolved, so that component-selection and | |
9656 | expanded-name are discriminated. | |
9657 | (Make_Index, Process_Range_Expr_In_Decl): add a parameter In_Iter_Schm | |
9658 | to distinguish the case of an iteration scheme, so that an error is | |
9659 | issed on a non-static range in SPARK except in an iteration scheme. | |
9660 | * sem_ch5.adb (Analyze_Iteration_Scheme): call Make_Index with | |
9661 | In_Iter_Schm = True. | |
9662 | * sem_ch6.adb (Analyze_Subprogram_Specification): refine the check for | |
9663 | user-defined operators so that they are allowed in renaming | |
9664 | * sem_ch8.adb | |
9665 | (Find_Selected_Component): refine the check for prefixing of operators | |
9666 | so that they are allowed in renaming. Move the checks for restrictions | |
9667 | on selector name after analysis discriminated between | |
9668 | component-selection and expanded-name. | |
9669 | * sem_res.adb (Resolve_Op_Concat_Arg): do not issue a warning on | |
9670 | concatenation argument of string type if it is static. | |
9671 | * sem_util.adb, sem_util.ads | |
9672 | (Check_Later_Vs_Basic_Declarations): add a new function | |
9673 | Is_Later_Declarative_Item to decice which declarations are allowed as | |
9674 | later items, in the two different modes Ada 83 and SPARK. In the SPARK | |
9675 | mode, add that renamings are considered as later items. | |
9676 | (Enclosing_Package): new function to return the enclosing package | |
9677 | (Enter_Name): correct the rule for homonyms in SPARK | |
9678 | (Is_SPARK_Initialization_Expr): default to returning True on nodes not | |
9679 | from source (result of expansion) to avoid issuing wrong warnings. | |
9680 | ||
9681 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9682 | ||
9683 | * errout.adb: On anything but an expression First_Node returns its | |
9684 | argument. | |
9685 | ||
23685ae6 AC |
9686 | 2011-08-02 Pascal Obry <obry@adacore.com> |
9687 | ||
9688 | * prj-proc.adb, make.adb, makeutl.adb: Minor reformatting. | |
9689 | ||
9690 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
9691 | ||
9692 | * exp_ch5.adb (Expand_Iterator_Loop): Code cleanup and reorganization. | |
9693 | Set the associated loop as the related expression of internally | |
9694 | generated cursors. | |
9695 | * exp_ch7.adb (Is_Container_Cursor): New routine. | |
9696 | (Wrap_Transient_Declaration): Supress the finalization of the list | |
9697 | controller when the declaration denotes a container cursor. | |
9698 | ||
9699 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9700 | ||
9701 | * opt.ads (SPARK_Mode): update comment, SPARK_Mode only set through | |
9702 | command line now. | |
9703 | * par-ch3.adb (P_Delta_Constraint): remove check in SPARK mode that the | |
9704 | expression is a simple expression. This check cannot be performed in | |
9705 | the semantics, so just drop it. | |
9706 | (P_Index_Or_Discriminant_Constraint): move check that the index or | |
9707 | discriminant is a subtype mark to Analyze_Subtype_Declaration in the | |
9708 | semantics. Other cases were previously checked in the semantics. | |
9709 | * par-ch4.adb (P_Name): move checks that a selector name is not | |
9710 | character literal or an operator symbol to Find_Selected_Component in | |
9711 | the semantics | |
9712 | * par-ch5.adb (Parse_Decls_Begin_End): move check that basic | |
9713 | declarations are not placed after later declarations in a separate | |
9714 | procedure in Sem_Util (possibly not the best choice?), to be used both | |
9715 | during parsing, for Ada 83 mode, and during semantic analysis, for | |
9716 | SPARK mode. | |
9717 | * par-endh.adb (Check_End): move check that end label is not missing | |
9718 | to Process_End_Label in the semantics | |
9719 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): remove | |
9720 | the special case for SPARK restriction | |
9721 | * par.adb: use and with Sem_Util, for use in Parse_Decls_Begin_End | |
9722 | * restrict.adb, restrict.ads (Check_Formal_Restriction): add a | |
9723 | parameter Force to issue the error message even on internal node (used | |
9724 | for generated end label). Call Check_Restriction to check when an error | |
9725 | must be issued. In SPARK mode, issue an error message even if the | |
9726 | restriction is not set. | |
9727 | (Check_Restriction): new procedure with an additional out parameter to | |
9728 | inform the caller that a message has been issued | |
9729 | * sem_aggr.adb: Minor modification of message | |
9730 | * sem_attr.adb (Analyze_Attribute): call Check_Formal_Restriction | |
9731 | instead of issuing an error message directly | |
9732 | * sem_ch3.adb (Analyze_Declarations): move here the check that basic | |
9733 | declarations are not placed after later declarations, by calling | |
9734 | Check_Later_Vs_Basic_Declarations | |
9735 | (Analyze_Subtype_Declaration): move here the check that an index or | |
9736 | discriminant constraint must be a subtype mark. Change the check that | |
9737 | a subtype of String must start at one so that it works on subtype marks. | |
9738 | * sem_ch4.adb (Analyze_Call): move here the check that a named | |
9739 | association cannot follow a positional one in a call | |
9740 | * sem_ch5.adb (Check_Unreachable_Code): call Check_Formal_Restriction | |
9741 | instead of issuing an error message directly | |
9742 | * sem_ch8.adb (Find_Selected_Component): move here the check that a | |
9743 | selector name is not a character literal or an operator symbol. Move | |
9744 | here the check that the prefix of an expanded name cannot be a | |
9745 | subprogram or a loop statement. | |
9746 | * sem_util.adb, sem_util.ads (Check_Later_Vs_Basic_Declarations): new | |
9747 | procedure called from parsing and semantics to check that basic | |
9748 | declarations are not placed after later declarations | |
9749 | (Process_End_Label): move here the check that end label is not missing | |
9750 | ||
9751 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
9752 | ||
9753 | * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Ignore enum | |
9754 | representation clause in codepeer mode, since it confuses CodePeer and | |
9755 | does not bring useful info. | |
9756 | ||
9757 | 2011-08-02 Ed Falis <falis@adacore.com> | |
9758 | ||
9759 | * init.c: initialize fp hw on MILS. | |
9760 | ||
9761 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9762 | ||
9763 | * errout.adb (First_Node): for bodies, return the node itself (small | |
9764 | optimization). For other nodes, do not check source_unit if the node | |
9765 | comes from Standard. | |
9766 | ||
d2d9cc22 AC |
9767 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9768 | ||
9769 | * exp_ch3.adb: Minor comment additions. | |
9770 | * sem_ch13.adb: Minor reformatting. | |
9771 | ||
9772 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
9773 | ||
9774 | * make.adb, makeutl.adb: Removes some superfluous directory separator. | |
9775 | ||
a01b9df6 AC |
9776 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9777 | ||
9778 | * sem_attr.adb: Minor reformatting. | |
9779 | ||
9780 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9781 | ||
9782 | * einfo.adb (Has_Default_Aspect): Replaces Has_Default_Value | |
9783 | (Has_Default_Component_Value): Removed | |
9784 | * einfo.ads Comment updates | |
9785 | (Has_Default_Aspect): Replaces Has_Default_Value | |
9786 | (Has_Default_Component_Value): Removed | |
9787 | * exp_ch13.adb | |
9788 | (Expand_N_Freeze_Entity): Handle Default[_Component]_Value aspects | |
9789 | * exp_ch3.adb | |
9790 | (Build_Array_Init_Proc): Handle Default_[Component_]Value aspects | |
9791 | (Get_Simple_Init_Val): Handle Default_Value aspect | |
9792 | (Needs_Simple_Initialization): Handle Default_Value aspect | |
9793 | * exp_ch3.ads: Needs_Simple_Initialization | |
9794 | * freeze.adb (Freeze_Entity): Handle Default_[Component_]Value aspect | |
9795 | * par-prag.adb (Pragma_Default[_Component]Value) Removed | |
9796 | * sem_ch13.adb | |
9797 | (Analyze_Aspect_Specifications): Fix Default[_Component]_Value aspects | |
9798 | * sem_prag.adb (Pragma_Default[_Component]Value) Removed | |
9799 | * snames.ads-tmpl (Pragma_Default[_Component]Value) Removed | |
9800 | ||
9801 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9802 | ||
9803 | * sem_ch5.adb (Analyze_Iterator_Specification): use base type to locate | |
9804 | package containing iteration primitives. | |
9805 | exp_ch5.adb (Expand_Iterator_Loop): ditto. | |
9806 | ||
75c90775 AC |
9807 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
9808 | ||
9809 | * sem_ch5.adb (Analyze_Iteration_Scheme): For an Ada2012 iterator with | |
9810 | "of", pre-analyze expression in case it is a function call with | |
9811 | finalization actions that must be placed ahead of the loop. | |
9812 | * exp_ch5.adb (Expand_Iterator_Loop): If condition_actions are present | |
9813 | on an Ada2012 iterator, insert them ahead of the rewritten loop. | |
9814 | ||
9815 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9816 | ||
9817 | * cstand.adb (Create_Float_Types): Only consider C's long double for | |
9818 | Long_Long_Float, in addition to double. | |
9819 | ||
ded8909b AC |
9820 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
9821 | ||
9822 | * sem_ch3.adb, sem_ch5.adb, sem_type.adb, switch-c.adb, switch-c.ads, | |
9823 | sem_prag.adb, sem_util.adb, sem_util.ads, sem_res.adb, warnsw.ads, | |
9824 | prepcomp.ads, cstand.adb, stand.ads, a-calfor.adb, s-stusta.adb: | |
9825 | Minor reformatting. | |
9826 | ||
9827 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
9828 | ||
9829 | * sem_attr.adb: handle properly 'Result when it is a prefix of an | |
9830 | indexed component. | |
9831 | ||
9832 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9833 | ||
9834 | * einfo.ads, einfo.adb | |
9835 | (Original_Access_Type): Move this attribute to Node26 since there was | |
9836 | an undocumented use of Node21 in E_Access_Subprogram_Type entities | |
9837 | which causes conflicts and breaks the generation of the .NET compiler. | |
9838 | (Interface_Name): Add missing documentation on JGNAT only uses of | |
9839 | this attribute. | |
9840 | ||
70c34e1c AC |
9841 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9842 | ||
9843 | * cstand.adb (Back_End_Float_Types): Use Elist instead of Nlist | |
9844 | (Find_Back_End_Float_Type): Likewise | |
9845 | (Create_Back_End_Float_Types): Likewise | |
9846 | (Create_Float_Types): Likewise | |
9847 | (Register_Float_Type): Likewise | |
9848 | * sem_ch3.adb (Floating_Point_Type_Declaration): Use Elist instead of | |
9849 | Nlist and split out type selection in new local Find_Base_Type function. | |
9850 | * sem_prag.adb (Process_Import_Predefined_Type): Use Elist instead of | |
9851 | Nlist | |
9852 | * stand.ads (Predefined_Float_Types): Use Elist instead of Nlist | |
9853 | ||
9854 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
9855 | ||
9856 | * inline.adb: Minor code reorganization (put Get_Code_Unit_Entity in | |
9857 | alpha order). | |
9858 | * opt.ads: Minor comment change. | |
9859 | * sem_ch12.adb: Minor code reorganization. | |
9860 | ||
b715bc59 AC |
9861 | 2011-08-02 Gary Dismukes <dismukes@adacore.com> |
9862 | ||
9863 | * sem_ch3.adb (Complete_Private_Subtype): Don't append the private | |
9864 | subtype's list of rep items to the list on the full subtype in the case | |
9865 | where the lists are the same. | |
9866 | ||
9867 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9868 | ||
9869 | * switch-c.adb (Free): New deallocation procedure to avoid implicitly | |
9870 | using the one from System.Strings, which also deallocates all strings. | |
9871 | ||
002bdd68 AC |
9872 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9873 | ||
9874 | * gcc-interface/gigi.h, gcc-interface/misc.c (enumerate_modes): New | |
9875 | function. | |
9876 | * gcc-interface/Make-lang.in: Update dependencies. | |
9877 | ||
9878 | 2011-08-02 Olivier Hainque <hainque@adacore.com> | |
9879 | ||
9880 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Set the function | |
9881 | end_locus. | |
9882 | ||
499769ec AC |
9883 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
9884 | ||
9885 | * sem_ch3.adb (Check_Anonymous_Access_Components): Create extra formals | |
9886 | associated with anonymous access to subprograms. | |
9887 | ||
9888 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9889 | ||
9890 | * opt.ads | |
9891 | (Preprocessing_Symbol_Defs): Move from Prepcomp.Symbol_Definitions. | |
9892 | (Preprocessing_Symbol_Last): Move from Prepcomp.Last_Definition. | |
9893 | * prepcomp.adb (Symbol_Definitions, Last_Definition): Move to opt.ads | |
9894 | (Add_Symbol_Definition): Move to switch-c.adb | |
9895 | (Process_Command_Line_Symbol_Definitions): Adjust references to above. | |
9896 | * prepcomp.ads: Remove dependency on Ada.Unchecked_Deallocation. | |
9897 | (Add_Symbol_Definition): Move to switch-c.adb. | |
9898 | * sem_ch13.adb, sem_prag.adb: Add dependency on Warnsw. | |
9899 | * sem_warn.adb | |
9900 | (Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
9901 | Move to warnsw.adb. | |
9902 | * sem_warn.ads (Warn_On_Record_Holes, Warn_On_Overridden_Size, | |
9903 | Set_Dot_Warning_Switch, Set_GNAT_Mode_Warnings, Set_Warning_Switch): | |
9904 | Move to warnsw.adb. | |
9905 | * switch-c.adb: Replace dependency on Prepcomp and Sem_Warn by Warnsw. | |
9906 | (Add_Symbol_Definition): Moved from Prepcomp. | |
9907 | * switch-c.ads: Update copyright notice. Use String_List instead of | |
9908 | Argument_List, removing dependency on System.OS_Lib. | |
9909 | ||
aa1e353a AC |
9910 | 2011-08-02 Yannick Moy <moy@adacore.com> |
9911 | ||
9912 | * sem_ch3.adb (Analyze_Object_Declaration): issue an error in formal | |
9913 | mode on initialization expression which does not respect SPARK | |
9914 | restrictions. | |
9915 | * sem_util.adb, sem_util.ads (Is_SPARK_Initialization_Expr): determines | |
9916 | if the tree referenced by its argument represents an initialization | |
9917 | expression in SPARK, suitable for initializing an object in an object | |
9918 | declaration. | |
9919 | ||
9920 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
9921 | ||
9922 | * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Link the | |
9923 | internally generated access to subprogram with its associated protected | |
9924 | subprogram type. | |
9925 | * einfo.ads, einfo.adb (Original_Access_Type): New attribute. | |
9926 | ||
15b682ca GB |
9927 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9928 | ||
9929 | * cstand.adb (Register_Float_Type): Print information about type to | |
9930 | register, if the Debug_Flag_Dot_B is set. | |
9931 | * debug.adb (Debug_Flag_Dot_B): Document d.b debug option. | |
9932 | * rtsfind.ads (RE_Max_Base_Digits): New run time entity. | |
9933 | * sem_ch3.adb (Floating_Point_Type_Declaration): Allow declarations | |
9934 | with a requested precision of more than Max_Digits digits and no more | |
9935 | than Max_Base_Digits digits, if a range specification is present and the | |
9936 | Predefined_Float_Types list has a suitable type to derive from. | |
9937 | * sem_ch3.adb (Rep_Item_Too_Early): Avoid generating error in the | |
9938 | case of type completion with pragma Import | |
9939 | * sem_prag.adb | |
9940 | (Process_Import_Predefined_Type): Processing to complete a type | |
9941 | with pragma Import. Currently supports floating point types only. | |
9942 | (Set_Convention_From_Pragma): Do nothing without underlying type. | |
9943 | (Process_Convention): Guard against absence of underlying type, | |
9944 | which may happen when importing incomplete types. | |
9945 | (Process_Import_Or_Interface): Handle case of importing predefined | |
9946 | types. Tweak error message. | |
9947 | ||
f8726f2b AC |
9948 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
9949 | ||
9950 | * inline.adb (Add_Inlined_Body): Adjust check for library-level inlined | |
9951 | functions to previous change. Reorganize code slightly. | |
9952 | ||
9953 | 2011-08-02 Geert Bosch <bosch@adacore.com> | |
9954 | ||
9955 | * back_end.ads (Register_Type_Proc): New call back procedure type for | |
9956 | allowing the back end to provide information about available types. | |
9957 | (Register_Back_End_Types): New procedure to register back end types. | |
9958 | * back_end.adb (Register_Back_End_Types): Call the back end to enumerate | |
9959 | available types. | |
9960 | * cstand.adb (Back_End_Float_Types): New list for floating point types | |
9961 | supported by the back end. | |
9962 | (Build_Float_Type): Add extra parameter for Float_Rep_Kind. | |
9963 | (Copy_Float_Type): New procedure to make new copies of predefined types. | |
9964 | (Register_Float_Type): New call back procedure to populate the BEFT list | |
9965 | (Find_Back_End_Float_Type): New procedure to find a BEFT by name | |
9966 | (Create_Back_End_Float_Types): New procedure to populate the BEFT list. | |
9967 | (Create_Float_Types): New procedure to create entities for floating | |
9968 | point types predefined in Standard, and put these and any remaining | |
9969 | BEFTs on the Predefined_Float_Types list. | |
9970 | * stand.ads (Predefined_Float_Types): New list for predefined floating | |
9971 | point types that do not have declarations in package Standard. | |
9972 | ||
feecad68 AC |
9973 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
9974 | ||
9975 | * inline.adb (Get_Code_Unit_Entity): New local function. Returns the | |
9976 | entity node for the unit containing the parameter. | |
9977 | (Add_Inlined_Body): Use it to find the unit containing the subprogram. | |
9978 | (Add_Inlined_Subprogram): Likewise. | |
9979 | * gcc-interface/Make-lang.in: Update dependencies. | |
9980 | ||
9981 | 2011-08-02 Thomas Quinot <quinot@adacore.com> | |
9982 | ||
9983 | * s-stusta.adb (Print): Make sure Pos is always initialized to a | |
9984 | suitable value. | |
9985 | ||
12f0c50c AC |
9986 | 2011-08-02 Geert Bosch <bosch@adacore.com> |
9987 | ||
9988 | * a-calfor.adb (Image): Simplify, removing unnecessary uses of 'Image. | |
9989 | ||
9990 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
9991 | ||
9992 | * sem_type.adb (Covers): Move trivial case to the top and reuse the | |
9993 | computed value of Base_Type. | |
9994 | ||
9995 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
9996 | ||
9997 | * restrict.adb (Check_Restriction): issue an error for any use of | |
9998 | class-wide, even if the No_Dispatch restriction is not set. | |
9999 | * sem_aggr.adb: Correct typos in comments and messages in formal mode | |
10000 | * sem_ch3.adb (Process_Full_View): issue an error in formal mode is, | |
10001 | when completing a private extension, the type named in the private part | |
10002 | is not the same as that named in the visible part. | |
10003 | * sem_res.adb (Resolve_Call): issue an error in formal mode on the use | |
10004 | of an inherited primitive operations of a tagged type or type extension | |
10005 | that returns the tagged type. | |
10006 | * sem_util.adb, sem_util.ads (Is_Inherited_Operation_For_Type): new | |
10007 | function which returns True for an implicit operation inherited by the | |
10008 | derived type declaration for the argument type. | |
10009 | (Is_SPARK_Object_Reference): move to appropriate place in alphabetic | |
10010 | order. | |
10011 | ||
fb86fe11 ES |
10012 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10013 | ||
10014 | * sem_ch5.adb (Pre_Analyze_Range): new procedure extracted from | |
10015 | Process_Bounds, to perform analysis with expansion of a range or an | |
10016 | expression that is the iteration scheme for a loop. | |
10017 | (Analyze_Iterator_Specification): If domain of iteration is given by a | |
10018 | function call with a controlled result, as is the case if call returns | |
10019 | a predefined container, ensure that finalization actions are properly | |
10020 | generated. | |
10021 | * par-ch3.adb: accept Ada2012 iterator form in P_Discrete_Range. | |
10022 | ||
62be5d0a JM |
10023 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10024 | ||
10025 | * sem_ch5.adb (Analyze_Iteration_Scheme): Fix typo. | |
10026 | * gcc-interface/Make-lang.in: Update dependencies. | |
10027 | ||
10028 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10029 | ||
10030 | * sem_util.ads, sem_util.adb (Is_Variable): Add a new formal to | |
10031 | determine if the analysis is performed using N or Original_Node (N). | |
10032 | * exp_util.adb (Side_Effect_Free): Code cleanup since the new | |
10033 | functionality of routine Is_Variable avoids code duplication. | |
10034 | * checks.adb (Determine_Range): Handle temporaries generated by | |
10035 | Remove_Side_Effects. | |
10036 | ||
10037 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10038 | ||
10039 | * exp_ch4.adb (Expand_N_Quantified_Expression): Force reanalysis and | |
10040 | expansion of the condition. Required since the previous analysis was | |
10041 | done with expansion disabled (see Resolve_Quantified_Expression) and | |
10042 | hence checks were not inserted and record comparisons have not been | |
10043 | expanded. | |
10044 | ||
a20f4389 AC |
10045 | 2011-08-02 Ed Falis <falis@adacore.com> |
10046 | ||
10047 | * s-taprop-vxworks.adb, s-intman-vxworks.adb, s-intman-vxworks.ads: | |
10048 | Update header. | |
10049 | ||
10050 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10051 | ||
10052 | * opt.ads: Minor comment fix. | |
10053 | ||
10054 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10055 | ||
10056 | * sem_ch12.adb (Analyze_Package_Instantiation, | |
10057 | Analyze_Subprogram_Instantiation): Turn off style checking while | |
10058 | analyzing an instance. Whatever style checks that apply to the generic | |
10059 | unit should apply, so it makes no sense to apply them in an instance. | |
10060 | This was causing trouble when compiling an instance of a runtime | |
10061 | unit that violates the -gnatyO switch. | |
10062 | * stylesw.adb (Set_Style_Check_Options): "when 'O' =>" was missing from | |
10063 | one of the two case statements, causing spurious errors. | |
10064 | ||
10065 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10066 | ||
10067 | * uname.adb: Minor reformatting. | |
10068 | * gnatcmd.adb: Minor reformatting. | |
10069 | * exp_attr.adb: Minor reformatting. | |
10070 | ||
90878b12 AC |
10071 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10072 | ||
10073 | * exp_ch5.adb (Expand_N_Assignment_Statement): under restriction | |
10074 | No_Dispatching_Calls, do not look for the Assign primitive, because | |
10075 | predefined primitives are not created in this case. | |
10076 | ||
10077 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10078 | ||
10079 | * stylesw.ads: Minor comment fixes. | |
10080 | ||
10081 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10082 | ||
10083 | * freeze.adb (Add_To_Result): New procedure. | |
10084 | ||
10085 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10086 | ||
10087 | * exp_attr.adb (Find_Stream_Subprogram): When using a configurable run | |
10088 | time, if the specific run-time routines for handling streams of strings | |
10089 | are not available, use the default mechanism. | |
10090 | ||
10091 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
10092 | ||
10093 | * s-regpat.ads: Fix typo. | |
10094 | ||
10095 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10096 | ||
10097 | * prj-conf.adb (Get_Or_Create_Configuration_File): If On_Load_Config is | |
10098 | not null, call it to create the in memory config project file without | |
10099 | parsing an existing default config project file. | |
10100 | ||
10101 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10102 | ||
10103 | * atree.adb (Allocate_Initialize_Node): Remove useless temporaries. | |
10104 | ||
10105 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10106 | ||
10107 | * sem_elim.adb: an abstract subprogram does not need an eliminate | |
10108 | pragma for its descendant to be eliminable. | |
10109 | ||
10110 | 2011-08-02 Ed Falis <falis@adacore.com> | |
10111 | ||
10112 | * init.c: revert to handling before previous checkin for VxWorks | |
10113 | * s-intman-vxworks.adb: delete unnecessary declarations related to | |
10114 | using Ada interrupt facilities for handling signals. | |
10115 | Delete Initialize_Interrupts. Use __gnat_install_handler instead. | |
10116 | * s-intman-vxworks.ads: Import __gnat_install_handler as | |
10117 | Initialize_Interrupts. | |
10118 | * s-taprop-vxworks.adb: Delete Signal_Mask. | |
10119 | (Abort_Handler): change construction of mask to unblock exception | |
10120 | signals. | |
10121 | ||
273adcdf AC |
10122 | 2011-08-02 Jerome Guitton <guitton@adacore.com> |
10123 | ||
10124 | * a-except-2005.adb (Raise_From_Signal_Handler): Call | |
10125 | Debug_Raise_Exception before propagation starts. | |
10126 | ||
10127 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10128 | ||
10129 | * exp_ch6.adb (Expand_Call): Guard restriction checks with a call | |
10130 | to Restriction_Check_Required. | |
10131 | * sem_ch3.adb (Analyze_Object_Declaration): Likewise. | |
10132 | * sem_res.adb (Resolve_Call): Likewise. | |
10133 | * sem_attr.adb (Check_Stream_Attribute): Likewise. | |
10134 | ||
10135 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10136 | ||
10137 | * stylesw.ads: Update comment. | |
10138 | * style.adb: Minor: Use Error_Msg_NE instead of Error_Msg_N. | |
10139 | * errout.ads: Remove obsolete comment. | |
10140 | ||
10141 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10142 | ||
10143 | * einfo.ads, einfo.adb (Is_Safe_To_Reevaluate): new function. | |
10144 | (Set_Is_Safe_To_Reevaluate): new procedure. | |
10145 | * sem_ch5.adb (Analyze_Assignment): Add one assertion to ensure that no | |
10146 | assignment is allowed on safe-to-reevaluate variables. | |
10147 | (Analyze_Iteration_Schine.Process_Bounds.One_Bound): Decorate the | |
10148 | temporary created to remove side effects in expressions that use | |
10149 | the secondary stack as safe-to-reevaluate. | |
10150 | * exp_util.adb (Side_Effect_Free): Add missing code to handle well | |
10151 | variables that are not true constants. | |
10152 | ||
6320f5e1 AC |
10153 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10154 | ||
10155 | * sem_ch5.adb, sem_ch7.adb, einfo.ads, sem_util.adb, sem_util.ads, | |
10156 | sem_res.adb, sem_ch6.adb: Minor reformatting. | |
10157 | ||
10158 | 2011-08-02 Jerome Guitton <guitton@adacore.com> | |
10159 | ||
10160 | * a-except-2005.adb (Raise_Current_Excep): Remove obsolete dead code. | |
10161 | ||
2fe829ae ES |
10162 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10163 | ||
10164 | * sem_ch6.adb (New_Overloaded_Entity, Check_Overriding_Indicator): Do | |
10165 | not set Overridden_Operation if subprogram is an initialization | |
10166 | procedure. | |
10167 | ||
e24329cd YM |
10168 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10169 | ||
10170 | * par-ch6.adb: Correct obsolete name in comments | |
10171 | * restrict.adb, restrict.ads (Check_Formal_Restriction): new function | |
10172 | which takes two message arguments (existing function takes one), with | |
10173 | second message used for continuation. | |
10174 | * sem_ch5.adb (Analyze_Block_Statement): in formal mode, only reject | |
10175 | block statements that originate from a source block statement, not | |
10176 | generated block statements | |
10177 | * sem_ch6.adb (Analyze_Function_Call): rename L into Actuals, for | |
10178 | symmetry with procedure case | |
10179 | * sem_ch7.adb (Check_One_Tagged_Type_Or_Extension_At_Most): new | |
10180 | function to issue an error in formal mode if a package specification | |
10181 | contains more than one tagged type or type extension. | |
10182 | * sem_res.adb (Resolve_Actuals): in formal mode, check that actual | |
10183 | parameters matching formals of tagged types are objects (or ancestor | |
10184 | type conversions of objects), not general expressions. Issue an error | |
10185 | on view conversions that are not involving ancestor conversion of an | |
10186 | extended type. | |
10187 | (Resolve_Type_Conversion): in formal mode, issue an error on the | |
10188 | operand of an ancestor type conversion which is not an object | |
10189 | * sem_util.adb, sem_util.ads (Find_Actual): extend the behavior of the | |
10190 | procedure so that it works also for actuals of function calls | |
10191 | (Is_Actual_Tagged_Parameter): new function which determines if its | |
10192 | argument is an actual parameter of a formal of tagged type in a | |
10193 | subprogram call | |
10194 | (Is_SPARK_Object_Reference): new function which determines if the tree | |
10195 | referenced by its argument represents an object in SPARK | |
10196 | ||
176dadf6 AC |
10197 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10198 | ||
10199 | * sem_ch3.adb: Minor reformatting | |
10200 | Minor comment addition | |
10201 | Minor error msg text change | |
10202 | ||
10203 | 2011-08-02 Javier Miranda <miranda@adacore.com> | |
10204 | ||
10205 | * sem_ch5.adb (Analyze_Iteration_Scheme.Uses_Secondary_Stack): New | |
10206 | function. Used to be more precise when we generate a variable plus one | |
10207 | assignment to remove side effects in the evaluation of the Bound | |
10208 | expressions. | |
10209 | (Analyze_Iteration_Scheme): Clean attribute analyzed in all the nodes | |
10210 | of the bound expression to force its re-analysis and thus expand the | |
10211 | associated transient scope (if required). Code cleanup replacing the | |
10212 | previous code that declared the constant entity by an invocation to | |
10213 | routine Force_Evaluation which centralizes this work in the frontend. | |
10214 | ||
d8b962d8 AC |
10215 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10216 | ||
10217 | * einfo.adb (Is_Base_Type): Improve efficiency by using a flag table | |
10218 | (Base_Type): Now uses improved Is_Base_Type function | |
10219 | * einfo.ads (Base_Type): Inline this function | |
10220 | ||
10221 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10222 | ||
10223 | * sem_prag.adb (Analyze_Pragma): Defend against infinite recursion | |
10224 | (Analyze_Aspect_Specifications): Fix Sloc values for constructed pragmas | |
10225 | ||
10226 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> | |
10227 | ||
10228 | * gcc-interface/Make-lang.in: Update dependencies. | |
10229 | * gcc-interface/Makefile.in: Use s-inmapop-vxworks.adb for all VxWorks | |
10230 | targets. | |
10231 | ||
10232 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10233 | ||
10234 | * par-ch3.adb (P_Delta_Constraint): issue an error in formal mode on | |
10235 | non-simple expression used in delta constraint | |
10236 | (P_Index_Or_Discriminant_Constraint): issue an error in formal mode on | |
10237 | index constraint which is not a subtype mark | |
10238 | * par.adb: With and use Restrict | |
10239 | * sem_ch3.adb (Analyze_Component_Declaration): issue an error in formal | |
10240 | mode on component type which is not a subtype mark and default | |
10241 | expression on component | |
10242 | (Analyze_Subtype_Declaration): issue an error in formal mode on subtype | |
10243 | of string which does not have a lower index bound equal to 1 | |
10244 | (Array_Type_Declaration): issue an error in formal mode on index or | |
10245 | component type which is not a subtype mark, and on aliased keyword on | |
10246 | component | |
10247 | (Derived_Type_Declaration): issue an error in formal mode on interface, | |
10248 | limited or abstract type | |
10249 | (Record_Type_Declaration): issue an error in formal mode on interface | |
10250 | (Record_Type_Definition): issue an error in formal mode on tagged types | |
10251 | and type extensions not declared in the specification of a library unit | |
10252 | package; on null non-tagged record; on variant part | |
10253 | ||
10254 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10255 | ||
10256 | * prj-nmsc.adb (Check_Library_Attributes): Do not report Library_Dir | |
10257 | not declared for qualified library project when Library_Name is not | |
10258 | declared, but Library_Dir is. | |
10259 | ||
10260 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10261 | ||
10262 | * sem_ch13.adb (Analyze_Aspect_Specification): Fix slocs on generated | |
10263 | pragmas (affects aspects [Component_]Default_Value | |
10264 | (Check_Aspect_At_Freeze_Point): For Component_Default_Value, use | |
10265 | component type for the resolution | |
10266 | ||
f96b2d85 AC |
10267 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> |
10268 | ||
10269 | * einfo.adb (Base_Type): Tune implementation for speed. | |
10270 | ||
10271 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10272 | ||
10273 | * freeze.adb: Minor reformatting. | |
10274 | ||
8b3c6430 AC |
10275 | 2011-08-02 Thomas Quinot <quinot@adacore.com> |
10276 | ||
10277 | * scos.ads: Update comments. | |
10278 | ||
10279 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10280 | ||
10281 | * sem_ch3.adb (Build_Derived_Type): Inherit the convention from the | |
10282 | base type, because the parent may be a subtype of a private type whose | |
10283 | convention is established in a private part. | |
10284 | ||
10285 | 2011-08-02 Hristian Kirtchev <kirtchev@adacore.com> | |
10286 | ||
10287 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Wrap the return | |
10288 | statement in a block when the expansion of the return expression has | |
10289 | created a finalization chain. | |
10290 | * freeze.adb (Freeze_Expression): Alphabetize all choices associated | |
10291 | with the parent node. | |
10292 | Add N_Extended_Return_Statement to handle the case where a transient | |
10293 | object declaration appears in the Return_Object_Declarations list of | |
10294 | an extended return statement. | |
10295 | ||
10296 | 2011-08-02 Matthew Gingell <gingell@adacore.com> | |
10297 | ||
10298 | * adaint.c (__gnat_is_symbolic_link_attr): Supress warning on possibly | |
10299 | unused parameter 'name'. | |
10300 | ||
10301 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10302 | ||
10303 | * sem_elim.adb (Set_Eliminated): If the overridden operation is an | |
10304 | inherited operation, check whether its alias, which is the source | |
10305 | operastion that it renames, has been marked eliminated. | |
10306 | ||
cae81f17 JM |
10307 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10308 | ||
10309 | * exp_util.adb (Safe_Prefixed_Reference): Do not consider safe an | |
10310 | in-mode parameter whose type is an access type since it can be used to | |
10311 | modify its designated object. Enforce code that handles as safe an | |
10312 | access type that is not access-to-constant but it is the result of a | |
10313 | previous removal of side-effects. | |
10314 | (Remove_Side_Effects): Minor code reorganization of cases which require | |
10315 | no action. Done to incorporate documentation on new cases uncovered | |
10316 | working in this ticket: no action needed if this routine was invoked | |
10317 | too early and the nodes are not yet decorated. | |
10318 | * sem_res.adb (Resolve_Slice): Minor code cleanup replacling two calls | |
10319 | to routine Remove_Side_Effects by calls to Force_Evaluation since they | |
10320 | were issued with actuals that are implicitly provided by | |
10321 | Force_Evaluation. | |
10322 | ||
218e6dee RD |
10323 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10324 | ||
10325 | * sem_ch3.adb, sem_res.adb: Minor reformatting. | |
10326 | ||
7a489a2b AC |
10327 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10328 | ||
10329 | * sem_attr.adb (Check_Formal_Restriction_On_Attribute): new procedure | |
10330 | to issue an error in formal mode on attribute not supported in this mode | |
10331 | (Analyze_Attribute): issue errors on standard attributes not supported | |
10332 | in formal mode. | |
10333 | * sem_ch3.adb (Modular_Type_Declaration): remove obsolete part of | |
10334 | comment, and issue error in formal mode on modulus which is not a power | |
10335 | of 2. | |
10336 | (Process_Range_Expr_In_Decl): issue error in formal mode on non-static | |
10337 | range. | |
10338 | * sem_ch8.adb (Find_Type): issue error in formal mode on 'Base in | |
10339 | subtype mark. | |
10340 | * sem_res.adb (Resolve_Unary_Op): issue error in formal mode on unary | |
10341 | operator on modular type (except 'not'). | |
10342 | ||
10343 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10344 | ||
10345 | * gnat_rm.texi: Minor reformatting. | |
10346 | ||
cb7fa356 AC |
10347 | 2011-08-02 Arnaud Charlet <charlet@adacore.com> |
10348 | ||
10349 | * s-osinte-linux.ads: Minor comment update and reformatting. | |
10350 | * i-cexten.ads: Make this unit pure, as for its parent. | |
10351 | Will allow its usage in more contexts if needed. | |
10352 | ||
10353 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10354 | ||
10355 | * s-utf_32.ads: Minor comment fix. | |
10356 | ||
10357 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10358 | ||
10359 | * sem_res.adb (Resolve_Actuals): if the subprogram is a primitive | |
10360 | operation of a tagged synchronized type, handle the case where the | |
10361 | controlling argument is overloaded. | |
10362 | ||
10363 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10364 | ||
10365 | * gnat_rm.texi, opt.ads, sem_prag.adb, snames.ads-tmpl: | |
10366 | Replace pragma SPARK_95 with pragma Restrictions (SPARK) | |
10367 | * par-prag.adb (Process_Restrictions_Or_Restriction_Warnings): set | |
10368 | SPARK mode and formal verification mode on processing SPARK restriction | |
10369 | * s-rident.ads (Restriction_Id): add SPARK restriction in those not | |
10370 | requiring consistency checking. | |
10371 | ||
5cc9353d RD |
10372 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10373 | ||
10374 | * sem_res.adb: Minor reformatting. | |
10375 | ||
e51537ff RD |
10376 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10377 | ||
10378 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10379 | a-cforse.ads: Remove unneeded with of Ada.Containers | |
10380 | Remove commented out pragma Inline's | |
10381 | Move specifications of new subprograms to the actual specs | |
10382 | ||
83fa09c5 AC |
10383 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10384 | ||
10385 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10386 | a-cforse.ads: Update comments. | |
10387 | ||
10388 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10389 | ||
10390 | * sem_attr.adb: add attribute name when 'Result has the wrong prefix. | |
10391 | ||
d11cfaf8 RD |
10392 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10393 | ||
10394 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, | |
10395 | a-cforse.ads, a-cofove.ads: Minor reformatting. | |
10396 | ||
300b98bb AC |
10397 | 2011-08-02 Claire Dross <dross@adacore.com> |
10398 | ||
10399 | * a-cfdlli.ads, a-cfhase.ads, a-cforma.ads, a-cfhama.ads, a-cforse.ads, | |
10400 | a-cofove.ads: Add comments. | |
10401 | ||
10402 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10403 | ||
10404 | * gnat_rm.texi: Document formal containers. | |
10405 | ||
10406 | 2011-08-02 Emmanuel Briot <briot@adacore.com> | |
10407 | ||
10408 | * g-comlin.adb (Goto_Section, Getopt): fix handling of "*" when there | |
10409 | are empty sections. | |
10410 | ||
19fb051c AC |
10411 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10412 | ||
10413 | * mlib-prj.adb, restrict.ads, sem_aggr.adb, sem_ch12.adb: Minor | |
10414 | reformatting. | |
10415 | ||
10416 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10417 | ||
10418 | * aspects.adb: New aspects Default_Value and Default_Component_Value | |
10419 | New format of Aspect_Names table checks for omitted entries | |
10420 | * aspects.ads: Remove mention of Aspect_Cancel and add documentation on | |
10421 | handling of boolean aspects for derived types. | |
10422 | New aspects Default_Value and Default_Component_Value | |
10423 | New format of Aspect_Names table checks for omitted entries | |
10424 | * einfo.ads, einfo.adb (Has_Default_Component_Value): New flag | |
10425 | (Has_Default_Value): New flag | |
10426 | (Has_Default_Component_Value): New flag | |
10427 | (Has_Default_Value): New flag | |
10428 | * par-ch13.adb (P_Aspect_Specifications): New format of Aspect_Names | |
10429 | table. | |
10430 | * par-prag.adb: New pragmas Default_Value and Default_Component_Value | |
10431 | * sem_ch13.adb (Analyze_Aspect_Specifications): New aspects | |
10432 | Default_Value and Default_Component_Value | |
10433 | * sem_prag.adb: New pragmas Default_Value and Default_Component_Value | |
10434 | New aspects Default_Value and Default_Component_Value | |
10435 | * snames.ads-tmpl: New pragmas Default_Value and Default_Component_Value | |
10436 | * sprint.adb: Print N_Aspect_Specification node when called from gdb | |
10437 | ||
10438 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10439 | ||
10440 | * prj-nmsc.adb (Check_Library_Attributes): For virtual library project, | |
10441 | inherit library kind. | |
10442 | ||
10443 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10444 | ||
10445 | * sem_res.adb: Add guards in calls to Matching_Static_Array_Bounds. | |
10446 | Minor reformatting. | |
10447 | ||
10448 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10449 | ||
10450 | * i-cstrin.ads: Updates to make Interfaces.C.Strings match RM | |
10451 | ||
5f7747af AC |
10452 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10453 | ||
10454 | * sem_aggr.adb (Resolve_Aggregate): Fix thinko. | |
10455 | ||
10456 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10457 | ||
10458 | * impunit.adb: Add comment. | |
10459 | ||
a5fe697b AC |
10460 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10461 | ||
10462 | * sem_aggr.adb (Check_Qualified_Aggregate): new procedure which checks | |
10463 | qualification of aggregates in formal mode | |
10464 | (Is_Top_Level_Aggregate): returns True for an aggregate not contained in | |
10465 | another aggregate | |
10466 | (Resolve_Aggregate): complete the test that an aggregate is adequately | |
10467 | qualified in formal mode | |
10468 | ||
10469 | 2011-08-02 Pascal Obry <obry@adacore.com> | |
10470 | ||
10471 | * make.adb, bindgen.adb, gnatbind.adb: Minor reformatting. | |
10472 | * mlib-prj.adb: Supress warning when compiling binder generated file. | |
10473 | (Build_Library): Supress all warnings when compiling the binder | |
10474 | generated file. | |
10475 | ||
bd65a2d7 | 10476 | 2011-08-02 Yannick Moy <moy@adacore.com> |
d4487611 | 10477 | |
bd65a2d7 AC |
10478 | * errout.adb, errout.ads (Check_Formal_Restriction): move procedure |
10479 | from here... | |
10480 | * restrict.adb, restrict.ads (Check_Formal_Restriction): ...to here | |
10481 | * sem_aggr.adb, sem_ch5.adb, sem_util.adb: | |
10482 | Add with/use clauses to make Check_Formal_Restriction visible | |
10483 | ||
10484 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10485 | ||
10486 | * sem_ch12.adb (Check_Generic_Actuals): handle properly actual | |
10487 | in-parameters when type of the generic formal is private in the generic | |
10488 | spec and non-private in the body. | |
10489 | ||
10490 | 2011-08-02 Claire Dross <dross@adacore.com> | |
10491 | ||
10492 | * a-cfdlli.adb, a-cfdlli.ads, a-cfhase.adb, a-cfhase.ads, a-cfhama.adb, | |
10493 | a-cfhama.ads, a-cforse.adb, a-cforse.ads, a-cforma.adb, a-cforma.ads, | |
10494 | a-cofove.adb, a-cofove.ads: New files implementing formal containers. | |
10495 | * impunit.adb, Makefile.rtl: Take new files into account. | |
d4487611 AC |
10496 | |
10497 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10498 | ||
10499 | * sem_aggr.adb, sem_ch3.adb, sem_ch5.adb, make.adb, sem_res.adb, | |
10500 | sem_attr.adb, sem_ch6.adb, sem_ch8.adb: Minor reformatting. | |
10501 | ||
bd434b3f YM |
10502 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10503 | ||
10504 | * sem_aggr.adb (Resolve_Aggregate): disable incorrectly placed check in | |
10505 | formal mode | |
10506 | * sem_util.adb (Matching_Static_Array_Bounds): proper detection of | |
10507 | matching static array bounds, taking into account the special case of | |
10508 | string literals | |
10509 | * sem_ch3.adb: Typo in comment. | |
10510 | ||
fe5d3068 YM |
10511 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10512 | ||
10513 | * errout.adb, errout.ads (Check_Formal_Restriction): new procedure | |
10514 | which issues an error in formal mode if its argument node is originally | |
10515 | from source | |
10516 | * sem_ch3.adb (Analyze_Full_Type_Declaration): move test that a type | |
10517 | has a discriminant specification so that it does not include the case | |
10518 | of derived types | |
10519 | (Derived_Type_Declaration): move here the test that a derived type has a | |
10520 | discriminant specification | |
10521 | * sem_aggr.adb (Resolve_Record_Aggregate): test the presence of the | |
10522 | first element of a component association before accessing its choices | |
10523 | (presence of component association is not enough) | |
10524 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): test if a subprogram | |
10525 | declaration is a library item before accessing the next element in a | |
10526 | list, as library items are not member of lists | |
10527 | * sem_attr.adb, sem_ch11.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, | |
10528 | sem_ch8.adb, sem_ch9.adb, sem_res.adb, sem_util.adb: use | |
10529 | Check_Formal_Restriction whenever possible. | |
10530 | ||
b60a3f26 AC |
10531 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10532 | ||
10533 | * sem_ch3.adb (Find_Type_Of_Object): In ASIS mode, create an itype | |
10534 | reference when needed. | |
10535 | ||
10536 | 2011-08-02 Bob Duff <duff@adacore.com> | |
10537 | ||
10538 | * gnat_ugn.texi: Fix typo. | |
10539 | ||
10540 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10541 | ||
10542 | * make.adb (Gnatmake): Use MLib.Tgt.Archive_Ext as the extension of | |
10543 | archive file name. Do not use the full path name of archives for Open | |
10544 | VMS. | |
10545 | ||
eaba57fb RD |
10546 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10547 | ||
10548 | * sem_ch12.adb, sem_ch11.adb: New calling sequence for | |
10549 | Analyze_Aspect_Specifications | |
10550 | * sem_ch13.adb | |
10551 | (Analyze_Aspect_Specifications): New handling for boolean aspects | |
10552 | * sem_ch13.ads (Analyze_Aspect_Specifications): New calling sequence | |
10553 | * sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch9.adb: New calling | |
10554 | sequence for Analyze_Aspect_Specifications | |
10555 | * sem_prag.adb (Analyze_Pragma): Remove use of Aspect_Cancel entirely | |
10556 | * sinfo.ads, sinfo.adb (Aspect_Cancel): Remove, no longer used | |
10557 | ||
10558 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10559 | ||
10560 | * freeze.adb (Freeze_Entity): Remove handling of delayed boolean | |
10561 | aspects, since these no longer exist. | |
10562 | ||
10563 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10564 | ||
10565 | * par-ch13.adb (Aspect_Specifications_Present): Always return false on | |
10566 | semicolon, do not try to see if there are aspects following it. | |
10567 | * par-ch3.adb (P_Declarative_Items): Better message for unexpected | |
10568 | aspect spec. | |
10569 | ||
8830d1d2 AC |
10570 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10571 | ||
10572 | * sem_ch8.adb, aspects.ads: Minor reformatting. | |
10573 | ||
10574 | 2011-08-02 Eric Botcazou <ebotcazou@adacore.com> | |
10575 | ||
10576 | * sem_ch13.ads (Analyze_Aspect_Specification): Add pragma Inline. | |
10577 | * sem_ch13.adb (Analyze_Non_Null_Aspect_Specifications): New procedure | |
10578 | extracted from... | |
10579 | (Analyze_Aspect_Specifications): ...here. Call above procedure. | |
10580 | ||
7ff2d234 AC |
10581 | 2011-08-02 Yannick Moy <moy@adacore.com> |
10582 | ||
10583 | * exp_ch6.adb (Expand_N_Subprogram_Declaration): issue error in formal | |
10584 | mode on subprogram declaration outside of package specification, unless | |
10585 | it is followed by a pragma Import | |
10586 | * sem_ch3.adb (Access_Definition, Access_Subprogram_Declaration, | |
10587 | Access_Type_Declaration): issue error in formal mode on access type | |
10588 | (Analyze_Incomplete_Type_Decl): issue error in formal mode on | |
10589 | incomplete type | |
10590 | (Analyze_Object_Declaration): issue error in formal mode on object | |
10591 | declaration which does not respect SPARK restrictions | |
10592 | (Analyze_Subtype_Declaration): issue error in formal mode on subtype | |
10593 | declaration which does not respect SPARK restrictions | |
10594 | (Constrain_Decimal, Constrain_Float, Constrain_Ordinary_Fixed): issue | |
10595 | error in formal mode on digits or delta constraint | |
10596 | (Decimal_Fixed_Point_Type_Declaration): issue error in formal mode on | |
10597 | decimal fixed point type | |
10598 | (Derived_Type_Declaration): issue error in formal mode on derived type | |
10599 | other than type extensions of tagged record types | |
10600 | * sem_ch6.adb (Process_Formals): remove check in formal mode, redundant | |
10601 | with check on access definition | |
10602 | * sem_ch9.adb (Analyze_Protected_Definition): issue error in formal | |
10603 | mode on protected definition. | |
10604 | (Analyze_Task_Definition): issue error in formal mode on task definition | |
10605 | ||
10606 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10607 | ||
10608 | * make.adb, sem_ch8.adb, s-inmaop-vxworks.adb: Minor reformatting. | |
10609 | ||
806f6d37 AC |
10610 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10611 | ||
10612 | * sem_ch6.adb (Can_Override_Operator): New function. | |
10613 | (Verify_Overriding_Indicator): Add missing code to check overriding | |
10614 | indicator in operators. Fixes regression. | |
10615 | (Check_Overriding_Indicator): Minor reformating after replacing the | |
10616 | code that evaluates if the subprogram can override an operator by | |
10617 | invocations to the above new function. | |
10618 | * einfo.adb | |
10619 | (Write_Field26_Name): Add missing code to ensure that, following | |
10620 | the documentation in einfo.ads, this field is not shown as attribute | |
10621 | "Static_Initialization" on non-dispatching functions. | |
10622 | ||
10623 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10624 | ||
10625 | * sem_res.adb (Resolve_Call): A call to | |
10626 | Ada.Real_Time.Timing_Events.Set_Handler violates restriction | |
10627 | No_Relative_Delay (AI-0211) only when it sets a relative timing event, | |
10628 | i.e., when the second parameter is of type Time_Span. | |
10629 | ||
10630 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10631 | ||
10632 | * make.adb (Gnatmake): use <library dir>/lib<library name>.a to link | |
10633 | with an archive instead of -L<library dir> -l<library name>. | |
10634 | ||
10635 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10636 | ||
10637 | * sem_ch8.adb (Analyze_Use_Type): If the clause is being re-analyzed, | |
10638 | mark the base types In_Use in addition to making the operations | |
10639 | use_visible. | |
10640 | ||
10641 | 2011-08-02 Ed Falis <falis@adacore.com> | |
10642 | ||
10643 | * init.c: add and setup __gnat_signal_mask for the exception signals | |
10644 | * s-inmaop-vxworks.adb: new file. | |
10645 | * s-intman-vxworks.adb: remove unnecessary initializations and | |
10646 | simplify remaining | |
10647 | * s-intman-vxworks.ads: remove unnecessary variable | |
10648 | * s-taprop-vxworks.adb: simplify signal initialization | |
10649 | ||
780d052e RD |
10650 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10651 | ||
10652 | * sem_ch8.adb: Minor code reorganization, comment updates. | |
10653 | ||
10654 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10655 | ||
10656 | * sem_res.adb (Matching_Static_Array_Bounds): Moved to Sem_Util | |
10657 | * sem_util.ads, sem_util.adb (Matching_Static_Array_Bounds): Moved | |
10658 | here from Sem_Res. | |
10659 | (Matching_Static_Array_Bounds): Use Is_Ok_Static_Expression | |
10660 | (Matching_Static_Array_Bounds): Moved here from Sem_Res | |
10661 | ||
29efbb8c ES |
10662 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> |
10663 | ||
10664 | * atree.h, atree.ads, atree.adb: New subprograms to manipulate Elist5. | |
10665 | * par_ch8.adb (P_Use_Type): initialize Used_Operations for node. | |
10666 | * sinfo.ads, sinfo.adb (Used_Operations): new attribute of | |
10667 | use_type_clauses, to handle more efficiently use_type and use_all_type | |
10668 | constructs. | |
10669 | * sem_ch8.adb: Rewrite Use_One_Type and End_Use_Type to handle the | |
10670 | Ada2012 Use_All_Type clause. | |
10671 | (Use_Class_Wide_Operations): new procedure. | |
10672 | ||
b0186f71 AC |
10673 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10674 | ||
10675 | * exp_util.adb, par-ch10.adb, par-ch6.adb, sem.adb, sem_ch6.adb, | |
10676 | sem_ch6.ads, sinfo.adb, sinfo.ads, sprint.adb: Change parameterized | |
10677 | expression to expression function. | |
10678 | ||
10679 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10680 | ||
10681 | * sem_ch4.adb: transform simple Ada2012 membership into equality only | |
10682 | if types are compatible. | |
10683 | ||
10684 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10685 | ||
10686 | * sem_res.adb (Matching_Static_Array_Bounds): new function which | |
10687 | returns True if its argument array types have same dimension and same | |
10688 | static bounds at each index. | |
10689 | (Resolve_Actuals): issue an error in formal mode on actuals passed as | |
10690 | OUT or IN OUT paramaters which are not view conversions in SPARK. | |
10691 | (Resolve_Arithmetic_Op): issue an error in formal mode on | |
10692 | multiplication or division with operands of fixed point types which are | |
10693 | not qualified or explicitly converted. | |
10694 | (Resolve_Comparison_Op): issue an error in formal mode on comparisons of | |
10695 | Boolean or array type (except String) operands. | |
10696 | (Resolve_Equality_Op): issue an error in formal mode on equality | |
10697 | operators for array types other than String with non-matching static | |
10698 | bounds. | |
10699 | (Resolve_Logical_Op): issue an error in formal mode on logical operators | |
10700 | for array types with non-matching static bounds. Factorize the code in | |
10701 | Matching_Static_Array_Bounds. | |
10702 | (Resolve_Qualified_Expression): issue an error in formal mode on | |
10703 | qualified expressions for array types with non-matching static bounds. | |
10704 | (Resolve_Type_Conversion): issue an error in formal mode on type | |
10705 | conversion for array types with non-matching static bounds | |
10706 | ||
767bb4e8 AC |
10707 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10708 | ||
10709 | * par-ch10.adb: Minor code reorganization (use Nkind_In). | |
10710 | ||
10711 | 2011-08-02 Ed Schonberg <schonberg@adacore.com> | |
10712 | ||
10713 | * par-ch9.adb: save location of entry for proper error message. | |
10714 | ||
4ac2477e JM |
10715 | 2011-08-02 Javier Miranda <miranda@adacore.com> |
10716 | ||
10717 | * sem_type.ads, sem_type.adb (Is_Ancestor): Addition of a new formal | |
10718 | (Use_Full_View) which permits this routine to climb through the | |
10719 | ancestors using the full-view of private parents. | |
10720 | * sem_util.adb (Collect_Interfaces_Info, Implements_Interface): Set | |
10721 | Use_Full_View to true in calls to Is_Ancestor. | |
10722 | * sem_disp.adb (Override_Dispatching_Operation): Set Use_Full_View to | |
10723 | true in call to Is_Ancestor. | |
10724 | * exp_ch3.adb (Build_Offset_To_Top_Functions, Initialize_Tag): Set | |
10725 | Use_Full_View to true in call to Is_Ancestor. | |
10726 | * exp_ch7.adb (Controller_Component): Set Use_Full_View to true in | |
10727 | call to Is_Ancestor. | |
10728 | * exp_ch4.adb (Expand_N_Type_Conversion, Tagged_Membership): Set | |
10729 | Use_Full_View to true in calls to Is_Ancestor. | |
10730 | * exp_disp.adb (Expand_Interface_Actuals, Make_Secondary_DT, Make_DT, | |
10731 | Make_Select_Specific_Data_Table, Register_Primitive, | |
10732 | Set_All_DT_Position): Set Use_Full_View to true in calls to Is_Ancestor. | |
10733 | * exp_intr.adb (Expand_Dispatching_Constructor_Call): Set Use_Full_View | |
10734 | to true in call to Is_Ancestor. | |
10735 | * exp_util.adb (Find_Interface_ADT, Find_Interface_Tag): Set | |
10736 | Use_Full_View to true in calls to Is_Ancestor. | |
10737 | * exp_cg.adb | |
10738 | (Write_Call_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10739 | (Write_Type_Info): Set Use_Full_View to true in call to Is_Ancestor. | |
10740 | ||
9f90d123 AC |
10741 | 2011-08-02 Robert Dewar <dewar@adacore.com> |
10742 | ||
10743 | * gnat_rm.texi: Minor reformatting. | |
10744 | * sem_prag.adb: Minor reformatting. | |
10745 | ||
10746 | 2011-08-02 Tristan Gingold <gingold@adacore.com> | |
10747 | ||
10748 | * vms_data.ads: Add VMS qualifier for -gnateP. | |
10749 | ||
10750 | 2011-08-02 Robert Dewar <dewar@adacore.com> | |
10751 | ||
10752 | * par-ch13.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10753 | * par-ch7.adb (P_Package): Proper placement of aspects for package | |
10754 | decl/instantiation. | |
10755 | * par-endh.adb (Check_End): Ad Is_Sloc parameter | |
10756 | (End_Statements): Add Is_Sloc parameterr | |
10757 | * par.adb (P_Aspect_Specification): New meaning of Decl = Empty | |
10758 | (Check_End): Ad Is_Sloc parameter | |
10759 | (End_Statements): Add Is_Sloc parameterr | |
10760 | ||
10761 | 2011-08-02 Vincent Celier <celier@adacore.com> | |
10762 | ||
10763 | * ug_words: Add VMS qualifier equivalent to -gnateP: | |
10764 | /SYMBOL_PREPROCESSING. | |
10765 | ||
10766 | 2011-08-02 Jose Ruiz <ruiz@adacore.com> | |
10767 | ||
10768 | * gnat-style.texi: For hexadecimal numeric literals the typical | |
10769 | grouping of digits is 4 to represent 2 bytes. | |
10770 | A procedure spec which is split into several lines is indented two | |
10771 | characters. | |
10772 | ||
10773 | 2011-08-02 Yannick Moy <moy@adacore.com> | |
10774 | ||
10775 | * exp_aggr.adb (Is_Others_Aggregate): move function to other unit. | |
10776 | * sem_aggr.adb, sem_aggr.ads (Is_Others_Aggregate): move function here | |
10777 | (Resolve_Aggregate): issue errors in formal modes when aggregate is not | |
10778 | properly qualified | |
10779 | (Resolve_Array_Aggregate): issue errors in formal modes on non-static | |
10780 | choice in array aggregate | |
10781 | (Resolve_Extension_Aggregate): issue errors in formal modes on subtype | |
10782 | mark as ancestor | |
10783 | (Resolve_Record_Aggregate): issue errors in formal modes on mixed | |
10784 | positional and named aggregate for record, or others in record | |
10785 | aggregate, or multiple choice in record aggregate | |
10786 | * sem_res.adb (Resolve_Logical_Op): issue errors in formal mode when | |
10787 | array operands to logical operations AND, OR and XOR do not have the | |
10788 | same static lower and higher bounds | |
10789 | * sem_ch5.adb, sinfo.ads: Correct typos in comments | |
10790 | ||
2933b16c RD |
10791 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10792 | ||
10793 | * sem_util.ads, sem_util.adb, sem_ch6.adb (Last_Source_Statement): | |
10794 | Replaces Last_Source_Node_In_Sequence. | |
10795 | * err_vars.ads (Error_Msg_Lang): 16 is OK, don't need 4K | |
10796 | * errout.adb (Set_Error_Msg_Lang): Takes arg with no parens, but stores | |
10797 | parens and blank in string (this was inconsistently implemented). | |
10798 | * errout.ads | |
10799 | (Set_Error_Msg_Lang): Takes arg with no parens, but stores parens and | |
10800 | blank in string (this was inconsistently implemented). | |
10801 | * gnat1drv.adb | |
10802 | (Set_Global_Switches): Set formal mode switches appropriately | |
10803 | * opt.ads, opt.adb: Formal mode is now global switches, more consistent | |
10804 | * par-prag.adb | |
10805 | (Analyze_Pragma, case SPARK_95): Set opt switches appropriately and | |
10806 | call Set_Error_Msg_Lang to set "spark" as language name. | |
10807 | * par.adb: Remove unnecessary call to set formal language for errout | |
10808 | * sem_prag.adb (P_Pragma, case SPARK_95): Set opt switches | |
10809 | appropriately and call Set_Error_Msg_Lang to set "spark" as language | |
10810 | name. | |
10811 | * sem_ch4.adb (Analyze_Concatenation_Operand): remove procedure and | |
10812 | calls to it, moved after resolution so that types are known | |
10813 | * sem_res.adb (Resolve_Op_Concat): issue an error in formal mode if | |
10814 | result of concatenation is not of type String | |
10815 | (Resolve_Op_Concat_Arg): issue an error in formal mode if an operand of | |
10816 | concatenation is not properly restricted | |
10817 | * gnat_rm.texi: Add doc on pragma Spark_95. | |
10818 | * gcc-interface/Makefile.in: Remove obsolete target pairs for | |
10819 | Interfaces.C.* on VMS. Remove s-parame-vms-restrict.ads. | |
10820 | * gcc-interface/Make-lang.in: Update dependencies. | |
10821 | ||
05dbd302 AC |
10822 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
10823 | ||
10824 | * sem_disp.adb (Override_Dispatching_Operation): Enforce strictness of | |
10825 | condition that detects if the overridden operation must replace an | |
10826 | existing entity. | |
10827 | ||
10828 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10829 | ||
10830 | * exp_ch4.adb (Expand_N_Case_Expression): Propagate to the expanded | |
10831 | code declarations inserted by Insert_Actions in each alternative of the | |
10832 | N_Case_Expression node. | |
10833 | ||
10834 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10835 | ||
10836 | * sem_ch6.adb: Minor code reorganization. | |
10837 | * sem_util.adb: Minor reformatting. | |
10838 | ||
af9e051f PO |
10839 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10840 | ||
10841 | * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. | |
10842 | * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. | |
10843 | ||
1d801f21 AC |
10844 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10845 | ||
10846 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character | |
10847 | literal or operator symbol which is prefixed | |
10848 | * sem_attr.adb (Analyze_Access_Attribute): issue an error in formal | |
10849 | mode on access attributes. | |
10850 | * sem_ch4.adb (Analyze_Concatenation_Operand): new procedure to check | |
10851 | that concatenation operands are properly restricted in formal mode | |
10852 | (Analyze_Concatenation, Analyze_Concatenation_Rest): call new procedure | |
10853 | Analyze_Concatenation_Operand. Issue an error in formal mode if the | |
10854 | result of the concatenation has a type different from String. | |
10855 | (Analyze_Conditional_Expression, Analyze_Explicit_Dereference, | |
10856 | Analyze_Quantified_Expression, Analyze_Slice, | |
10857 | Analyze_Null): issue an error in formal mode on unsupported constructs | |
10858 | * sem_ch5.adb | |
10859 | (Analyze_Block_Statement): only issue error on source block statement | |
10860 | * sem_util.ads, sem_util.adb (Last_Source_Node_In_Sequence): new | |
10861 | function which returns the last node in a list of nodes for which | |
10862 | Comes_From_Source returns True, if any | |
10863 | * sem_ch6.adb (Check_Missing_Return): minor refactoring to use | |
10864 | Last_Source_Node_In_Sequence | |
10865 | * sem_ch8.adb (Analyze_Exception_Renaming, Analyze_Generic_Renaming, | |
10866 | Analyze_Object_Renaming, Analyze_Use_Package): issue an error in formal | |
10867 | mode on unsupported constructs | |
10868 | * sem_ch9.adb Do not return after issuing error in formal mode, as the | |
10869 | rest of the actions may be needed later on since the error is marked as | |
10870 | not serious. | |
10871 | * sinfo.ads: Typos in comments. | |
10872 | ||
10873 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10874 | ||
10875 | * projects.texi: Minor editing. | |
10876 | ||
53beff22 YM |
10877 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10878 | ||
10879 | * err_vars.ads (Error_Msg_Lang, Error_Msg_Langlen): new variables for | |
10880 | insertion character ~~ | |
10881 | * errout.ads, errout.adb (Formal_Error_Msg_...): remove procedures | |
10882 | (Set_Error_Msg_Lang): new procedure which fixes the language for use | |
10883 | with insertion character ~~ | |
10884 | (Set_Msg_Text): treat insertion character ~~ | |
10885 | * par-ch4.adb, par-ch5.adb, par-endh.adb, sem_attr.adb, sem_ch11.adb, | |
10886 | sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_util.adb: Replace calls to | |
10887 | Formal_Error_Msg_... procedures by equivalent Error_Msg_... | |
10888 | procedures. Favor calls to Error_Msg_F(E) over Error_Msg_N(E). Make | |
10889 | errors related to the formal language restriction not serious | |
10890 | (insertion character |). | |
10891 | * par.adb (Par): set formal language for error messages if needed | |
10892 | * sem_ch6.adb (Check_Missing_Return): take into account possible | |
10893 | generated statements at the end of the function | |
10894 | * snames.ads-tmpl (Name_SPARK_95, Pragma_SPARK_95): new variable and | |
10895 | enumeration value to define a new pragma SPARK_95 | |
10896 | * opt.ads, opt.adb (SPARK_Version_Type, SPARK_Version_Default, | |
10897 | SPARK_Version): new type and variables to store the SPARK version | |
10898 | (none by default). | |
10899 | (SPARK_Mode): return True when SPARK_Version is set | |
10900 | * par-prag.adb: Correct indentation | |
10901 | (Prag): take Pragma_SPARK_95 into account | |
10902 | * sem_prag.adb (Set_Mechanism_Value, Sig_Flags): take Pragma_SPARK_95 | |
10903 | into account. | |
10904 | ||
8d606a78 RD |
10905 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
10906 | ||
10907 | * sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, prj-part.adb, par-ch4.adb, | |
10908 | sem_util.adb, sem_ch4.adb, sem_ch6.adb, sem_ch6.ads, sem_ch8.adb, | |
10909 | sem_ch8.ads, sem_ch13.ads, par-ch5.adb, prj-env.ads: Minor reformatting | |
10910 | ||
1982d5a8 PO |
10911 | 2011-08-01 Pascal Obry <obry@adacore.com> |
10912 | ||
10913 | * prj-part.ads, prj-part.adb (Parse): Add Target_Name parameter. Pass | |
10914 | Target_Name to Get_Path call. | |
10915 | (Parse_Single_Project): Likewise. | |
10916 | (Post_Parse_Context_Clause): Likewise. | |
10917 | * prj-env.ads, prj-env.adb (Find_Project): Add Target_Name parameter. | |
10918 | Call Initialise_Project_Path with the proper Target_Name. | |
10919 | (Initialize_Project_Path): Add <gnat_root>/<target_name>/lib/gnat | |
10920 | search path. | |
10921 | (Get_Path): Add Target_Name parameter. Call Initialise_Project_Path | |
10922 | with the proper Target_Name. | |
10923 | * prj-conf.adb (Get_Or_Create_Configuration_File): Pass Target_Name to | |
10924 | Part.Parse routine. | |
10925 | (Parse_Project_And_Apply_Config): Likewise. | |
10926 | * prj-makr.adb (Initialize): Pass empty Target_Name to Parse routine. | |
10927 | This is fine as this part of the code is supporting only native | |
10928 | compilation. | |
10929 | * prj-pars.adb (Parse): Pass empty Target_Name to Parse routine. This | |
10930 | is fine as this part of the code is supporting only native compilation. | |
10931 | ||
0d53d36b AC |
10932 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10933 | ||
10934 | * sem_util.adb (Enter_Name): issue error in formal mode on declaration | |
10935 | of homonym, unless the homonym is one of the cases allowed in SPARK | |
10936 | * par-ch5.adb (Parse_Decls_Begin_End): issue error in SPARK mode for | |
10937 | package declaration occurring after a body. | |
10938 | ||
10939 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
10940 | ||
10941 | * checks.adb, exp_ch4.adb: Minor reformatting. | |
10942 | ||
10943 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10944 | ||
10945 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
10946 | (Dispatch_Table_Wrappers): Fix documentation. | |
10947 | ||
10948 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
10949 | ||
10950 | * prj-env.adb, prj-env.ads: Minor reformatting. | |
10951 | ||
8ed68165 AC |
10952 | 2011-08-01 Yannick Moy <moy@adacore.com> |
10953 | ||
10954 | * sem_util.ads, sem_util.adb, par.adb, par_util.adb | |
10955 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move | |
10956 | procedures out of these packages. | |
2c7f9cc0 | 10957 | * errout.ads, errout.adb |
8ed68165 AC |
10958 | (Formal_Error_Msg, Formal_Error_Msg_N, Formal_Error_Msg_SP): move |
10959 | procedures in of this package | |
10960 | (Formal_Error_Msg_NE): new procedure for wrapper on Error_Msg_NE | |
10961 | * par-ch5.adb (Parse_Decls_Begin_End): issue syntax error in SPARK mode | |
10962 | on misplaced later vs initial declarations, like in Ada 83 | |
10963 | * sem_attr.adb (Processing for Analyze_Attribute): issue error in | |
10964 | formal mode on attribute of private type whose full type declaration | |
10965 | is not visible | |
10966 | * sem_ch3.adb (Analyze_Declarations): issue error in formal mode on a | |
10967 | package declaration inside a package specification | |
10968 | (Analyze_Full_Type_Declaration): issue error in formal mode on | |
10969 | controlled type or discriminant type | |
10970 | * sem_ch6.adb (Analyze_Subprogram_Specification): only issue error on | |
10971 | user-defined operator means that it should come from the source | |
10972 | (New_Overloaded_Entity): issue error in formal mode on overloaded | |
10973 | entity. | |
10974 | * sem_ch6.ads, sem_ch13.ads: typos in comments. | |
10975 | ||
10976 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
10977 | ||
10978 | * atree.adb: Minor reformatting. | |
10979 | * checks.adb: Minor reformatting. | |
10980 | ||
4230bdb7 AC |
10981 | 2011-08-01 Vincent Celier <celier@adacore.com> |
10982 | ||
10983 | * s-parame-vms-ia64.ads: Fix typo in comment | |
10984 | Minor reformatting | |
10985 | * s-parame-vms-restrict.ads: Removed, unused. | |
10986 | ||
10987 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
10988 | ||
10989 | * exp_ch3.adb | |
10990 | (Is_Variable_Size_Array): Remove local subprogram Is_Constant_Bound. | |
10991 | * sem_ch3.adb | |
10992 | (Constrain_Index): Remove side effects in the evaluation of the bounds. | |
10993 | * sem_ch3.ads, sem_ch3.adb | |
10994 | (Is_Constant_Bound): New extended version of the subprogram that was | |
10995 | previously located inside function Exp_Ch3.Is_Variable_Size_Array. | |
10996 | Moved here since it is shared by routines of sem_ch3 and exp_ch3. | |
10997 | * sem_aux.ads (Constant_Value): Fix typo in comment. | |
10998 | * checks.adb (Generate_Index_Checks): New implementation which, for | |
10999 | array objects with constant bounds, generates the runtime check | |
11000 | referencing the bounds of the array type. For other cases this routine | |
11001 | provides its previous behavior obtaining such values from the array | |
11002 | object. | |
11003 | * sem_res.adb (Set_Slice_Subtype): Link a copied range subtree with its | |
11004 | parent type. | |
11005 | * atree.adb (New_Copy): Reset flag Is_Overloaded in the new copy since | |
11006 | we cannot have semantic interpretations of the new node. | |
11007 | ||
2010d078 AC |
11008 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11009 | ||
11010 | * sem_ch6.adb (Fully_Conformant_Expressions): handle quantified | |
11011 | expressions. | |
11012 | ||
11013 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11014 | ||
11015 | * sem_ch8.adb: Minor code editing. | |
11016 | * s-vxwext.adb: Remove trailing space. | |
11017 | * freeze.adb, freeze.ads, errout.ads, erroutc.adb: Fix GPLv3 header for | |
11018 | consistency with other files. | |
11019 | ||
11020 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11021 | ||
11022 | * s-auxdec.ads, s-auxdec-vms_64.ads: Minor reformatting. | |
11023 | ||
11024 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11025 | ||
11026 | * par-ch10.adb: reject parameterized expressions as compilation unit. | |
11027 | * sem_ch4.adb: handle properly conditional expression with overloaded | |
11028 | then_clause and no else_clause. | |
11029 | ||
11030 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11031 | ||
11032 | * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: Redeclare C_Address | |
11033 | like done by System.Aux_DEC. | |
11034 | * env.c (__gnat_setenv) [VMS]: Put logicals into LNM$PROCESS table. | |
11035 | ||
daec8eeb YM |
11036 | 2011-08-01 Yannick Moy <moy@adacore.com> |
11037 | ||
11038 | * par-endh.adb (Check_End): issue a syntax error in SPARK mode for | |
11039 | missing label at end of declaration (subprogram or package) | |
11040 | * par-ch4.adb (P_Name): issue a syntax error in SPARK mode for mixing | |
11041 | of positional and named parameter association | |
11042 | * par.adb, par-util.adb (Formal_Error_Msg_SP): new wrapper on | |
11043 | Error_Msg_SP which adds a prefix to the error message giving the name | |
11044 | of the formal language analyzed | |
11045 | * sem_ch6.adb (Analyze_Return_Type): issue an error in formal mode for | |
11046 | access result type in subprogram, unconstrained array as result type,. | |
11047 | (Analyze_Subprogram_Declaration): issue an error in formal mode for null | |
11048 | procedure | |
11049 | * sem_ch8.adb: Code clean up. | |
11050 | ||
38171f43 AC |
11051 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
11052 | ||
11053 | * sem_ch7.adb (Uninstall_Declarations): Remove useless code. | |
11054 | * einfo.ads (Access_Disp_Table): Fix documentation. | |
11055 | (Dispatch_Table_Wrappers): Fix documentation. | |
11056 | * einfo.adb (Access_Disp_Table, Dispatch_Table_Wrappers, | |
11057 | Set_Access_Disp_Table, Set_Dispatch_Table_Wrappers): Fix the assertions | |
11058 | to enforce the documentation of this attribute. | |
11059 | (Set_Is_Interface): Cleanup the assertion. | |
11060 | * exp_ch4.adb (Expand_Allocator_Expression, Tagged_Membership): Locate | |
11061 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
11062 | * exp_disp.adb (Expand_Dispatching_Call, Expand_Interface_Conversion): | |
11063 | Locate the Underlying_Type before reading attribute Access_Disp_Table. | |
11064 | * exp_aggr.adb (Build_Array_Aggr_Code, Build_Record_Aggr_Code): Locate | |
11065 | the Underlying_Type entity before reading attribute Access_Disp_Table. | |
11066 | * exp_ch3.adb (Build_Record_Init_Proc, Expand_N_Object_Declaration): | |
11067 | Locate the Underlying_Type entity before reading attribute | |
11068 | Access_Disp_Table. | |
11069 | ||
11070 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11071 | ||
11072 | * s-poosiz.ads: Additional overriding indicators. | |
11073 | ||
11074 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11075 | ||
11076 | * sem_ch5.adb (Analyze_Exit_Statement): add return after error in | |
11077 | formal mode. | |
11078 | (Analyze_Iteration_Scheme): issue error in formal mode when loop | |
11079 | parameter specification does not include a subtype mark. | |
11080 | * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): issue error in | |
11081 | formal mode on abstract subprogram. | |
11082 | (Analyze_Subprogram_Specification): issue error in formal mode on | |
11083 | user-defined operator. | |
11084 | (Process_Formals): issue error in formal mode on access parameter and | |
11085 | default expression. | |
11086 | * sem_ch9.adb (Analyze_Abort_Statement, | |
11087 | Analyze_Accept_Statement, Analyze_Asynchronous_Select, | |
11088 | Analyze_Conditional_Entry_Call, Analyze_Delay_Relative, | |
11089 | Analyze_Delay_Until, Analyze_Entry_Call_Alternative, | |
11090 | Analyze_Requeue, Analyze_Selective_Accept, | |
11091 | Analyze_Timed_Entry_Call): issue error in formal mode on such constructs | |
11092 | * sem_ch11.adb (Analyze_Raise_Statement, Analyze_Raise_xxx_Error): | |
11093 | issue error in formal mode on user-defined raise statement. | |
11094 | ||
1f250383 AC |
11095 | 2011-08-01 Thomas Quinot <quinot@adacore.com> |
11096 | ||
11097 | * sem_ch6.adb (Enter_Overloaded_Entity): Do not warn about a | |
11098 | declaration being hidden when overriding an implicit inherited | |
11099 | subprogram. | |
11100 | * par-ch10.adb (P_Compilation_Unit): In syntax check only mode | |
11101 | (-gnats), do not complain about a source file that contains only a | |
11102 | pragma No_Body. | |
11103 | ||
11104 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11105 | ||
11106 | * sem_ch5.adb (Analyze_Iterator_Scheme): Do not overwrite type of loop | |
11107 | variable if already set. | |
11108 | ||
607d0635 AC |
11109 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> |
11110 | ||
11111 | * g-socket-dummy.adb, s-osinte-linux.ads, g-socket-dummy.ads, | |
11112 | g-debuti.adb, g-tasloc.adb, g-debuti.ads, g-tasloc.ads, | |
11113 | s-osinte-hpux.ads, g-sercom.adb, g-soliop-solaris.ads, g-sercom.ads, | |
11114 | g-sptain.ads, g-curexc.ads, s-tasloc.adb, s-tasloc.ads, s-tataat.adb, | |
11115 | g-ctrl_c.adb, a-reatim.adb, s-tataat.ads, g-dirope.adb, g-ctrl_c.ads, | |
11116 | g-dirope.ads, g-boubuf.adb, g-calend.adb, g-boubuf.ads, g-souinf.ads, | |
11117 | g-table.adb, g-bytswa-x86.adb, g-wispch.adb, g-io.adb, g-table.ads, | |
11118 | g-wispch.ads, g-io.ads, g-memdum.adb, g-memdum.ads, g-busorg.adb, | |
11119 | g-busorg.ads, g-regpat.adb, g-sothco-dummy.adb, g-encstr.adb, | |
11120 | g-regpat.ads, g-sothco-dummy.ads, s-osinte-aix.ads, g-encstr.ads, | |
11121 | g-sercom-mingw.adb, s-mastop-vms.adb, g-diopit.adb, g-diopit.ads, | |
11122 | s-vxwext.adb, g-dyntab.adb, g-dyntab.ads, g-crc32.adb, | |
11123 | g-sercom-linux.adb, g-crc32.ads, s-regpat.adb, g-flocon.ads, | |
11124 | s-regpat.ads, g-stheme.adb, g-sestin.ads, s-taspri-posix-noaltstack.ads, | |
11125 | g-soliop.ads, s-inmaop-posix.adb, g-locfil.ads, g-enblsp-vms-alpha.adb, | |
11126 | g-socthi-dummy.adb, g-socthi-dummy.ads, gnat.ads, g-moreex.adb, | |
11127 | g-moreex.ads, g-dynhta.adb, g-dynhta.ads, g-deutst.ads, g-htable.adb, | |
11128 | g-cgicoo.adb, g-htable.ads, g-cgicoo.ads, a-interr.adb, | |
11129 | g-socthi-vms.adb, g-socthi-vms.ads, g-hesora.adb, g-bubsor.adb, | |
11130 | g-hesora.ads, g-bubsor.ads, g-md5.adb, g-md5.ads, s-intman-irix.adb, | |
11131 | s-htable.adb, s-osinte-vms.adb, s-htable.ads, s-osinte-vms.ads, | |
11132 | s-taprob.adb, g-bytswa.adb, g-bytswa.ads, s-osinte-solaris-posix.ads, | |
11133 | a-suenco.adb, g-comver.adb, g-comver.ads, g-exctra.adb, | |
11134 | s-osinte-solaris.adb, g-exctra.ads, s-osinte-irix.ads, | |
11135 | s-osinte-solaris.ads, a-caldel-vms.adb, g-socthi-vxworks.adb, | |
11136 | g-expect.adb, g-socthi-vxworks.ads, g-expect.ads, g-comlin.ads, | |
11137 | g-heasor.adb, g-heasor.ads, g-traceb.adb, g-traceb.ads, g-decstr.adb, | |
11138 | g-spipat.adb, g-decstr.ads, g-spipat.ads, s-mastop-tru64.adb, | |
11139 | g-except.ads, g-thread.adb, g-hesorg.adb, g-thread.ads, g-hesorg.ads, | |
11140 | g-expect-vms.adb, a-stuten.ads, g-spchge.adb, g-spchge.ads, | |
11141 | g-u3spch.adb, g-u3spch.ads, g-spitbo.adb, g-spitbo.ads, | |
11142 | s-osinte-dummy.ads, s-osinte-posix.adb, g-pehage.adb, g-pehage.ads, | |
11143 | s-gloloc-mingw.adb, g-sha1.ads, s-traceb-hpux.adb, | |
11144 | g-trasym-unimplemented.adb, g-trasym-unimplemented.ads, g-io_aux.adb, | |
11145 | g-regexp.adb, g-io_aux.ads, g-socthi-mingw.adb, g-regexp.ads, | |
11146 | s-osinte-hpux-dce.adb, g-socthi-mingw.ads, g-cgi.adb, | |
11147 | s-osinte-hpux-dce.ads, g-cgi.ads, g-byorma.adb, g-boumai.ads, | |
11148 | g-byorma.ads, a-caldel.adb, s-regexp.adb, s-regexp.ads, | |
11149 | g-soliop-mingw.ads, g-sptavs.ads, s-osinte-tru64.ads, g-speche.adb, | |
11150 | g-speche.ads, g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, | |
11151 | s-osinte-darwin.ads, i-vxwork-x86.ads, g-awk.adb, i-vxwork.ads, | |
11152 | g-awk.ads, g-zspche.adb, g-zspche.ads, g-socket.adb, g-sptabo.ads, | |
11153 | g-socket.ads, g-semaph.adb, g-semaph.ads, s-taspri-posix.ads, | |
11154 | g-enblsp-vms-ia64.adb, g-cgideb.adb, g-cgideb.ads, g-sothco.adb, | |
11155 | s-osinte-freebsd.ads, g-sothco.ads, g-catiio.adb, g-casuti.adb, | |
11156 | g-catiio.ads, g-casuti.ads, g-trasym.adb, g-trasym.ads, s-casuti.adb, | |
11157 | g-os_lib.adb, s-traceb-mastop.adb, g-busora.adb, s-interr-dummy.adb, | |
11158 | g-busora.ads, g-enutst.ads, s-os_lib.adb, a-tasatt.adb, | |
11159 | s-osinte-mingw.ads: Update to GPLv3 run-time license. | |
11160 | Use GNAT instead of GNARL. | |
11161 | ||
11162 | 2011-08-01 Bob Duff <duff@adacore.com> | |
11163 | ||
11164 | * a-cdlili.ads, a-cihama.ads, a-coinve.ads, a-ciorse.ads, a-coorma.ads, | |
11165 | a-cidlli.ads, a-ciormu.ads, a-cihase.ads, a-cohama.ads, a-coorse.ads, | |
11166 | a-ciorma.ads, a-coormu.ads, a-convec.ads, a-cohase.ads: Minor | |
11167 | reformatting. | |
11168 | ||
11169 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11170 | ||
11171 | * debug.adb (d.D) reverve flag for the SPARK mode | |
11172 | (d.E) reverve flag for SPARK generation mode | |
11173 | (d.F) reverve flag for Why generation mode | |
2c7f9cc0 | 11174 | * opt.ads, opt.adb (ALFA_Mode, ALFA_Through_SPARK_Mode, |
607d0635 AC |
11175 | ALFA_Through_Why_Mode, Formal_Verification_Mode, SPARK_Mode): New |
11176 | functions which return True when the corresponding modes are set | |
11177 | (Formal_Language): return "spark" or "alfa" when in formal verification | |
11178 | mode. | |
11179 | * sem_util.ads, sem_util.adb (Formal_Error_Msg): new wrapper on | |
11180 | Error_Msg to prefix the error message with a tag giving the formal | |
11181 | language | |
11182 | (Formal_Error_Msg_N): new wrapper on Error_Msg_N to prefix the error | |
11183 | message with a tag giving the formal language | |
11184 | * sem_ch5.adb (Analyze_Block_Statement): issue error in formal mode on | |
11185 | block statement | |
11186 | (Analyze_Case_Statement): issue error in formal mode on case statement | |
11187 | with a single "others" case alternative | |
11188 | (Analyze_Exit_Statement): issue errors in formal mode on exit | |
11189 | statements which do not respect SPARK restrictions | |
11190 | (Analyze_Goto_Statement): issue error in formal mode on goto statement | |
11191 | (Check_Unreachable_Code): always issue an error (not a warning) in | |
11192 | formal mode on unreachable code (concerns both code after an infinite | |
11193 | loop and after an unconditional jump, both not allowed in SPARK) | |
11194 | * sem_ch6.adb (Analyze_Return_Statement): add call to | |
11195 | Set_Return_Present for a procedure containing a return statement | |
11196 | (already done for functions in Analyze_Function_Return) | |
11197 | (Analyze_Function_Return): issue error in formal mode on extended | |
11198 | return or if return is not last statement in function | |
11199 | (Check_Missing_Return): issue error in formal mode if function does | |
11200 | not end with return or if procedure contains a return | |
11201 | * sem_ch8.ads, sem_ch8.adb (Has_Loop_In_Inner_Open_Scopes): new | |
11202 | function to detect if there is an inner scope of its parameter S which | |
11203 | is a loop. | |
11204 | ||
11205 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11206 | ||
11207 | * sem_ch6.ads: Minor reformatting. | |
11208 | ||
d8b3ccb9 AC |
11209 | 2011-08-01 Javier Miranda <miranda@adacore.com> |
11210 | ||
11211 | * sem_util.adb (Abstract_Interface_List): Complete condition when | |
11212 | processing private type declarations to avoid reading unavailable | |
11213 | attribute. | |
11214 | (Is_Synchronized_Tagged_Type): Complete condition when processing | |
11215 | private extension declaration nodes to avoid reading unavailable | |
11216 | attribute. | |
11217 | ||
11218 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11219 | ||
11220 | * sem_ch3.adb: Minor reformatting. | |
11221 | ||
11222 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11223 | ||
11224 | * s-parame-ae653.ads, s-parame-vms-alpha.ads, s-parame-hpux.ads, | |
11225 | i-cpoint.adb, i-cstrin.adb, i-cpoint.ads, i-cstrin.ads, | |
11226 | s-parame-vms-ia64.ads, s-parame.ads, i-c.ads, s-parame-vxworks.ads, | |
11227 | s-parame-vms-restrict.ads: Remove duplicated Interfaces.C.* packages | |
11228 | for VMS, instead parametrize the common implementation with | |
11229 | System.Parameters declarations. | |
11230 | ||
0bb9276c AC |
11231 | 2011-08-01 Eric Botcazou <ebotcazou@adacore.com> |
11232 | ||
11233 | * gnat_rm.texi: Document limitation of Pragma No_Strict_Aliasing. | |
11234 | ||
11235 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11236 | ||
11237 | * seh_init.c: Fix SEH handler installation on win64. | |
11238 | ||
11239 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11240 | ||
11241 | * sem_ch3.adb (Access_Subprogram_Declaration): in Asis mode, prevent | |
11242 | double analysis of an anonymous access to subprogram, because it can | |
11243 | lead to improper sharing of profiles and a back-end crash. | |
11244 | ||
6a2e4f0b AC |
11245 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11246 | ||
11247 | * make.adb, sem_ch4.adb: Minor reformatting. | |
11248 | * gcc-interface/Make-lang.in: Update dependencies. | |
11249 | * sem_util.adb, exp_ch5.adb: Minor reformatting. | |
11250 | ||
11251 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11252 | ||
11253 | * gnat_rm.texi: Fix definition of Long_Integer. | |
11254 | ||
11255 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11256 | ||
11257 | * exp_aggr.adb: check limit size of static aggregate unconditionally, | |
11258 | to prevent storage exhaustion. | |
11259 | * exp_ch7.adb (Clean_Simple_Protected_Objects): if the scope being | |
11260 | finalized is a function body, insert the cleanup code before the final | |
11261 | return statement, to prevent spurious warnings. | |
11262 | * s-pooglo.ads: add overriding indicator. | |
11263 | ||
4561baf7 ES |
11264 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11265 | ||
11266 | * sem_ch4.adb (Operator_Check): improve error message when both a | |
11267 | with_clause and a use_clause are needed to make operator usage legal. | |
11268 | * sem_util.ads, sem_util.adb (Unit_Is_Visible): new predicate to | |
11269 | determine whether a compilation unit is visible within an other, | |
11270 | either through a with_clause in the current unit, or a with_clause in | |
11271 | its library unit or one one of its parents. | |
11272 | ||
383e179e AC |
11273 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11274 | ||
11275 | * exp_ch5.adb (Expand_N_Iterator_Loop): handle properly an iterator | |
11276 | over an arbitrary expression of an array or container type. | |
11277 | * lib-xref.adb: clarify comment. | |
11278 | ||
11279 | 2011-08-01 Bob Duff <duff@adacore.com> | |
11280 | ||
11281 | * einfo.ads: Minor reformatting. | |
11282 | * debug.adb: Minor comment improvement. | |
11283 | ||
11284 | 2011-08-01 Javier Miranda <miranda@adacore.com> | |
11285 | ||
11286 | * sem_ch4.adb (Try_Object_Operation): For class-wide subprograms do not | |
11287 | consider hidden subprograms as valid candidates. | |
11288 | ||
11289 | 2011-08-01 Arnaud Charlet <charlet@adacore.com> | |
11290 | ||
11291 | * make.adb (Compile): Strip -mxxx switches in CodePeer mode. | |
11292 | ||
11293 | 2011-08-01 Vasiliy Fofanov <fofanov@adacore.com> | |
11294 | ||
11295 | * gnat_ugn.texi: Fix typo. | |
11296 | ||
61c161b2 AC |
11297 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11298 | ||
11299 | * i-cstrin.adb, sem_util.adb, exp_ch11.adb, sem_ch8.adb, | |
11300 | lib-xref.adb: Minor reformatting | |
11301 | ||
11302 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
11303 | ||
11304 | * exp_ch6.adb (Expand_N_Extended_Return_Statement): Replace test of | |
11305 | when to generate a call to Move_Final_List. | |
11306 | (Has_Controlled_Parts): Remove this function. | |
11307 | ||
84df40f7 AC |
11308 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11309 | ||
11310 | * par-ch3.adb (P_Discrete_Choice_List): Improve error message for extra | |
11311 | "," in choice list. | |
11312 | ||
11313 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11314 | ||
11315 | * exp_ch11.adb (Expand_N_Raise_Statement): Mark N_Raise_xxx_Error for | |
11316 | explicit raise of a predefined exception as Comes_From_Source if the | |
11317 | original N_Raise_Statement comes from source. | |
11318 | ||
11319 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11320 | ||
11321 | * sinfo.ads: Add comment. | |
11322 | * sem_ch6.adb: Minor reformatting. | |
11323 | ||
11324 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11325 | ||
11326 | * freeze.adb (Freeze_Entity): Refine check for bad component size | |
11327 | clause to avoid rejecting confirming clause when atomic/aliased present. | |
11328 | ||
11329 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11330 | ||
11331 | * sem_ch8.adb (Find_Direct_Name, Analyze_Expanded_Name): use Is_LHS to | |
11332 | better determine whether an entity reference is a write. | |
11333 | * sem_util.adb (Is_LHS): refine predicate to handle assignment to a | |
11334 | subcomponent. | |
11335 | * lib-xref.adb (Output_References): Do no suppress a read reference at | |
11336 | the same location as an immediately preceeding modify-reference, to | |
11337 | handle properly in-out actuals. | |
11338 | ||
11339 | 2011-08-01 Tristan Gingold <gingold@adacore.com> | |
11340 | ||
11341 | * env.c (__gnat_setenv) [VMS]: Refine previous change. | |
11342 | ||
11343 | 2011-08-01 Quentin Ochem <ochem@adacore.com> | |
11344 | ||
11345 | * i-cstrin.adb (New_String): Changed implementation, now uses only the | |
11346 | heap to compute the result. | |
11347 | ||
c7f0d2c0 AC |
11348 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11349 | ||
11350 | * atree.ads: Minor reformatting. | |
11351 | ||
11352 | 2011-08-01 Emmanuel Briot <briot@adacore.com> | |
11353 | ||
11354 | * g-expect.adb (Get_Command_Output): Fix memory leak. | |
11355 | ||
11356 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
11357 | ||
11358 | * cstand.adb (P_Float_Type): New procedure to print the definition of | |
11359 | predefined fpt types. | |
11360 | (P_Mixed_Name): New procedure to print a name using mixed case | |
11361 | (Print_Standard): Use P_Float_Type for printing floating point types | |
11362 | * einfo.adb (Machine_Emax_Value): Add preliminary support for quad | |
11363 | precision IEEE float. | |
11364 | ||
11365 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11366 | ||
11367 | * sem_ch3.adb: Minor reformatting. | |
11368 | ||
11369 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11370 | ||
11371 | * sem_ch6.adb (Analyze_Parameterized_Expression): If the expression is | |
11372 | the completion of a generic function, insert the new body rather than | |
11373 | rewriting the original. | |
11374 | ||
11375 | 2011-08-01 Yannick Moy <moy@adacore.com> | |
11376 | ||
11377 | * sinfo.ads, errout.ads: Typos in comments. | |
11378 | ||
1c54829e AC |
11379 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11380 | ||
11381 | * par-endh.adb: Minor reformatting. | |
11382 | ||
11383 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11384 | ||
11385 | * aspects.ads, aspects.adb: Add aspects for library unit pragmas | |
11386 | (Pre_Post_Aspects): New subtype. | |
11387 | * par-ch12.adb (P_Generic): New syntax for aspects in packages | |
11388 | * par-ch13.adb (P_Aspect_Specifications): Add Semicolon parameter | |
11389 | * par-ch7.adb (P_Package): Remove Decl parameter | |
11390 | (P_Package): Handle new syntax for aspects (before IS) | |
11391 | * par-ch9.adb (P_Protected_Definition): Remove Decl parameter, handle | |
11392 | new aspect syntax | |
11393 | (P_Task_Definition): Remove Decl parameter, handle new aspect syntax | |
11394 | * par.adb (P_Aspect_Specifications): Add Semicolon parameter | |
11395 | (P_Package): Remove Decl parameter | |
11396 | * sem_ch13.adb (Analyze_Aspect_Specifications): Handle library unit | |
11397 | aspects | |
11398 | * sem_ch7.adb (Analyze_Package_Declaration): Analyze new format aspect | |
11399 | specs | |
11400 | * sem_util.ads, sem_util.adb (Static_Boolean): New function | |
11401 | * sinfo.ads: Document new syntax for aspects in packages etc. | |
11402 | * sprint.adb: Handle new syntax of aspects before IS in package | |
11403 | ||
11404 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11405 | ||
11406 | * atree.ads: Minor reformatting. | |
11407 | * sem_prag.adb: Minor reformatting. | |
11408 | ||
11409 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11410 | ||
11411 | * exp_util.adb (Insert_Actions): Fix error in handling Actions for | |
11412 | case expr alternative. | |
11413 | ||
11414 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> | |
11415 | ||
11416 | * sem_ch12.adb: Fix typo. | |
11417 | ||
9eea4346 GB |
11418 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11419 | ||
11420 | * sem_prag.adb (Check_No_Link_Name): New procedure. | |
11421 | (Process_Import_Or_Interface): Use Check_No_Link_Name. | |
11422 | * cstand.adb (Create_Standard): Use Esize (Standard_Long_Long_Float) | |
11423 | instead of Standard_Long_Long_Float_Size global. Preparation for | |
11424 | eventual removal of per type constants. | |
11425 | * exp_util.ads (Get_Stream_Size): New function returning the stream | |
11426 | size value of subtype E. | |
11427 | * exp_util.adb (Get_Stream_Size): Implement new function. | |
11428 | * exp_strm.adb (Build_Elementary_Input_Call): Use Get_Stream_Size | |
11429 | function. | |
11430 | * exp_attr.adb (Attribute_Stream_Size): Use Get_Stream_Size | |
11431 | * einfo.adb: | |
11432 | (Machine_Mantissa_Value): Handle 128-bit quad precision IEEE floats | |
11433 | ||
3d6c3bd7 GB |
11434 | 2011-08-01 Geert Bosch <bosch@adacore.com> |
11435 | ||
11436 | * cstand.adb: Fix comments. | |
11437 | * sem_prag.adb (Analyze_Pragma): Use List_Length instead of explicit | |
11438 | count of arguments. | |
11439 | ||
e7d897b8 AC |
11440 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11441 | ||
11442 | * exp_ch4.adb, sem_cat.adb: Minor reformatting. | |
11443 | ||
11444 | 2011-08-01 Geert Bosch <bosch@adacore.com> | |
11445 | ||
11446 | * atree.ads: Fix comment. | |
11447 | ||
c228a069 AC |
11448 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11449 | ||
11450 | * aspects.ads, aspects.adb (Aspect_Names): Moved from body to spec. | |
11451 | * par-ch13.adb (P_Aspect_Specifications): Check misspelled aspect name. | |
11452 | * par.adb: Add with for Namet.Sp. | |
11453 | * par-tchk.adb: Minor reformatting. | |
11454 | ||
11455 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
11456 | ||
11457 | * mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb | |
11458 | (Build_Dynamic_Library): Use new function Init_Proc_Name to get the name | |
11459 | of the init procedure of a SAL. | |
11460 | * mlib-tgt-vms_common.ads, mlib-tgt-vms_common.adb (Init_Proc_Name): | |
11461 | New procedure. | |
11462 | ||
11463 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11464 | ||
11465 | * exp_ch4.adb, s-tasini.ads, sem_attr.adb, s-soflin.ads: Minor | |
11466 | reformatting. | |
11467 | ||
11468 | 2011-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | |
11469 | ||
11470 | * adaint.c (__gnat_file_time_name_attr): Get rid of warning. | |
11471 | ||
11472 | 2011-08-01 Thomas Quinot <quinot@adacore.com> | |
11473 | ||
11474 | * sem_util.adb, sem_util.ads (Has_Overriding_Initialize): Make function | |
11475 | conformant with its spec (return True only for types that have | |
11476 | an overriding Initialize primitive operation that prevents them from | |
11477 | having preelaborable initialization). | |
11478 | * sem_cat.adb (Validate_Object_Declaration): Fix test for preelaborable | |
11479 | initialization for controlled types in Ada 2005 or later mode. | |
11480 | ||
857ade1b RD |
11481 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11482 | ||
11483 | * aspects.ads, aspects.adb: Add aspect Type_Invariant, Precondition, | |
11484 | Postcondition. | |
11485 | (Same_Aspect): New function. | |
11486 | * sem_ch13.adb (Analyze_Aspect_Specifications): Add aspect | |
11487 | Type_Invariant, Precondition, Postcondition. | |
11488 | * snames.ads-tmpl: Add Name_Type_Invariant. | |
11489 | ||
bd949ee2 RD |
11490 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11491 | ||
11492 | * freeze.adb (Freeze_Entity): Don't call Check_Aspect_At_Freeze_Point | |
11493 | here. | |
11494 | (Freeze_All_Ent): Fix error in handling inherited aspects. | |
11495 | * sem_ch13.adb (Analyze_Aspect_Specifications): Skip aspect that is | |
11496 | already analyzed, but don't skip entire processing of a declaration, | |
11497 | that's wrong in some cases of declarations being rewritten. | |
11498 | (Analyze_Aspect_Specification): Set Is_Delayed_Aspect in aspects. | |
11499 | Don't delay for integer, string literals | |
11500 | Treat predicates in usual manner for delay, remove special case code, | |
11501 | not needed. | |
11502 | (Analyze_Freeze_Entity): Make call to Check_Aspect_At_Freeze_Point | |
11503 | (Build_Predicate_Function): Update saved expression in aspect | |
11504 | (Build_Invariant_Procedure): Update saved expression in aspect | |
11505 | * exp_ch4.adb (Expand_N_Selected_Component): Only do the optimization | |
11506 | of replacement of discriminant references if the reference is simple. | |
11507 | ||
f1c952af RD |
11508 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11509 | ||
11510 | * aspects.ads, aspects.adb: Add Static_Predicate and Dynamic_Predicate. | |
11511 | * sem_ch13.adb (Analyze_Aspect_Specification): Add processing for | |
11512 | Static_Predicate and Dynamic_Predicate. | |
11513 | (Build_Predicate_Function): Add processing for Static_Predicate | |
11514 | and Dynamic_Predicate. | |
11515 | * sinfo.ads, sinfo.adb (From_Dynamic_Predicate): New flag | |
11516 | (From_Static_Predicate): New flag | |
11517 | * snames.ads-tmpl: Add Name_Static_Predicate and Name_Dynamic_Predicate | |
11518 | ||
11519 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11520 | ||
11521 | * usage.adb: Documentation cleanup for Ada version modes in usage. | |
11522 | * expander.adb: Minor reformatting. | |
11523 | ||
47e11d08 AC |
11524 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11525 | ||
11526 | * atree.ads: Minor comment fix. | |
11527 | * a-stwifi.adb, a-stzfix.adb, a-strfix.adb, a-ztexio.ads, a-textio.ads, | |
11528 | a-witeio.ads, sem_prag.adb: Minor reformatting. | |
11529 | ||
11530 | 2011-08-01 Doug Rupp <rupp@adacore.com> | |
11531 | ||
11532 | * env.c (__gnat_setenv) [VMS]: Force 32bit on item list structure | |
11533 | pointers. Use descrip.h header file for convenience. Add some | |
11534 | comments. | |
11535 | ||
11536 | 2011-08-01 Robert Dewar <dewar@adacore.com> | |
11537 | ||
11538 | * freeze.adb (Freeze_Entity): Call Check_Aspect_At_Freeze_Point | |
11539 | (Freeze_All): Call Check_Aspect_At_End_Of_Declarations | |
11540 | * sem_ch13.ads, sem_ch13.adb (Check_Aspect_At_Freeze_Point): | |
11541 | New procedure. | |
11542 | (Check_Aspect_At_End_Of_Declarations): New procedure | |
11543 | (Analye_Aspect_Specification): Minor changes for above procedures | |
11544 | * sinfo.ads, sinfo.adb (Is_Delayed_Aspect): Now set in aspect | |
11545 | specification node as well. | |
11546 | ||
11547 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11548 | ||
11549 | * adaint.c (_gnat_stat): GetFilesAttributesEx() would fail on special | |
11550 | Windows files. Use GetFilesAttributes() in this case to check for file | |
11551 | existence instead of returning with an error code. | |
11552 | ||
a3a16b21 VC |
11553 | 2011-08-01 Vincent Celier <celier@adacore.com> |
11554 | ||
11555 | * a-stzfix.adb, a-stwifi.adb (Replace_Slice): Fixed computation when | |
11556 | High is above Source length. | |
11557 | ||
ff58cc69 RD |
11558 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11559 | ||
11560 | * a-ztexio.ads, a-textio.ads, a-witeio.ads: Fix comment. | |
11561 | ||
6bb88533 AC |
11562 | 2011-08-01 Robert Dewar <dewar@adacore.com> |
11563 | ||
11564 | * aspects.ads (Boolean_Aspects): New subtype. | |
11565 | * exp_ch13.adb (Expand_Freeze_Entity): Fix errors in handling aspects | |
11566 | for derived types in cases where the parent type and derived type have | |
11567 | aspects. | |
11568 | * freeze.adb (Freeze_Entity): Fix problems in handling derived type | |
11569 | with aspects when parent type also has aspects. | |
11570 | (Freeze_Entity): Deal with delay of boolean aspects (must evaluate | |
11571 | boolean expression at this point). | |
11572 | * sem_ch13.adb (Analyze_Aspect_Specifications): Delay all aspects in | |
11573 | accordance with final decision on the Ada 2012 feature. | |
11574 | * sinfo.ads, sinfo.adb (Is_Boolean_Aspect): New flag. | |
11575 | ||
11576 | 2011-08-01 Matthew Heaney <heaney@adacore.com> | |
11577 | ||
11578 | * a-chtgbo.adb (Delete_Node_Sans_Free): Replace iterator with selector. | |
11579 | ||
060a3f28 AC |
11580 | 2011-08-01 Pascal Obry <obry@adacore.com> |
11581 | ||
11582 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: | |
11583 | Fix Replace_Slice when High is above current string size. | |
11584 | (Replace_Slice): Fix DL computation when High is above current | |
11585 | string length. | |
11586 | ||
11587 | 2011-08-01 Gary Dismukes <dismukes@adacore.com> | |
11588 | ||
11589 | * gnat_rm.texi: Add documentation for pragma Static_Elaboration_Desired. | |
11590 | ||
e7f567a3 AC |
11591 | 2011-08-01 Matthew Heaney <heaney@adacore.com> |
11592 | ||
11593 | * a-rbtgbo.adb (Delete_Node_Sans_Free): Fixed assignment to left child | |
11594 | of node. | |
11595 | ||
11596 | 2011-08-01 Pascal Obry <obry@adacore.com> | |
11597 | ||
11598 | * a-stzunb-shared.adb, a-strunb-shared.adb, a-stwiun-shared.adb: Minor | |
11599 | reformatting. | |
11600 | ||
1a265e78 AC |
11601 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11602 | ||
11603 | * sem_attr.adb (Analyze_Attribute, case 'Access): Handle properly named | |
11604 | access to protected subprograms in generic bodies. | |
11605 | * sem_ch6.adb (Analyze_Subprogram_Declaration): If the context is a | |
11606 | protected type, indicate that the convention of the subprogram is | |
11607 | Convention_Protected, because it may be used in subsequent declarations | |
11608 | within the protected declaration. | |
11609 | ||
11610 | 2011-08-01 Vincent Celier <celier@adacore.com> | |
11611 | ||
11612 | * mlib-prj.adb (Build_Library): Use "ada_" as the prefix for the "init" | |
11613 | and "final" procedures when the name of the library is "ada", to avoid | |
11614 | duplicate symbols "adainit" and "adafinal" in executables. | |
11615 | ||
67e28ef8 ES |
11616 | 2011-08-01 Ed Schonberg <schonberg@adacore.com> |
11617 | ||
11618 | * sem_attr.adb (Analyze_Attribute, case 'Result): Handle properly a | |
11619 | quantified expression that appears within a postcondition and uses the | |
11620 | Ada2012 'Result attribute. | |
11621 | ||
6da2ca7d RO |
11622 | 2011-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11623 | ||
11624 | * init.c (__gnat_error_handler): Cast reason to int. | |
11625 | (__gnat_install_handler): Explain sa_sigaction use. | |
11626 | ||
7d5997c6 EB |
11627 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11628 | ||
11629 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: If the | |
11630 | subprogram has copy-in copy-out parameters, try to promote the mode of | |
11631 | the return type if it is passed in registers. | |
11632 | ||
4b4cfdd5 EB |
11633 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11634 | ||
11635 | * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the | |
11636 | left operand as addressable. | |
11637 | ||
f3d34576 EB |
11638 | 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> |
11639 | ||
11640 | * gcc-interface/gigi.h (build_function_stub): Remove. | |
11641 | (build_return_expr): Likewise. | |
11642 | (convert_vms_descriptor): Declare. | |
11643 | * gcc-interface/utils.c (convert_vms_descriptor): Make global. | |
11644 | (build_function_stub): Move to... | |
11645 | * gcc-interface/utils2.c (build_return_expr): Move to... | |
11646 | * gcc-interface/trans.c (build_function_stub): ...here. | |
11647 | (build_return_expr): ...here. | |
11648 | (Subprogram_Body_to_gnu): Add local variable for language_function. | |
11649 | Disconnect the parameter attributes cache, if any, once done with it. | |
11650 | Call end_subprog_body only after setting the end_locus. | |
11651 | Build the stub associated with the function, if any, at the very end. | |
11652 | (gnat_to_gnu) <N_Return_Statement>: Remove couple of useless local | |
11653 | variables and streamline control flow. | |
11654 | ||
0a6ecc08 AC |
11655 | 2011-07-23 Arnaud Charlet <charlet@adacore.com> |
11656 | ||
11657 | PR ada/49819 | |
11658 | * gcc-interface/Makefile.in (powerpc-linux): Remove reference to | |
11659 | g-trasym-dwarf.adb. | |
11660 | ||
5b6d595b RO |
11661 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11662 | ||
11663 | PR bootstrap/49794 | |
11664 | * init.c [sun && __SVR4 && !__vxworks] (__gnat_install_handler): | |
11665 | Assign to act.sa_sigaction. | |
11666 | * tracebak.c [USE_GENERIC_UNWINDER] (__gnat_backtrace): Cast | |
11667 | current->return_address to char * before arithmetic. | |
11668 | ||
94017021 RO |
11669 | 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11670 | ||
11671 | * init.c [sgi] (__gnat_error_handler): Update sigaction(2) citation. | |
11672 | Correct argument types. | |
11673 | Extract code from reason. | |
11674 | (__gnat_install_handler): Assign to act.sa_sigaction. | |
11675 | ||
52fd02bb EB |
11676 | 2011-07-21 Eric Botcazou <ebotcazou@adacore.com> |
11677 | ||
11678 | * gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to... | |
11679 | (GNAT1_OBJS): ...here. | |
11680 | ||
f39a9ca2 EB |
11681 | 2011-07-15 Eric Botcazou <ebotcazou@adacore.com> |
11682 | ||
11683 | PR ada/48711 | |
11684 | * g-socthi-mingw.adb (Fill): Fix formatting. | |
11685 | ||
9e36aa23 EB |
11686 | * gcc-interface/gigi.h: Move around comment. |
11687 | ||
e3aca522 JDA |
11688 | 2011-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
11689 | ||
11690 | PR ada/46350 | |
11691 | * s-taprop-hpux-dce.adb (Abort_Task): Remove unnecessary cast. | |
11692 | ||
696b1960 FW |
11693 | 2011-07-14 Florian Weimer <fw@deneb.enyo.de> |
11694 | ||
11695 | PR ada/48711 | |
11696 | * g-socthi-mingw.adb (Fill): Guard against invalid MSG_WAITALL. | |
11697 | ||
f542c405 EB |
11698 | 2011-07-13 Eric Botcazou <ebotcazou@adacore.com> |
11699 | ||
11700 | * gcc-interface/utils.c (build_vms_descriptor32): Skip the 32-bit | |
11701 | range comparison if Pmode is SImode. | |
11702 | ||
9e9bd455 LG |
11703 | 2011-07-12 Laurent GUERBY <laurent@guerby.net> |
11704 | Eric Botcazou <ebotcazou@adacore.com> | |
11705 | ||
11706 | * adadecode.c: Wrap up in extern "C" block. | |
11707 | * adadecode.h: Likewise. | |
11708 | * adaint.c: Likewise. Remove 'const' keyword. | |
11709 | * adaint.h: Likewise. | |
11710 | * argv.c: Likewise. | |
11711 | * atree.h: Likewise. | |
11712 | * cio.c: Likewise. | |
11713 | * cstreams.c: Likewise. | |
11714 | * env.c: Likewise. | |
11715 | * exit.c: Likewise. | |
11716 | * fe.h: Likewise. | |
11717 | * final.c: Likewise. | |
11718 | * init.c: Likewise. | |
11719 | * initialize.c: Likewise. | |
11720 | * link.c: Likewise. | |
11721 | * namet.h: Likewise. | |
11722 | * nlists.h: Likewise. | |
11723 | * raise.c: Likewise. | |
11724 | * raise.h: Likewise. | |
11725 | * repinfo.h: Likewise. | |
11726 | * seh_init.c: Likewise. | |
11727 | * targext.c: Likewise. | |
11728 | * tracebak.c: Likewise. | |
11729 | * uintp.h: Likewise. | |
11730 | * urealp.h: Likewise. | |
11731 | * xeinfo.adb: Wrap up generated C code in extern "C" block. | |
11732 | * xsinfo.adb: Likewise. | |
11733 | * xsnamest.adb: Likewise. | |
11734 | * gcc-interface/gadaint.h: Wrap up in extern "C" block. | |
11735 | * gcc-interface/gigi.h: Wrap up some prototypes in extern "C" block. | |
11736 | * gcc-interface/misc.c: Likewise. | |
11737 | * gcc-interface/Make-lang.in (GCC_LINK): Use LINKER. | |
11738 | (GNAT1_C_OBJS): Remove ada/b_gnat1.o. List ada/seh_init.o and | |
11739 | ada/targext.o here... | |
11740 | (GNAT_ADA_OBJS): ...and not here. | |
11741 | (GNAT1_ADA_OBJS): Add ada/b_gnat1.o. | |
11742 | (GNATBIND_OBJS): Reorder. | |
11743 | ||
7644b3c7 RH |
11744 | 2011-07-07 Richard Henderson <rth@redhat.com> |
11745 | ||
11746 | * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call | |
11747 | dwarf2out_frame_init. | |
11748 | ||
8384ac41 EB |
11749 | 2011-07-07 Eric Botcazou <ebotcazou@adacore.com> |
11750 | ||
11751 | * gcc-interface/misc.c (gnat_init): Tweak previous change. | |
11752 | ||
fbdd5d87 RO |
11753 | 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11754 | ||
11755 | PR target/39150 | |
11756 | * gcc-interface/Makefile.in: Handle x86_64-solaris2. | |
11757 | ||
1a072294 RG |
11758 | 2011-07-06 Richard Guenther <rguenther@suse.de> |
11759 | ||
8384ac41 EB |
11760 | * gcc-interface/misc.c (gnat_init): Merge calls to |
11761 | build_common_tree_nodes and build_common_tree_nodes_2. | |
1a072294 RG |
11762 | Re-initialize boolean_false_node. |
11763 | ||
bc712852 EB |
11764 | 2011-07-02 Eric Botcazou <ebotcazou@adacore.com> |
11765 | Olivier Hainque <hainque@adacore.com> | |
11766 | Nicolas Setton <setton@adacore.com> | |
11767 | ||
11768 | * gcc-interface/utils.c (record_builtin_type): Set TYPE_ARTIFICIAL on | |
11769 | the type according to the ARTIFICIAL_P parameter. | |
11770 | (create_type_decl): Likewise. | |
11771 | (create_type_stub_decl): Set TYPE_ARTIFICIAL on the type to 1. | |
11772 | ||
2eb22389 EB |
11773 | 2011-07-01 Eric Botcazou <ebotcazou@adacore.com> |
11774 | ||
11775 | * gcc-interface/Make-lang.in (gnat1): Prepend '+' to the command. | |
11776 | (gnatbind): Likewise. | |
11777 | ||
4bdaaf2f RO |
11778 | 2011-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11779 | ||
11780 | * gcc-interface/Makefile.in (TOOLS_LIBS): Add $(LIBINTL). | |
11781 | ||
c020c92b EB |
11782 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11783 | ||
11784 | * gcc-interface/decl.c (gnat_to_gnu_component_type): Use GNAT_TYPE | |
11785 | local variable throughout. Remove useless call to Base_Type. | |
11786 | (gnat_to_gnu_field): Use GNAT_FIELD_TYPE local variable throughout. | |
11787 | Take it also into account for the volatileness of the field. Set the | |
11788 | TREE_SIDE_EFFECTS flag as well in this case. Reorder some warnings. | |
11789 | ||
96769d32 EB |
11790 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11791 | ||
11792 | * gcc-interface/trans.c (Identifier_to_gnu): Don't set TREE_THIS_NOTRAP | |
11793 | on a dereference built for a by-ref object if it has an address clause. | |
11794 | ||
7e4680c1 EB |
11795 | 2011-06-18 Eric Botcazou <ebotcazou@adacore.com> |
11796 | ||
11797 | * einfo.ads (Address_Taken): Document use for the second argument of | |
11798 | Asm_Input and Asm_Output attributes. | |
11799 | * sem_attr.adb (Analyze_Attribute) <Attribute_Asm_Input>: If the second | |
11800 | argument is an entity name, then set Address_Taken on it. | |
11801 | <Attribute_Asm_Output>: Likewise. | |
11802 | * gcc-interface/trans.c (lvalue_required_for_attribute_p): Handle the | |
11803 | Attr_Asm_Input and Attr_Asm_Output attributes explicitly. | |
11804 | (gnat_to_gnu) <N_Code_Statement>: If an operand is going to end up in | |
11805 | memory and is a CONST_DECL, retrieve its corresponding VAR_DECL. | |
11806 | ||
11807 | 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com> | |
d5cc9181 JR |
11808 | |
11809 | PR middle-end/46500 | |
11810 | * gcc-interface/decl.c (gnat_to_gnu_param): Use pack_cumulative_args. | |
11811 | ||
677f3fa8 JM |
11812 | 2011-06-14 Joseph Myers <joseph@codesourcery.com> |
11813 | ||
11814 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o. | |
11815 | (ada/utils.o): Update dependencies. | |
11816 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add | |
11817 | ../../../libcpp/libcpp.a. | |
11818 | * gcc-interface/utils.c: Include common/common-target.h. | |
11819 | (process_attributes): Use targetm_common.have_named_sections. | |
11820 | ||
009db074 RG |
11821 | 2011-06-07 Richard Guenther <rguenther@suse.de> |
11822 | ||
0bad0e23 EB |
11823 | * gcc-interface/misc.c (gnat_init): Do not set size_type_node or call |
11824 | set_sizetype. | |
009db074 | 11825 | |
3bfc61cf EB |
11826 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11827 | ||
0bad0e23 | 11828 | * gcc-interface/utils2.c (gnat_stabilize_reference): Propagate the |
3bfc61cf EB |
11829 | TREE_THIS_NOTRAP flag. |
11830 | ||
5c4a1c7b EB |
11831 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11832 | ||
11833 | * gcc-interface/utils2.c (gnat_stabilize_reference) <COMPOUND_EXPR>: | |
11834 | Fix thinko. | |
11835 | ||
e9f57686 EB |
11836 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11837 | ||
11838 | * gcc-interface/trans.c (Identifier_to_gnu): Also handle deferred | |
11839 | constants whose full view has discriminants specially. | |
11840 | ||
10e4d056 EB |
11841 | 2011-06-06 Eric Botcazou <ebotcazou@adacore.com> |
11842 | ||
11843 | * gcc-interface/utils.c: Include diagnostic.h. | |
11844 | (gnat_write_global_declarations): Output debug information for all | |
11845 | global type declarations before finalizing the compilation unit. | |
11846 | * gcc-interface/Make-lang.in (ada/utils.o): Add dependency. | |
11847 | ||
0957c029 JJ |
11848 | 2011-05-25 Jakub Jelinek <jakub@redhat.com> |
11849 | ||
11850 | * gcc-interface/utils.c (def_fn_type): Remove extra va_end. | |
11851 | ||
52d0a7ac KT |
11852 | 2011-05-25 Kai Tietz <ktietz@redhat.com> |
11853 | ||
11854 | * adaint.c (__gnat_to_canonical_file_list_next): Use array | |
11855 | initialization instead of const/none-const pointer assignment. | |
11856 | ||
1ed1641d JM |
11857 | 2011-05-24 Joseph Myers <joseph@codesourcery.com> |
11858 | ||
11859 | * gcc-interface/Make-lang.in (GNAT1_OBJS): Don't include | |
11860 | $(EXTRA_GNAT1_OBJS). | |
11861 | (GNATBIND_OBJS): Don't include $(EXTRA_GNATBIND_OBJS). | |
11862 | (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Remove. | |
11863 | (gnat1$(exeext), gnatbind$(exeext)): Use libcommon-target.a. | |
11864 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use | |
11865 | libcommon-target.a instead of prefix.o. | |
11866 | ||
9fe72ebd JM |
11867 | 2011-05-21 Joseph Myers <joseph@codesourcery.com> |
11868 | ||
11869 | PR ada/49097 | |
0bad0e23 | 11870 | * gcc-interface/Make-lang.in (gnatbind$(exeext)): Depend on $(LIBDEPS). |
9fe72ebd | 11871 | |
2691e6d7 JM |
11872 | 2011-05-20 Joseph Myers <joseph@codesourcery.com> |
11873 | ||
0bad0e23 EB |
11874 | * gcc-interface/Make-lang.in (EXTRA_GNATBIND_OBJS): Remove version.o. |
11875 | * gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Use libcommon.a | |
11876 | instead of version.o. | |
2691e6d7 | 11877 | |
bf6490b5 KT |
11878 | 2011-05-18 Kai Tietz <ktietz@redhat.com> |
11879 | ||
11880 | * gcc-interface/trans.c (Exception_Handler_to_gnu_sjlj): Use | |
11881 | boolean_false_node instead of integer_zero_node. | |
11882 | (convert_with_check): Likewise. | |
11883 | * gcc-interface/decl.c (choices_to_gnu): Likewise. | |
11884 | ||
7bf9a5ac EB |
11885 | 2011-05-12 Eric Botcazou <ebotcazou@adacore.com> |
11886 | ||
11887 | * gcc-interface/trans.c (call_to_gnu): In the by-reference case, if the | |
11888 | type of the parameter is an unconstrained array, convert the actual to | |
11889 | the type of the formal in the In Out and Out cases as well. | |
11890 | ||
e5b00edf NF |
11891 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
11892 | ||
11893 | * gcc-interface/utils.c (def_fn_type): Don't call build_function_type; | |
11894 | call build_function_type_array or build_varargs_function_type_array | |
11895 | instead. | |
11896 | (create_subprog_type): Don't call build_function_type; call | |
11897 | build_function_type_vec instead. | |
11898 | ||
51545682 NF |
11899 | 2011-05-11 Nathan Froyd <froydnj@codesourcery.com> |
11900 | ||
11901 | * gcc-interface/ada-tree.h (TYPE_OBJECT_RECORD_TYPE): Use TYPE_MINVAL. | |
11902 | (TYPE_GCC_MIN_VALUE): Use TYPE_MINVAL. | |
11903 | (TYPE_GCC_MAX_VALUE): Use TYPE_MAXVAL. | |
11904 | ||
c99c0026 EB |
11905 | 2011-05-07 Eric Botcazou <ebotcazou@adacore.com> |
11906 | ||
f620bd21 EB |
11907 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Remove spaces. |
11908 | ||
c99c0026 EB |
11909 | * gcc-interface/gigi.h (global_bindings_p): Adjust prototype. |
11910 | * gcc-interface/utils.c (global_bindings_p): Return bool and simplify. | |
11911 | ||
3d528853 NF |
11912 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
11913 | ||
c99c0026 | 11914 | * gcc-interface/trans.c (Case_Statement_to_gnu): Call build_case_label. |
3d528853 | 11915 | |
d7d058c5 NF |
11916 | 2011-05-05 Nathan Froyd <froydnj@codesourcery.com> |
11917 | ||
11918 | * gcc-interface/decl.c (intrin_arglists_compatible_p): Use iterators | |
11919 | instead of accessing TYPE_ARG_TYPES directly. | |
11920 | * gcc-interface/utils.c (handle_nonnull_attribute): Likewise. | |
11921 | ||
805e60a0 EB |
11922 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
11923 | ||
11924 | PR ada/48844 | |
11925 | * gcc-interface/gigi.h (get_variant_part): Declare. | |
11926 | * gcc-interface/decl.c (get_variant_part): Make global. | |
11927 | * gcc-interface/utils2.c (find_common_type): Do not return T1 if the | |
11928 | types have the same constant size, are record types and T1 has a | |
11929 | variant part while T2 doesn't. | |
11930 | ||
907a08d9 EB |
11931 | 2011-05-05 Eric Botcazou <ebotcazou@adacore.com> |
11932 | ||
11933 | * gcc-interface/utils.c (begin_subprog_body): Do not call | |
11934 | get_pending_sizes. | |
11935 | (end_subprog_body): Likewise. | |
11936 | ||
d35936ab RG |
11937 | 2011-05-04 Richard Guenther <rguenther@suse.de> |
11938 | ||
11939 | * gcc-interface/trans.c (gnat_to_gnu): Remove zero notrunc argument to | |
11940 | int_const_binop. | |
11941 | (pos_to_constructor): Likewise. | |
11942 | ||
c1fd8753 | 11943 | 2011-05-03 Nathan Froyd <froydnj@codesourcery.com> |
2c7f9cc0 | 11944 | Eric Botcazou <ebotcazou@adacore.com> |
c1fd8753 NF |
11945 | |
11946 | * gcc-interface/trans.c (gigi): Call build_function_type_list instead | |
11947 | of build_function_type. Adjust calls to... | |
11948 | (build_raise_check): ...this. Do not take a void_tree parameter. | |
11949 | Call build_function_type_list instead of build_function_type. | |
11950 | Fix head comment and swap couple of conditional blocks. | |
11951 | ||
4fb87d2b EB |
11952 | 2011-04-30 Eric Botcazou <ebotcazou@adacore.com> |
11953 | ||
11954 | * gnatvsn.ads (Library_Version): Bump to 4.7. | |
11955 | (Current_Year): Bump to 2011. | |
11956 | ||
fa5e5a76 MM |
11957 | 2011-04-29 Michael Matz <matz@suse.de> |
11958 | ||
11959 | * gcc-interface/misc.c (gnat_handle_option): Set | |
11960 | warn_maybe_uninitialized. | |
11961 | ||
8d6a2f69 GP |
11962 | 2011-04-23 Gerald Pfeifer <gerald@pfeifer.com> |
11963 | ||
11964 | * gnat_ugn.texi (Complexity Metrics Control): Update link to | |
11965 | the Watson/McCabe paper. | |
11966 | ||
770937fd JM |
11967 | 2011-04-23 Jim Meyering <meyering@redhat.com> |
11968 | ||
11969 | * gnat_ugn.texi (Examples of gnatxref Usage): Fix typo: s/it it/it is/ | |
11970 | ||
eb601ae1 EB |
11971 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
11972 | ||
11973 | * gcc-interface/decl.c (make_packable_type): Copy DECL_PARALLEL_TYPE | |
11974 | onto the new type. | |
11975 | ||
7d7fcb08 EB |
11976 | 2011-04-22 Eric Botcazou <ebotcazou@adacore.com> |
11977 | ||
11978 | * gcc-interface/gigi.h (create_subprog_decl): Add ARTIFICIAL_FLAG | |
11979 | parameter. | |
11980 | * gcc-interface/utils.c (create_subprog_decl): Likewise. Set | |
11981 | DECL_ARTIFICIAL and DECL_NO_INLINE_WARNING_P on the DECL accordingly. | |
11982 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add | |
11983 | ARTIFICIAL_FLAG local variable and pass it to create_subprog_decl. | |
11984 | <all>: Do not set flags on the reused DECL node coming from an alias. | |
11985 | Set DECL_IGNORED_P on the DECL node built for subprograms if they | |
11986 | don't need debug info here... | |
11987 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): ...and not here. | |
11988 | (gigi): Adjust calls to create_subprog_decl. | |
11989 | (build_raise_check): Likewise. | |
11990 | (establish_gnat_vms_condition_handler): Likewise. | |
11991 | (Compilation_Unit_to_gnu): Likewise. | |
11992 | (gnat_to_gnu): Likewise. | |
11993 | ||
e1876cac EB |
11994 | 2011-04-21 Eric Botcazou <ebotcazou@adacore.com> |
11995 | ||
11996 | * gcc-interface/Makefile.in (NO_SIBLING_ADAFLAGS): Always define. | |
11997 | (NO_REORDER_ADAFLAGS): New variable. | |
11998 | (EXTRA_GNATTOOLS): Always define. | |
11999 | (../stamp-gnatlib1-$(RTSDIR): Copy tsystem.h. | |
12000 | Clean up and adjust list of files compiled with special options. | |
12001 | * gcc-interface/Make-lang.in: Likewise. | |
12002 | (ada/decl.o): Cosmetical change. | |
12003 | (ada/misc.o): Remove dependency on $(PLUGIN_H). | |
12004 | ||
04695783 JM |
12005 | 2011-04-20 Jim Meyering <meyering@redhat.com> |
12006 | ||
12007 | * initialize.c (__gnat_initialize): Remove useless if-before-free. | |
12008 | ||
23399579 EB |
12009 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
12010 | ||
12011 | * gcc-interface/Make-lang.in (gnatbind): Replace $(ALL_CFLAGS) with | |
12012 | $(CFLAGS) on the link line. | |
12013 | ||
51c5169c EB |
12014 | 2011-04-17 Eric Botcazou <ebotcazou@adacore.com> |
12015 | ||
12016 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Function>: Declare the | |
12017 | padded type built for the return type if it is unconstrained. | |
12018 | ||
61e46a7d NF |
12019 | 2011-04-14 Nathan Froyd <froydnj@codesourcery.com> |
12020 | ||
12021 | * gcc-interface/utils.c (gnat_poplevel): Use block_chainon. | |
12022 | ||
81f653d6 NF |
12023 | 2011-04-12 Nathan Froyd <froydnj@codesourcery.com> |
12024 | ||
b4867846 EB |
12025 | * gcc-interface/ada-tree.h (union lang_tree_node): Check for TS_COMMON |
12026 | before calling TREE_CHAIN. | |
81f653d6 NF |
12027 | * gcc-interface/misc.c (gnat_init_ts): New function. |
12028 | (LANG_HOOKS_INIT_TS): Define. | |
12029 | ||
a358e188 MJ |
12030 | 2011-04-12 Martin Jambor <mjambor@suse.cz> |
12031 | ||
b4867846 EB |
12032 | * gcc-interface/utils.c (end_subprog_body): Call cgraph_get_create_node |
12033 | instead of cgraph_node. | |
a358e188 | 12034 | |
29b1c5a4 EB |
12035 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
12036 | ||
12037 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set minimum | |
12038 | alignment on fields of the RETURN type built for the Copy-In Copy-Out | |
12039 | mechanism. | |
12040 | ||
88872b00 EB |
12041 | 2011-04-08 Eric Botcazou <ebotcazou@adacore.com> |
12042 | ||
12043 | * gcc-interface/trans.c (Identifier_to_gnu): Do not return initializers | |
12044 | of aggregate types that contain a placeholder. | |
12045 | ||
dcf0c47e NF |
12046 | 2011-04-08 Nathan Froyd <froydnj@codesourcery.com> |
12047 | ||
12048 | * gcc-interface/utils.c (handle_sentinel_attribute): Don't use | |
b4867846 | 12049 | TYPE_ARG_TYPES. |
dcf0c47e NF |
12050 | (handle_type_generic_attribute): Likewise. |
12051 | ||
53e3000c EB |
12052 | 2011-04-04 Eric Botcazou <ebotcazou@adacore.com> |
12053 | ||
12054 | PR ada/47163 | |
12055 | * s-oscons-tmplt.c (MSG_WAITALL): Fix thinko in previous change. | |
12056 | ||
ab380bb4 KT |
12057 | 2011-04-04 Kai Tietz <ktietz@redhat.com> |
12058 | ||
12059 | PR ada/47163 | |
0bad0e23 EB |
12060 | * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows targets |
12061 | to flag value. | |
ab380bb4 | 12062 | |
8ffac116 EB |
12063 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12064 | ||
12065 | * gcc-interface/utils2.c (build_allocator): In the unconstrained array | |
12066 | type case, do not strip a padding type around the array type. | |
12067 | ||
de9528f0 EB |
12068 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12069 | ||
12070 | * gcc-interface/utils.c (update_pointer_to): Finalize named pointer | |
12071 | types. | |
12072 | ||
d9d7a26c EB |
12073 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12074 | ||
12075 | * gcc-interface/lang.opt (feliminate-unused-debug-types): Delete. | |
12076 | * gcc-interface/misc.c (gnat_handle_option): Remove special handling | |
de9528f0 | 12077 | code for -feliminate-unused-debug-types. |
d9d7a26c EB |
12078 | (gnat_post_options): Likewise. |
12079 | ||
4cb12a90 EB |
12080 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12081 | ||
12082 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
12083 | declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a | |
12084 | distinct copy. | |
12085 | ||
acccc61c EB |
12086 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12087 | ||
12088 | * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the | |
12089 | DECL_ARTIFICIAL flag on enumeration types. | |
12090 | ||
583eb0c9 EB |
12091 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12092 | ||
12093 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make | |
12094 | fat pointer types artificial unconditionally. | |
12095 | <E_Array_Subtype>: Attach the base array type as a parallel type if it | |
12096 | isn't artificial. | |
12097 | ||
e3edbd56 EB |
12098 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12099 | ||
12100 | * gcc-interface/gigi.h (get_dummy_type): Declare. | |
12101 | (build_dummy_unc_pointer_types): Likewise. | |
12102 | (finish_fat_pointer_type): Likewise. | |
12103 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy | |
12104 | fat pointer type has been built, complete it in place. | |
12105 | <E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat | |
12106 | and thin pointers. Remove useless variable. | |
12107 | (finish_fat_pointer_type): Make global and move to... | |
12108 | * gcc-interface/utils.c (finish_fat_pointer_type): ...here. | |
12109 | (get_dummy_type): New function. | |
12110 | (build_dummy_unc_pointer_types): Likewise. | |
12111 | (gnat_pushdecl): Propage the name to the anonymous variants only. | |
12112 | (update_pointer_to): Only adjust the pointer types in the unconstrained | |
12113 | array case. | |
12114 | ||
65444786 EB |
12115 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12116 | ||
12117 | * gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag. | |
12118 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it | |
12119 | if this is a Taft amendment type and the full declaration is available. | |
12120 | * gcc-interface/trans.c (process_type): Likewise. | |
12121 | If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P. | |
12122 | (process_freeze_entity): Likewise. | |
12123 | * gcc-interface/utils.c (dummy_global): New static variable. | |
12124 | (gnat_write_global_declarations): If there are types declared as used | |
12125 | at the global level, insert them in the global hash table. | |
12126 | ||
1aeb40dd EB |
12127 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12128 | ||
12129 | * gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param. | |
12130 | * gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial | |
12131 | declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct | |
12132 | copy. | |
12133 | (record_builtin_type): Add ARTIFICIAL_P parameter. Set DECL_ARTIFICIAL | |
12134 | flag of the type accordingly. | |
12135 | * gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type. | |
12136 | ||
80ec8b4c EB |
12137 | 2011-04-02 Eric Botcazou <ebotcazou@adacore.com> |
12138 | ||
12139 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
12140 | finalizing types when updating the pointers to the designated type. | |
12141 | <all>: Finalize the deferred types even if we didn't defer processing | |
12142 | of incomplete types in this invocation. | |
12143 | ||
2a9d769a | 12144 | 2011-04-01 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 AS |
12145 | Nicolas Setton <setton@adacore.com> |
12146 | Eric Botcazou <ebotcazou@adacore.com> | |
2a9d769a OH |
12147 | |
12148 | * gcc-interface/misc.c (gnat_descriptive_type): New function. | |
12149 | (LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type. | |
12150 | ||
2438d7a6 KT |
12151 | 2011-03-28 Kai Tietz <ktietz@redhat.com> |
12152 | ||
333d8aff | 12153 | * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native |
80ec8b4c EB |
12154 | Windows targets. |
12155 | (EH_MECHANISM): Use GCC exception mechanism for native Windows targets. | |
12156 | * system-mingw.ads (System): Change ZCX_By_Default default to True. | |
333d8aff | 12157 | |
80ec8b4c | 12158 | * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype. |
2438d7a6 | 12159 | |
8ad150f6 TG |
12160 | 2011-03-28 Tristan Gingold <gingold@adacore.com> |
12161 | ||
12162 | PR ada/44431 | |
80ec8b4c EB |
12163 | * gcc-interface/Make-lang.in (ada/b_gnat1.adb): Replace ada/b_gnat1.c. |
12164 | Use ada output of gnatbind. | |
8ad150f6 TG |
12165 | (ada/b_gnatb.adb): Ditto. |
12166 | (ada/b_gnat1.o, ada/b_gnatb.o): New rules. | |
12167 | (ada.mostlyclean, ada.stage1) | |
12168 | (ada.stage2, ada.stage3, ada.stage4, ada.stageprofile) | |
12169 | (ada.stagefeedback): Adjust. | |
80ec8b4c | 12170 | * gcc-interface/Makefile.in (b_gnatl.adb): Replace b_gnatl.c. |
8ad150f6 TG |
12171 | Use ada output of gnatbind. |
12172 | (b_gnatm.adb): Ditto. | |
12173 | (b_gnatl.o, b_gnatm.o): New rules. | |
12174 | ||
51c7954d EB |
12175 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12176 | ||
12177 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
12178 | for the padded type built to support a specified size or alignment. | |
12179 | ||
6ddf9843 EB |
12180 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12181 | ||
12182 | * gcc-interface/gigi.h (finalize_from_with_types): Adjust comment. | |
12183 | * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer | |
12184 | unconditionally to the end of the unit when the designated type is | |
12185 | limited_with'ed. | |
12186 | <all>: Rename local variable. Attempt to un-defer types only and do it | |
12187 | for limited_with'ed types as well. | |
12188 | (finalize_from_with_types): Adjust comment. Rename variable and tidy. | |
12189 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Use GNAT_UNIT | |
12190 | consistently and remove redundant call to finalize_from_with_types. | |
12191 | ||
5daed84a EB |
12192 | 2011-03-26 Eric Botcazou <ebotcazou@adacore.com> |
12193 | ||
12194 | * inline.adb (Back_End_Cannot_Inline): Lift restriction on calls to | |
12195 | subprograms without a previous spec declared in the same unit. | |
12196 | * gcc-interface/trans.c (Compilation_Unit_to_gnu): Process inlined | |
12197 | subprograms at the end of the unit instead of at the beginning. | |
12198 | * gcc-interface/utils.c (create_subprog_decl): Check that the entity | |
12199 | isn't public for the special handling of non-inline functions nested | |
12200 | inside inline external functions. | |
12201 | ||
0edf1bb2 JL |
12202 | 2011-03-25 Jeff Law <law@redhat.com> |
12203 | ||
5daed84a | 12204 | * gcc-interface/utils.c (def_fn_type): Add missing va_end. |
0edf1bb2 | 12205 | |
e3c4580e EB |
12206 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
12207 | ||
12208 | * einfo.ads (Size_Depends_On_Discriminant): Adjust description. | |
12209 | * layout.adb (Compute_Size_Depends_On_Discriminant): New procedure | |
12210 | to compute Set_Size_Depends_On_Discriminant. | |
12211 | (Layout_Type): Call it on array types in back-end layout mode. | |
12212 | * sem_util.adb (Requires_Transient_Scope): Return true for array | |
12213 | types only if the size depends on the value of discriminants. | |
12214 | * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Use the RHS | |
12215 | type if the RHS is a call to a function that returns an unconstrained | |
12216 | type with default discriminant. | |
12217 | ||
abbc8c7b EB |
12218 | 2011-03-24 Eric Botcazou <ebotcazou@adacore.com> |
12219 | ||
12220 | * gcc-interface/trans.c (gnat_to_gnu): Remove obsolete case of | |
12221 | non-conversion to the nominal result type at the end. | |
12222 | ||
ddb5a105 EB |
12223 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12224 | ||
12225 | * gcc-interface/trans.c (create_temporary): New function taken from... | |
12226 | (create_init_temporary): ...here. Call it. | |
12227 | (call_to_gnu): Create the temporary for the return value early, if any. | |
12228 | Create it for a function with copy-in/copy-out parameters if there is | |
12229 | no target; in other cases of copy-in/copy-out, use another temporary. | |
12230 | Push the new binding level lazily. Add and rename local variables. | |
12231 | ||
0d853156 EB |
12232 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12233 | ||
12234 | * gcc-interface/decl.c (validate_size): Improve comments and tweak | |
12235 | error message. | |
12236 | (set_rm_size): Likewise. | |
12237 | ||
4184ef1b EB |
12238 | 2011-03-23 Eric Botcazou <ebotcazou@adacore.com> |
12239 | ||
12240 | * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create TYPE_DECL | |
12241 | for the padded type built in order to support a specified alignment. | |
12242 | Fix incorrect formatting. | |
12243 | ||
bf7eefab EB |
12244 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12245 | ||
12246 | PR bootstrap/48216 | |
12247 | * gcc-interface/decl.c (elaborate_expression_1): Localize GNU_DECL. | |
12248 | ||
ef0feeb2 EB |
12249 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12250 | ||
12251 | * gcc-interface/decl.c (components_to_record): Add REORDER parameter, | |
12252 | rename DEBUG_INFO_P into DEBUG_INFO and move P_GNU_REP_LIST parameter | |
12253 | to the end of the list. Adjust recursive call. Rename local variable. | |
12254 | If REORDER is true, reorder components of the record type. | |
12255 | (gnat_to_gnu_entity): Pass OK_To_Reorder_Components flag as argument to | |
12256 | components_to_record and adjust the parameter list. | |
12257 | ||
646f9414 EB |
12258 | 2011-03-21 Eric Botcazou <ebotcazou@adacore.com> |
12259 | ||
12260 | * gcc-interface/decl.c (elaborate_expression_1): When optimization is | |
12261 | disabled, use the variable for bounds of loop iteration scheme. | |
12262 | ||
62d784f7 KT |
12263 | 2011-03-21 Kai Tietz <ktietz@redhat.com> |
12264 | ||
12265 | PR target/12171 | |
0bad0e23 | 12266 | * gcc-interface/utils.c (gnat_internal_attribute_table): Add column. |
62d784f7 | 12267 | |
f230d759 EB |
12268 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
12269 | ||
12270 | * gcc-interface/decl.c (elaborate_expression_1): Try harder to find | |
12271 | out whether the expression is read-only. Short-circuit placeholder | |
12272 | case and rename a couple of local variables. | |
12273 | ||
bb1f7929 EB |
12274 | 2011-03-17 Eric Botcazou <ebotcazou@adacore.com> |
12275 | ||
12276 | * gcc-interface/gigi.h (smaller_form_type_p): Declare. | |
12277 | * gcc-interface/trans.c (smaller_form_type_p): Make global and move... | |
12278 | * gcc-interface/utils.c (smaller_form_type_p): ...to here. | |
12279 | (convert): Deal with conversions from a smaller form type specially. | |
12280 | ||
400a2d24 EB |
12281 | 2011-02-14 Eric Botcazou <ebotcazou@adacore.com> |
12282 | ||
12283 | * gcc-interface/misc.c (gnat_init_options): Do not concatenate -I and | |
12284 | its argument, except for the special -I- switch. | |
12285 | ||
c26bc3ad GP |
12286 | 2011-02-12 Gerald Pfeifer <gerald@pfeifer.com> |
12287 | ||
0bad0e23 EB |
12288 | * gnat_ugn.texi (Compiling Different Versions of Ada): Update link to |
12289 | "Ada Issues". | |
c26bc3ad | 12290 | |
07b8e910 EB |
12291 | 2011-02-08 Eric Botcazou <ebotcazou@adacore.com> |
12292 | ||
12293 | * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs. | |
12294 | ||
31a5a547 EB |
12295 | 2011-02-03 Eric Botcazou <ebotcazou@adacore.com> |
12296 | ||
12297 | * gcc-interface/gigi.h (fill_vms_descriptor): Take GNU_TYPE instead of | |
12298 | GNAT_FORMAL. | |
12299 | * gcc-interface/utils2.c (fill_vms_descriptor): Move from here to... | |
12300 | * gcc-interface/utils.c (fill_vms_descriptor): ...here. Take GNU_TYPE | |
12301 | instead of GNAT_FORMAL. Protect the expression against multiple uses. | |
12302 | Do not generate the check directly, instead instantiate the template | |
12303 | check present in the descriptor. | |
12304 | (make_descriptor_field): Move around. | |
12305 | (build_vms_descriptor32): Build a template check in the POINTER field. | |
12306 | (build_vms_descriptor): Remove useless suffixes. | |
12307 | * gcc-interface/trans.c (call_to_gnu): Adjust fill_vms_descriptor call. | |
12308 | ||
dcf25f59 EB |
12309 | 2011-01-26 Eric Botcazou <ebotcazou@adacore.com> |
12310 | ||
12311 | PR bootstrap/47467 | |
12312 | * targext.c: Include target files if IN_RTS is defined. | |
12313 | ||
0418e131 RG |
12314 | 2011-01-26 Richard Guenther <rguenther@suse.de> |
12315 | ||
12316 | PR bootstrap/47467 | |
12317 | * targext.c: Include config.h. | |
12318 | * gcc-interface/Make-lang.in (ada/targext.o): Add $(CONFIG_H) | |
12319 | dependency. | |
12320 | ||
c6eecbd8 | 12321 | 2011-01-04 Pascal Obry <obry@adacore.com> |
2c7f9cc0 | 12322 | Eric Botcazou <ebotcazou@adacore.com> |
c6eecbd8 PO |
12323 | |
12324 | * gcc-interface/decl.c: Disable Stdcall convention handling for 64-bit. | |
12325 | ||
2d3c7e4f EB |
12326 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12327 | ||
12328 | * gcc-interface/trans.c (Case_Statement_to_gnu): Put the SLOC of the | |
12329 | end-of-case on the end label and its associated gotos, if any. | |
12330 | ||
0394741f EB |
12331 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12332 | ||
12333 | * gcc-interface/trans.c (Subprogram_Body_to_gnu): Evaluate the | |
12334 | expressions of the parameter cache within the statement group of | |
12335 | the CICO mechanism. | |
12336 | ||
2a02d090 | 12337 | 2011-01-04 Olivier Hainque <hainque@adacore.com> |
2c7f9cc0 | 12338 | Eric Botcazou <ebotcazou@adacore.com> |
2a02d090 OH |
12339 | |
12340 | * gcc-interface/trans.c (BLOCK_SOURCE_END_LOCATION): Provide default. | |
12341 | (set_end_locus_from_node): New function. | |
12342 | (Subprogram_Body_to_gnu): Use it to mark both the inner BIND_EXPR we | |
12343 | make and the function end_locus. | |
12344 | (Compilation_Unit_to_gnu): Call it instead of a straight Sloc_to_locus | |
12345 | for the elaboration subprogram. | |
12346 | (set_gnu_expr_location_from_node) <default case>: Use it to attempt to | |
12347 | set the end_locus of the expression as well. | |
12348 | ||
89f5e978 EB |
12349 | 2011-01-04 Eric Botcazou <ebotcazou@adacore.com> |
12350 | ||
12351 | PR ada/47131 | |
12352 | * gcc-interface/trans.c (Identifier_to_gnu): In SJLJ mode, do not make | |
12353 | variables that are referenced in exception handlers volatile. | |
12354 | ||
12355 | ||
ad41bd84 | 12356 | \f |
797103eb | 12357 | Copyright (C) 2011 Free Software Foundation, Inc. |
ad41bd84 JM |
12358 | |
12359 | Copying and distribution of this file, with or without modification, | |
12360 | are permitted in any medium without royalty provided the copyright | |
12361 | notice and this notice are preserved. |